|
||||||||||
| 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(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern,
int index)
Add new action as a child of the AP. |
|
static Action |
appendDriveAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
Create new drive and add it behind the specified drive. |
|
static Action |
appendChoiceAction(cz.cuni.amis.pogamut.sposh.elements.Competence competence)
Create action that will add new choice to the competence as the first choice. |
|
static Action |
appendChoiceAction(cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice)
Action that will add new choice right behind @choice. |
|
static Action |
appendSenseAction(cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice)
Append new sense as first trigger sense of @choice. |
|
static Action |
appendSenseAction(cz.cuni.amis.pogamut.sposh.elements.Sense sense)
Append a new sense at index one greater than is @sense. |
|
static Action |
createSenseAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
Query for name of new sense and add it as a first trigger sense of the drive. |
|
static Action |
deleteAction(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern,
cz.cuni.amis.pogamut.sposh.elements.TriggeredAction action)
|
|
static Action |
deleteActionPattern(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern)
Create an action that will delete the action pattern. |
|
static Action |
deleteCompetence(cz.cuni.amis.pogamut.sposh.elements.Competence competence)
Create action to delete competence |
|
static Action |
deleteDriveAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
Create menu action that will delete the passed drive. |
|
static Action |
deleteChoiceAction(cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice)
Delete specified choice. |
|
static
|
deleteNotPossible(T node)
When this action is invoken, it notifies user that it is not possible to delete the node. |
|
static Action |
deleteSenseAction(cz.cuni.amis.pogamut.sposh.elements.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. |
|
static Action |
changeActionPatternParameters(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern)
Create action that will show dialog with parameters of AP and allows user to modify them. |
|
static Action |
changeCompetenceParameters(cz.cuni.amis.pogamut.sposh.elements.Competence competence)
Create action that will show dialog with parameters of Competence
and allows user to modify them. |
|
| 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 cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.INamedElement> Action deleteNotPossible(T node)
public static Action deleteCompetence(cz.cuni.amis.pogamut.sposh.elements.Competence competence)
competence - Competence to delete
public static Action deleteActionPattern(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern)
actionPattern - Pattern to be deleted
public static Action createSenseAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
drive -
public static <PRIMITIVE_TYPE extends cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.INamedElement> Action goToSourceAction(PRIMITIVE_TYPE primitive)
PRIMITIVE_TYPE - primitive -
public static Action appendDriveAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
drive -
public static Action deleteDriveAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
drive - Drive to be deleted.
public static Action appendChoiceAction(cz.cuni.amis.pogamut.sposh.elements.Competence competence)
competence - Comepetence that will have new choice at index 0.
public static Action deleteChoiceAction(cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice)
choice - Choice to be deleted.
public static Action appendSenseAction(cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice)
choice - Choice that will have new first trigger sense.
public static Action deleteSenseAction(cz.cuni.amis.pogamut.sposh.elements.Sense sense)
sense - Sense to be deleted.
public static Action appendSenseAction(cz.cuni.amis.pogamut.sposh.elements.Sense sense)
sense - Sense used as an anchor for new sense.
public static Action appendChoiceAction(cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice)
choice - Anchor choice, the new choice will be appended right behind
this one
public static Action appendAction(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern,
int index)
actionPattern - AP that will have new child.index - index at which to insert the action.
public static Action deleteAction(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern,
cz.cuni.amis.pogamut.sposh.elements.TriggeredAction action)
public static Action changeActionPatternParameters(cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern)
actionPattern - AP which parameters will be subject to change.
public static Action changeCompetenceParameters(cz.cuni.amis.pogamut.sposh.elements.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 | |||||||||