|
||||||||||
| 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.CheckButton3StatesComponent
public class CheckButton3StatesComponent
The checkButton3States Component is a CheckButton with 3 states : Check, unchecked and undefined. It is often used to show the state of a group of checkButtons
This component is experimental.
The checkButton3States Component has the following capabilities :
| 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.ITextDirectionCapability |
|---|
DEFAULT_TEXT_DIRECTION, LEFT_TO_RIGHT_TEXT_DIRECTION, RIGHT_LEFT_TEXT_DIRECTION |
| Fields inherited from interface org.rcfaces.core.component.capability.IHorizontalTextPositionCapability |
|---|
DEFAULT_POSITION, LEFT_POSITION, RIGHT_POSITION |
| Fields inherited from interface org.rcfaces.core.component.capability.ISelected3StatesCapability |
|---|
NOT_SELECTED_STATE, SELECTED_STATE, UNDETERMINATED_STATE |
| 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 | |
|---|---|
CheckButton3StatesComponent()
|
|
CheckButton3StatesComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addSelectionListener(ISelectionListener listener)
Adds a listener to the component for the selection event |
String |
getAlternateText()
|
String |
getAlternateText(FacesContext facesContext)
See getAlternateText() for more details |
protected Set |
getCameliaFields()
|
protected String |
getCameliaValueAlias()
|
String |
getFocusStyleClass()
Returns the style class of the component. |
String |
getFocusStyleClass(FacesContext facesContext)
See getFocusStyleClass() for more details |
String |
getSelectedState()
Returns a string value indicating wether the component is selected. |
String |
getSelectedState(FacesContext facesContext)
See getSelectedState() for more details |
String |
getText()
Returns a string value specifying the text shown. |
String |
getText(FacesContext facesContext)
See getText() for more details |
int |
getTextDirection()
|
int |
getTextDirection(FacesContext facesContext)
See getTextDirection() for more details |
int |
getTextPosition()
Returns an int value specifying the position of the text in the component. |
int |
getTextPosition(FacesContext facesContext)
See getTextPosition() for more details |
protected Converter |
getTextPositionConverter()
|
boolean |
isAlternateTextSetted()
Returns true if the attribute "alternateText" is set. |
boolean |
isFocusStyleClassSetted()
Returns true if the attribute "focusStyleClass" is set. |
boolean |
isReadOnly()
Returns a boolean value indicating that this component will prohibit changes by the user. |
boolean |
isReadOnly(FacesContext facesContext)
See isReadOnly() for more details |
boolean |
isReadOnlySetted()
Returns true if the attribute "readOnly" is set. |
boolean |
isSelected()
Returns a boolean value indicating wether the component is selected. |
boolean |
isSelectedStateSetted()
Returns true if the attribute "selectedState" is set. |
boolean |
isTextDirectionSetted()
Returns true if the attribute "textDirection" is set. |
boolean |
isTextPositionSetted()
Returns true if the attribute "textPosition" is set. |
boolean |
isTextSetted()
Returns true if the attribute "text" is set. |
boolean |
isUndeterminated()
Sets a boolean value indicating wether the component is in a undeterminated select state. |
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 |
setAlternateText(String alternateText)
|
void |
setFocusStyleClass(String focusStyleClass)
Specify the style class of the component. |
void |
setReadOnly(boolean readOnly)
Sets a boolean value indicating that this component will prohibit changes by the user. |
void |
setSelectedState(String selectedState)
Sets a string value indicating wether the component is selected. |
void |
setText(String text)
Sets a string value specifying the text to be shown. |
void |
setTextDirection(int textDirection)
|
void |
setTextPosition(int textPosition)
Sets an int value specifying the position of the text in the component. |
void |
setTextPosition(String textPosition)
|
| Methods inherited from class org.rcfaces.core.internal.component.CameliaInputComponent |
|---|
broadcast, clearListeners, constructTemplate, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getChildren, getChildrenListState, getConvertedValue, getFamily, getLocalValue, getRendererType, getSubmittedExternalValue, getTransientAttribute, getValue, getValueExpression, hasDefaultProperties, initializeComponent, isClientRendered, isRendered, isSubmittedValueSetted, isTemplateComponent, processDecodes, processEngineUpdates, processUpdates, processValidators, queueEvent, restoreState, saveState, setConverter, setConverter, setDefaultProperties, setRendered, setSubmittedExternalValue, setTransientAttribute, setValueExpression, toString, verifyAsyncDecode |
| 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 CheckButton3StatesComponent()
public CheckButton3StatesComponent(String componentId)
| Method Detail |
|---|
protected Converter getTextPositionConverter()
public boolean isSelected()
ISelected3StatesCapability
isSelected in interface ISelected3StatesCapabilitypublic boolean isUndeterminated()
ISelected3StatesCapability
isUndeterminated in interface ISelected3StatesCapabilitypublic void setTextPosition(String textPosition)
public String getText()
ITextCapability
getText in interface ITextCapabilitypublic String getText(FacesContext facesContext)
getText() for more details
public final boolean isTextSetted()
true if the attribute "text" is set.
true if the attribute is set.public void setText(String text)
ITextCapability
setText in interface ITextCapabilitytext - textpublic int getTextDirection()
getTextDirection in interface ITextDirectionCapabilitypublic int getTextDirection(FacesContext facesContext)
getTextDirection() for more details
public final boolean isTextDirectionSetted()
true if the attribute "textDirection" is set.
true if the attribute is set.public void setTextDirection(int textDirection)
setTextDirection in interface ITextDirectionCapabilitypublic int getTextPosition()
IHorizontalTextPositionCapability
getTextPosition in interface IHorizontalTextPositionCapabilitypublic int getTextPosition(FacesContext facesContext)
getTextPosition() for more details
public final boolean isTextPositionSetted()
true if the attribute "textPosition" is set.
true if the attribute is set.public void setTextPosition(int textPosition)
IHorizontalTextPositionCapability
setTextPosition in interface IHorizontalTextPositionCapabilitytextPosition - 0x00:right|0x10:leftpublic 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 boolean isReadOnly()
IReadOnlyCapability
isReadOnly in interface IReadOnlyCapabilitypublic boolean isReadOnly(FacesContext facesContext)
isReadOnly() for more details
public final boolean isReadOnlySetted()
true if the attribute "readOnly" is set.
true if the attribute is set.public void setReadOnly(boolean readOnly)
IReadOnlyCapability
setReadOnly in interface IReadOnlyCapabilityreadOnly - readOnly boolean propertypublic String getAlternateText()
getAlternateText in interface IAlternateTextCapabilitypublic String getAlternateText(FacesContext facesContext)
getAlternateText() for more details
public final boolean isAlternateTextSetted()
true if the attribute "alternateText" is set.
true if the attribute is set.public void setAlternateText(String alternateText)
setAlternateText in interface IAlternateTextCapabilitypublic String getFocusStyleClass()
IFocusStyleClassCapability
getFocusStyleClass in interface IFocusStyleClassCapabilitypublic String getFocusStyleClass(FacesContext facesContext)
getFocusStyleClass() for more details
public final boolean isFocusStyleClassSetted()
true if the attribute "focusStyleClass" is set.
true if the attribute is set.public void setFocusStyleClass(String focusStyleClass)
IFocusStyleClassCapability
setFocusStyleClass in interface IFocusStyleClassCapabilityfocusStyleClass - style classpublic String getSelectedState()
ISelected3StatesCapability
getSelectedState in interface ISelected3StatesCapabilitypublic String getSelectedState(FacesContext facesContext)
getSelectedState() for more details
public final boolean isSelectedStateSetted()
true if the attribute "selectedState" is set.
true if the attribute is set.public void setSelectedState(String selectedState)
ISelected3StatesCapability
setSelectedState in interface ISelected3StatesCapabilityselectedState - NOT_SELECTED_STATE:notSelected|SELECTED_STATE:selected|UNDETERMINATED_STATE:undeterminatedprotected 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 | |||||||||