org.rcfaces.core.component
Class TreeNodeComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UISelectItem
              extended by org.rcfaces.core.internal.component.CameliaItemComponent
                  extended by org.rcfaces.core.component.AbstractItemComponent
                      extended by org.rcfaces.core.component.SelectItemComponent
                          extended by org.rcfaces.core.component.UIImageItemComponent
                              extended by org.rcfaces.core.component.ExpandableItemComponent
                                  extended by org.rcfaces.core.component.TreeNodeComponent
All Implemented Interfaces:
StateHolder, IAlternateTextCapability, IClientDataCapability, IDisabledCapability, IDraggableCapability, IDroppableCapability, IExpandImageCapability, IForegroundBackgroundColorCapability, IImageCapability, IInputTypeCapability, IMenuPopupIdCapability, IRadioGroupCapability, IServerDataCapability, IStatesImageCapability, IStyleClassCapability, ITextCapability, IToolTipCapability, IUnlockedClientAttributesCapability, IVisibilityCapability, org.rcfaces.core.internal.capability.IComponentLifeCycle, org.rcfaces.core.internal.capability.IImageAccessorsCapability, org.rcfaces.core.internal.capability.IRCFacesComponent, org.rcfaces.core.internal.manager.IClientDataManager, org.rcfaces.core.internal.manager.IContainerManager, org.rcfaces.core.internal.manager.IServerDataManager, org.rcfaces.core.internal.manager.ITransientAttributesManager

public class TreeNodeComponent
extends ExpandableItemComponent
implements IRadioGroupCapability, IStyleClassCapability, IMenuPopupIdCapability, IInputTypeCapability, IDraggableCapability, IDroppableCapability

A node belonging to a tree.


Field Summary
protected static Set CAMELIA_ATTRIBUTES
           
static String COMPONENT_TYPE
           
 
Fields inherited from class org.rcfaces.core.internal.component.CameliaItemComponent
engine
 
Fields inherited from class javax.faces.component.UISelectItem
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.rcfaces.core.component.capability.IInputTypeCapability
AS_CHECK_BUTTON, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_RESET_BUTTON, AS_SEPARATOR, AS_SUBMIT_BUTTON
 
Constructor Summary
TreeNodeComponent()
           
TreeNodeComponent(String componentId)
           
 
Method Summary
protected  Set getCameliaFields()
           
 int getDragEffects()
           
 int getDragEffects(FacesContext facesContext)
          See getDragEffects() for more details
 String[] getDragTypes()
           
 String[] getDragTypes(FacesContext facesContext)
          See getDragTypes() for more details
 int getDropEffects()
           
 int getDropEffects(FacesContext facesContext)
          See getDropEffects() for more details
 String[] getDropTypes()
           
 String[] getDropTypes(FacesContext facesContext)
          See getDropTypes() for more details
 String getGroupName()
          Returns a string specifying the name of the virtual entity that links different components together.
 String getGroupName(FacesContext facesContext)
          See getGroupName() for more details
 int getInputType()
           
 int getInputType(FacesContext facesContext)
          See getInputType() for more details
 String getMenuPopupId()
           
 String getMenuPopupId(FacesContext facesContext)
          See getMenuPopupId() for more details
 String getStyleClass()
          Returns the style class of the component.
 String getStyleClass(FacesContext facesContext)
          See getStyleClass() for more details
 TreeComponent getTree()
           
 boolean isDragEffectsSetted()
          Returns true if the attribute "dragEffects" is set.
 boolean isDraggable()
           
 boolean isDraggable(FacesContext facesContext)
          See isDraggable() for more details
 boolean isDraggableSetted()
          Returns true if the attribute "draggable" is set.
 boolean isDragTypesSetted()
          Returns true if the attribute "dragTypes" is set.
 boolean isDropEffectsSetted()
          Returns true if the attribute "dropEffects" is set.
 boolean isDroppable()
           
 boolean isDroppable(FacesContext facesContext)
          See isDroppable() for more details
 boolean isDroppableSetted()
          Returns true if the attribute "droppable" is set.
 boolean isDropTypesSetted()
          Returns true if the attribute "dropTypes" is set.
 boolean isExpanded()
           
 boolean isExpanded(FacesContext context)
           
 boolean isGroupNameSetted()
          Returns true if the attribute "groupName" is set.
 boolean isInputTypeSetted()
          Returns true if the attribute "inputType" is set.
 boolean isMenuPopupIdSetted()
          Returns true if the attribute "menuPopupId" is set.
 boolean isStyleClassSetted()
          Returns true if the attribute "styleClass" is set.
 void setDragEffects(int dragEffects)
           
 void setDragEffects(String dragEffects)
           
 void setDraggable(boolean draggable)
           
 void setDragTypes(String dragTypes)
           
 void setDragTypes(String[] dragTypes)
           
 void setDropEffects(int dropEffects)
           
 void setDropEffects(String dropEffects)
           
 void setDroppable(boolean droppable)
           
 void setDropTypes(String dropTypes)
           
 void setDropTypes(String[] dropTypes)
           
 void setExpanded(boolean expanded)
           
 void setExpanded(FacesContext context, boolean expanded)
           
 void setGroupName(String groupName)
          Sets a string specifying the name of the virtual entity that links different components together.
 void setInputType(int inputType)
           
 void setInputType(String inputType)
           
 void setMenuPopupId(String menuPopupId)
           
 void setStyleClass(String styleClass)
          Specify the style class of the component.
 
