com.sun.rave.web.ui.model
Interface ResourceItem


public interface ResourceItem

This interface describes a selectable item in the filehooser listbox. The item has 5 values which can be implemented based on the resource type in question: a) An Object representing the value of the item b) A key that will be used as the value of the


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.
 

Method Detail

getItemValue

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

java.lang.String getItemKey()
Returns a String representing the item key.

Returns:
returns an object representing the resource item

setItemKey

void setItemKey(java.lang.String key)
Set the item key.

Parameters:
key - - the resource item key

getItemLabel

java.lang.String getItemLabel()
Returns an object representing the resource item.

Returns:
returns an object representing the resource item

setItemLabel

void setItemLabel(java.lang.String label)
Returns an object representing the resource item.


isItemDisabled

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

void setItemDisabled(boolean disabled)
Sets the item disabled flag. If set to true the item should not be selectable.


isContainerItem

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

boolean equals(java.lang.Object resourceItem)
Overrides:
equals in class java.lang.Object