|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.pogamut.shed.presenter.ShedMenuActionFactory
public class ShedMenuActionFactory
Factory that will provide various actions to the popup menu of the IPresenter
and thus to the IPresentedWidget.
| Constructor Summary | |
|---|---|
ShedMenuActionFactory()
|
|
| Method Summary | ||
|---|---|---|
static Action |
appendAction(ActionPattern actionPattern,
int index)
Add new action as a child of the AP. |
|
static Action |
appendChoiceAction(Competence competence)
Create action that will add new choice to the competence as the first choice. |
|
static Action |
appendChoiceAction(CompetenceElement choice)
Action that will add new choice right behind @choice. |
|
static Action |
appendDriveAction(DriveElement drive)
Create new drive and add it behind the specified drive. |
|
static Action |
appendSenseAction(CompetenceElement choice)
Append new sense as first trigger sense of @choice. |
|
static Action |
appendSenseAction(Sense sense)
Append a new sense at index one greater than is @sense. |
|
static Action |
changeActionPatternParameters(ActionPattern actionPattern)
Create action that will show dialog with parameters of AP and allows user to modify them. |
|
static Action |
changeCompetenceParameters(Competence competence)
Create action that will show dialog with parameters of Competence
and allows user to modify them. |
|
static Action |
createSenseAction(DriveElement drive)
Query for name of new sense and add it as a first trigger sense of the drive. |
|
static Action |
deleteAction(ActionPattern actionPattern,
TriggeredAction action)
|
|
static Action |
deleteActionPattern(ActionPattern actionPattern)
Create an action that will delete the action pattern. |
|
static Action |
deleteChoiceAction(CompetenceElement choice)
Delete specified choice. |
|
static Action |
deleteCompetence(Competence competence)
Create action to delete competence |
|
static Action |
deleteDriveAction(DriveElement drive)
Create menu action that will delete the passed drive. |
|
static
|
deleteNotPossible(T node)
When this action is invoken, it notifies user that it is not possible to delete the node. |
|
static Action |
deleteSenseAction(Sense sense)
Delete specified sense from its parent. |
|
static
|
goToSourceAction(PRIMITIVE_TYPE primitive)
Return action that when invoked finds class (from FQN aka name of primitive) and opens it in the editor. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShedMenuActionFactory()
| Method Detail |
|---|
public static <T extends PoshElement & INamedElement> Action deleteNotPossible(T node)
public static Action deleteCompetence(Competence competence)
competence - Competence to delete
public static Action deleteActionPattern(ActionPattern actionPattern)
actionPattern - Pattern to be deleted
public static Action createSenseAction(DriveElement drive)
drive -
public static <PRIMITIVE_TYPE extends PoshElement & INamedElement> Action goToSourceAction(PRIMITIVE_TYPE primitive)
PRIMITIVE_TYPE - primitive -
public static Action appendDriveAction(DriveElement drive)
drive -
public static Action deleteDriveAction(DriveElement drive)
drive - Drive to be deleted.
public static Action appendChoiceAction(Competence competence)
competence - Comepetence that will have new choice at index 0.
public static Action deleteChoiceAction(CompetenceElement choice)
choice - Choice to be deleted.
public static Action appendSenseAction(CompetenceElement choice)
choice - Choice that will have new first trigger sense.
public static Action deleteSenseAction(Sense sense)
sense - Sense to be deleted.
public static Action appendSenseAction(Sense sense)
sense - Sense used as an anchor for new sense.
public static Action appendChoiceAction(CompetenceElement choice)
choice - Anchor choice, the new choice will be appended right behind
this one
public static Action appendAction(ActionPattern actionPattern,
int index)
actionPattern - AP that will have new child.index - index at which to insert the action.
public static Action deleteAction(ActionPattern actionPattern,
TriggeredAction action)
public static Action changeActionPatternParameters(ActionPattern actionPattern)
actionPattern - AP which parameters will be subject to change.
public static Action changeCompetenceParameters(Competence competence)
Competence
and allows user to modify them.
actionPattern - AP which parameters will be subject to change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||