net.kwfgrid.gwui.gui
Class AbstractWorkflowElementEditor

java.lang.Object
  extended by net.kwfgrid.gwui.gui.AbstractWorkflowElementView
      extended by net.kwfgrid.gwui.gui.AbstractWorkflowElementEditor
All Implemented Interfaces:
java.util.EventListener, net.kwfgrid.gworkflowdl.protocol.structure.IStructureListener, GUIMethodCallTask.Callback, Visible
Direct Known Subclasses:
AbstractTransitionEdgeEditor, DescriptionEditor, NullClassOperationEditor, NullOperationEditor, OperationCandidateEditor, OperationEditor, OperationObjectEditor, PlaceTokenClassEditor, PlaceTokenEditor, PropertiesEditor, TransitionConditionEditor, WorkflowElementEditorContainer

public abstract class AbstractWorkflowElementEditor
extends AbstractWorkflowElementView
implements GUIMethodCallTask.Callback

Abstract super class for an editor of a workflow element.


Constructor Summary
protected AbstractWorkflowElementEditor(Executor executor, net.kwfgrid.gworkflowdl.protocol.structure.ProtocolWorkflow workflow, net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject element)
          Constructor.
 
Method Summary
protected  Executor getExecutor()
          Get the executor for method calls on the document edited by this editor.
 boolean isEditable()
           
 boolean isPerformingTask()
          Check if a task which has been initiated by this view is currently performed.
 void notifyTaskFailed()
           
 void notifyTaskFinished()
           
 void setEditable(boolean editable)
          Set if this view is editable.
 void setPerformingTask(boolean performing)
          Set if a task which has been initiated by this view is currently performed.
 
Methods inherited from class net.kwfgrid.gwui.gui.AbstractWorkflowElementView
createBorder, dispose, getElement, getWorkflow, isEnabled, objectsAdded, objectsRemoved, propertyChanged, setEnabled, updateState, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassbox.gui.Visible
getView
 

Constructor Detail

AbstractWorkflowElementEditor

protected AbstractWorkflowElementEditor(Executor executor,
                                        net.kwfgrid.gworkflowdl.protocol.structure.ProtocolWorkflow workflow,
                                        net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject element)
Constructor.

Parameters:
exeuctor - The exeuctor to run method calls.
workflow - The edited workflow.
element - The edited element, an object in the workflow structure.
Method Detail

getExecutor

protected Executor getExecutor()
Get the executor for method calls on the document edited by this editor.


setPerformingTask

public void setPerformingTask(boolean performing)
Set if a task which has been initiated by this view is currently performed. Calls updateState() after changing the performing-task state.


isPerformingTask

public boolean isPerformingTask()
Check if a task which has been initiated by this view is currently performed.


setEditable

public void setEditable(boolean editable)
Set if this view is editable. Calls updateState() after changing the editable state.


isEditable

public boolean isEditable()

notifyTaskFinished

public void notifyTaskFinished()
Specified by:
notifyTaskFinished in interface GUIMethodCallTask.Callback

notifyTaskFailed

public void notifyTaskFailed()
Specified by:
notifyTaskFailed in interface GUIMethodCallTask.Callback


Copyright © 2005-2010 The K-Wf Grid Consortium. All Rights Reserved.