public class CmsElementOptionBar
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
CmsElementOptionBar.HoverHandler
Hover handler for option bar.
|
| 构造器和说明 |
|---|
CmsElementOptionBar(CmsContainerPageElementPanel containerElement)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adds another option button.
|
protected void |
addHighlighting()
Adds the highlighting and option bar.
|
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) |
void |
clear()
Clears the bar.
|
static CmsElementOptionBar |
createOptionBarForElement(CmsContainerPageElementPanel element,
CmsDNDHandler dndHandler,
A_CmsToolbarOptionButton... buttons)
Creates an option-bar for the given drag element.
|
int |
getCalculatedWidth()
Returns the calculated width of the widget.
|
protected CmsContainerPageElementPanel |
getContainerElement()
Returns the parent container element.
|
void |
initWidth()
Calculates and sets the width of the option bar.
|
java.util.Iterator<com.google.gwt.user.client.ui.Widget> |
iterator()
Returns an iterator for the child widgets.
|
void |
removeHighlighting()
Removes the highlighting and option bar.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventspublic CmsElementOptionBar(CmsContainerPageElementPanel containerElement)
containerElement - the parent container elementpublic static CmsElementOptionBar createOptionBarForElement(CmsContainerPageElementPanel element, CmsDNDHandler dndHandler, A_CmsToolbarOptionButton... buttons)
element - the element to create the option-bar fordndHandler - the drag and drop handlerbuttons - the list of buttons to displaypublic void add(com.google.gwt.user.client.ui.Widget w)
w - the button to addpublic com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
addMouseOutHandler 在接口中 com.google.gwt.event.dom.client.HasMouseOutHandlersHasMouseOutHandlers.addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler)public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
addMouseOverHandler 在接口中 com.google.gwt.event.dom.client.HasMouseOverHandlersHasMouseOverHandlers.addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler)public void clear()
public int getCalculatedWidth()
public void initWidth()
public java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()
public void removeHighlighting()
protected void addHighlighting()
protected CmsContainerPageElementPanel getContainerElement()