|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Slider
public class Slider
Slider component.
BaseEvent.setCancelled(boolean).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected El |
innerEl
|
protected El |
targetEl
|
protected Tip |
tip
|
protected boolean |
vertical
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Slider()
Creates a new slider. |
|
| Method Summary | |
|---|---|
protected void |
afterRender()
Called after the component has been rendered and is attached for the first time. |
protected int |
constrain(int value)
|
protected ComponentEvent |
createComponentEvent(com.google.gwt.user.client.Event event)
|
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
protected int |
doSnap(int v)
|
El |
getFocusEl()
|
int |
getIncrement()
Returns the increment. |
int |
getMaxValue()
Returns the max value (defaults to 100). |
java.lang.String |
getMessage()
Returns the tool tip message. |
int |
getMinValue()
Returns the minimum value (defaults to 0). |
protected double |
getRatio()
|
protected ToolTipConfig |
getToolTipConfig(int value)
|
int |
getValue()
Returns the current value. |
boolean |
isClickToChange()
Returns whether whether or not clicking on the Slider axis will change the slider. |
boolean |
isDraggable()
Returns true if the slider is draggable. |
boolean |
isUseTip()
Returns true if tips are enabled. |
boolean |
isVertical()
|
protected void |
moveThumb(int v)
|
protected int |
normalizeValue(int value)
|
protected void |
onAttach()
|
protected void |
onBlur(ComponentEvent ce)
|
protected void |
onClick(ComponentEvent ce)
|
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
protected void |
onDragCancel(DragEvent de)
|
protected void |
onDragEnd(DragEvent de)
|
protected void |
onDragMove(DragEvent de)
|
protected void |
onDragStart(DragEvent de)
|
protected void |
onFocus(ComponentEvent ce)
|
protected java.lang.String |
onFormatValue(int value)
|
protected void |
onKeyDown(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
onResize(int width,
int height)
Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs. |
protected void |
onValueChange(int value)
|
protected int |
reverseValue(int pos)
|
void |
setClickToChange(boolean clickToChange)
Determines whether or not clicking on the slider axis will change the slider (defaults to true). |
void |
setDraggable(boolean draggable)
True to allow the slider to be dragged (default to true). |
void |
setIncrement(int increment)
How many units to change the slider when adjusting by drag and drop. |
void |
setMaxValue(int maxValue)
Sets the max value (defaults to 100). |
void |
setMessage(java.lang.String htmlMessage)
Sets the tool tip message (defaults to '{0}'). |
void |
setMinValue(int minValue)
Sets the minimum value (defaults to 0). |
void |
setUseTip(boolean useTip)
True to enable tool tips (default to true). |
void |
setValue(int value)
Sets the current value. |
void |
setValue(int value,
boolean supressEvent)
Sets the current value. |
void |
setVertical(boolean vertical)
True to orient the slider vertically (defaults to false). |
protected void |
syncThumb()
|
protected int |
translateValue(int v)
|
protected void |
updateTip()
|
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected El innerEl
protected El targetEl
protected Tip tip
protected boolean vertical
| Constructor Detail |
|---|
public Slider()
| Method Detail |
|---|
public El getFocusEl()
getFocusEl in class Componentpublic int getIncrement()
public int getMaxValue()
public java.lang.String getMessage()
public int getMinValue()
public int getValue()
public boolean isClickToChange()
public boolean isDraggable()
public boolean isUseTip()
public boolean isVertical()
public void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class Componentce - the base eventpublic void setClickToChange(boolean clickToChange)
clickToChange - true to allow the slider axis to be clickedpublic void setDraggable(boolean draggable)
draggable - true to enable draggingpublic void setIncrement(int increment)
increment - the incrementpublic void setMaxValue(int maxValue)
maxValue - the max valuepublic void setMessage(java.lang.String htmlMessage)
htmlMessage - the tool tip message as an html stringpublic void setMinValue(int minValue)
minValue - the minimum valuepublic void setUseTip(boolean useTip)
useTip - true to enable tool tipspublic void setValue(int value)
value - the value
public void setValue(int value,
boolean supressEvent)
value - the valuesupressEvent - true to suppress the change eventpublic void setVertical(boolean vertical)
vertical - true for verticalprotected void afterRender()
Component
afterRender in class BoxComponentprotected int constrain(int value)
protected ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
createComponentEvent in class BoxComponentprotected void doAttachChildren()
doAttachChildren in class Componentprotected void doDetachChildren()
doDetachChildren in class Componentprotected int doSnap(int v)
protected double getRatio()
protected ToolTipConfig getToolTipConfig(int value)
protected void moveThumb(int v)
protected int normalizeValue(int value)
protected void onAttach()
onAttach in class Componentprotected void onBlur(ComponentEvent ce)
protected void onClick(ComponentEvent ce)
protected void onDragCancel(DragEvent de)
protected void onDragEnd(DragEvent de)
protected void onDragMove(DragEvent de)
protected void onDragStart(DragEvent de)
protected void onFocus(ComponentEvent ce)
protected java.lang.String onFormatValue(int value)
protected void onKeyDown(ComponentEvent ce)
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Componenttarget - the target elementindex - the insert location
protected void onResize(int width,
int height)
BoxComponent
onResize in class BoxComponentwidth - the widthheight - the heightprotected void onValueChange(int value)
protected int reverseValue(int pos)
protected void syncThumb()
protected int translateValue(int v)
protected void updateTip()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||