com.ebmwebsourcing.geasytools.geasyui.impl.uipanel
Class SelectionMarker
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.AbsolutePanel
com.ebmwebsourcing.geasytools.geasyui.impl.uipanel.SelectionMarker
- All Implemented Interfaces:
- IPositionable, IDragHandler, IDraggableElement, ISelectionMarker, DragHandler, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, 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, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
public class SelectionMarker
- extends com.google.gwt.user.client.ui.AbsolutePanel
- implements ISelectionMarker, DragHandler, com.google.gwt.event.dom.client.HasClickHandlers
Graphical indicator when elements are selected Used as 'ui-proxy' for
dragging multiple elements.
- Author:
- nfleury
| 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.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel |
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
| Methods inherited from class com.google.gwt.user.client.ui.AbsolutePanel |
add, add, getWidgetLeft, getWidgetTop, insert, insert, insert, remove, setWidgetPosition, setWidgetPositionImpl |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
add |
| Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
getWidgetIndex |
| Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
getWidget, getWidgetCount, getWidgetIndex, remove |
SelectionMarker
public SelectionMarker(IUIPanel uipanel)
load
public void load()
getUIPanel
public IUIPanel getUIPanel()
- Specified by:
getUIPanel in interface IDraggableElement
getMouseState
public IMouseState getMouseState()
- Specified by:
getMouseState in interface IDraggableElement
getDraggableElementDefaultHandlers
public IDraggableElementDefaultHandlers getDraggableElementDefaultHandlers()
- Specified by:
getDraggableElementDefaultHandlers in interface IDraggableElement
addClickHandler
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
- Specified by:
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers
getRelativeX
public float getRelativeX()
- Description copied from interface:
IPositionable
- X position relatively to current container
- Specified by:
getRelativeX in interface IPositionable
- Returns:
getRelativeY
public float getRelativeY()
- Description copied from interface:
IPositionable
- Y position relatively to current container
- Specified by:
getRelativeY in interface IPositionable
- Returns:
setRelativeX
public void setRelativeX(float x)
- Specified by:
setRelativeX in interface IPositionable
setRelativeY
public void setRelativeY(float y)
- Specified by:
setRelativeY in interface IPositionable
addMouseDownHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
- Specified by:
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlers
addMouseUpHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
- Specified by:
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlers
addMouseOutHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
- Specified by:
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlers
addMouseOverHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
- Specified by:
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlers
addMouseMoveHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
- Specified by:
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers
addMouseWheelHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
- Specified by:
addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlers
getId
public java.lang.String getId()
- Specified by:
getId in interface IDraggableElement
getContainer
public IContainer getContainer()
- Specified by:
getContainer in interface IPositionable
setContainer
public void setContainer(IContainer container)
- Specified by:
setContainer in interface IPositionable
fireEvent
public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
- Specified by:
fireEvent in interface com.google.gwt.event.shared.HasHandlers- Overrides:
fireEvent in class com.google.gwt.user.client.ui.Widget
addDragHandler
public void addDragHandler(IDragHandler dragHandler)
- Specified by:
addDragHandler in interface IDraggableElement
getHandlerManager
public com.google.gwt.event.shared.HandlerManager getHandlerManager()
- Specified by:
getHandlerManager in interface IDraggableElement
onMove
public void onMove(IDragMoveEvent event)
- Specified by:
onMove in interface IDragHandler- Specified by:
onMove in interface DragHandler
onStart
public void onStart(IDragStartEvent event)
- Specified by:
onStart in interface IDragHandler- Specified by:
onStart in interface DragHandler
onStop
public void onStop(IDragStopEvent event)
- Specified by:
onStop in interface IDragHandler- Specified by:
onStop in interface DragHandler
getDraggedTypes
public java.util.HashSet<java.lang.Class<? extends IUIElement>> getDraggedTypes()
- Specified by:
getDraggedTypes in interface IDraggableElement
onAcceptedAfterDrop
public void onAcceptedAfterDrop(IAcceptedAfterDropEvent event)
- Description copied from interface:
IDragHandler
- Fired after drop and when current element is part of
acceptable elements of the concerned IDroppable
- Specified by:
onAcceptedAfterDrop in interface IDragHandler
onAcceptedBeforeDrop
public void onAcceptedBeforeDrop(IAcceptedBeforeDropEvent event)
- Description copied from interface:
IDragHandler
- Fired before drop and when current element is part of
acceptable elements of the concerned IDroppable
- Specified by:
onAcceptedBeforeDrop in interface IDragHandler
onRefusedAfterDrop
public void onRefusedAfterDrop(IRefusedAfterDropEvent event)
- Description copied from interface:
IDragHandler
- Fired after drop and when current element is not part of
acceptable elements of the concerned IDroppable
- Specified by:
onRefusedAfterDrop in interface IDragHandler
onRefusedBeforeDrop
public void onRefusedBeforeDrop(IRefusedBeforeDropEvent event)
- Description copied from interface:
IDragHandler
- Fired before drop and when current element is not part of
acceptable elements of the concerned IDroppable
- Specified by:
onRefusedBeforeDrop in interface IDragHandler
Copyright © 2010-2011 Petals Link. All Rights Reserved.