com.ebmwebsourcing.bpmndiagram.presentation.gwt.client.bpmn1.foundation
Class FlowNodeElement

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.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.AbsolutePanel
                      extended by com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement
                          extended by com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramComplexElement
                              extended by com.ebmwebsourcing.bpmndiagram.presentation.gwt.client.bpmn1.foundation.FlowNodeElement
All Implemented Interfaces:
HasNameHandlers, com.ebmwebsourcing.gwt.raphael.client.diagram.event.HasHideHandlers, com.ebmwebsourcing.gwt.raphael.client.diagram.event.HasShowHandlers, com.ebmwebsourcing.gwt.raphael.client.diagram.semantic.DiagramEntity, com.ebmwebsourcing.gwt.raphael.client.diagram.semantic.Selectable, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasContextMenuHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, 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.IndexedPanel, com.google.gwt.user.client.ui.InsertPanel, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
CommentElement, EndMessageElement, EndNoneElement, ExclusiveGatewayElement, InclusiveGatewayElement, IntermediateCatchingMessageElement, IntermediateEmptyElement, IntermediateThrowingMessageElement, ParallelGatewayElement, StartTopLevelConditionalElement, StartTopLevelMessageElement, StartTopLevelNoneElement, TaskElement

public abstract class FlowNodeElement
extends com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramComplexElement
implements com.ebmwebsourcing.gwt.raphael.client.diagram.semantic.Selectable, HasNameHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.dom.client.HasDoubleClickHandlers

Author:
nfleury

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
protected  com.ebmwebsourcing.gwt.raphael.client.diagram.connector.Connectable connectable
           
protected  com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement label
           
 
Fields inherited from class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement
context, diagramElementType, height, isLoaded, width, x, y
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
FlowNodeElement(com.ebmwebsourcing.gwt.raphael.client.core.SVGElement svgElement)
           
FlowNodeElement(com.ebmwebsourcing.gwt.raphael.client.core.SVGElement svgElement, com.ebmwebsourcing.gwt.raphael.client.diagram.type.DiagramElementType type)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addNameHandler(NameHandler handler)
           
 com.ebmwebsourcing.gwt.raphael.client.diagram.connector.Connectable getConnectable()
           
protected  ContextMenu getContextMenu()
           
 java.lang.String getLabel()
           
protected  PopupEditor<java.lang.String> getLabelEditor()
           
 LaneElement getParentLane()
           
 void isDeselected()
           
protected  boolean isInsideLabelElement(int x, int y)
           
 void isSelected()
           
 void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> arg0)
           
protected  void onLoad()
           
 void setLabel(java.lang.String label)
           
 void setParentLane(LaneElement parentLane)
           
protected  void setupContextMenu(ContextMenu menu)
           
 void setZIndex(int zIndex)
           
 void showNameEditor()
           
 
Methods inherited from class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramComplexElement
addComplexElementHandler, addDiagramElement, containsChild, getDiagramElementById, getDiagramElementChildren, hideSpecific, refreshSpecific, refreshSVGPosition, refreshSVGsize, remove, removeChild, showSpecific
 
Methods inherited from class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement
addContextMenuHandler, addDiagramElementListener, addDragListener, addDropListener, addHideHandler, addMouseListener, addMouseOutHandler, addMouseOverHandler, addResizableListener, addShowHandler, addSortableListerner, attachDefaultListeners, canBeResized, equals, fireOnDrag, fireOnDragStart, fireOnDragStop, getBackgroundColor, getBorderColor, getContext, getDefaultMouseListener, getDiagramElementType, getDiagramPanel, getDragListeners, getDropListeners, getHeight, getId, getJqueryObject, getMouseListeners, getOpacity, getParentElement, getResizableListerners, getSortableListerners, getSvgElement, getWidth, getX, getY, getZIndex, hashCode, hide, isDraggable, isDroppable, isLoaded, isResizable, isSortable, preferDeffered, refresh, removeAllDragListeners, removeAllDropListeners, removeAllMouseListeners, removeAllResizableListerners, removeAllSortableListeners, removeDiagramDragListener, restorInitialBorderAndBackGroundColor, setBackgroundColor, setBorderColor, setDefaultMouseListener, setDiagramPanel, setHeight, setOpacity, setParentElement, setWidth, setX, setY, show, toBack, toFront
 
Methods inherited from class com.google.gwt.user.client.ui.AbsolutePanel
add, add, getWidgetLeft, getWidgetTop, insert, insert, remove, setWidgetPosition, setWidgetPositionImpl
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, 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
 
Methods inherited from interface com.ebmwebsourcing.gwt.raphael.client.diagram.semantic.DiagramEntity
getId
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

label

protected com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement label

connectable

protected com.ebmwebsourcing.gwt.raphael.client.diagram.connector.Connectable connectable
Constructor Detail

FlowNodeElement

public FlowNodeElement(com.ebmwebsourcing.gwt.raphael.client.core.SVGElement svgElement,
                       com.ebmwebsourcing.gwt.raphael.client.diagram.type.DiagramElementType type)

FlowNodeElement

public FlowNodeElement(com.ebmwebsourcing.gwt.raphael.client.core.SVGElement svgElement)
Method Detail

getConnectable

public com.ebmwebsourcing.gwt.raphael.client.diagram.connector.Connectable getConnectable()

setupContextMenu

protected void setupContextMenu(ContextMenu menu)

getContextMenu

protected final ContextMenu getContextMenu()

getLabelEditor

protected PopupEditor<java.lang.String> getLabelEditor()

setLabel

public void setLabel(java.lang.String label)

getLabel

public java.lang.String getLabel()

setParentLane

public void setParentLane(LaneElement parentLane)

getParentLane

public LaneElement getParentLane()

isDeselected

public void isDeselected()
Specified by:
isDeselected in interface com.ebmwebsourcing.gwt.raphael.client.diagram.semantic.Selectable

isSelected

public void isSelected()
Specified by:
isSelected in interface com.ebmwebsourcing.gwt.raphael.client.diagram.semantic.Selectable

onLoad

protected void onLoad()
Overrides:
onLoad in class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramComplexElement

setZIndex

public void setZIndex(int zIndex)
Overrides:
setZIndex in class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramComplexElement

showNameEditor

public void showNameEditor()

addNameHandler

public com.google.gwt.event.shared.HandlerRegistration addNameHandler(NameHandler handler)
Specified by:
addNameHandler in interface HasNameHandlers

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
Overrides:
addClickHandler in class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement

isInsideLabelElement

protected boolean isInsideLabelElement(int x,
                                       int y)

onClose

public void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> arg0)
Specified by:
onClose in interface com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>

addDoubleClickHandler

public com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
Specified by:
addDoubleClickHandler in interface com.google.gwt.event.dom.client.HasDoubleClickHandlers
Overrides:
addDoubleClickHandler in class com.ebmwebsourcing.gwt.raphael.client.diagram.element.DiagramElement


Copyright © 2010 eBM WebSourcing. All Rights Reserved.