Methods inherited from class org.rcfaces.core.component.ExpandableItemComponent
getBackgroundColor, getBackgroundColor, getExpandedImageURL, getExpandedImageURL, getForegroundColor, getForegroundColor, getText, isBackgroundColorSetted, isExpandedImageURLSetted, isForegroundColorSetted, isTextSetted, setBackgroundColor, setExpandedImageURL, setForegroundColor, setText, setValueExpression
 
Methods inherited from class org.rcfaces.core.component.UIImageItemComponent
getAlternateText, getAlternateText, getDisabledImageURL, getDisabledImageURL, getHoverImageURL, getHoverImageURL, getImageAccessors, getImageAccessors, getImageURL, getImageURL, getSelectedImageURL, getSelectedImageURL, getVisibleState, getVisibleState, isAlternateTextSetted, isDisabledImageURLSetted, isHoverImageURLSetted, isImageURLSetted, isSelectedImageURLSetted, isVisible, isVisible, isVisibleSetted, setAlternateText, setDisabledImageURL, setHoverImageURL, setImageURL, setSelectedImageURL, setVisible
 
Methods inherited from class org.rcfaces.core.component.SelectItemComponent
getToolTip, getToolTipText, getToolTipText, isToolTipTextSetted, setToolTip, setToolTipText
 
Methods inherited from class org.rcfaces.core.component.AbstractItemComponent
getClientData, getClientData, getClientDataCount, getClientDataMap, getClientDataMap, getServerData, getServerData, getServerDataCount, getServerDataMap, getServerDataMap, getUnlockedClientAttributeNames, getUnlockedClientAttributeNames, isDisabled, isDisabledSetted, isUnlockedClientAttributeNamesSetted, listClientDataKeys, listClientDataKeys, listServerDataKeys, listServerDataKeys, removeClientData, removeServerData, setClientData, setClientData, setDisabled, setServerData, setServerData, setUnlockedClientAttributeNames
 
Methods inherited from class org.rcfaces.core.internal.component.CameliaItemComponent
clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getFamily, getRendererType, getTransientAttribute, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setDefaultProperties, setRendered, setTransientAttribute, toString, updatePhase, validationPhase, verifyAsyncDecode
 
Methods inherited from class javax.faces.component.UISelectItem
getItemDescription, getItemLabel, getItemValue, getValue, isItemDisabled, isItemEscaped, setItemDescription, setItemDisabled, setItemEscaped, setItemLabel, setItemValue, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.rcfaces.core.component.capability.IStatesImageCapability
getDisabledImageURL, getHoverImageURL, getSelectedImageURL, setDisabledImageURL, setHoverImageURL, setSelectedImageURL
 
Methods inherited from interface org.rcfaces.core.component.capability.IImageCapability
getImageAccessors, getImageURL, setImageURL
 
Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager
getChildCount
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

CAMELIA_ATTRIBUTES

protected static final Set CAMELIA_ATTRIBUTES
Constructor Detail

TreeNodeComponent

public TreeNodeComponent()

TreeNodeComponent

public TreeNodeComponent(String componentId)
Method Detail

setInputType

public void setInputType(String inputType)

setDragEffects

public void setDragEffects(String dragEffects)

setDragTypes

public void setDragTypes(String dragTypes)

setDropEffects

public void setDropEffects(String dropEffects)

setDropTypes

public void setDropTypes(String dropTypes)

setExpanded

public void setExpanded(boolean expanded)

setExpanded

public void setExpanded(FacesContext context,
                        boolean expanded)

isExpanded

public boolean isExpanded()

isExpanded

public boolean isExpanded(FacesContext context)

getTree

public TreeComponent getTree()

getGroupName

public String getGroupName()
Description copied from interface: IRadioGroupCapability
Returns a string specifying the name of the virtual entity that links different components together.

Specified by:
getGroupName in interface IRadioGroupCapability
Returns:
group name

getGroupName

public String getGroupName(FacesContext facesContext)
See getGroupName() for more details


isGroupNameSetted

public final boolean isGroupNameSetted()
Returns true if the attribute "groupName" is set.

Returns:
true if the attribute is set.

setGroupName

public void setGroupName(String groupName)
Description copied from interface: IRadioGroupCapability
Sets a string specifying the name of the virtual entity that links different components together.

