cz.cuni.pogamut.shed.presenter
Class ShedInplaceEditorFactory

Package class diagram package ShedInplaceEditorFactory
java.lang.Object
  extended by cz.cuni.pogamut.shed.presenter.ShedInplaceEditorFactory

public class ShedInplaceEditorFactory
extends Object

Factroy for creating various inplace editors. To use these editors in the widget, you must add them to the action chain of a widget using ActionFactory#createInplaceEditorAction(org.netbeans.api.visual.action.TextFieldInplaceEditor) .

Author:
Honza

Constructor Summary
ShedInplaceEditorFactory()
           
 
Method Summary
static org.netbeans.api.visual.action.TextFieldInplaceEditor createActionEditor(TriggeredAction action)
          Create editor that will edit the name of the @action.
static org.netbeans.api.visual.action.InplaceEditorProvider createActionPatternEditor(ActionPattern actionPattern, TriggeredAction referencingAction)
          Create editor for action referencing action pattern.
static org.netbeans.api.visual.action.InplaceEditorProvider createCompetenceEditor(Competence competence, TriggeredAction referencingAction)
          Create inplace editor for action referencing competence.
static org.netbeans.api.visual.action.TextFieldInplaceEditor createDriveEditor(DriveElement drive)
          Create editor that will edit the name of the @drive.
static org.netbeans.api.visual.action.TextFieldInplaceEditor createChoiceEditor(CompetenceElement choice)
          Create editor that will edit the name of the @choice.
static org.netbeans.api.visual.action.TextFieldInplaceEditor createSenseEditor(Sense sense)
          Create editor that will edit the @sense, its name, predicate and compared value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShedInplaceEditorFactory

public ShedInplaceEditorFactory()
Method Detail

createSenseEditor

public static org.netbeans.api.visual.action.TextFieldInplaceEditor createSenseEditor(Sense sense)
Create editor that will edit the @sense, its name, predicate and compared value.

Parameters:
sense - Sense that will have its name changed.
Returns:

createDriveEditor

public static org.netbeans.api.visual.action.TextFieldInplaceEditor createDriveEditor(DriveElement drive)
Create editor that will edit the name of the @drive.

Parameters:
drive - Drive that will have its name changed.
Returns:

createActionEditor

public static org.netbeans.api.visual.action.TextFieldInplaceEditor createActionEditor(TriggeredAction action)
Create editor that will edit the name of the @action.

Parameters:
action - Action that will have its name changed.
Returns:

createChoiceEditor

public static org.netbeans.api.visual.action.TextFieldInplaceEditor createChoiceEditor(CompetenceElement choice)
Create editor that will edit the name of the @choice.

Parameters:
choice - CompetenceElement that will have its name changed.
Returns:

createActionPatternEditor

public static org.netbeans.api.visual.action.InplaceEditorProvider createActionPatternEditor(ActionPattern actionPattern,
                                                                                             TriggeredAction referencingAction)
Create editor for action referencing action pattern. The editor can rename the AP, add/remove parameters to the AP and add/remove arguments passed by the action to the AP.

Parameters:
actionPattern - Action pattern that is referenced by the action.
referencingAction - action that is referencing the AP.
Returns:
Created editor provider.

createCompetenceEditor

public static org.netbeans.api.visual.action.InplaceEditorProvider createCompetenceEditor(Competence competence,
                                                                                          TriggeredAction referencingAction)
Create inplace editor for action referencing competence. The editor can rename the competence, add/remove parameters of the competence and add/remove arguments passed by the action to the competence.

Parameters:
competence - Competence that is referenced by the action.
referencingAction - action that is referencing the competence.
Returns:
Created editor provider.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.