Field Summary |
public
| autoScroll: Boolean |
| Controls whether the content is automatically when the mouse is over the border areas.
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| edgeSense |
| Controls the depth of the autoScroll area. The default is 30.
|
|
public
| hasFocusableContent: Boolean |
| Determines whether the content is focusable or not
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| tabStop: Boolean |
|
|
|
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| contentHeight: Number (read-only)
|
| The actual height in pixels of the content
|
|
public
| contentWidth: Number (read-only)
|
| The actual width in pixels of the content
|
|
public
| viewportHeight: Number (read-only)
|
| The actual height in pixels of the viewable window
|
|
public
| viewportWidth: Number (read-only)
|
| The actual width in pixels of the viewable window
|
|
|
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| ScrollPanel (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| doAutoScroll (
) |
| Scroll the content if the mouse is over the edge of the content area
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| onSetFocus (
): Void |
| SetFocus handler.Called when you get focus. If focus is actualy set to some internal TextField that TextField must call onSetFocus when it gets focus.
|
|
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|
A progress event can be subscribed to to track the load process
If the content isn't going to contain focusable or mouse aware controls i.e. its just a jpg or plain clip, then you can activate automatic scroll support.
There are several methods of auto scrolling.
Whilst the mouse is over the ScrollPanle:
MouseWheel - scrolls vertically unless you hold the SHIFT key down in which case it scrolls horizontaly.
EdgeSense - If you place the mouse over the boundaries of the content, it will scroll repeatedly by largeScroll increments, holding SHIFT down scrolls in smallScroll increments.
Whilst the ScrollPanel has focus:
KeyBoard - When a ScrollPanel instance has focus, you can use the following keys to control it:
Event summary for the ScrollPanel class
The following table lists events of the ScrollPanel class.