public class ScrollablePanel extends Widget<HTMLDivElement,ScrollablePanel> implements HasContentResizeHandlers<ScrollablePanel>
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
ScrollablePanel() |
addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, removeClassName, removeDropTarget, removeStyleName, setBackgroundColor, setClassName, setContextMenu, setDragSource, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContentResizeHandler
addEventHandler, addEventHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
public ScrollablePanel setAllowKeyboardScroll(boolean allowKeyboardScroll)
allowKeyboardScroll
- the allowKeyboardScroll to setpublic boolean isAllowKeyboardScroll()
public void setScrollType(ScrollType scrollType)
scrollType
- the scrollType to setpublic void setHorizontalScrollBarLocation(ScrollBarLocation horizontalScrollBarLocation)
public ScrollBarLocation getHorizontalScrollBarLocation()
public void setVerticalScrollBarLocation(ScrollBarLocation verticalScrollBarLocation)
public ScrollBarLocation getVerticalScrollBarLocation()
public ScrollType getScrollType()
@WillMutate public ScrollablePanel add(Widget<? extends Element<?>,?> widget)
add
in class Widget<HTMLDivElement,ScrollablePanel>
@WillMutate public ScrollablePanel remove(Widget<?,?> widget)
remove
in class Widget<HTMLDivElement,ScrollablePanel>
@WillMutate public ScrollablePanel setContentWidth(double width, Unit unit)
protected com.xalys.xgl.layouts.scroll.Body getBody()
public void fireOnResize()
protected <H extends EventHandler> void fireEvent(Event<H> event)
fireEvent
in class Widget<HTMLDivElement,ScrollablePanel>
protected <H extends EventHandler> void fireEvent(Event<H> event, EventPhase eventPhase)
fireEvent
in class Widget<HTMLDivElement,ScrollablePanel>
public HorizontalScrollBar getHorizontalScrollBar()
public VerticalScrollBar getVerticalScrollBar()
protected com.xalys.xgl.layouts.scroll.Metrics getMetrics()
protected void createVerticalScrollBar()
protected void destroyVerticalScrollBar()
protected void createHorizontalScrollBar()
protected void destroyHorizontalScrollBar()
public void update()
public int getScrollLeft()
getScrollLeft
in class Widget<HTMLDivElement,ScrollablePanel>
public ScrollablePanel setScrollLeft(int scrollLeft)
setScrollLeft
in class Widget<HTMLDivElement,ScrollablePanel>
public int getScrollTop()
getScrollTop
in class Widget<HTMLDivElement,ScrollablePanel>
public ScrollablePanel setScrollTop(int scrollTop)
setScrollTop
in class Widget<HTMLDivElement,ScrollablePanel>
public double getContentWidth()
public double getContentHeight()
public ScrollablePanel horizontalScrollToStart()
public ScrollablePanel horizontalScrollToEnd()
public ScrollablePanel verticalScrollToStart()
public ScrollablePanel verticalScrollToEnd()
Copyright © 2018 Xalys. All rights reserved.