|
||||||||||
| 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.TextEntryComponent
org.rcfaces.core.component.SpinnerComponent
public class SpinnerComponent
The spinner Component is a textEntry Component that accepts numbers and whose value can be incremented or decremented (by a parametrable step) with buttons or the keyboard arrows.
The spinner Component has the following capabilities :
The default spinner renderer is linked to the f_spinner javascript class. f_spinner extends f_textEntry, fa_spinner
Table of component style classes:
| Style Name | Description |
|---|---|
| f_spinner | Defines styles for the wrapper element |
| f_spinner_input | Defines styles for the INPUT element |
| f_spinner_up | Defines styles for the IMG element of the up button |
| f_spinner_down | Defines styles for the IMG elemen of the down button |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.component.TextEntryComponent |
|---|
CAMELIA_VALUE_ALIAS |
| 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.IHiddenModeCapability |
|---|
CLIENT_HIDDEN_MODE, DEFAULT_HIDDEN_MODE, IGNORE_HIDDEN_MODE, PHANTOM_HIDDEN_MODE, SERVER_HIDDEN_MODE |
| Constructor Summary | |
|---|---|
SpinnerComponent()
|
|
SpinnerComponent(String componentId)
|
|
| Method Summary | |
|---|---|
protected Set |
getCameliaFields()
|
double |
getMaximum()
Returns an int value specifying the upper limit for the value of the component. |
double |
getMaximum(FacesContext facesContext)
Returns an int value specifying the upper limit for the value of the component. |
double |
getMinimum()
|
double |
getMinimum(FacesContext facesContext)
|
String |
getStep()
|
String |
getStep(FacesContext facesContext)
|
boolean |
isCycleValue()
Returns a boolean value indicating wether to start from the beginning when reaching the end or not. |
boolean |
isCycleValue(FacesContext facesContext)
Returns a boolean value indicating wether to start from the beginning when reaching the end or not. |
boolean |
isCycleValueSetted()
Returns true if the attribute "cycleValue" is set. |
boolean |
isMaximumSetted()
Returns true if the attribute "maximum" is set. |
boolean |
isMinimumSetted()
Returns true if the attribute "minimum" is set. |
boolean |
isStepSetted()
Returns true if the attribute "step" is set. |
void |
setCycleValue(boolean cycleValue)
Sets a boolean value indicating wether to start from the beginning when reaching the end or not. |
void |
setMaximum(double maximum)
Sets an int value specifying the upper limit for the value of the component. |
void |
setMinimum(double minimum)
|
void |
setStep(String step)
|
| 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, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UIInput |
|---|
addValidator, compareValues, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, removeValidator, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue |
| 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.IRequiredCapability |
|---|
isRequired, setRequired |
| Methods inherited from interface org.rcfaces.core.component.capability.IStyleClassCapability |
|---|
getStyleClass, setStyleClass |
| 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
| Constructor Detail |
|---|
public SpinnerComponent()
public SpinnerComponent(String componentId)
| Method Detail |
|---|
public double getMinimum()
public double getMinimum(FacesContext facesContext)
public void setMinimum(double minimum)
public boolean isMinimumSetted()
true if the attribute "minimum" is set.
true if the attribute is set.public double getMaximum()
public double getMaximum(FacesContext facesContext)
public void setMaximum(double maximum)
maximum - maximumpublic boolean isMaximumSetted()
true if the attribute "maximum" is set.
true if the attribute is set.public boolean isCycleValue()
public boolean isCycleValue(FacesContext facesContext)
public void setCycleValue(boolean cycleValue)
cycleValue - true if the component should cyclepublic boolean isCycleValueSetted()
true if the attribute "cycleValue" is set.
true if the attribute is set.public String getStep()
public String getStep(FacesContext facesContext)
public void setStep(String step)
public boolean isStepSetted()
true if the attribute "step" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class TextEntryComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||