public class CmsSelectionButtonMenu extends CmsToolbarPopup
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
限定符和类型 | 字段和说明 |
---|---|
static int |
HIDE_DELAY
The delay for hiding the popup.
|
protected com.google.gwt.user.client.ui.HorizontalPanel |
m_buttonPanel
The panel in the popup which actually contains the buttons.
|
protected boolean |
m_mouseOverButton
Flag which indicates whether the mouse is over the button.
|
protected boolean |
m_mouseOverPopup
Flag which indicates whether the mouse is over the popup.
|
protected com.google.gwt.user.client.Timer |
m_sizingTimer
The timer used for scheduling resize operations.
|
protected com.google.gwt.user.client.Timer |
m_timer
The timer used to schedule show/hide operations.
|
protected CmsToggleButton |
m_toggleButton
The selection button.
|
static int |
RESIZE_INTERVAL
The resize interval for the popup.
|
static int |
SHOW_DELAY
The delay for showing the popup.
|
m_arrow, m_baseElement, m_button, m_isToolbarMode, m_toolbarWidth
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth
构造器和说明 |
---|
CmsSelectionButtonMenu(CmsToggleButton button,
boolean isToolbarMode,
com.google.gwt.dom.client.Element baseElement)
Creates a new selection menu.
|
限定符和类型 | 方法和说明 |
---|---|
void |
activate()
Installs the event handlers for displaying the selection button menu.
|
protected void |
adaptSize()
Adapts the size of the popup to the size of its contents.
|
void |
addToPanel(com.google.gwt.user.client.ui.Widget widget)
Adds a widget to the button panel.
|
void |
hide()
Hides the widget.
|
void |
show() |
protected void |
update()
Handles state transitions of the popup caused by mouse events.
|
position, positionPopup, setToolbarMode
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, center, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, showArrow, wrapWithBorderPadding
addAutoHidePartner, addCloseHandler, addPopupListener, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeTo
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
public static final int SHOW_DELAY
public static final int HIDE_DELAY
public static final int RESIZE_INTERVAL
protected boolean m_mouseOverButton
protected boolean m_mouseOverPopup
protected com.google.gwt.user.client.Timer m_timer
protected com.google.gwt.user.client.Timer m_sizingTimer
protected CmsToggleButton m_toggleButton
protected com.google.gwt.user.client.ui.HorizontalPanel m_buttonPanel
public CmsSelectionButtonMenu(CmsToggleButton button, boolean isToolbarMode, com.google.gwt.dom.client.Element baseElement)
button
- the selection buttonisToolbarMode
- true if this is the toolbar modebaseElement
- the base button elementpublic void activate()
public void addToPanel(com.google.gwt.user.client.ui.Widget widget)
widget
- the widget to addpublic void hide()
I_CmsAutoHider
hide
在接口中 I_CmsAutoHider
hide
在类中 CmsPopup
CmsPopup.hide()
public void show()
show
在类中 CmsPopup
CmsPopup.show()
protected void adaptSize()
protected void update()