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

java.lang.Objectcz.cuni.pogamut.shed.presenter.ShedPresenterFactory
public class ShedPresenterFactory
Factory that is creating various presenters used in the Shed visual view.
| Constructor Summary | |
|---|---|
ShedPresenterFactory(ShedScene scene,
PoshPlan plan,
ShedPresenter presenter)
|
|
| Method Summary | ||
|---|---|---|
IPresenter |
createActionPatternPresenter(LapPath actionPatternPath,
ShedWidget actionPatternWidget)
Create presenter for action pattern widget. |
|
IPresenter |
createActionPresenter(LapPath actionPath,
ShedWidget actionWidget)
Create presenter for primitive action. |
|
IPresenter |
createActionsPresenter(LapPath actionPatternPath,
ShedActionsEnvelope actionsEnvelope)
Create presenter that will take care about keeping adding/moving/removing expanded actions in the ShedActionsEnvelope for ActionPattern. |
|
IPresenter |
createCompetencePresenter(LapPath competencePath,
ShedWidget competenceWidget)
Create presenter for competence widget. |
|
IPresenter |
createDriveCollectionPresenter(LapPath driveCollectionPath)
Create presenter for drive collection, responsible for keeping track of added/moved/removed drives. |
|
IPresenter |
createDrivePresenter(LapPath drivePath,
ShedWidget widget)
Create presenter for drive widget. |
|
IPresenter |
createExpandedActionPresenter(LapPath actionPath,
ExpandedActionEnvelope envelope)
Create presenter for expanded action, i.e. the whole expanded structure that can happen from unknown reference. |
|
IPresenter |
createChoicePresenter(LapPath choicePath,
ShedWidget choiceWidget)
Create presenter for choice widget, only the widget, not its trigger nor action. |
|
IPresenter |
createChoicesPresenter(LapPath competencePath,
ShedChoicesEnvelope choicesEnvelope)
Create presenter responsible for adding, moving and removing choices widgets
in the ShedChoicesEnvelope. |
|
IPresenter |
createSensePresenter(LapPath sensePath,
ShedSenseWidget senseWidget)
Create presenter for sense at @sensePath that will present the sense in the @senseWidget. |
|
|
createTriggerPresenter(LapPath triggerOwner,
ShedTriggerEnvelope triggerEnvelope)
Create presenter for trigger, it is responsible for keepeing track of added/moved/removed senses. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShedPresenterFactory(ShedScene scene,
PoshPlan plan,
ShedPresenter presenter)
| Method Detail |
|---|
public IPresenter createActionPresenter(LapPath actionPath,
ShedWidget actionWidget)
IPresenterFactory
createActionPresenter in interface IPresenterFactoryactionPath - Path to the action in the plan, ends with ../A:?.actionWidget - The widget that represents the @action in the scene.
public IPresenter createExpandedActionPresenter(LapPath actionPath,
ExpandedActionEnvelope envelope)
IPresenterFactoryExpandedActionEnvelope
is container for one widget: AttachmentEnvelope — the
widget that really contains expanded action.
When action reference changes its name, the whole AttachmentEnvelope
in the ExpandedActionEnvelope is removed and replaced with new
one.
createExpandedActionPresenter in interface IPresenterFactoryactionPath - Path to the @action.envelope - Envelope that contains expanded action in the scene
public IPresenter createSensePresenter(LapPath sensePath,
ShedSenseWidget senseWidget)
IPresenterFactory
createSensePresenter in interface IPresenterFactorysensePath - Path to the sense in the plan we want to present.senseWidget - Widget that represents the sense in the scene.
public <TRIGGER_PARENT extends PoshElement> IPresenter createTriggerPresenter(LapPath triggerOwner,
ShedTriggerEnvelope triggerEnvelope)
IPresenterFactory
createTriggerPresenter in interface IPresenterFactoryTRIGGER_PARENT - Owner of the trigger, e.g. for a trigger of a
drive, the drive would be the owner.triggerOwner - Path to the node the trigger belongs to.triggerEnvelope - Envelope representing the trigger in the scene.
public IPresenter createDriveCollectionPresenter(LapPath driveCollectionPath)
IPresenterFactory
createDriveCollectionPresenter in interface IPresenterFactorydriveCollectionPath - Path to the DC
public IPresenter createActionPatternPresenter(LapPath actionPatternPath,
ShedWidget actionPatternWidget)
IPresenterFactory
createActionPatternPresenter in interface IPresenterFactoryactionPatternPath - Path to the action pattern, path ends with
../A:?/AP:?actionPatternWidget - Widget representing the AP.
public IPresenter createCompetencePresenter(LapPath competencePath,
ShedWidget competenceWidget)
IPresenterFactory
createCompetencePresenter in interface IPresenterFactorycompetencePath - Path to the competence, path ends with
../A:?/C:?competenceWidget - Widget representing the competence in the scene.
public IPresenter createChoicePresenter(LapPath choicePath,
ShedWidget choiceWidget)
IPresenterFactory
createChoicePresenter in interface IPresenterFactorychoicePath - Path to the choice, it will end with
../A:?/C:?/CE:?choiceWidget - Widget representing the choice in the scene.
public IPresenter createDrivePresenter(LapPath drivePath,
ShedWidget widget)
IPresenterFactory
createDrivePresenter in interface IPresenterFactorydrivePath - Path to drive, ../DE:?widget - Widget representing the drive in the scene.
public IPresenter createActionsPresenter(LapPath actionPatternPath,
ShedActionsEnvelope actionsEnvelope)
IPresenterFactoryShedActionsEnvelope for ActionPattern.
createActionsPresenter in interface IPresenterFactoryactionPatternPath - Path to the action pattern, ends with
../AP:?.actionsEnvelope - Envelope that contains representations of the
actions.
public IPresenter createChoicesPresenter(LapPath competencePath,
ShedChoicesEnvelope choicesEnvelope)
IPresenterFactorychoices widgets
in the ShedChoicesEnvelope.
createChoicesPresenter in interface IPresenterFactorycompetencePath - Path to the competence whose choices are managed.
Ends with ../A:?/C:?.choicesEnvelope - Envelope containing the representations of
presented choices.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||