public class PollingInfo
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
MODE_ABSDATERANGE
polling mode
|
static int |
MODE_COUNT
polling mode
|
static int |
MODE_NONEWFILES
polling mode
|
static int |
MODE_RELDATERANGE
polling mode
|
static java.lang.String[] |
MODELABELS
polling mode
|
static int[] |
MODES
polling mode
|
Constructor and Description |
---|
PollingInfo()
Constructor
|
PollingInfo(boolean isActive)
Constructor
|
PollingInfo(long interval,
boolean isActive)
Constructor
|
PollingInfo(java.lang.String filePath,
long interval,
java.lang.String filePattern,
boolean isActive)
Constructor
|
PollingInfo(java.lang.String filePath,
long interval,
java.lang.String filePattern,
boolean isActive,
boolean isHiddenOk)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyProperties()
_more_
|
void |
checkPattern()
_more_
|
PollingInfo |
cloneMe()
Clone me
|
boolean |
doILookForNewFiles()
_more_
|
boolean |
equals(java.lang.Object object)
_more_
|
javax.swing.JCheckBox |
getActiveWidget()
_more_
|
long |
getDateRange()
Get the DateRange property.
|
javax.swing.JTextField |
getDateRangeWidget()
_more_
|
java.lang.String |
getFile()
Get the filePath property.
|
int |
getFileCount()
Get the FileCount property.
|
javax.swing.JComboBox |
getFileCountWidget()
_more_
|
javax.swing.JComboBox |
getFileCountWidget(int[] values)
_more_
|
java.util.List |
getFilePaths()
Get the FilePaths property.
|
javax.swing.JTextField |
getFilePathWidget()
_more_
|
java.lang.String |
getFilePattern()
Get the filePattern property.
|
java.util.List |
getFiles()
_more_
|
boolean |
getForFiles()
Get the ForFiles property.
|
javax.swing.JCheckBox |
getHiddenWidget()
_more_
|
long |
getInterval()
Get the interval property.
|
javax.swing.JTextField |
getIntervalWidget()
_more_
|
boolean |
getIsActive()
Get the isActive property.
|
boolean |
getIsHiddenOk()
Get the isHiddenOk property.
|
int |
getMode()
Get the Mode property.
|
java.lang.String |
getName()
Get the Name property.
|
javax.swing.JTextField |
getNameWidget()
_more_
|
javax.swing.JTextField |
getPatternWidget()
_more_
|
void |
getPropertyComponents(java.util.List comps,
boolean includeName,
boolean includeFileCount)
_more_
|
boolean |
hasFilePattern()
_more_
|
boolean |
hasFiles()
_more_
|
boolean |
hasName()
_more_
|
boolean |
isADirectory()
_more_
|
static void |
main(java.lang.String[] args)
_more_
|
void |
setDateRange(long value)
Set the DateRange property.
|
void |
setDontLookForNewFiles()
_more_
|
void |
setFileCount(int value)
Set the FileCount property.
|
void |
setFilePath(java.lang.String newValue)
Deprecated.
Use setFilePaths
|
void |
setFilePaths(java.util.List value)
Set the FilePaths property.
|
void |
setFilePattern(java.lang.String newValue)
Set the filePattern property.
|
void |
setForFiles(boolean value)
Set the ForFiles property.
|
void |
setInterval(long newValue)
Set the interval property.
|
void |
setIsActive(boolean newValue)
Set the isActive property.
|
void |
setIsHiddenOk(boolean newValue)
Set the isHiddenOk property.
|
void |
setMode(int value)
Set the Mode property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
java.lang.String |
toString()
Get a String representation of this object
|
public static final int MODE_NONEWFILES
public static final int MODE_COUNT
public static final int MODE_RELDATERANGE
public static final int MODE_ABSDATERANGE
public static final int[] MODES
public static final java.lang.String[] MODELABELS
public PollingInfo()
public PollingInfo(boolean isActive)
isActive
- The isActive parameterpublic PollingInfo(long interval, boolean isActive)
interval
- The interval parameterisActive
- The isActive parameterpublic PollingInfo(java.lang.String filePath, long interval, java.lang.String filePattern, boolean isActive)
filePath
- The filePath parameterinterval
- The interval parameterfilePattern
- The filePattern parameterisActive
- The isActive parameterpublic PollingInfo(java.lang.String filePath, long interval, java.lang.String filePattern, boolean isActive, boolean isHiddenOk)
filePath
- The filePath parameterinterval
- The interval parameterfilePattern
- The filePattern parameterisActive
- The isActive parameterisHiddenOk
- poll on hidden files as wellpublic PollingInfo cloneMe()
public void setDontLookForNewFiles()
public boolean doILookForNewFiles()
public void getPropertyComponents(java.util.List comps, boolean includeName, boolean includeFileCount)
comps
- _more_includeName
- _more_includeFileCount
- _more_public void checkPattern()
public javax.swing.JCheckBox getHiddenWidget()
public javax.swing.JCheckBox getActiveWidget()
public javax.swing.JTextField getPatternWidget()
public javax.swing.JTextField getIntervalWidget()
public javax.swing.JTextField getFilePathWidget()
public javax.swing.JTextField getNameWidget()
public javax.swing.JTextField getDateRangeWidget()
public javax.swing.JComboBox getFileCountWidget()
public javax.swing.JComboBox getFileCountWidget(int[] values)
values
- _more_public boolean isADirectory()
public boolean hasFiles()
public boolean applyProperties()
public java.util.List getFiles()
public long getInterval()
public void setInterval(long newValue)
newValue
- The new vaue for the interval property.public java.lang.String getFile()
public void setFilePath(java.lang.String newValue)
newValue
- The new vaue for the filePath property.public java.lang.String getFilePattern()
public boolean hasName()
public boolean hasFilePattern()
public void setFilePattern(java.lang.String newValue)
newValue
- The new vaue for the filePattern property.public boolean getIsActive()
public void setIsActive(boolean newValue)
newValue
- The new vaue for the isActive property.public boolean getIsHiddenOk()
public void setIsHiddenOk(boolean newValue)
newValue
- The new vaue for the isHiddenOk property.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- _more_public void setForFiles(boolean value)
value
- The new value for ForFilespublic boolean getForFiles()
public void setMode(int value)
value
- The new value for Modepublic int getMode()
public void setFileCount(int value)
value
- The new value for FileCountpublic int getFileCount()
public void setDateRange(long value)
value
- The new value for DateRangepublic long getDateRange()
public static void main(java.lang.String[] args)
args
- _more_public void setName(java.lang.String value)
value
- The new value for Namepublic java.lang.String getName()
public void setFilePaths(java.util.List value)
value
- The new value for FilePathspublic java.util.List getFilePaths()