public class CmsSimpleListItem extends com.google.gwt.user.client.ui.Composite implements I_CmsListItem
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
m_id
The logical id, it is not the HTML id.
|
protected CmsFlowPanel |
m_panel
The underlying panel.
|
构造器和说明 |
---|
CmsSimpleListItem()
Constructor.
|
CmsSimpleListItem(CmsListItemWidget widget)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adds a widget to this list item.
|
com.google.gwt.dom.client.Element |
getDragHelper(I_CmsDropTarget target)
Creates the drag helper element and attaches it into the DOM.
|
java.lang.String |
getId()
Returns the logical id, it is not the HTML id.
|
I_CmsDropTarget |
getParentTarget()
Returns the parent drop target or
null if there is none. |
com.google.gwt.dom.client.Element |
getPlaceholder(I_CmsDropTarget target)
Creates the drag placeholder element.
|
com.google.gwt.user.client.ui.Widget |
getWidget(int index)
Returns the child widget with the given index.
|
void |
onDragCancel()
Executed on drag cancel.
|
void |
onDrop(I_CmsDropTarget target)
Executed on drop.
|
void |
onStartDrag(I_CmsDropTarget target)
Executed on drag start.
|
void |
setId(java.lang.String id)
Sets the logical id, it is not the HTML id.
|
void |
truncate(java.lang.String textMetricsPrefix,
int widgetWidth)
Truncates long text and sets the original text to the title attribute.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElement
protected java.lang.String m_id
protected CmsFlowPanel m_panel
public CmsSimpleListItem()
public CmsSimpleListItem(CmsListItemWidget widget)
widget
- the widget to usepublic void add(com.google.gwt.user.client.ui.Widget w)
I_CmsListItem
add
在接口中 I_CmsListItem
w
- the widget to addI_CmsListItem.add(com.google.gwt.user.client.ui.Widget)
public com.google.gwt.dom.client.Element getDragHelper(I_CmsDropTarget target)
I_CmsDraggable
getDragHelper
在接口中 I_CmsDraggable
target
- the drop targetI_CmsDraggable.getDragHelper(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public java.lang.String getId()
I_CmsListItem
getId
在接口中 I_CmsDraggable
getId
在接口中 I_CmsListItem
I_CmsListItem.getId()
public I_CmsDropTarget getParentTarget()
I_CmsDraggable
null
if there is none.getParentTarget
在接口中 I_CmsDraggable
I_CmsDraggable.getParentTarget()
public com.google.gwt.dom.client.Element getPlaceholder(I_CmsDropTarget target)
I_CmsDraggable
getPlaceholder
在接口中 I_CmsDraggable
target
- the drop targetI_CmsDraggable.getPlaceholder(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public com.google.gwt.user.client.ui.Widget getWidget(int index)
index
- the indexpublic void onDragCancel()
I_CmsDraggable
onDragCancel
在接口中 I_CmsDraggable
I_CmsDraggable.onDragCancel()
public void onDrop(I_CmsDropTarget target)
I_CmsDraggable
onDrop
在接口中 I_CmsDraggable
target
- the drop targetI_CmsDraggable.onDrop(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public void onStartDrag(I_CmsDropTarget target)
I_CmsDraggable
onStartDrag
在接口中 I_CmsDraggable
target
- the current drop targetI_CmsDraggable.onStartDrag(org.opencms.gwt.client.dnd.I_CmsDropTarget)
public void setId(java.lang.String id)
I_CmsListItem
setId
在接口中 I_CmsListItem
id
- the id to setI_CmsListItem.setId(java.lang.String)
public void truncate(java.lang.String textMetricsPrefix, int widgetWidth)
I_CmsTruncable
truncate
在接口中 I_CmsTruncable
textMetricsPrefix
- the key identifying the text metrics to usewidgetWidth
- the width to use in pixelsI_CmsTruncable.truncate(java.lang.String, int)