|
||||||||||
| 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.UICommand
org.rcfaces.core.internal.component.CameliaCommandComponent
org.rcfaces.core.component.AcceleratorComponent
public class AcceleratorComponent
The accelerator Component is a non-visual component.
It allows to associate an accelerator key to an action or another component.
The accelerator Component has the following capabilities :
The default accelerator renderer is linked to the f_accelerator javascript class. f_accelerator extends f_object, fa_immediate, fa_eventTarget
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaCommandComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UICommand |
|---|
COMPONENT_FAMILY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
AcceleratorComponent()
|
|
AcceleratorComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addKeyPressListener(IKeyPressListener listener)
Adds a listener to the component for the keyPress event |
void |
addValidationListener(IValidationListener listener)
Adds a listener to the component for the validation event |
protected Set |
getCameliaFields()
|
String |
getFor()
Returns a component's id that express the link between the two components. |
String |
getFor(FacesContext facesContext)
See getFor() for more details |
String |
getForItemValue()
Returns a string specifying a value to select in the component identified in the for property. |
String |
getForItemValue(FacesContext facesContext)
Returns a string specifying a value to select in the component identified in the for property. |
String |
getKeyBinding()
Returns a string value specifying the key associated to the component. for example "Alt+F1" |
String |
getKeyBinding(FacesContext facesContext)
Returns a string value specifying the key associated to the component. for example "Alt+F1" |
boolean |
isForItemValueSetted()
Returns true if the attribute "forItemValue" is set. |
boolean |
isForSetted()
Returns true if the attribute "for" is set. |
boolean |
isIgnoreEditableComponent()
|
boolean |
isIgnoreEditableComponent(FacesContext facesContext)
|
boolean |
isIgnoreEditableComponentSetted()
Returns true if the attribute "ignoreEditableComponent" is set. |
boolean |
isKeyBindingSetted()
Returns true if the attribute "keyBinding" is set. |
FacesListener[] |
listKeyPressListeners()
Returns a list of keyPress listener for the component |
FacesListener[] |
listValidationListeners()
Returns a list of validation listener for the component |
void |
removeKeyPressListener(IKeyPressListener listener)
Removes a listener from the component for the keyPress event |
void |
removeValidationListener(IValidationListener listener)
Removes a listener from the component for the validation event |
void |
setFor(String forValue)
Sets a component's id that express the link between the two components. |
void |
setForItemValue(String forItemValue)
Sets a string specifying a value to select in the component identified in the for property. |
void |
setIgnoreEditableComponent(boolean ignoreEditableComponent)
|
void |
setKeyBinding(String keyBinding)
Sets a string value specifying the key associated to the component. for example "Alt+F1" |
| Methods inherited from class org.rcfaces.core.internal.component.CameliaCommandComponent |
|---|
broadcast, 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.UICommand |
|---|
addActionListener, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, 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.IImmediateCapability |
|---|
isImmediate, setImmediate |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
| Constructor Detail |
|---|
public AcceleratorComponent()
public AcceleratorComponent(String componentId)
| Method Detail |
|---|
public final void addKeyPressListener(IKeyPressListener listener)
IKeyPressEventCapability
addKeyPressListener in interface IKeyPressEventCapabilitylistener - the keyPress listener to addpublic final void removeKeyPressListener(IKeyPressListener listener)
IKeyPressEventCapability
removeKeyPressListener in interface IKeyPressEventCapabilitylistener - the keyPress listener to removepublic final FacesListener[] listKeyPressListeners()
IKeyPressEventCapability
listKeyPressListeners in interface IKeyPressEventCapabilitypublic final void addValidationListener(IValidationListener listener)
IValidationEventCapability
addValidationListener in interface IValidationEventCapabilitylistener - the validation listener to addpublic final void removeValidationListener(IValidationListener listener)
IValidationEventCapability
removeValidationListener in interface IValidationEventCapabilitylistener - the validation listener to removepublic final FacesListener[] listValidationListeners()
IValidationEventCapability
listValidationListeners in interface IValidationEventCapabilitypublic String getFor()
IForCapability
getFor in interface IForCapabilitypublic String getFor(FacesContext facesContext)
getFor() for more details
public final boolean isForSetted()
true if the attribute "for" is set.
true if the attribute is set.public void setFor(String forValue)
IForCapability
setFor in interface IForCapabilityforValue - id for a linked componentpublic String getForItemValue()
public String getForItemValue(FacesContext facesContext)
public void setForItemValue(String forItemValue)
forItemValue - value to selectpublic boolean isForItemValueSetted()
true if the attribute "forItemValue" is set.
true if the attribute is set.public String getKeyBinding()
public String getKeyBinding(FacesContext facesContext)
public void setKeyBinding(String keyBinding)
keyBinding - keypublic boolean isKeyBindingSetted()
true if the attribute "keyBinding" is set.
true if the attribute is set.public boolean isIgnoreEditableComponent()
public boolean isIgnoreEditableComponent(FacesContext facesContext)
public void setIgnoreEditableComponent(boolean ignoreEditableComponent)
public boolean isIgnoreEditableComponentSetted()
true if the attribute "ignoreEditableComponent" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class org.rcfaces.core.internal.component.CameliaCommandComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||