public abstract class SliderEntryBase extends javax.faces.component.UIComponentBase implements ISliderEntry, IceClientBehaviorHolder
The Slider Entry is a component that enables the user to adjust values in a finite range along a horizontal or vertical axis via dragging the slider control along the slider bar, or pressing the arrow-keys. It can be used as a visual replacement for an input box that takes a number as input.
For more information, see the SliderEntry Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SliderEntryBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
SliderEntryBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior) |
java.lang.String |
getAxis()
Return the value of the
axis property. |
java.lang.String |
getDefaultEventName() |
java.lang.String |
getDefaultExecute(java.lang.String event) |
java.lang.String |
getDefaultRender(java.lang.String event) |
java.util.Collection<java.lang.String> |
getEventNames() |
java.lang.String |
getFamily() |
java.lang.String |
getLength()
Return the value of the
length property. |
java.lang.String |
getListenerArgument(java.lang.String event) |
int |
getMax()
Return the value of the
max property. |
int |
getMin()
Return the value of the
min property. |
java.lang.String |
getOnSlide()
Return the value of the
onSlide property. |
java.lang.String |
getOnSlideEnd()
Return the value of the
onSlideEnd property. |
java.lang.String |
getOnSlideStart()
Return the value of the
onSlideStart property. |
float |
getStepPercent()
Return the value of the
stepPercent property. |
java.lang.String |
getStyle()
Return the value of the
style property. |
java.lang.String |
getStyleClass()
Return the value of the
styleClass property. |
java.lang.Integer |
getTabindex()
Return the value of the
tabindex property. |
int |
getValue()
Return the value of the
value property. |
javax.el.MethodExpression |
getValueChangeListener()
Return the value of the
valueChangeListener property. |
java.lang.String |
getWidgetVar()
Return the value of the
widgetVar property. |
boolean |
isAnimate()
Return the value of the
animate property. |
boolean |
isClickableRail()
Return the value of the
clickableRail property. |
boolean |
isDisabled()
Return the value of the
disabled property. |
boolean |
isImmediate()
Return the value of the
immediate property. |
protected boolean |
isPropertySet(java.lang.String finder) |
boolean |
isShowLabels()
Return the value of the
showLabels property. |
void |
setAnimate(boolean animate)
Set the value of the
animate property. |
void |
setAxis(java.lang.String axis)
Set the value of the
axis property. |
void |
setClickableRail(boolean clickableRail)
Set the value of the
clickableRail property. |
void |
setDisabled(boolean disabled)
Set the value of the
disabled property. |
void |
setImmediate(boolean immediate)
Set the value of the
immediate property. |
void |
setLength(java.lang.String length)
Set the value of the
length property. |
void |
setMax(int max)
Set the value of the
max property. |
void |
setMin(int min)
Set the value of the
min property. |
void |
setOnSlide(java.lang.String onSlide)
Set the value of the
onSlide property. |
void |
setOnSlideEnd(java.lang.String onSlideEnd)
Set the value of the
onSlideEnd property. |
void |
setOnSlideStart(java.lang.String onSlideStart)
Set the value of the
onSlideStart property. |
void |
setShowLabels(boolean showLabels)
Set the value of the
showLabels property. |
void |
setStepPercent(float stepPercent)
Set the value of the
stepPercent property. |
void |
setStyle(java.lang.String style)
Set the value of the
style property. |
void |
setStyleClass(java.lang.String styleClass)
Set the value of the
styleClass property. |
void |
setTabindex(java.lang.Integer tabindex)
Set the value of the
tabindex property. |
void |
setValue(int value)
Set the value of the
value property. |
void |
setValueChangeListener(javax.el.MethodExpression valueChangeListener)
Set the value of the
valueChangeListener property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
void |
setWidgetVar(java.lang.String widgetVar)
Set the value of the
widgetVar property. |
addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic void setAnimate(boolean animate)
Set the value of the animate property.
Contents: Defines whether or not the slider control will use an animated transition to move to a new location when the user clicks outside handle on the slider rail.
setAnimate in interface ISliderEntrypublic boolean isAnimate()
Return the value of the animate property.
Contents: Defines whether or not the slider control will use an animated transition to move to a new location when the user clicks outside handle on the slider rail. Default = 'true'.
isAnimate in interface ISliderEntrypublic void setAxis(java.lang.String axis)
Set the value of the axis property.
Contents: The orientation that the slider is rendered in, either vertical ('y'), or horizontal ('x').
setAxis in interface ISliderEntrypublic java.lang.String getAxis()
Return the value of the axis property.
Contents: The orientation that the slider is rendered in, either vertical ('y'), or horizontal ('x'). Default = 'x'.
getAxis in interface ISliderEntrypublic void setClickableRail(boolean clickableRail)
Set the value of the clickableRail property.
Contents: Defines whether or not a mouse-click at a location along the slider rail should reposition the slider control to that location (and adjust the value accordingly).
setClickableRail in interface ISliderEntrypublic boolean isClickableRail()
Return the value of the clickableRail property.
Contents: Defines whether or not a mouse-click at a location along the slider rail should reposition the slider control to that location (and adjust the value accordingly). Default = 'true'.
isClickableRail in interface ISliderEntrypublic void setDisabled(boolean disabled)
Set the value of the disabled property.
Contents: Defines whether or not the component is disabled. When disabled='true', this component is unable to receive focus and cannot be interacted with by the user.
setDisabled in interface ISliderEntrypublic boolean isDisabled()
Return the value of the disabled property.
Contents: Defines whether or not the component is disabled. When disabled='true', this component is unable to receive focus and cannot be interacted with by the user. Default = 'false'.
isDisabled in interface ISliderEntrypublic void setImmediate(boolean immediate)
Set the value of the immediate property.
Contents: Defines whether or not conversion and validation of this component's value should occur during Apply Request Values phase instead of Process Validations phase.
setImmediate in interface ISliderEntrypublic boolean isImmediate()
Return the value of the immediate property.
Contents: Defines whether or not conversion and validation of this component's value should occur during Apply Request Values phase instead of Process Validations phase. Default = 'false'.
isImmediate in interface ISliderEntrypublic void setLength(java.lang.String length)
Set the value of the length property.
Contents: The length of slider bar.Note: If the range of the slider (max-min) is greater than the length, then the slider can not accurately represent every value in the range. If the discrepancy is too great, then arrow key stepping may not precisely reflect the stepPercent property.
setLength in interface ISliderEntrypublic java.lang.String getLength()
Return the value of the length property.
Contents: The length of slider bar.Note: If the range of the slider (max-min) is greater than the length, then the slider can not accurately represent every value in the range. If the discrepancy is too great, then arrow key stepping may not precisely reflect the stepPercent property. Default = '150px'.
getLength in interface ISliderEntrypublic void setMax(int max)
Set the value of the max property.
Contents: The maximum int value that can be selected in the value-entry range represented by the slider bar.
setMax in interface ISliderEntrypublic int getMax()
Return the value of the max property.
Contents: The maximum int value that can be selected in the value-entry range represented by the slider bar. Default = '100'.
getMax in interface ISliderEntrypublic void setMin(int min)
Set the value of the min property.
Contents: The minimum int value that can be selected in the value-entry range represented by the slider bar.
setMin in interface ISliderEntrypublic int getMin()
Return the value of the min property.
Contents: The minimum int value that can be selected in the value-entry range represented by the slider bar. Default = '0'.
getMin in interface ISliderEntrypublic void setOnSlide(java.lang.String onSlide)
Set the value of the onSlide property.
Contents: This event is fired each time the the slider control is moved during a drag operation.
setOnSlide in interface ISliderEntrypublic java.lang.String getOnSlide()
Return the value of the onSlide property.
Contents: This event is fired each time the the slider control is moved during a drag operation.
getOnSlide in interface ISliderEntrypublic void setOnSlideEnd(java.lang.String onSlideEnd)
Set the value of the onSlideEnd property.
Contents: This event is fired when a drag operation is completed by releasing the slider control.
setOnSlideEnd in interface ISliderEntrypublic java.lang.String getOnSlideEnd()
Return the value of the onSlideEnd property.
Contents: This event is fired when a drag operation is completed by releasing the slider control.
getOnSlideEnd in interface ISliderEntrypublic void setOnSlideStart(java.lang.String onSlideStart)
Set the value of the onSlideStart property.
Contents: This event is fired when a drag operation on the slider control is initiated.
setOnSlideStart in interface ISliderEntrypublic java.lang.String getOnSlideStart()
Return the value of the onSlideStart property.
Contents: This event is fired when a drag operation on the slider control is initiated.
getOnSlideStart in interface ISliderEntrypublic void setShowLabels(boolean showLabels)
Set the value of the showLabels property.
Contents: Defines whether or not labels for the min and max values should be rendered at the ends of the rail.
setShowLabels in interface ISliderEntrypublic boolean isShowLabels()
Return the value of the showLabels property.
Contents: Defines whether or not labels for the min and max values should be rendered at the ends of the rail. Default = 'false'.
isShowLabels in interface ISliderEntrypublic void setStepPercent(float stepPercent)
Set the value of the stepPercent property.
Contents: The amount to move the slider position in response to keyboard arrow-key input. This float value represents a percentage of the value-entry range defined by the min and max attributes. For example, with min='0', max='50', and stepPercent='10', each arrow keypress will increment/decrement the slider value by 5 (10% of 50).
setStepPercent in interface ISliderEntrypublic float getStepPercent()
Return the value of the stepPercent property.
Contents: The amount to move the slider position in response to keyboard arrow-key input. This float value represents a percentage of the value-entry range defined by the min and max attributes. For example, with min='0', max='50', and stepPercent='10', each arrow keypress will increment/decrement the slider value by 5 (10% of 50). Default = '1f'.
getStepPercent in interface ISliderEntrypublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Custom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
setStyle in interface ISliderEntrypublic java.lang.String getStyle()
Return the value of the style property.
Contents: Custom inline CSS styles to use for this component. These styles are generally applied to the root DOM element of the component. This is intended for per-component basic style customizations. Note that due to browser CSS precedence rules, CSS rendered on a DOM element will take precedence over the external stylesheets used to provide the ThemeRoller theme on this component. If the CSS properties applied with this attribute do not affect the DOM element you want to style, you may need to create a custom theme styleClass for the theme CSS class that targets the particular DOM elements you wish to customize.
getStyle in interface ISliderEntrypublic void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Custom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
setStyleClass in interface ISliderEntrypublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Custom CSS style class(es) to use for this component. These style classes can be defined in your page or in a theme CSS file.
getStyleClass in interface ISliderEntrypublic void setTabindex(java.lang.Integer tabindex)
Set the value of the tabindex property.
Contents: The browser tabindex (int) of the component.
setTabindex in interface ISliderEntrypublic java.lang.Integer getTabindex()
Return the value of the tabindex property.
Contents: The browser tabindex (int) of the component.
getTabindex in interface ISliderEntrypublic void setValue(int value)
Set the value of the value property.
Contents: The value of the slider control.
setValue in interface ISliderEntrypublic int getValue()
Return the value of the value property.
Contents: The value of the slider control. Default = '0'.
getValue in interface ISliderEntrypublic void setValueChangeListener(javax.el.MethodExpression valueChangeListener)
Set the value of the valueChangeListener property.
Contents: MethodExpression representing a value change listener method that will be notified when a new value has been set for this input component. The expression must evaluate to a public method that takes a ValueChangeEvent parameter, with a return type of void, or to a public method that takes no arguments with a return type of void. In the latter case, the method has no way of easily knowing what the new value is, but this can be useful in cases where a notification is needed that "this value changed".
setValueChangeListener in interface ISliderEntrypublic javax.el.MethodExpression getValueChangeListener()
Return the value of the valueChangeListener property.
Contents: MethodExpression representing a value change listener method that will be notified when a new value has been set for this input component. The expression must evaluate to a public method that takes a ValueChangeEvent parameter, with a return type of void, or to a public method that takes no arguments with a return type of void. In the latter case, the method has no way of easily knowing what the new value is, but this can be useful in cases where a notification is needed that "this value changed".
getValueChangeListener in interface ISliderEntrypublic void setWidgetVar(java.lang.String widgetVar)
Set the value of the widgetVar property.
Contents: The JavaScript object name that implements the client-side JavaScript API for this component.
setWidgetVar in interface ISliderEntrypublic java.lang.String getWidgetVar()
Return the value of the widgetVar property.
Contents: The JavaScript object name that implements the client-side JavaScript API for this component.
getWidgetVar in interface ISliderEntryprotected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentpublic java.util.Collection<java.lang.String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultRender(java.lang.String event)
getDefaultRender in interface IceClientBehaviorHolderpublic java.lang.String getDefaultExecute(java.lang.String event)
getDefaultExecute in interface IceClientBehaviorHolderpublic java.lang.String getListenerArgument(java.lang.String event)
getListenerArgument in interface IceClientBehaviorHolderpublic void addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior)
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolderaddClientBehavior in class javax.faces.component.UIComponentBaseCopyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.