Slider based on the
new data binding API@Deprecated public class Slider extends AbstractField<Double>
| Modifier and Type | Class and Description |
|---|---|
class |
Slider.ValueOutOfBoundsException
Deprecated.
|
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEventField.ValueChangeEventComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitBuffered.SourceExceptionProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.ViewerDESIGN_ATTR_PLAIN_TEXTSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Constructor and Description |
|---|
Slider()
Deprecated.
Default slider constructor.
|
Slider(double min,
double max,
int resolution)
Deprecated.
Create a new slider with the given range and resolution.
|
Slider(int min,
int max)
Deprecated.
Create a new slider with the given range that only allows integer values.
|
Slider(String caption)
Deprecated.
Create a new slider with the caption given as parameter.
|
Slider(String caption,
int min,
int max)
Deprecated.
Create a new slider with the given caption and range that only allows
integer values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clears the value of the field.
|
protected Collection<String> |
getCustomAttributes()
Deprecated.
|
double |
getMax()
Deprecated.
Gets the maximum slider value.
|
double |
getMin()
Deprecated.
Gets the minimum slider value.
|
SliderOrientation |
getOrientation()
Deprecated.
Get the current orientation of the slider (horizontal or vertical).
|
int |
getResolution()
Deprecated.
Get the current resolution of the slider.
|
SliderState |
getState()
Deprecated.
|
SliderState |
getState(boolean markAsDirty)
Deprecated.
|
Class<Double> |
getType()
Deprecated.
Returns the type of the Field.
|
boolean |
isEmpty()
Deprecated.
Is the field empty?
In general, "empty" state is same as null.
|
void |
readDesign(org.jsoup.nodes.Element design,
DesignContext context)
Deprecated.
|
protected void |
setInternalValue(Double newValue)
Deprecated.
Sets the internal field value.
|
void |
setMax(double max)
Deprecated.
Set the maximum slider value.
|
void |
setMin(double min)
Deprecated.
Set the minimum slider value.
|
void |
setOrientation(SliderOrientation orientation)
Deprecated.
Set the orientation of the slider.
|
void |
setResolution(int resolution)
Deprecated.
Set a new resolution for the slider.
|
void |
setValue(Double newFieldValue)
Deprecated.
Sets the value of the field.
|
protected void |
setValue(Double value,
boolean repaintIsNotNeeded)
Deprecated.
Sets the value of the slider.
|
void |
writeDesign(org.jsoup.nodes.Element design,
DesignContext context)
Deprecated.
|
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, attach, beforeClientResponse, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, getValue, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, validate, validate, valueChangegetExplicitImmediateValue, isImmediate, setImmediateaddContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedaddShortcutListener, removeShortcutListenerpublic Slider()
public Slider(String caption)
caption - The caption for this slider (e.g. "Volume").public Slider(double min,
double max,
int resolution)
min - The minimum value of the slidermax - The maximum value of the sliderresolution - The number of digits after the decimal point.public Slider(int min,
int max)
min - The minimum value of the slidermax - The maximum value of the sliderpublic Slider(String caption, int min, int max)
caption - The caption for the slidermin - The minimum value of the slidermax - The maximum value of the sliderpublic SliderState getState()
getState in class AbstractField<Double>public SliderState getState(boolean markAsDirty)
getState in class AbstractField<Double>public double getMax()
public void setMax(double max)
max - The new maximum slider valuepublic double getMin()
public void setMin(double min)
min - The new minimum slider valuepublic SliderOrientation getOrientation()
public void setOrientation(SliderOrientation orientation)
orientation - The new orientation, either
SliderOrientation.HORIZONTAL or
SliderOrientation.VERTICALpublic int getResolution()
public void setResolution(int resolution)
resolution - IllegalArgumentException - if resolution is negative.protected void setValue(Double value, boolean repaintIsNotNeeded)
setValue in class AbstractField<Double>value - The new value of the slider.repaintIsNotNeeded - If true, client-side is not requested to repaint itself.Slider.ValueOutOfBoundsException - If the given value is not inside the range of the slider.{@link #setMax(double)}public void setValue(Double newFieldValue)
AbstractFieldprotected void setInternalValue(Double newValue)
AbstractFieldAbstractField.getInternalValue() if necessary.setInternalValue in class AbstractField<Double>newValue - the new value to be set.public Class<Double> getType()
AbstractFieldgetValue and
setValue must be compatible with this type: one must be able
to safely cast the value returned from getValue to the given
type and pass any variable assignable to this type as an argument to
setValue.public void clear()
Field
The field value is typically reset to the initial value of the field.
Calling Field.isEmpty() on a cleared field must always returns true.
public boolean isEmpty()
Fieldpublic void readDesign(org.jsoup.nodes.Element design,
DesignContext context)
readDesign in interface ComponentreadDesign in class AbstractField<Double>public void writeDesign(org.jsoup.nodes.Element design,
DesignContext context)
writeDesign in interface ComponentwriteDesign in class AbstractField<Double>protected Collection<String> getCustomAttributes()
getCustomAttributes in class AbstractField<Double>Copyright © 2019 Vaadin Ltd. All rights reserved.