org.rcfaces.core.component
Class FocusManagerComponent

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.FocusManagerComponent
All Implemented Interfaces:
StateHolder, org.rcfaces.core.internal.capability.IComponentLifeCycle, org.rcfaces.core.internal.capability.IRCFacesComponent, org.rcfaces.core.internal.manager.IContainerManager, org.rcfaces.core.internal.manager.ITransientAttributesManager

public class FocusManagerComponent
extends org.rcfaces.core.internal.component.CameliaBaseComponent

The focusManager Component is a non-visual component.

It allows to deal with the focus on the current page.

The default focuManager renderer is link to the f_focuManager javascript class. f_focuManager extends f_object, fa_serializable


Field Summary
protected static Set CAMELIA_ATTRIBUTES
           
static String COMPONENT_TYPE
           
 
Fields inherited from class org.rcfaces.core.internal.component.CameliaBaseComponent
engine
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
FocusManagerComponent()
           
FocusManagerComponent(String componentId)
           
 
Method Summary
protected  Set getCameliaFields()
           
 String getFocusId()
          Returns a component's id.
 String getFocusId(FacesContext facesContext)
          Returns a component's id.
 boolean isFocusIdSetted()
          Returns true if the attribute "focusId" is set.
 boolean isSetFocusIfMessage()
           
 boolean isSetFocusIfMessage(FacesContext facesContext)
           
 boolean isSetFocusIfMessageSetted()
          Returns true if the attribute "setFocusIfMessage" is set.
 void setFocusId(String focusId)
          Sets a component's id.
 void setSetFocusIfMessage(boolean setFocusIfMessage)
           
 
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

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

CAMELIA_ATTRIBUTES

protected static final Set CAMELIA_ATTRIBUTES
Constructor Detail

FocusManagerComponent

public FocusManagerComponent()

FocusManagerComponent

public FocusManagerComponent(String componentId)
Method Detail

getFocusId

public String getFocusId()
Returns a component's id. This component will get the focus.

Returns:
id

getFocusId

public String getFocusId(FacesContext facesContext)
Returns a component's id. This component will get the focus.

Returns:
id

setFocusId

public void setFocusId(String focusId)
Sets a component's id. This component will get the focus.

Parameters:
focusId - id

isFocusIdSetted

public boolean isFocusIdSetted()
Returns true if the attribute "focusId" is set.

Returns:
true if the attribute is set.

isSetFocusIfMessage

public boolean isSetFocusIfMessage()

isSetFocusIfMessage

public boolean isSetFocusIfMessage(FacesContext facesContext)

setSetFocusIfMessage

public void setSetFocusIfMessage(boolean setFocusIfMessage)

isSetFocusIfMessageSetted

public boolean isSetFocusIfMessageSetted()
Returns true if the attribute "setFocusIfMessage" is set.

Returns:
true if the attribute is set.

getCameliaFields

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


Copyright © 2006-2011 Vedana. All Rights Reserved.