public abstract class A_CmsDirectEditButtons
extends com.google.gwt.user.client.ui.FlowPanel
implements com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsPushButton |
m_delete
The delete button.
|
protected CmsPushButton |
m_edit
The edit button.
|
protected CmsEditableDataJSO |
m_editableData
The editable data.
|
protected com.google.gwt.dom.client.Element |
m_expiredOverlay
The expired resources overlay element.
|
protected CmsHighlightingBorder |
m_highlighting
Highlighting border for this element.
|
protected com.google.gwt.dom.client.Element |
m_markerTag
The editable marker tag.
|
protected CmsPushButton |
m_new
The new button.
|
protected java.lang.String |
m_parentResourceId
The parent element id.
|
protected CmsPositionBean |
m_position
The editable element position.
|
| 构造器和说明 |
|---|
A_CmsDirectEditButtons(com.google.gwt.dom.client.Element editable,
java.lang.String parentId)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addHighlightingAndBar()
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) |
com.google.gwt.dom.client.Element |
getMarkerTag()
Returns the marker tag.
|
void |
highlightElement()
Puts a highlighting border around the element.
|
boolean |
isValid()
Returns if this edit button is still valid.
|
protected abstract void |
onClickDelete()
This method should be executed when the "delete" direct edit button is clicked.
|
protected abstract void |
onClickEdit()
This method should be executed when the "edit" direct edit button is clicked.
|
protected abstract void |
onClickNew()
This method should be executed when the "new" direct edit button is clicked.
|
void |
removeFromParent() |
void |
removeHighlighting()
Removes the highlighting border.
|
protected void |
removeHighlightingAndBar()
Removes the highlighting and option bar.
|
void |
setPosition(CmsPositionBean position,
com.google.gwt.dom.client.Element containerElement)
Sets the position.
|
protected void |
updateExpiredOverlayPosition(com.google.gwt.dom.client.Element positioningParent)
Updates the position of the expired resources overlay if present.
|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsprotected CmsPushButton m_delete
protected CmsPushButton m_edit
protected CmsEditableDataJSO m_editableData
protected com.google.gwt.dom.client.Element m_expiredOverlay
protected CmsHighlightingBorder m_highlighting
protected com.google.gwt.dom.client.Element m_markerTag
protected CmsPushButton m_new
protected java.lang.String m_parentResourceId
protected CmsPositionBean m_position
public A_CmsDirectEditButtons(com.google.gwt.dom.client.Element editable,
java.lang.String parentId)
editable - the editable marker tagparentId - the parent element idpublic 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 com.google.gwt.dom.client.Element getMarkerTag()
public void highlightElement()
public boolean isValid()
true if this edit button is validpublic void removeFromParent()
removeFromParent 在类中 com.google.gwt.user.client.ui.WidgetWidget.removeFromParent()public void removeHighlighting()
public void setPosition(CmsPositionBean position, com.google.gwt.dom.client.Element containerElement)
position - the absolute positioncontainerElement - the parent container elementprotected void addHighlightingAndBar()
protected abstract void onClickDelete()
protected abstract void onClickEdit()
protected abstract void onClickNew()
protected void removeHighlightingAndBar()
protected void updateExpiredOverlayPosition(com.google.gwt.dom.client.Element positioningParent)
positioningParent - the positioning parent element