cz.cuni.pogamut.shed.presenter
Interface IPresenterFactory

Package class diagram package IPresenterFactory
All Known Implementing Classes:
ShedPresenterFactory

public interface IPresenterFactory

Interface for presenters of widgets. Presenters are responsible for displaying changes of posh elements into the widgets. TODO: Once done with paths + checked, remove obsolete chain and eleemnts parameters. Be careful when implementing the presenters, you can't store LapPath in them, because stuff can move around.

Author:
Honza

Method Summary
 IPresenter createActionPatternPresenter(LapPath actionPatternPath, TriggeredAction referencingAction, ActionPattern actionPattern, ShedVariableWidget actionPatternWidget, LapChain chain)
          Create presenter for action pattern widget.
 IPresenter createActionPresenter(LapPath actionPath, TriggeredAction action, ShedVariableWidget actionWidget, LapChain actionChain)
          Create presenter for primitive action.
 IPresenter createActionsPresenter(LapPath actionPatternPath, ActionPattern actionPattern, ShedActionsEnvelope actionsEnvelope, LapChain actionPatternChainchain)
          Create presenter that will take care about keeping adding/moving/removing expanded actions in the ShedActionsEnvelope for ActionPattern.
 IPresenter createCompetencePresenter(LapPath competencePath, TriggeredAction referencingAction, Competence competence, ShedVariableWidget competenceWidget, LapChain chain)
          Create presenter for competence widget.
 IPresenter createDriveCollectionPresenter(LapPath driveCollectionPath, DriveCollection driveCollection)
           
 IPresenter createDrivePresenter(LapPath drivePath, DriveElement drive, ShedVariableWidget widget)
          Create presenter for drive widget.
 IPresenter createExpandedActionPresenter(TriggeredAction action, ExpandedActionEnvelope envelope, LapChain chain)
           
 IPresenter createChoicePresenter(LapPath choicePath, CompetenceElement choice, ShedVariableWidget choiceWidget)
          Create presenter for choice widget, only the widget, not its trigger nor action.
 IPresenter createChoicesPresenter(LapPath competencePath, Competence competence, ShedChoicesEnvelope choicesEnvelope, LapChain competenceChainchain)
          Create presenter responsible for adding, moving and removing choices widgets in the ShedChoicesEnvelope.
 IPresenter createSensePresenter(LapPath sensePath, Sense sense, ShedSenseWidget senseWidget, LapChain senseChain)
          Create presenter for sense at @sensePath that will present the sense in the @senseWidget.
<TRIGGER_PARENT extends PoshElement>
IPresenter
createTriggerPresenter(TRIGGER_PARENT parent, Trigger<TRIGGER_PARENT> trigger, ShedTriggerEnvelope triggerEnvelope, LapChain parentChain)
          Create presenter for trigger, it is responsible for keepeing track of added/moved/removed senses.
 

Method Detail

createActionPresenter

IPresenter createActionPresenter(LapPath actionPath,
                                 TriggeredAction action,
                                 ShedVariableWidget actionWidget,
                                 LapChain actionChain)
Create presenter for primitive action. It doesn;t have any children.


createExpandedActionPresenter

IPresenter createExpandedActionPresenter(TriggeredAction action,
                                         ExpandedActionEnvelope envelope,
                                         LapChain chain)

createSensePresenter

IPresenter createSensePresenter(LapPath sensePath,
                                Sense sense,
                                ShedSenseWidget senseWidget,
                                LapChain senseChain)
Create presenter for sense at @sensePath that will present the sense in the @senseWidget.


createTriggerPresenter

<TRIGGER_PARENT extends PoshElement> IPresenter createTriggerPresenter(TRIGGER_PARENT parent,
                                                                       Trigger<TRIGGER_PARENT> trigger,
                                                                       ShedTriggerEnvelope triggerEnvelope,
                                                                       LapChain parentChain)
Create presenter for trigger, it is responsible for keepeing track of added/moved/removed senses.

Parameters:
parentChain - Chain of the parent.
Returns:

createDriveCollectionPresenter

IPresenter createDriveCollectionPresenter(LapPath driveCollectionPath,
                                          DriveCollection driveCollection)

createActionPatternPresenter

IPresenter createActionPatternPresenter(LapPath actionPatternPath,
                                        TriggeredAction referencingAction,
                                        ActionPattern actionPattern,
                                        ShedVariableWidget actionPatternWidget,
                                        LapChain chain)
Create presenter for action pattern widget. This doesn't affect anything else(APs actions...), only the actionPatternWidget. The presenter should update widget when its properties, e.g.g parameters are changed.

Parameters:
actionPatternPath - Path to the action pattern, path ends with ../A:?/AP:?

createCompetencePresenter

IPresenter createCompetencePresenter(LapPath competencePath,
                                     TriggeredAction referencingAction,
                                     Competence competence,
                                     ShedVariableWidget competenceWidget,
                                     LapChain chain)
Create presenter for competence widget. The presenter is responsible only for the widget of competence, not for its choices ect. It should for example update the widget when arguments or parameters of link are changed.

Parameters:
competencePath - Path to the competence, path ends with ../A:?/C:?

createChoicePresenter

IPresenter createChoicePresenter(LapPath choicePath,
                                 CompetenceElement choice,
                                 ShedVariableWidget choiceWidget)
Create presenter for choice widget, only the widget, not its trigger nor action. Basically it is responsible only for showing changes of choice name in the widget.

Parameters:
choicePath - Path to the choice, it will end with ../A:?/C:?/CE:?

createDrivePresenter

IPresenter createDrivePresenter(LapPath drivePath,
                                DriveElement drive,
                                ShedVariableWidget widget)
Create presenter for drive widget. It reflects only changes of drive widget, not its trigger or action. Overall it only reflects chganges of name.

Parameters:
drivePath - Path to drive, ../DE:?

createActionsPresenter

IPresenter createActionsPresenter(LapPath actionPatternPath,
                                  ActionPattern actionPattern,
                                  ShedActionsEnvelope actionsEnvelope,
                                  LapChain actionPatternChainchain)
Create presenter that will take care about keeping adding/moving/removing expanded actions in the ShedActionsEnvelope for ActionPattern.

Parameters:
actionPatternPath - Path to the action pattern, ends with ../AP:?.
actionPatternChain - Chain to the @actionPattern of the actions.

createChoicesPresenter

IPresenter createChoicesPresenter(LapPath competencePath,
                                  Competence competence,
                                  ShedChoicesEnvelope choicesEnvelope,
                                  LapChain competenceChainchain)
Create presenter responsible for adding, moving and removing choices widgets in the ShedChoicesEnvelope.

Parameters:
competencePath - Path to the competence whose choices are managed. Ends with ../A:?/C:?.
competenceChain - Chain to the @competence.


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