@JsType(namespace="xgl") public class TabPanel extends Widget<HTMLDivElement,TabPanel> implements HasEnableTabHandlers<TabPanel>, HasBeforeTabCloseHandlers<TabPanel>, HasTabCloseHandlers<TabPanel>
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
TabPanel() |
add, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, 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, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 TabPanel setTabsPosition(TabsPosition tabsPosition)
tabsPosition
- the tabsPosition to set, if tabsPosition is null, it will default
to TOPpublic TabsPosition getTabsPosition()
public boolean areTabsOnTop()
public boolean areTabsOnBottom()
public TabPanelBody getBody()
public int getTabCount()
protected void superAdd(Widget<?,?> widget)
protected void superRemove(Widget<?,?> widget)
public TabPanel remove(Widget<?,?> widget)
remove
in class Widget<HTMLDivElement,TabPanel>
public Widget<?,?> getActiveTab()
public boolean isDefaultClosable()
public TabPanel setDefaultClosable(boolean defaultClosable)
defaultClosable
- if true, new tabs will be closable by default.public void setActiveTab(Widget<?,?> widget)
widget
- public TabConfiguration getTabConfiguration(Widget<?,?> widget)
cp
- public HandlerRegistration addEnableTabHandler(EnableTabHandler<TabPanel> enableTabHandler)
addEnableTabHandler
in interface HasEnableTabHandlers<TabPanel>
public HandlerRegistration addTabCloseHandler(TabCloseHandler<TabPanel> tabCloseHandler)
addTabCloseHandler
in interface HasTabCloseHandlers<TabPanel>
public HandlerRegistration addBeforeTabCloseHandler(BeforeTabCloseHandler<TabPanel> beforeTabCloseHandler)
addBeforeTabCloseHandler
in interface HasBeforeTabCloseHandlers<TabPanel>
protected void fireEnableTabEvent(TabConfiguration tabConfiguration)
protected boolean fireBeforeTabCloseEvent(TabConfiguration tabConfiguration)
protected void fireTabCloseEvent(TabConfiguration tabConfiguration)
Copyright © 2018 Xalys. All rights reserved.