cz.cuni.pogamut.shed.widget.editor
Class ShedInplaceEditorFactory

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

public class ShedInplaceEditorFactory
extends Object

Factroy for creating various inplace editors. To use these editors in a 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.InplaceEditorProvider createActionEditorProvider(TriggeredAction action, ShedPresenter presenter, LapChain chain)
          Create inplace editor provider that can edit action, its argumenta passed by the action downwards.
static org.netbeans.api.visual.action.InplaceEditorProvider createActionPatternEditor(ActionPattern actionPattern, TriggeredAction referencingAction, LapChain chain)
          Create editor for action referencing action pattern.
static org.netbeans.api.visual.action.InplaceEditorProvider createCompetenceEditor(Competence competence, TriggeredAction referencingAction, LapChain chain)
          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.InplaceEditorProvider createSenseEditorProvider(Sense sense, ShedPresenter presenter, LapChain chain)
          Create inplace editor provider that can edit sense, its argumenta passed by the sense downwards, predicate and 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

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:

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:

createActionEditorProvider

public static org.netbeans.api.visual.action.InplaceEditorProvider createActionEditorProvider(TriggeredAction action,
                                                                                              ShedPresenter presenter,
                                                                                              LapChain chain)
Create inplace editor provider that can edit action, its argumenta passed by the action downwards.

Parameters:
action - Action that will be edited.
presenter - Used for getting list of parameters required by the
chain - Variable chain from root to the action, incl.
Returns:

createSenseEditorProvider

public static org.netbeans.api.visual.action.InplaceEditorProvider createSenseEditorProvider(Sense sense,
                                                                                             ShedPresenter presenter,
                                                                                             LapChain chain)
Create inplace editor provider that can edit sense, its argumenta passed by the sense downwards, predicate and value.

Parameters:
sense - Sense that will be edited.
presenter - Used for getting list of parameters required by the
chain - Chain to the sense, inclusive.
Returns:

createActionPatternEditor

public static org.netbeans.api.visual.action.InplaceEditorProvider createActionPatternEditor(ActionPattern actionPattern,
                                                                                             TriggeredAction referencingAction,
                                                                                             LapChain chain)
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.
chain - Chain for action pattern, inclusive.
Returns:
Created editor provider.

createCompetenceEditor

public static org.netbeans.api.visual.action.InplaceEditorProvider createCompetenceEditor(Competence competence,
                                                                                          TriggeredAction referencingAction,
                                                                                          LapChain chain)
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.
chain - Chain to competence, inclusive.
Returns:
Created editor provider.


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