com.ebmwebsourcing.geasytools.geasyui.impl.connectable
Class Connector
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
com.ebmwebsourcing.geasytools.geasyui.impl.connectable.Connector
- All Implemented Interfaces:
- IConnector, IGraphicElement, IPositionable, IUIElement, IDraggable, IDraggableElement, ISelectable, 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.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
public abstract class Connector
- extends UIElement
- implements IConnector
| 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 |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
getWidget, initWidget, isAttached, 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, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Connector
public Connector(IUIPanel uipanel,
java.lang.String id)
Connector
public Connector(IUIPanel uipanel,
java.lang.String id,
IConnectableElement source,
IConnectableElement target)
getAllConnectorPoints
public java.util.LinkedHashSet<IConnectorPoint> getAllConnectorPoints()
- Specified by:
getAllConnectorPoints in interface IConnector
addConnectorHandler
public void addConnectorHandler(IConnectorHandler connectorHandler)
- Specified by:
addConnectorHandler in interface IConnector
addIntermediateConnectorPoint
public void addIntermediateConnectorPoint(IConnectorPoint point,
IConnectorPoint previousPoint,
IConnectorPoint nextPoint)
- Specified by:
addIntermediateConnectorPoint in interface IConnector
removeIntermediateConnectorPoint
public void removeIntermediateConnectorPoint(IConnectorPoint point)
- Specified by:
removeIntermediateConnectorPoint in interface IConnector
connect
public void connect(IConnectableElement source,
IConnectableElement target)
- Specified by:
connect in interface IConnector
removeFromParent
public void removeFromParent()
- Overrides:
removeFromParent in class com.google.gwt.user.client.ui.Widget
getGraph
public com.ebmwebsourcing.geasytools.geasygraph.api.IGraph getGraph()
- Specified by:
getGraph in interface IConnector
getId
public java.lang.String getId()
- Specified by:
getId in interface IConnector- Specified by:
getId in interface IUIElement- Specified by:
getId in interface IDraggableElement- Overrides:
getId in class UIElement
getSource
public IConnectableElement getSource()
- Specified by:
getSource in interface IConnector
setSource
public void setSource(IConnectableElement source)
- Specified by:
setSource in interface IConnector
setTarget
public void setTarget(IConnectableElement target)
- Specified by:
setTarget in interface IConnector
getTarget
public IConnectableElement getTarget()
- Specified by:
getTarget in interface IConnector
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 UIElement
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
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
addSelectionHandler
public void addSelectionHandler(ISelectionHandler handler)
- Specified by:
addSelectionHandler in interface ISelectable
getHandlerManager
public com.google.gwt.event.shared.HandlerManager getHandlerManager()
- Specified by:
getHandlerManager in interface IDraggableElement- Specified by:
getHandlerManager in interface ISelectable- Overrides:
getHandlerManager in class UIElement
getSelectableDefaultHandlers
public ISelectableDefaultHandlers getSelectableDefaultHandlers()
- Specified by:
getSelectableDefaultHandlers in interface ISelectable
refresh
public void refresh()
- Specified by:
refresh in interface IConnector- Specified by:
refresh in interface IGraphicElement
getMouseState
public IMouseState getMouseState()
- Specified by:
getMouseState in interface IUIElement- Specified by:
getMouseState in interface IDraggableElement- Overrides:
getMouseState in class UIElement
getRelativeX
public float getRelativeX()
- Description copied from interface:
IPositionable
- X position relatively to current container
- Specified by:
getRelativeX in interface IPositionable- Specified by:
getRelativeX in interface IUIElement- Overrides:
getRelativeX in class UIElement
- Returns:
getRelativeY
public float getRelativeY()
- Description copied from interface:
IPositionable
- Y position relatively to current container
- Specified by:
getRelativeY in interface IPositionable- Specified by:
getRelativeY in interface IUIElement- Overrides:
getRelativeY in class UIElement
- Returns:
getWidth
public float getWidth()
- Specified by:
getWidth in interface IUIElement
getHeight
public float getHeight()
- Specified by:
getHeight in interface IUIElement
setContainer
public void setContainer(IContainer container)
- Description copied from interface:
IUIElement
- The container is the element from with current
element cannot be taken off. This value can never be null.
Default value is always
IUIPanel
- Specified by:
setContainer in interface IPositionable- Specified by:
setContainer in interface IUIElement- Overrides:
setContainer in class UIElement
getContainer
public IContainer getContainer()
- Specified by:
getContainer in interface IPositionable- Specified by:
getContainer in interface IUIElement- Overrides:
getContainer in class UIElement
getNWPoint
protected Point getNWPoint()
getSEPoint
protected Point getSEPoint()
setWidth
public void setWidth(float width)
- Specified by:
setWidth in interface IUIElement
addDragHandler
public void addDragHandler(IDragHandler dragHandler)
- Specified by:
addDragHandler in interface IDraggableElement
getDraggableElementDefaultHandlers
public IDraggableElementDefaultHandlers getDraggableElementDefaultHandlers()
- Specified by:
getDraggableElementDefaultHandlers in interface IDraggableElement
getDraggedTypes
public java.util.HashSet<java.lang.Class<? extends IUIElement>> getDraggedTypes()
- Specified by:
getDraggedTypes in interface IDraggableElement
getAbsoluteLeft
public abstract int getAbsoluteLeft()
- Specified by:
getAbsoluteLeft in interface IPositionable- Overrides:
getAbsoluteLeft in class com.google.gwt.user.client.ui.UIObject
getAbsoluteTop
public abstract int getAbsoluteTop()
- Specified by:
getAbsoluteTop in interface IPositionable- Overrides:
getAbsoluteTop in class com.google.gwt.user.client.ui.UIObject
Copyright © 2010-2011 Petals Link. All Rights Reserved.