amber.type.server
Class FileFilterData

java.lang.Object
  |
  +--amber.type.server.FileFilterData

public class FileFilterData
extends java.lang.Object

This class holds information relating to File masks to be used when deciding which files to display in a File dialog.

See Also:
FileDialog, FileFilter

Field Summary
protected  java.lang.String displayName
          The text to display in the file type choice.
protected  java.lang.String filter
          The file filter string.
 
Constructor Summary
FileFilterData()
          Default Constructor.
FileFilterData(java.lang.String displayName, java.lang.String filter)
          Initialising Constructor.
 
Method Summary
 java.lang.String getDisplayName()
          Gets the data in the following variable: The text to display in the file type choice.
 java.lang.String getFilter()
          Gets the data in the following variable: The file filter string.
 void setDisplayName(java.lang.String data)
          Sets the data in the following variable: The text to display in the file type choice.
 void setFilter(java.lang.String data)
          Sets the data in the following variable: The file filter string.
 java.lang.String toString()
          This function returns the String form of the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

displayName

protected java.lang.String displayName
The text to display in the file type choice.

filter

protected java.lang.String filter
The file filter string. This is a section of file which is used to match the files. Wildcards such as '*' are not required. This is a sub string which is searched for in the file name.
Constructor Detail

FileFilterData

public FileFilterData()
Default Constructor.

FileFilterData

public FileFilterData(java.lang.String displayName,
                      java.lang.String filter)
Initialising Constructor.
Parameters:
displayName - The text to display in the file type choice.
filter - The file filter string.
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Gets the data in the following variable: The text to display in the file type choice.
Returns:
String containing the required information.

getFilter

public java.lang.String getFilter()
Gets the data in the following variable: The file filter string. This is a section of file which is used to match the files. Wildcards such as '*' are not required. This is a sub string which is searched for in the file name.
Returns:
String containing the required information.

setDisplayName

public void setDisplayName(java.lang.String data)
Sets the data in the following variable: The text to display in the file type choice.
Parameters:
data - String containing the data to set the variable to.

setFilter

public void setFilter(java.lang.String data)
Sets the data in the following variable: The file filter string. This is a section of file which is used to match the files. Wildcards such as '*' are not required. This is a sub string which is searched for in the file name.
Parameters:
data - String containing the data to set the variable to.

toString

public java.lang.String toString()
This function returns the String form of the data.
Overrides:
toString in class java.lang.Object
Returns:
String containing the string version of this class.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.