|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.PollingInfo
public class PollingInfo
Class PollingInfo Holds the state that controls the FilePoller
| Field Summary | |
|---|---|
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 String[] |
MODELABELS
polling mode |
static int[] |
MODES
polling mode |
| Constructor Summary | |
|---|---|
PollingInfo()
Constructor |
|
PollingInfo(boolean isActive)
Constructor |
|
PollingInfo(long interval,
boolean isActive)
Constructor |
|
PollingInfo(String filePath,
long interval,
String filePattern,
boolean isActive)
Constructor |
|
PollingInfo(String filePath,
long interval,
String filePattern,
boolean isActive,
boolean isHiddenOk)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
applyProperties()
_more_ |
void |
checkPattern()
_more_ |
PollingInfo |
cloneMe()
Clone me |
boolean |
doILookForNewFiles()
_more_ |
boolean |
equals(Object object)
_more_ |
JCheckBox |
getActiveWidget()
_more_ |
long |
getDateRange()
Get the DateRange property. |
JTextField |
getDateRangeWidget()
_more_ |
String |
getFile()
Get the filePath property. |
int |
getFileCount()
Get the FileCount property. |
JComboBox |
getFileCountWidget()
_more_ |
JComboBox |
getFileCountWidget(int[] values)
_more_ |
List |
getFilePaths()
Get the FilePaths property. |
JTextField |
getFilePathWidget()
_more_ |
String |
getFilePattern()
Get the filePattern property. |
List |
getFiles()
_more_ |
boolean |
getForFiles()
Get the ForFiles property. |
JCheckBox |
getHiddenWidget()
_more_ |
long |
getInterval()
Get the interval property. |
JTextField |
getIntervalWidget()
_more_ |
boolean |
getIsActive()
Get the isActive property. |
boolean |
getIsHiddenOk()
Get the isHiddenOk property. |
int |
getMode()
Get the Mode property. |
String |
getName()
Get the Name property. |
JTextField |
getNameWidget()
_more_ |
JTextField |
getPatternWidget()
_more_ |
void |
getPropertyComponents(List comps,
boolean includeName,
boolean includeFileCount)
_more_ |
boolean |
hasFilePattern()
_more_ |
boolean |
hasFiles()
_more_ |
boolean |
hasName()
_more_ |
boolean |
isADirectory()
_more_ |
static void |
main(String[] args)
_more_ |
void |
setDateRange(long value)
Set the DateRange property. |
void |
setDontLookForNewFiles()
_more_ |
void |
setFileCount(int value)
Set the FileCount property. |
void |
setFilePath(String newValue)
Deprecated. Use setFilePaths |
void |
setFilePaths(List value)
Set the FilePaths property. |
void |
setFilePattern(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(String value)
Set the Name property. |
String |
toString()
Get a String representation of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 String[] MODELABELS
| Constructor Detail |
|---|
public PollingInfo()
public PollingInfo(boolean isActive)
isActive - The isActive parameter
public PollingInfo(long interval,
boolean isActive)
interval - The interval parameterisActive - The isActive parameter
public PollingInfo(String filePath,
long interval,
String filePattern,
boolean isActive)
filePath - The filePath parameterinterval - The interval parameterfilePattern - The filePattern parameterisActive - The isActive parameter
public PollingInfo(String filePath,
long interval,
String filePattern,
boolean isActive,
boolean isHiddenOk)
filePath - The filePath parameterinterval - The interval parameterfilePattern - The filePattern parameterisActive - The isActive parameterisHiddenOk - poll on hidden files as well| Method Detail |
|---|
public PollingInfo cloneMe()
public void setDontLookForNewFiles()
public boolean doILookForNewFiles()
public void getPropertyComponents(List comps,
boolean includeName,
boolean includeFileCount)
comps - _more_includeName - _more_includeFileCount - _more_public void checkPattern()
public JCheckBox getHiddenWidget()
public JCheckBox getActiveWidget()
public JTextField getPatternWidget()
public JTextField getIntervalWidget()
public JTextField getFilePathWidget()
public JTextField getNameWidget()
public JTextField getDateRangeWidget()
public JComboBox getFileCountWidget()
public JComboBox getFileCountWidget(int[] values)
values - _more_
public boolean isADirectory()
public boolean hasFiles()
public boolean applyProperties()
public List getFiles()
public long getInterval()
public void setInterval(long newValue)
newValue - The new vaue for the interval property.public String getFile()
public void setFilePath(String newValue)
newValue - The new vaue for the filePath property.public String getFilePattern()
public boolean hasName()
public boolean hasFilePattern()
public void setFilePattern(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 String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectobject - _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(String[] args)
args - _more_public void setName(String value)
value - The new value for Namepublic String getName()
public void setFilePaths(List value)
value - The new value for FilePathspublic List getFilePaths()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||