com.ebmwebsourcing.geasytools.geasyui.impl.connectable
Class Magnet

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Magnet
All Implemented Interfaces:
IMagnet, IPositionable, IDropHandler, IDroppableElement, DropHandler, 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.IsWidget

public abstract class Magnet
extends com.google.gwt.user.client.ui.Composite
implements IMagnet, DropHandler


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.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Magnet(IConnectableElement connectable)
           
 
Method Summary
 void addConnectorPoint(IConnectorPoint connectorPoint)
           
 void addDropHandler(IDropHandler dropHandler)
           
 void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
           
 java.util.HashSet<java.lang.Class<? extends IDraggableElement>> getAcceptedTypes()
           
 IConnectableElement getConnectableElement()
           
 java.util.HashSet<IConnectorPoint> getConnectorPoints()
           
 IContainer getContainer()
           
 IDDManager getDDManager()
           
 IDroppableDefaultHandlers getDroppableDefaultHandlers()
           
 com.google.gwt.event.shared.HandlerManager getHandlerManager()
           
 java.lang.String getId()
           
 float getRelativeX()
          X position relatively to current container
 float getRelativeY()
          Y position relatively to current container
 IUIPanel getUIPanel()
           
 void onDropAccepted(IDropAcceptedEvent event)
           
 void onDropRefused(IDropRefusedEvent event)
           
 void onOut(IOutEvent event)
           
 void onOver(IOverEvent event)
           
 void removeConnectorPoint(IConnectorPoint connectorPoint)
           
 void setContainer(IContainer container)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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.ebmwebsourcing.geasytools.geasyui.api.droppable.IDroppableElement
getNorthWestPoint, getSouthEastPoint
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
getAbsoluteLeft, getAbsoluteTop, setRelativeX, setRelativeY
 

Constructor Detail

Magnet

public Magnet(IConnectableElement connectable)
Method Detail

getContainer

public IContainer getContainer()
Specified by:
getContainer in interface IPositionable

setContainer

public void setContainer(IContainer container)
Specified by:
setContainer in interface IPositionable

getConnectableElement

public IConnectableElement getConnectableElement()
Specified by:
getConnectableElement in interface IMagnet

addDropHandler

public void addDropHandler(IDropHandler dropHandler)
Specified by:
addDropHandler in interface IDroppableElement

getAcceptedTypes

public java.util.HashSet<java.lang.Class<? extends IDraggableElement>> getAcceptedTypes()
Specified by:
getAcceptedTypes in interface IDroppableElement

getDroppableDefaultHandlers

public IDroppableDefaultHandlers getDroppableDefaultHandlers()
Specified by:
getDroppableDefaultHandlers in interface IDroppableElement

getHandlerManager

public com.google.gwt.event.shared.HandlerManager getHandlerManager()
Specified by:
getHandlerManager in interface IDroppableElement

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

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:

getDDManager

public IDDManager getDDManager()
Specified by:
getDDManager in interface IDroppableElement

getId

public java.lang.String getId()
Specified by:
getId in interface IDroppableElement

getUIPanel

public IUIPanel getUIPanel()
Specified by:
getUIPanel in interface IDroppableElement

onDropAccepted

public void onDropAccepted(IDropAcceptedEvent event)
Specified by:
onDropAccepted in interface IDropHandler
Specified by:
onDropAccepted in interface DropHandler

onDropRefused

public void onDropRefused(IDropRefusedEvent event)
Specified by:
onDropRefused in interface IDropHandler
Specified by:
onDropRefused in interface DropHandler

onOut

public void onOut(IOutEvent event)
Specified by:
onOut in interface IDropHandler
Specified by:
onOut in interface DropHandler

onOver

public void onOver(IOverEvent event)
Specified by:
onOver in interface IDropHandler
Specified by:
onOver in interface DropHandler

getConnectorPoints

public java.util.HashSet<IConnectorPoint> getConnectorPoints()
Specified by:
getConnectorPoints in interface IMagnet

addConnectorPoint

public void addConnectorPoint(IConnectorPoint connectorPoint)
Specified by:
addConnectorPoint in interface IMagnet

removeConnectorPoint

public void removeConnectorPoint(IConnectorPoint connectorPoint)
Specified by:
removeConnectorPoint in interface IMagnet


Copyright © 2010-2011 Petals Link. All Rights Reserved.