ucar.unidata.util
Class PollingInfo

java.lang.Object
  extended by ucar.unidata.util.PollingInfo
All Implemented Interfaces:
Cloneable

public class PollingInfo
extends Object
implements Cloneable

Class PollingInfo Holds the state that controls the FilePoller

Version:
$Revision: 1.24 $
Author:
IDV Development Team

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

MODE_NONEWFILES

public static final int MODE_NONEWFILES
polling mode

See Also:
Constant Field Values

MODE_COUNT

public static final int MODE_COUNT
polling mode

See Also:
Constant Field Values

MODE_RELDATERANGE

public static final int MODE_RELDATERANGE
polling mode

See Also:
Constant Field Values

MODE_ABSDATERANGE

public static final int MODE_ABSDATERANGE
polling mode

See Also:
Constant Field Values

MODES

public static final int[] MODES
polling mode


MODELABELS

public static final String[] MODELABELS
polling mode

Constructor Detail

PollingInfo

public PollingInfo()
Constructor


PollingInfo

public PollingInfo(boolean isActive)
Constructor

Parameters:
isActive - The isActive parameter

PollingInfo

public PollingInfo(long interval,
                   boolean isActive)
Constructor

Parameters:
interval - The interval parameter
isActive - The isActive parameter

PollingInfo

public PollingInfo(String filePath,
                   long interval,
                   String filePattern,
                   boolean isActive)
Constructor

Parameters:
filePath - The filePath parameter
interval - The interval parameter
filePattern - The filePattern parameter
isActive - The isActive parameter

PollingInfo

public PollingInfo(String filePath,
                   long interval,
                   String filePattern,
                   boolean isActive,
                   boolean isHiddenOk)
Constructor

Parameters:
filePath - The filePath parameter
interval - The interval parameter
filePattern - The filePattern parameter
isActive - The isActive parameter
isHiddenOk - poll on hidden files as well
Method Detail

cloneMe

public PollingInfo cloneMe()
Clone me

Returns:
Cloned version of this

setDontLookForNewFiles

public void setDontLookForNewFiles()
_more_


doILookForNewFiles

public boolean doILookForNewFiles()
_more_

Returns:
_more_

getPropertyComponents

public void getPropertyComponents(List comps,
                                  boolean includeName,
                                  boolean includeFileCount)
_more_

Parameters:
comps - _more_
includeName - _more_
includeFileCount - _more_

checkPattern

public void checkPattern()
_more_


getHiddenWidget

public JCheckBox getHiddenWidget()
_more_

Returns:
_more_

getActiveWidget

public JCheckBox getActiveWidget()
_more_

Returns:
_more_

getPatternWidget

public JTextField getPatternWidget()
_more_

Returns:
_more_

getIntervalWidget

public JTextField getIntervalWidget()
_more_

Returns:
_more_

getFilePathWidget

public JTextField getFilePathWidget()
_more_

Returns:
_more_

getNameWidget

public JTextField getNameWidget()
_more_

Returns:
_more_

getDateRangeWidget

public JTextField getDateRangeWidget()
_more_

Returns:
_more_

getFileCountWidget

public JComboBox getFileCountWidget()
_more_

Returns:
_more_

getFileCountWidget

public JComboBox getFileCountWidget(int[] values)
_more_

Parameters:
values - _more_
Returns:
_more_

isADirectory

public boolean isADirectory()
_more_

Returns:
_more_

hasFiles

public boolean hasFiles()
_more_

Returns:
_more_

applyProperties

public boolean applyProperties()
_more_

Returns:
_more_

getFiles

public List getFiles()
_more_

Returns:
_more_

getInterval

public long getInterval()
Get the interval property.

Returns:
The interval property.

setInterval

public void setInterval(long newValue)
Set the interval property.

Parameters:
newValue - The new vaue for the interval property.

getFile

public String getFile()
Get the filePath property.

Returns:
The filePath property.

setFilePath

public void setFilePath(String newValue)
Deprecated. Use setFilePaths

Set the filePath property.

Parameters:
newValue - The new vaue for the filePath property.

getFilePattern

public String getFilePattern()
Get the filePattern property.

Returns:
The filePattern property.

hasName

public boolean hasName()
_more_

Returns:
_more_

hasFilePattern

public boolean hasFilePattern()
_more_

Returns:
_more_

setFilePattern

public void setFilePattern(String newValue)
Set the filePattern property.

Parameters:
newValue - The new vaue for the filePattern property.

getIsActive

public boolean getIsActive()
Get the isActive property.

Returns:
The isActive property.

setIsActive

public void setIsActive(boolean newValue)
Set the isActive property.

Parameters:
newValue - The new vaue for the isActive property.

getIsHiddenOk

public boolean getIsHiddenOk()
Get the isHiddenOk property.

Returns:
The isHiddenOk property.

setIsHiddenOk

public void setIsHiddenOk(boolean newValue)
Set the isHiddenOk property.

Parameters:
newValue - The new vaue for the isHiddenOk property.

toString

public String toString()
Get a String representation of this object

Overrides:
toString in class Object
Returns:
a string representation

equals

public boolean equals(Object object)
_more_

Overrides:
equals in class Object
Parameters:
object - _more_
Returns:
_more_

setForFiles

public void setForFiles(boolean value)
Set the ForFiles property.

Parameters:
value - The new value for ForFiles

getForFiles

public boolean getForFiles()
Get the ForFiles property.

Returns:
The ForFiles

setMode

public void setMode(int value)
Set the Mode property.

Parameters:
value - The new value for Mode

getMode

public int getMode()
Get the Mode property.

Returns:
The Mode

setFileCount

public void setFileCount(int value)
Set the FileCount property.

Parameters:
value - The new value for FileCount

getFileCount

public int getFileCount()
Get the FileCount property.

Returns:
The FileCount

setDateRange

public void setDateRange(long value)
Set the DateRange property.

Parameters:
value - The new value for DateRange

getDateRange

public long getDateRange()
Get the DateRange property.

Returns:
The DateRange

main

public static void main(String[] args)
_more_

Parameters:
args - _more_

setName

public void setName(String value)
Set the Name property.

Parameters:
value - The new value for Name

getName

public String getName()
Get the Name property.

Returns:
The Name

setFilePaths

public void setFilePaths(List value)
Set the FilePaths property.

Parameters:
value - The new value for FilePaths

getFilePaths

public List getFilePaths()
Get the FilePaths property.

Returns:
The FilePaths