public class Scrollbar extends StretchImg
Canvas.overflow
. The scrollbar's appearance is based on a
StretchImg
for the "track", which consists of two fixed size buttons and a
stretchable center segment, and the ScrollThumb, the draggable portion of the scrollbar, also a StretchImg, with an
optional grip
.
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Constructor and Description |
---|
Scrollbar() |
Scrollbar(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
protected com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.Boolean |
getAllowThumbDownState()
If true, the thumb's appearance changes when it's clicked on.
|
java.lang.Boolean |
getAllowThumbOverState()
If true, the thumb's appearance changes when the user rolls over it.
|
java.lang.Boolean |
getAutoEnable()
If true, this scrollbar will automatically enable when the scrollTarget is scrollable (i.e., when the contents of the
scrollTarget exceed its clip size in the direction relevant to this scrollbar), and automatically disable when the
scrollTarget is not scrollable.
|
java.lang.Integer |
getBtnSize()
The size of the square buttons (arrows) at the ends of this scrollbar.
|
StretchItem |
getCornerImg()
The StretchItem for the corner between vertical and horizontal scrollbars.
|
java.lang.Integer |
getCornerSize()
Allows the size of the corner segment to be set independently of the
btnSize . |
java.lang.String |
getCornerSrc()
URL for the corner image, a singular image that appears in the corner when both h and v scrollbars are showing.
|
StretchItem |
getEndImg()
The StretchItem for the end of a scrollbar (the "scroll down" or "scroll right" button image).
|
java.lang.Integer |
getEndThumbOverlap()
Number of pixels the thumb is allowed to overlap the buttons at the end of the track.
|
java.lang.String |
getHSrc()
Base URL for the images used for the horizontal scrollbar track and end buttons.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
static Scrollbar |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
Canvas |
getScrollTarget()
The widget whose contents should be scrolled by this scrollbar.
|
java.lang.Boolean |
getShowCorner()
If true, displays a corner piece at the bottom end of a vertical scrollbar, or the right end of a horizontal scrollbar.
|
java.lang.Boolean |
getShowTrackButtons()
Should the track buttons that allow page scrolling be shown?
|
java.lang.Boolean |
getShowTrackEnds()
If true, the scrollbar uses a 5-segment rather than 3-segment image representation, where the 3 interior image segments
have the same state (Down, Over, etc), independent of the two outermost image segments.
|
java.lang.String |
getSkinImgDir()
Where are the skin images for the Scrollbar.
|
StretchItem |
getStartImg()
The StretchItem for the start of a scrollbar (the "scroll up" or "scroll left" button image).
|
java.lang.Integer |
getStartThumbOverlap()
Number of pixels the thumb is allowed to overlap the buttons at the start of the track.
|
java.lang.Integer |
getThumbInset()
Inset of the thumb relative to the track.
|
int |
getThumbMinSize()
The minimum pixel size of the draggable thumb regardless of how large the scrolling region becomes.
|
int |
getThumbOverlap()
Number of pixels the thumb is allowed to overlap the buttons at each end of the track.
|
int |
getTrackEndHeight()
The minimum pixel height of the track end segments (if enabled with showTrackEnds).
|
StretchItem |
getTrackEndImg()
The StretchItem for the end of a scrollbar track.
|
int |
getTrackEndWidth()
The minimum pixel width of the track end segments (if enabled with showTrackEnds).
|
StretchItem |
getTrackImg()
The StretchItem for the middle part of a scrollbar track, which usually takes up the majority of the width or height of
the scrollbar.
|
StretchItem |
getTrackStartImg()
The StretchItem for the start of a scrollbar track.
|
java.lang.String |
getVSrc()
Base URL for the images used for the vertical scrollbar track and end buttons.
|
static void |
preloadImages()
Preload primary Scrollbar skin images.
|
void |
setAllowThumbDownState(java.lang.Boolean allowThumbDownState)
If true, the thumb's appearance changes when it's clicked on.
|
void |
setAllowThumbOverState(java.lang.Boolean allowThumbOverState)
If true, the thumb's appearance changes when the user rolls over it.
|
void |
setAutoEnable(java.lang.Boolean autoEnable)
If true, this scrollbar will automatically enable when the scrollTarget is scrollable (i.e., when the contents of the
scrollTarget exceed its clip size in the direction relevant to this scrollbar), and automatically disable when the
scrollTarget is not scrollable.
|
void |
setBtnSize(java.lang.Integer btnSize)
The size of the square buttons (arrows) at the ends of this scrollbar.
|
void |
setCornerImg(StretchItem cornerImg)
The StretchItem for the corner between vertical and horizontal scrollbars.
|
void |
setCornerSize(java.lang.Integer cornerSize)
Allows the size of the corner segment to be set independently of the
btnSize . |
void |
setCornerSrc(java.lang.String cornerSrc)
URL for the corner image, a singular image that appears in the corner when both h and v scrollbars are showing.
|
static void |
setDefaultProperties(Scrollbar scrollbarProperties)
Class level method to set the default properties of this class.
|
void |
setEndImg(StretchItem endImg)
The StretchItem for the end of a scrollbar (the "scroll down" or "scroll right" button image).
|
void |
setEndThumbOverlap(java.lang.Integer endThumbOverlap)
Number of pixels the thumb is allowed to overlap the buttons at the end of the track.
|
void |
setHSrc(java.lang.String hSrc)
Base URL for the images used for the horizontal scrollbar track and end buttons.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.ScrollbarLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
void |
setScrollTarget(Canvas scrollTarget)
The widget whose contents should be scrolled by this scrollbar.
|
void |
setShowCorner(java.lang.Boolean showCorner)
If true, displays a corner piece at the bottom end of a vertical scrollbar, or the right end of a horizontal scrollbar.
|
void |
setShowTrackButtons(java.lang.Boolean showTrackButtons)
Should the track buttons that allow page scrolling be shown?
|
void |
setShowTrackEnds(java.lang.Boolean showTrackEnds)
If true, the scrollbar uses a 5-segment rather than 3-segment image representation, where the 3 interior image segments
have the same state (Down, Over, etc), independent of the two outermost image segments.
|
void |
setSkinImgDir(java.lang.String skinImgDir)
Where are the skin images for the Scrollbar.
|
void |
setStartImg(StretchItem startImg)
The StretchItem for the start of a scrollbar (the "scroll up" or "scroll left" button image).
|
void |
setStartThumbOverlap(java.lang.Integer startThumbOverlap)
Number of pixels the thumb is allowed to overlap the buttons at the start of the track.
|
void |
setThumbInset(java.lang.Integer thumbInset)
Inset of the thumb relative to the track.
|
void |
setThumbMinSize(int thumbMinSize)
The minimum pixel size of the draggable thumb regardless of how large the scrolling region becomes.
|
void |
setThumbOverlap(int thumbOverlap)
Number of pixels the thumb is allowed to overlap the buttons at each end of the track.
|
void |
setTrackEndHeight(int trackEndHeight)
The minimum pixel height of the track end segments (if enabled with showTrackEnds).
|
void |
setTrackEndImg(StretchItem trackEndImg)
The StretchItem for the end of a scrollbar track.
|
void |
setTrackEndWidth(int trackEndWidth)
The minimum pixel width of the track end segments (if enabled with showTrackEnds).
|
void |
setTrackImg(StretchItem trackImg)
The StretchItem for the middle part of a scrollbar track, which usually takes up the majority of the width or height of
the scrollbar.
|
void |
setTrackStartImg(StretchItem trackStartImg)
The StretchItem for the start of a scrollbar track.
|
void |
setVSrc(java.lang.String vSrc)
Base URL for the images used for the vertical scrollbar track and end buttons.
|
getCapSize, getGripImgSuffix, getIgnoreRTL, getImageType, getItemBaseStyle, getItems, getShowDownGrip, getShowGrip, getShowRollOverGrip, getShowTitle, getSrc, getVertical, setCapSize, setDefaultProperties, setGripImgSuffix, setIgnoreRTL, setImageType, setItemBaseStyle, setItems, setLogicalStructure, setShowDownGrip, setShowGrip, setShowRollOverGrip, setShowTitle, setSrc, setState, setState, setVertical
addToRadioGroup, deselect, getActionType, getAlign, getAutoFit, getBaseStyle, getEditProxyConstructor, getIcon, getIconHeight, getIconOrientation, getIconSize, getIconStyle, getIconWidth, getOverCanvas, getOverCanvasConstructor, getRadioGroup, getRedrawOnStateChange, getSelected, getShowDisabled, getShowDisabledIcon, getShowDown, getShowDownIcon, getShowFocused, getShowFocusedAsOver, getShowFocusedIcon, getShowOverCanvas, getShowRollOver, getShowRollOverIcon, getShowRTLIcon, getShowSelectedIcon, getState, getStateSuffix, getTitle, getValign, isSelected, removeFromRadioGroup, removeFromRadioGroup, select, setActionType, setAlign, setAutoFit, setBaseStyle, setDefaultProperties, setEditProxyConstructor, setIcon, setIconHeight, setIconOrientation, setIconSize, setIconStyle, setIconWidth, setLogicalStructure, setOverCanvasConstructor, setRadioGroup, setRedrawOnStateChange, setSelected, setShowDisabled, setShowDisabledIcon, setShowDown, setShowDownIcon, setShowFocused, setShowFocusedAsOver, setShowFocusedIcon, setShowOverCanvas, setShowRollOver, setShowRollOverIcon, setShowRTLIcon, setShowSelectedIcon, setState, setTitle, setTitleStyle, setValign
addChild, addChild, addChild, addChild, addChild, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, encloses, focus, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoDraw, getAutoMaskComponents, getAutoParent, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBottom, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCursor, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getOverflow, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowDepth, getShadowImage, getShadowOffset, getShadowSoftness, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStyleName, getTabIndex, getTestInstance, getTooltip, getTop, getTopAsString, getTopElement, getUseBackMask, getUseDragMask, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isDrawn, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, onInit, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, removeChild, removeChild, removePeer, removePeer, removeSnapAlignCandidate, resizeBy, resizeControls, resizeFonts, resizeFonts, resizeTo, resizeTo, revealChild, revealChild, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoDraw, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCursor, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeavePageSpace, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setOverflow, setPadding, setPageLeft, setPageTop, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setRect, setRect, setRedrawOnResize, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowDepth, setShadowImage, setShadowOffset, setShadowSoftness, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStyleName, setTabIndex, setTooltip, setTop, setTop, setUseBackMask, setUseDragMask, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateEditNode, updateHover, updateHover, updateShadow, visibleAtPoint, willAcceptDrop
addDrawHandler, applyFactoryProperties, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getById, getByJSObject, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
public Scrollbar()
public Scrollbar(com.google.gwt.core.client.JavaScriptObject jsObj)
public static Scrollbar getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
create
in class StretchImg
public void setAllowThumbDownState(java.lang.Boolean allowThumbDownState) throws java.lang.IllegalStateException
Note : This is an advanced setting
allowThumbDownState
- Default value is falsejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getAllowThumbDownState()
public void setAllowThumbOverState(java.lang.Boolean allowThumbOverState) throws java.lang.IllegalStateException
Note : This is an advanced setting
allowThumbOverState
- Default value is falsejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getAllowThumbOverState()
public void setAutoEnable(java.lang.Boolean autoEnable)
Note : This is an advanced setting
autoEnable
- Default value is truepublic java.lang.Boolean getAutoEnable()
public void setBtnSize(java.lang.Integer btnSize)
Canvas.scrollbarSize
to set the width of a vertical scrollbar or
the height of a horizontal scrollbar. If not set it will default to Canvas.scrollbarSize
.btnSize
- Default value is nullpublic java.lang.Integer getBtnSize()
Canvas.scrollbarSize
to set the width of a vertical scrollbar or
the height of a horizontal scrollbar. If not set it will default to Canvas.scrollbarSize
.public void setCornerImg(StretchItem cornerImg) throws java.lang.IllegalStateException
StretchItem.width
and StretchItem.height
set on the cornerImg StretchItem are ignored. The
default is: new StretchItem("corner", null, null)
cornerImg
- Default value is see belowjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic StretchItem getCornerImg()
StretchItem.width
and StretchItem.height
set on the cornerImg StretchItem are ignored. The
default is: new StretchItem("corner", null, null)
public void setCornerSize(java.lang.Integer cornerSize) throws java.lang.IllegalStateException
btnSize
.cornerSize
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getCornerSize()
btnSize
.public void setCornerSrc(java.lang.String cornerSrc) throws java.lang.IllegalStateException
cornerSrc
- java.lang.IllegalStateException
- this property cannot be changed after the component has been createdSCImgURL . Default value is "[SKIN]corner.gif"
,
Images overview and related methods
public java.lang.String getCornerSrc()
SCImgURL
,
Images overview and related methods
public void setEndImg(StretchItem endImg) throws java.lang.IllegalStateException
new StretchItem("end", "btnSize", "btnSize")
endImg
- Default value is see belowjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic StretchItem getEndImg()
new StretchItem("end", "btnSize", "btnSize")
public void setEndThumbOverlap(java.lang.Integer endThumbOverlap) throws java.lang.IllegalStateException
Note : This is an advanced setting
endThumbOverlap
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getEndThumbOverlap()
public void setHSrc(java.lang.String hSrc) throws java.lang.IllegalStateException
See StretchImg.items
for a general explanation of how this base URL is
transformed into various pieces and states.
For a normal 3-segment track, the suffixes "_start", "_track" and "_end" are added to this URL. The "start" and "end" images should appear to be buttons (the user can click on these segments to scroll slowly). The "track" segment provides a background for the space in which the thumb can be dragged, and can also be clicked on to scroll quickly.
For a 5-segment track (showTrackEnds
:true), the suffixes are "_start", "_track_start",
"_track", "_track_end" and "_end".
setHSrc
in class StretchImg
hSrc
- java.lang.IllegalStateException
- this property cannot be changed after the component has been createdSCImgURL . Default value is "[SKIN]hscroll.gif"
,
Images overview and related methods
public java.lang.String getHSrc()
See StretchImg.items
for a general explanation of how this base URL is
transformed into various pieces and states.
For a normal 3-segment track, the suffixes "_start", "_track" and "_end" are added to this URL. The "start" and "end" images should appear to be buttons (the user can click on these segments to scroll slowly). The "track" segment provides a background for the space in which the thumb can be dragged, and can also be clicked on to scroll quickly.
For a 5-segment track (showTrackEnds
:true), the suffixes are "_start", "_track_start",
"_track", "_track_end" and "_end".
getHSrc
in class StretchImg
SCImgURL
,
Images overview and related methods
public void setScrollTarget(Canvas scrollTarget)
Note : This is an advanced setting
scrollTarget
- target canvas to be scrolled. Default value is nullpublic Canvas getScrollTarget()
public void setShowCorner(java.lang.Boolean showCorner) throws java.lang.IllegalStateException
Note : This is an advanced setting
showCorner
- Default value is falsejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowCorner()
public void setShowTrackButtons(java.lang.Boolean showTrackButtons) throws java.lang.IllegalStateException
Note : This is an advanced setting
showTrackButtons
- Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowTrackButtons()
public void setShowTrackEnds(java.lang.Boolean showTrackEnds) throws java.lang.IllegalStateException
This allows certain advanced skinning designs where the track-as-such (space in which the thumb may be dragged) has curved endcaps, and is also visually stateful (that is, changes when the mouse goes down, without affecting the appearance of the outermost segments).
Note : This is an advanced setting
showTrackEnds
- Default value is falsejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowTrackEnds()
This allows certain advanced skinning designs where the track-as-such (space in which the thumb may be dragged) has curved endcaps, and is also visually stateful (that is, changes when the mouse goes down, without affecting the appearance of the outermost segments).
public void setSkinImgDir(java.lang.String skinImgDir) throws java.lang.IllegalStateException
overall skin directory
.
Note : This is an advanced setting
setSkinImgDir
in class Canvas
skinImgDir
- Default value is "images/Scrollbar/"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdImages overview and related methods
public java.lang.String getSkinImgDir()
overall skin directory
.getSkinImgDir
in class Canvas
Images overview and related methods
public void setStartImg(StretchItem startImg) throws java.lang.IllegalStateException
new
StretchItem("start", "btnSize", "btnSize")
startImg
- Default value is see belowjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic StretchItem getStartImg()
new
StretchItem("start", "btnSize", "btnSize")
public void setStartThumbOverlap(java.lang.Integer startThumbOverlap) throws java.lang.IllegalStateException
Note : This is an advanced setting
startThumbOverlap
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getStartThumbOverlap()
public void setThumbInset(java.lang.Integer thumbInset) throws java.lang.IllegalStateException
Note : This is an advanced setting
thumbInset
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getThumbInset()
public void setThumbMinSize(int thumbMinSize) throws java.lang.IllegalStateException
Note : This is an advanced setting
thumbMinSize
- Default value is 12java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getThumbMinSize()
public void setThumbOverlap(int thumbOverlap) throws java.lang.IllegalStateException
Note : This is an advanced setting
thumbOverlap
- Default value is 1java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getThumbOverlap()
public void setTrackEndHeight(int trackEndHeight) throws java.lang.IllegalStateException
Note : This is an advanced setting
trackEndHeight
- Default value is 12java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getTrackEndHeight()
public void setTrackEndImg(StretchItem trackEndImg) throws java.lang.IllegalStateException
new StretchItem("track_end", "trackEndSize",
"trackEndSize")
trackEndImg
- Default value is see belowjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic StretchItem getTrackEndImg()
new StretchItem("track_end", "trackEndSize",
"trackEndSize")
public void setTrackEndWidth(int trackEndWidth) throws java.lang.IllegalStateException
Note : This is an advanced setting
trackEndWidth
- Default value is 12java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getTrackEndWidth()
public void setTrackImg(StretchItem trackImg) throws java.lang.IllegalStateException
new StretchItem("track", "*", "*")
trackImg
- Default value is see belowjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic StretchItem getTrackImg()
new StretchItem("track", "*", "*")
public void setTrackStartImg(StretchItem trackStartImg) throws java.lang.IllegalStateException
new StretchItem("track_start",
"trackStartSize", "trackStartSize")
trackStartImg
- Default value is see belowjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic StretchItem getTrackStartImg()
new StretchItem("track_start",
"trackStartSize", "trackStartSize")
public void setVSrc(java.lang.String vSrc) throws java.lang.IllegalStateException
hSrc
for usage.setVSrc
in class StretchImg
vSrc
- java.lang.IllegalStateException
- this property cannot be changed after the component has been createdSCImgURL . Default value is "[SKIN]vscroll.gif"
,
Images overview and related methods
public java.lang.String getVSrc()
hSrc
for usage.getVSrc
in class StretchImg
SCImgURL
,
Images overview and related methods
public static void setDefaultProperties(Scrollbar scrollbarProperties)
Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
scrollbarProperties
- properties that should be used as new defaults when instances of this class are createdSGWTProperties
public static void preloadImages()
public com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.ScrollbarLogicalStructure s)
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class StretchImg