com.ebmwebsourcing.petalsbpm.bpmndiagram.common
Class CoreBPMNElement
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.selectable.Selectable
com.ebmwebsourcing.geasytools.geasyui.impl.draggable.Draggable
com.ebmwebsourcing.geasytools.geasyui.impl.droppable.DroppableDraggable
com.ebmwebsourcing.petalsbpm.bpmndiagram.common.CoreBPMNElement
- All Implemented Interfaces:
- com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView, com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement, com.ebmwebsourcing.geasytools.geasyui.api.core.IHasBoundsUpdateHandler, com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable, com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement, com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler, com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggable, com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggableElement, com.ebmwebsourcing.geasytools.geasyui.api.droppable.events.IDropHandler, com.ebmwebsourcing.geasytools.geasyui.api.droppable.IDroppable, com.ebmwebsourcing.geasytools.geasyui.api.droppable.IDroppableElement, com.ebmwebsourcing.geasytools.geasyui.api.selectable.ISelectable, com.ebmwebsourcing.geasytools.geasyui.impl.draggable.DragHandler, com.ebmwebsourcing.geasytools.geasyui.impl.droppable.DropHandler, IBPMNElement, com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstanceContentElement, 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.rpc.IsSerializable, com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
- CoreContainer, FlowElement
public abstract class CoreBPMNElement
- extends com.ebmwebsourcing.geasytools.geasyui.impl.droppable.DroppableDraggable
- implements IBPMNElement, com.ebmwebsourcing.geasytools.geasyui.impl.draggable.DragHandler, com.ebmwebsourcing.geasytools.geasyui.impl.droppable.DropHandler
Common type for every BPMN elements.
This element can be selected, dragged and other
draggable elements can be dropped on it.
- 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 |
|
Field Summary |
protected com.ebmwebsourcing.geasytools.diagrameditor.api.modeleditor.IEditorModel |
editorModel
|
protected com.ebmwebsourcing.geasytools.geasysvg.core.impl.Text |
label
|
| Fields inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement |
handlerManager |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
|
Method Summary |
void |
addBoundUpdateHandler(com.ebmwebsourcing.geasytools.geasyui.api.core.events.IBoundsUpdateHandler handler)
|
int |
getAbsoluteLeft()
|
int |
getAbsoluteTop()
|
ProcessPanel |
getDefinitionPanel()
|
com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagramElement |
getDiagramElement()
|
java.util.HashSet<java.lang.Class<? extends com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement>> |
getDraggedTypes()
|
com.ebmwebsourcing.geasytools.diagrameditor.api.modeleditor.IEditorView |
getEditorView()
|
com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate |
getFormTemplate()
|
com.ebmwebsourcing.geasytools.geasysvg.core.impl.Group |
getGroup()
|
float |
getHeight()
|
java.lang.String |
getId()
|
java.util.HashMap<com.ebmwebsourcing.geasytools.geasyui.api.core.Direction,com.ebmwebsourcing.geasytools.geasyui.impl.core.Point> |
getIntersectionPoints()
|
com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement |
getMainModel()
|
abstract com.ebmwebsourcing.geasytools.geasysvg.core.impl.SVGElement |
getMainShape()
Main shape represents the boundary of the current artifact |
com.google.gwt.user.client.ui.Widget |
getMainWidget()
|
float |
getRelativeX()
|
float |
getRelativeY()
|
java.util.HashSet<com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementGraphicState> |
getStates()
|
float |
getWidth()
|
void |
hide()
|
protected void |
init()
On initialization main shape is automatically added to
group |
void |
onAcceptedAfterDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IAcceptedAfterDropEvent event)
|
void |
onAcceptedBeforeDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IAcceptedBeforeDropEvent event)
|
void |
onMove(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragMoveEvent event)
|
void |
onRefusedAfterDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IRefusedAfterDropEvent event)
|
void |
onRefusedBeforeDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IRefusedBeforeDropEvent event)
|
void |
onStart(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragStartEvent event)
|
void |
onStop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragStopEvent event)
|
abstract void |
refresh()
|
void |
removeFromParent()
|
void |
setEditorView(com.ebmwebsourcing.geasytools.diagrameditor.api.modeleditor.IEditorView editorView)
|
void |
setFormTemplate(com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate formTemplate)
|
void |
setHeight(float height)
|
void |
setLabel(java.lang.String text)
|
void |
setRelativeX(float x)
|
void |
setRelativeY(float y)
|
void |
setWidth(float width)
|
void |
show()
|
void |
toBack()
|
void |
toFront()
|
| Methods inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.droppable.DroppableDraggable |
addDropHandler, getDDManager, getDroppableDefaultHandlers, getNorthWestPoint, getSouthEastPoint |
| Methods inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.draggable.Draggable |
addDoubleClickHandler, addDragHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseWheelHandler, getDraggableElementDefaultHandlers |
| Methods inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.selectable.Selectable |
addClickHandler, addMouseDownHandler, addMouseUpHandler, addSelectionHandler, getSelectableDefaultHandlers |
| Methods inherited from class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement |
equals, fireEvent, getContainer, getHandlerManager, getMouseState, getUIPanel, hashCode, onAttach, setContainer, setUIPanel |
| 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 |
| Methods inherited from interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView |
getConformityRules, getEditorModel, getSyntaxModelBinder |
| Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement |
getContainer, getMouseState, getName, getUIPanel, setContainer, setUIPanel |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
| Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.impl.droppable.DropHandler |
onDropAccepted, onDropRefused, onOut, onOver |
| Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.droppable.IDroppableElement |
getAcceptedTypes, getHandlerManager, getUIPanel |
| Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.selectable.ISelectable |
addSelectionHandler, getHandlerManager, getSelectableDefaultHandlers |
| Methods inherited from interface com.google.gwt.event.dom.client.HasClickHandlers |
addClickHandler |
| Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggableElement |
getHandlerManager, getMouseState, getUIPanel |
| Methods inherited from interface com.google.gwt.event.dom.client.HasMouseDownHandlers |
addMouseDownHandler |
| Methods inherited from interface com.google.gwt.event.dom.client.HasMouseUpHandlers |
addMouseUpHandler |
label
protected com.ebmwebsourcing.geasytools.geasysvg.core.impl.Text label
editorModel
protected com.ebmwebsourcing.geasytools.diagrameditor.api.modeleditor.IEditorModel editorModel
CoreBPMNElement
public CoreBPMNElement(ProcessPanel definitionPanel,
java.lang.String id)
addBoundUpdateHandler
public void addBoundUpdateHandler(com.ebmwebsourcing.geasytools.geasyui.api.core.events.IBoundsUpdateHandler handler)
- Specified by:
addBoundUpdateHandler in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IHasBoundsUpdateHandler
removeFromParent
public void removeFromParent()
- Overrides:
removeFromParent in class com.google.gwt.user.client.ui.Widget
setLabel
public void setLabel(java.lang.String text)
getEditorView
public com.ebmwebsourcing.geasytools.diagrameditor.api.modeleditor.IEditorView getEditorView()
- Specified by:
getEditorView in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
setEditorView
public void setEditorView(com.ebmwebsourcing.geasytools.diagrameditor.api.modeleditor.IEditorView editorView)
- Specified by:
setEditorView in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
getDiagramElement
public com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagramElement getDiagramElement()
- Specified by:
getDiagramElement in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
getStates
public java.util.HashSet<com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementGraphicState> getStates()
- Specified by:
getStates in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
init
protected void init()
- On initialization main shape is automatically added to
group
getDefinitionPanel
public ProcessPanel getDefinitionPanel()
getGroup
public com.ebmwebsourcing.geasytools.geasysvg.core.impl.Group getGroup()
getMainWidget
public com.google.gwt.user.client.ui.Widget getMainWidget()
- Specified by:
getMainWidget in class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
getMainShape
public abstract com.ebmwebsourcing.geasytools.geasysvg.core.impl.SVGElement getMainShape()
- Main shape represents the boundary of the current artifact
- Returns:
refresh
public abstract void refresh()
- Specified by:
refresh in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
getHeight
public float getHeight()
- Specified by:
getHeight in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
getWidth
public float getWidth()
- Specified by:
getWidth in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
getId
public java.lang.String getId()
- Specified by:
getId in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement- Specified by:
getId in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggableElement- Specified by:
getId in interface com.ebmwebsourcing.geasytools.geasyui.api.droppable.IDroppableElement- Overrides:
getId in class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
getIntersectionPoints
public java.util.HashMap<com.ebmwebsourcing.geasytools.geasyui.api.core.Direction,com.ebmwebsourcing.geasytools.geasyui.impl.core.Point> getIntersectionPoints()
- Specified by:
getIntersectionPoints in interface com.ebmwebsourcing.geasytools.geasyui.api.selectable.ISelectable
getRelativeX
public float getRelativeX()
- Specified by:
getRelativeX in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable- Specified by:
getRelativeX in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement- Overrides:
getRelativeX in class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
getRelativeY
public float getRelativeY()
- Specified by:
getRelativeY in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable- Specified by:
getRelativeY in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement- Overrides:
getRelativeY in class com.ebmwebsourcing.geasytools.geasyui.impl.core.UIElement
getAbsoluteLeft
public int getAbsoluteLeft()
- Specified by:
getAbsoluteLeft in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable- Overrides:
getAbsoluteLeft in class com.google.gwt.user.client.ui.UIObject
getAbsoluteTop
public int getAbsoluteTop()
- Specified by:
getAbsoluteTop in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable- Overrides:
getAbsoluteTop in class com.google.gwt.user.client.ui.UIObject
setHeight
public void setHeight(float height)
- Specified by:
setHeight in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
setRelativeX
public void setRelativeX(float x)
- Specified by:
setRelativeX in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable- Specified by:
setRelativeX in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
setRelativeY
public void setRelativeY(float y)
- Specified by:
setRelativeY in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable- Specified by:
setRelativeY in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
setWidth
public void setWidth(float width)
- Specified by:
setWidth in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
getDraggedTypes
public java.util.HashSet<java.lang.Class<? extends com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement>> getDraggedTypes()
- Specified by:
getDraggedTypes in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.IDraggableElement
onAcceptedAfterDrop
public void onAcceptedAfterDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IAcceptedAfterDropEvent event)
- Specified by:
onAcceptedAfterDrop in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler
onAcceptedBeforeDrop
public void onAcceptedBeforeDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IAcceptedBeforeDropEvent event)
- Specified by:
onAcceptedBeforeDrop in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler
onRefusedAfterDrop
public void onRefusedAfterDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IRefusedAfterDropEvent event)
- Specified by:
onRefusedAfterDrop in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler
onRefusedBeforeDrop
public void onRefusedBeforeDrop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IRefusedBeforeDropEvent event)
- Specified by:
onRefusedBeforeDrop in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler
onMove
public void onMove(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragMoveEvent event)
- Specified by:
onMove in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler- Specified by:
onMove in interface com.ebmwebsourcing.geasytools.geasyui.impl.draggable.DragHandler
onStart
public void onStart(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragStartEvent event)
- Specified by:
onStart in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler- Specified by:
onStart in interface com.ebmwebsourcing.geasytools.geasyui.impl.draggable.DragHandler
onStop
public void onStop(com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragStopEvent event)
- Specified by:
onStop in interface com.ebmwebsourcing.geasytools.geasyui.api.draggable.events.IDragHandler- Specified by:
onStop in interface com.ebmwebsourcing.geasytools.geasyui.impl.draggable.DragHandler
hide
public void hide()
- Specified by:
hide in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
show
public void show()
- Specified by:
show in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
toBack
public void toBack()
- Specified by:
toBack in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
toFront
public void toFront()
- Specified by:
toFront in interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
getMainModel
public com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement getMainModel()
- Specified by:
getMainModel in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
setFormTemplate
public void setFormTemplate(com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate formTemplate)
- Specified by:
setFormTemplate in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
getFormTemplate
public com.ebmwebsourcing.geasytools.modeleditor.modelmanager.client.uibinder.AbstractUITemplate getFormTemplate()
- Specified by:
getFormTemplate in interface com.ebmwebsourcing.geasytools.diagrameditor.api.graphic.IDiagramElementView
Copyright © 2010-2011 eBM WebSourcing. All Rights Reserved.