Package org.opencms.acacia.client.ui
Class CmsValuePanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
org.opencms.acacia.client.ui.CmsValuePanel
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.InsertPanel,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>,I_CmsDropTarget,I_CmsHasResizeOnShow
public class CmsValuePanel
extends com.google.gwt.user.client.ui.FlowPanel
implements I_CmsDropTarget, I_CmsHasResizeOnShow
The attribute values panel.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gwt.dom.client.ElementThe current place holder.protected intThe placeholder position index.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPosition(int x, int y, CmsDNDHandler.Orientation orientation) Returns true if the given cursor position is over the drop target.intReturns the index of the placeholder or -1 if no placeholder is attached.voidHighlights the outline of this panel.voidinsertPlaceholder(com.google.gwt.dom.client.Element placeholder, int x, int y, CmsDNDHandler.Orientation orientation) Inserts a new placeholder.voidonDrop(I_CmsDraggable draggable) Executed on drop.voidRemoves the highlighting border.voidRemoves the placeholder.voidrepositionPlaceholder(int x, int y, CmsDNDHandler.Orientation orientation) Repositions the placeholder.voidAdjusts widget's size once it's visible.voidUpdates the highlighting position if present.Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insertMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opencms.gwt.client.dnd.I_CmsDropTarget
getElementMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
m_placeholder
The current place holder. -
m_placeholderIndex
The placeholder position index.
-
-
Constructor Details
-
CmsValuePanel
public CmsValuePanel()Constructor.
-
-
Method Details
-
checkPosition
Description copied from interface:I_CmsDropTargetReturns true if the given cursor position is over the drop target.- Specified by:
checkPositionin interfaceI_CmsDropTarget- Parameters:
x- the cursor client x positiony- the cursor client y positionorientation- the drag and drop orientation- Returns:
trueif the given cursor position is over the drop target- See Also:
-
getPlaceholderIndex
Description copied from interface:I_CmsDropTargetReturns the index of the placeholder or -1 if no placeholder is attached.- Specified by:
getPlaceholderIndexin interfaceI_CmsDropTarget- Returns:
- the index
- See Also:
-
highlightOutline
Highlights the outline of this panel. -
insertPlaceholder
public void insertPlaceholder(com.google.gwt.dom.client.Element placeholder, int x, int y, CmsDNDHandler.Orientation orientation) Description copied from interface:I_CmsDropTargetInserts a new placeholder.- Specified by:
insertPlaceholderin interfaceI_CmsDropTarget- Parameters:
placeholder- the placeholder elementx- the cursor client x positiony- the cursor client y positionorientation- the drag and drop orientation- See Also:
-
onDrop
Description copied from interface:I_CmsDropTargetExecuted on drop.- Specified by:
onDropin interfaceI_CmsDropTarget- Parameters:
draggable- the draggable being dropped- See Also:
-
removeHighlighting
Removes the highlighting border. -
removePlaceholder
Description copied from interface:I_CmsDropTargetRemoves the placeholder.- Specified by:
removePlaceholderin interfaceI_CmsDropTarget- See Also:
-
repositionPlaceholder
Description copied from interface:I_CmsDropTargetRepositions the placeholder.- Specified by:
repositionPlaceholderin interfaceI_CmsDropTarget- Parameters:
x- the cursor client x positiony- the cursor client y positionorientation- the drag and drop orientation- See Also:
-
resizeOnShow
Description copied from interface:I_CmsHasResizeOnShowAdjusts widget's size once it's visible.- Specified by:
resizeOnShowin interfaceI_CmsHasResizeOnShow- See Also:
-
updateHighlightingPosition
Updates the highlighting position if present.
-