Specified by:
setGroupName in interface IRadioGroupCapability
Parameters:
groupName - group name

getStyleClass

public String getStyleClass()
Description copied from interface: IStyleClassCapability
Returns the style class of the component.

Specified by:
getStyleClass in interface IStyleClassCapability
Returns:
style class

getStyleClass

public String getStyleClass(FacesContext facesContext)
See getStyleClass() for more details


isStyleClassSetted

public final boolean isStyleClassSetted()
Returns true if the attribute "styleClass" is set.

Returns:
true if the attribute is set.

setStyleClass

public void setStyleClass(String styleClass)
Description copied from interface: IStyleClassCapability
Specify the style class of the component.

Specified by:
setStyleClass in interface IStyleClassCapability
Parameters:
styleClass - style class

getMenuPopupId

public String getMenuPopupId()
Specified by:
getMenuPopupId in interface IMenuPopupIdCapability

getMenuPopupId

public String getMenuPopupId(FacesContext facesContext)
See getMenuPopupId() for more details


isMenuPopupIdSetted

public final boolean isMenuPopupIdSetted()
Returns true if the attribute "menuPopupId" is set.

Returns:
true if the attribute is set.

setMenuPopupId

public void setMenuPopupId(String menuPopupId)
Specified by:
setMenuPopupId in interface IMenuPopupIdCapability

getInputType

public int getInputType()
Specified by:
getInputType in interface IInputTypeCapability

getInputType

public int getInputType(FacesContext facesContext)
See getInputType() for more details


isInputTypeSetted

public final boolean isInputTypeSetted()
Returns true if the attribute "inputType" is set.

Returns:
true if the attribute is set.

setInputType

public void setInputType(int inputType)
Specified by:
setInputType in interface IInputTypeCapability

getDragEffects

public int getDragEffects()
Specified by:
getDragEffects in interface IDraggableCapability

getDragEffects

public int getDragEffects(FacesContext facesContext)
See getDragEffects() for more details


isDragEffectsSetted

public final boolean isDragEffectsSetted()
Returns true if the attribute "dragEffects" is set.

Returns:
true if the attribute is set.

setDragEffects

public void setDragEffects(int dragEffects)
Specified by:
setDragEffects in interface IDraggableCapability

getDragTypes

public String[] getDragTypes()
Specified by:
getDragTypes in interface IDraggableCapability

getDragTypes

public String[] getDragTypes(FacesContext facesContext)
See getDragTypes() for more details


isDragTypesSetted

public final boolean isDragTypesSetted()
Returns true if the attribute "dragTypes" is set.

Returns:
true if the attribute is set.

setDragTypes

public void setDragTypes(String[] dragTypes)
Specified by:
setDragTypes in interface IDraggableCapability

isDraggable

public boolean isDraggable()
Specified by:
isDraggable in interface IDraggableCapability

isDraggable

public boolean isDraggable(FacesContext facesContext)
See isDraggable() for more details


isDraggableSetted

public final boolean isDraggableSetted()
Returns true if the attribute "draggable" is set.

Returns:
true if the attribute is set.

setDraggable

public void setDraggable(boolean draggable)
Specified by:
setDraggable in interface IDraggableCapability

getDropEffects

public int getDropEffects()
Specified by:
getDropEffects in interface IDroppableCapability

getDropEffects

public int getDropEffects(FacesContext facesContext)
See getDropEffects() for more details


isDropEffectsSetted

public final boolean isDropEffectsSetted()
Returns true if the attribute "dropEffects" is set.

Returns:
true if the attribute is set.

setDropEffects

public void setDropEffects(int dropEffects)
Specified by:
setDropEffects in interface IDroppableCapability

getDropTypes

public String[] getDropTypes()
Specified by:
getDropTypes in interface IDroppableCapability

getDropTypes

public String[] getDropTypes(FacesContext facesContext)
See getDropTypes() for more details


isDropTypesSetted

public final boolean isDropTypesSetted()
Returns true if the attribute "dropTypes" is set.

Returns:
true if the attribute is set.

setDropTypes

public void setDropTypes(String[] dropTypes)
Specified by:
setDropTypes in interface IDroppableCapability

isDroppable

public boolean isDroppable()
Specified by:
isDroppable in interface IDroppableCapability

isDroppable

public boolean isDroppable(FacesContext facesContext)
See isDroppable() for more details


isDroppableSetted

public final boolean isDroppableSetted()
Returns true if the attribute "droppable" is set.

Returns:
true if the attribute is set.

setDroppable

public void setDroppable(boolean droppable)
Specified by:
setDroppable in interface IDroppableCapability

getCameliaFields

protected Set getCameliaFields()
Overrides:
getCameliaFields in class ExpandableItemComponent


Copyright © 2006-2011 Vedana. All Rights Reserved.