|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.rcfaces.core.internal.component.CameliaInputComponent
org.rcfaces.core.component.AbstractInputComponent
org.rcfaces.core.component.CardBoxComponent
public class CardBoxComponent
The cardBox Component is similar to the tabbedPane Component without title and borders. It is usefull for showing alternatively different contents on the same page.
The cardBox Component has the following capabilities :
The default cardBox renderer is linked to the f_cardBox javascript class. f_cardBox extends f_component, fa_immediateu
Table of component style classes:
| Style Name | Description |
|---|---|
| f_cardBox | Defines styles for the wrapper DIV element |
| f_cardBox_card | Defines styles for the wrapper DIV element for each card |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
protected static String |
CAMELIA_VALUE_ALIAS
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaInputComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UIInput |
|---|
COMPONENT_FAMILY, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface org.rcfaces.core.component.capability.IAsyncRenderModeCapability |
|---|
BUFFER_ASYNC_RENDER_MODE, DEFAULT_ASYNC_RENDER_MODE, NONE_ASYNC_RENDER_MODE, TREE_ASYNC_RENDER_MODE |
| Fields inherited from interface org.rcfaces.core.component.capability.IAsyncDecodeModeCapability |
|---|
COMPLETE_ASYNC_DECODE_MODE, DEFAULT_ASYNC_DECODE_MODE, PARTIAL_ASYNC_DECODE_MODE |
| 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 | |
|---|---|
CardBoxComponent()
|
|
CardBoxComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addSelectionListener(ISelectionListener listener)
Adds a listener to the component for the selection event |
int |
getAsyncDecodeMode()
Returns a int value that indicates the decoding mode for asynchronous capable component. |
int |
getAsyncDecodeMode(FacesContext facesContext)
See getAsyncDecodeMode() for more details |
int |
getAsyncRenderMode()
Returns a int value that indicates the rendering mode for asynchronous capable component. |
int |
getAsyncRenderMode(FacesContext facesContext)
See getAsyncRenderMode() for more details |
protected Set |
getCameliaFields()
|
protected String |
getCameliaValueAlias()
|
IComponentPreferences |
getPreferences()
Returns an object that holds the preferences for the component. |
IComponentPreferences |
getPreferences(FacesContext facesContext)
See getPreferences() for more details |
Object |
getScopeValue()
|
Object |
getScopeValue(FacesContext facesContext)
See getScopeValue() for more details |
String |
getScopeVar()
|
String |
getScopeVar(FacesContext facesContext)
See getScopeVar() for more details |
CardComponent |
getSelectedCard()
|
CardComponent |
getSelectedCard(FacesContext facesContext)
|
boolean |
isAsyncDecodeModeSetted()
Returns true if the attribute "asyncDecodeMode" is set. |
boolean |
isAsyncRenderModeSetted()
Returns true if the attribute "asyncRenderMode" is set. |
boolean |
isPreferencesSetted()
Returns true if the attribute "preferences" is set. |
boolean |
isScopeSaveValue()
|
boolean |
isScopeSaveValue(FacesContext facesContext)
See isScopeSaveValue() for more details |
boolean |
isScopeSaveValueSetted()
Returns true if the attribute "scopeSaveValue" is set. |
boolean |
isScopeValueSetted()
Returns true if the attribute "scopeValue" is set. |
boolean |
isScopeVarSetted()
Returns true if the attribute "scopeVar" is set. |
ICardIterator |
listCards()
|
FacesListener[] |
listSelectionListeners()
Returns a list of selection listener for the component |
void |
removeSelectionListener(ISelectionListener listener)
Removes a listener from the component for the selection event |
void |
select(CardComponent card)
|
void |
setAsyncDecodeMode(int asyncDecodeMode)
Sets a int value that indicates the decoding mode for asynchronous capable component. |
void |
setAsyncDecodeMode(String asyncDecodeMode)
|
void |
setAsyncRenderMode(int asyncRenderMode)
Sets a int value that indicates the rendering mode for asynchronous capable component. |
void |
setAsyncRenderMode(String asyncRenderMode)
|
void |
setPreferences(IComponentPreferences preferences)
Sets an object that holds the preferences for the component. |
void |
setScopeSaveValue(boolean scopeSaveValue)
|
void |
setScopeValue(Object scopeValue)
|
void |
setScopeVar(String scopeVar)
|
protected boolean |
verifyAsyncDecode(FacesContext facesContext,
PhaseId phaseId)
|
| Methods inherited from class org.rcfaces.core.internal.component.CameliaInputComponent |
|---|
broadcast, clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getChildren, getChildrenListState, getConvertedValue, getFamily, getLocalValue, getRendererType, getSubmittedExternalValue, getTransientAttribute, getValue, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isSubmittedValueSetted, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setConverter, setConverter, setDefaultProperties, setRendered, setSubmittedExternalValue, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, setConverter |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, 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.IImmediateCapability |
|---|
isImmediate, setImmediate |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, setConverter, setValue |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
protected static final String CAMELIA_VALUE_ALIAS
| Constructor Detail |
|---|
public CardBoxComponent()
public CardBoxComponent(String componentId)
| Method Detail |
|---|
public ICardIterator listCards()
public CardComponent getSelectedCard()
public CardComponent getSelectedCard(FacesContext facesContext)
public void select(CardComponent card)
public void setAsyncRenderMode(String asyncRenderMode)
public void setAsyncDecodeMode(String asyncDecodeMode)
protected boolean verifyAsyncDecode(FacesContext facesContext,
PhaseId phaseId)
verifyAsyncDecode in class org.rcfaces.core.internal.component.CameliaInputComponentpublic final void addSelectionListener(ISelectionListener listener)
ISelectionEventCapability
addSelectionListener in interface ISelectionEventCapabilitylistener - the selection listener to addpublic final void removeSelectionListener(ISelectionListener listener)
ISelectionEventCapability
removeSelectionListener in interface ISelectionEventCapabilitylistener - the selection listener to removepublic final FacesListener[] listSelectionListeners()
ISelectionEventCapability
listSelectionListeners in interface ISelectionEventCapabilitypublic int getAsyncRenderMode()
IAsyncRenderModeCapability
getAsyncRenderMode in interface IAsyncRenderModeCapabilitypublic int getAsyncRenderMode(FacesContext facesContext)
getAsyncRenderMode() for more details
public final boolean isAsyncRenderModeSetted()
true if the attribute "asyncRenderMode" is set.
true if the attribute is set.public void setAsyncRenderMode(int asyncRenderMode)
IAsyncRenderModeCapability
setAsyncRenderMode in interface IAsyncRenderModeCapabilityasyncRenderMode - 0:none|1:buffer|2:treepublic IComponentPreferences getPreferences()
IPreferencesCapability
getPreferences in interface IPreferencesCapabilitypublic IComponentPreferences getPreferences(FacesContext facesContext)
getPreferences() for more details
public final boolean isPreferencesSetted()
true if the attribute "preferences" is set.
isPreferencesSetted in interface org.rcfaces.core.internal.capability.IPreferencesSettingstrue if the attribute is set.public void setPreferences(IComponentPreferences preferences)
IPreferencesCapability
setPreferences in interface IPreferencesCapabilitypreferences - ComponentPreference objectpublic boolean isScopeSaveValue()
isScopeSaveValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic boolean isScopeSaveValue(FacesContext facesContext)
isScopeSaveValue() for more details
public final boolean isScopeSaveValueSetted()
true if the attribute "scopeSaveValue" is set.
true if the attribute is set.public void setScopeSaveValue(boolean scopeSaveValue)
setScopeSaveValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic Object getScopeValue()
getScopeValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic Object getScopeValue(FacesContext facesContext)
getScopeValue() for more details
public final boolean isScopeValueSetted()
true if the attribute "scopeValue" is set.
true if the attribute is set.public void setScopeValue(Object scopeValue)
setScopeValue in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic String getScopeVar()
getScopeVar in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic String getScopeVar(FacesContext facesContext)
getScopeVar() for more details
public final boolean isScopeVarSetted()
true if the attribute "scopeVar" is set.
true if the attribute is set.public void setScopeVar(String scopeVar)
setScopeVar in interface org.rcfaces.core.internal.capability.IVariableScopeCapabilitypublic int getAsyncDecodeMode()
IAsyncDecodeModeCapability
getAsyncDecodeMode in interface IAsyncDecodeModeCapabilitypublic int getAsyncDecodeMode(FacesContext facesContext)
getAsyncDecodeMode() for more details
public final boolean isAsyncDecodeModeSetted()
true if the attribute "asyncDecodeMode" is set.
true if the attribute is set.public void setAsyncDecodeMode(int asyncDecodeMode)
IAsyncDecodeModeCapability
setAsyncDecodeMode in interface IAsyncDecodeModeCapabilityasyncDecodeMode - 0:complete|1:partialprotected Set getCameliaFields()
getCameliaFields in class AbstractInputComponentprotected String getCameliaValueAlias()
getCameliaValueAlias in class org.rcfaces.core.internal.component.CameliaInputComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||