cz.cuni.pogamut.shed.presenter
Class ShedPresenter

Package class diagram package ShedPresenter
java.lang.Object
  extended by cz.cuni.pogamut.shed.presenter.ShedPresenter

public class ShedPresenter
extends Object

Presenter class from MVP design pattern (in MVC, controller gets input directly, in MVP presenter gets input from the view). This presenter is mostly responsible for notifying INameMapListeners about changes in name mapping. Note about widget modification: Adding new widget has marked parts of the scene for revalidation, but the scene itself hasn't been revalidated. You must validate changed scene to relayer everything!!

Author:
HonzaH

Constructor Summary
ShedPresenter(ShedScene scene, PoshPlan lapTree)
           
 
Method Summary
 Set<String> getAllNameMappingKeys()
          Get all keys for which there is a name mapping.
 String getNameMapping(String primitiveName)
          Get human readble name for the @key.
 ParamInfo[] getPrimitiveParameters(String key)
          Get sorted parameters for primitve of key
 void setNameMapping(String key, PrimitiveData record)
          Set human readable name for the @key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShedPresenter

public ShedPresenter(ShedScene scene,
                     PoshPlan lapTree)
Method Detail

getAllNameMappingKeys

public Set<String> getAllNameMappingKeys()
Get all keys for which there is a name mapping.

Returns:
Unmodifiable set of all keys.

getNameMapping

public String getNameMapping(String primitiveName)
Get human readble name for the @key.

Parameters:
primitiveName - FQN for which we want the human readable name.
Returns:
Human readable name or null if mapping doesn't exist.

getPrimitiveParameters

public ParamInfo[] getPrimitiveParameters(String key)
Get sorted parameters for primitve of key

Parameters:
key - FQN name of primitive
Returns:

setNameMapping

public void setNameMapping(String key,
                           PrimitiveData record)
Set human readable name for the @key.

Parameters:
key - FQN for which we set the human readable name
value - Human readable name or null if mapping cancelled


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