tag described above.
d) A boolean flag indicating whether the option should be disabled or not.
e) A boolean flag indicating if the resource being represented by this
item is a container resource or a child resource. In the realm of
of File systems this would translate to directory and file respectively.
Author:
deep
Method Summary
boolean
equals (java.lang.Object resourceItem)
java.lang.String
getItemKey ()
Returns a String representing the item key.
java.lang.String
getItemLabel ()
Returns an object representing the resource item.
java.lang.Object
getItemValue ()
Returns an object representing the value of this resource item.
boolean
isContainerItem ()
Returns a flag indicating if the resource item is a container.
boolean
isItemDisabled ()
Returns an boolean value indicating if the item should be selectable
in the filechooser's listbox.
void
setItemDisabled (boolean disabled)
Sets the item disabled flag.
void
setItemKey (java.lang.String key)
Set the item key.
void
setItemLabel (java.lang.String label)
Returns an object representing the resource item.
getItemValue
public java.lang.Object getItemValue ()
Returns an object representing the value of this resource item.
For the default case of the FileChooser this would be a File
object.
Returns: an object which is the value of the ResourceItem.
getItemKey
public java.lang.String getItemKey ()
Returns a String representing the item key.
Returns: returns an object representing the resource item
setItemKey
public void setItemKey (java.lang.String key)
Set the item key.
Parameters: key
- - the resource item key
getItemLabel
public java.lang.String getItemLabel ()
Returns an object representing the resource item.
Returns: returns an object representing the resource item
setItemLabel
public void setItemLabel (java.lang.String label)
Returns an object representing the resource item.
Returns: returns an object representing the resource item
isItemDisabled
public boolean isItemDisabled ()
Returns an boolean value indicating if the item should be selectable
in the filechooser's listbox.
Returns: true if the item in the listbox should be disabled.
setItemDisabled
public void setItemDisabled (boolean disabled)
Sets the item disabled flag. If set to true the item should
not be selectable.
isContainerItem
public boolean isContainerItem ()
Returns a flag indicating if the resource item is a container. If true
the item is a container item.
Returns: true if the item is a container, false otherwise.
equals
public boolean equals (java.lang.Object resourceItem)