public class CmsToolbarPopup extends CmsPopup
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
限定符和类型 | 字段和说明 |
---|---|
protected com.google.gwt.dom.client.Element |
m_arrow
The 'arrow-shaped' connector element above the popup.
|
protected com.google.gwt.dom.client.Element |
m_baseElement
The base element of the toolbar button.
|
protected com.google.gwt.user.client.ui.ButtonBase |
m_button
The toolbar button to which this popup belongs.
|
protected boolean |
m_isToolbarMode
The 'toolbar mode' flag.
|
protected int |
m_toolbarWidth
The toolbar width.
|
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth
构造器和说明 |
---|
CmsToolbarPopup(com.google.gwt.user.client.ui.ButtonBase button,
boolean toolbarMode,
com.google.gwt.dom.client.Element baseElement)
Creates a new toolbar popup.
|
限定符和类型 | 方法和说明 |
---|---|
void |
position()
Positions the popup below the toolbar button.
|
protected static void |
positionPopup(CmsPopup popup,
com.google.gwt.user.client.ui.Widget button,
int toolbarWidth,
boolean isToolbarMode,
com.google.gwt.dom.client.Element arrow)
Positions the menu popup the button.
|
void |
setToolbarMode(boolean isToolbarMode)
Sets the isToolbarMode.
|
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, hide, 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, show, 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
protected com.google.gwt.dom.client.Element m_arrow
protected com.google.gwt.user.client.ui.ButtonBase m_button
protected int m_toolbarWidth
protected boolean m_isToolbarMode
protected com.google.gwt.dom.client.Element m_baseElement
public CmsToolbarPopup(com.google.gwt.user.client.ui.ButtonBase button, boolean toolbarMode, com.google.gwt.dom.client.Element baseElement)
button
- the toolbar button to which this popup belongstoolbarMode
- the toolbar mode flagbaseElement
- the base element of the toolbar buttonprotected static void positionPopup(CmsPopup popup, com.google.gwt.user.client.ui.Widget button, int toolbarWidth, boolean isToolbarMode, com.google.gwt.dom.client.Element arrow)
popup
- the popup to positionbutton
- the toolbar buttontoolbarWidth
- the width of the toolbarisToolbarMode
- a flag indicating whether the button is in toolbar modearrow
- the arrow shaped connector elementpublic void position()
public void setToolbarMode(boolean isToolbarMode)
isToolbarMode
- the isToolbarMode to set