org.rcfaces.core.component
Class AbstractSeparatorComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.rcfaces.core.internal.component.CameliaBaseComponent
              extended by org.rcfaces.core.component.AbstractSeparatorComponent
All Implemented Interfaces:
StateHolder, IHiddenModeCapability, IUnlockedClientAttributesCapability, IVisibilityCapability, ISeparatorComponent, org.rcfaces.core.internal.capability.IComponentLifeCycle, org.rcfaces.core.internal.capability.IRCFacesComponent, org.rcfaces.core.internal.manager.IContainerManager, org.rcfaces.core.internal.manager.ITransientAttributesManager
Direct Known Subclasses:
MenuSeparatorComponent, ToolItemSeparatorComponent

public abstract class AbstractSeparatorComponent
extends org.rcfaces.core.internal.component.CameliaBaseComponent
implements IVisibilityCapability, IHiddenModeCapability, IUnlockedClientAttributesCapability, ISeparatorComponent

Technical component, used as a basis for building new RCFaces components.


Field Summary
protected static Set CAMELIA_ATTRIBUTES
           
 
Fields inherited from class org.rcfaces.core.internal.component.CameliaBaseComponent
engine
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.rcfaces.core.component.capability.IHiddenModeCapability
CLIENT_HIDDEN_MODE, DEFAULT_HIDDEN_MODE, IGNORE_HIDDEN_MODE, PHANTOM_HIDDEN_MODE, SERVER_HIDDEN_MODE
 
Constructor Summary
AbstractSeparatorComponent()
           
 
Method Summary
protected  Set getCameliaFields()
           
 int getHiddenMode()
          Returns the hidden mode in client side.
 int getHiddenMode(FacesContext facesContext)
          See getHiddenMode() for more details
 String getUnlockedClientAttributeNames()
          Returns a string value holding a comma separated list of the client modifiable properties.
 String getUnlockedClientAttributeNames(FacesContext facesContext)
          See getUnlockedClientAttributeNames() for more details
 Boolean getVisibleState()
          Returns TRUE if the receiver is visible, FALSE if the receiver is specified "not visible", and null otherwise.
 Boolean getVisibleState(FacesContext facesContext)
           
 boolean isHiddenModeSetted()
          Returns true if the attribute "hiddenMode" is set.
 boolean isUnlockedClientAttributeNamesSetted()
          Returns true if the attribute "unlockedClientAttributeNames" is set.
 boolean isVisible()
           
 boolean isVisible(FacesContext facesContext)
          See isVisible() for more details
 boolean isVisibleSetted()
          Returns true if the attribute "visible" is set.
 void setHiddenMode(int hiddenMode)
          Set the hidden mode in client side.
 void setHiddenMode(String hiddenMode)
           
 void setUnlockedClientAttributeNames(String unlockedClientAttributeNames)
          Sets a string value holding a comma separated list of the client modifiable properties.
 void setVisible(boolean visible)
          Marks the receiver as visible if the argument is TRUE, and marks it invisible if argument is FALSE.
 
Methods inherited from class org.rcfaces.core.internal.component.CameliaBaseComponent
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, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode
 
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.internal.manager.IContainerManager
getChildCount
 

Field Detail

CAMELIA_ATTRIBUTES

protected static final Set CAMELIA_ATTRIBUTES
Constructor Detail

AbstractSeparatorComponent

public AbstractSeparatorComponent()
Method Detail

getVisibleState

public Boolean getVisibleState(FacesContext facesContext)

setHiddenMode

public void setHiddenMode(String hiddenMode)

isVisible

public boolean isVisible()
Specified by:
isVisible in interface IVisibilityCapability

isVisible

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


isVisibleSetted

public final boolean isVisibleSetted()
Returns true if the attribute "visible" is set.

Returns:
true if the attribute is set.

setVisible

public void setVisible(boolean visible)
Description copied from interface: IVisibilityCapability
Marks the receiver as visible if the argument is TRUE, and marks it invisible if argument is FALSE.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.

Specified by:
setVisible in interface IVisibilityCapability
Parameters:
visible - the new visibility state.

getVisibleState

public Boolean getVisibleState()
Description copied from interface: IVisibilityCapability
Returns TRUE if the receiver is visible, FALSE if the receiver is specified "not visible", and null otherwise.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.

Specified by:
getVisibleState in interface IVisibilityCapability
Returns:
the receiver's visibility state

getHiddenMode

public int getHiddenMode()
Description copied from interface: IHiddenModeCapability
Returns the hidden mode in client side.

Specified by:
getHiddenMode in interface IHiddenModeCapability
Returns:
hidden mode

getHiddenMode

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


isHiddenModeSetted

public final boolean isHiddenModeSetted()
Returns true if the attribute "hiddenMode" is set.

Returns:
true if the attribute is set.

setHiddenMode

public void setHiddenMode(int hiddenMode)
Description copied from interface: IHiddenModeCapability
Set the hidden mode in client side.

Specified by:
setHiddenMode in interface IHiddenModeCapability
Parameters:
hiddenMode - hidden mode

getUnlockedClientAttributeNames

public String getUnlockedClientAttributeNames()
Description copied from interface: IUnlockedClientAttributesCapability
Returns a string value holding a comma separated list of the client modifiable properties.

Specified by:
getUnlockedClientAttributeNames in interface IUnlockedClientAttributesCapability
Returns:
list of modifiable attributes

getUnlockedClientAttributeNames

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


isUnlockedClientAttributeNamesSetted

public final boolean isUnlockedClientAttributeNamesSetted()
Returns true if the attribute "unlockedClientAttributeNames" is set.

Returns:
true if the attribute is set.

setUnlockedClientAttributeNames

public void setUnlockedClientAttributeNames(String unlockedClientAttributeNames)
Description copied from interface: IUnlockedClientAttributesCapability
Sets a string value holding a comma separated list of the client modifiable properties.

Specified by:
setUnlockedClientAttributeNames in interface IUnlockedClientAttributesCapability
Parameters:
unlockedClientAttributeNames - list of modifiable attributes

getCameliaFields

protected Set getCameliaFields()
Overrides:
getCameliaFields in class org.rcfaces.core.internal.component.CameliaBaseComponent


Copyright © 2006-2011 Vedana. All Rights Reserved.