Package net.ontopia.topicmaps.nav.conf
Class ControlConfig
- java.lang.Object
-
- net.ontopia.topicmaps.nav.conf.ControlConfig
-
- All Implemented Interfaces:
ControlConfigIF
public class ControlConfig extends Object implements ControlConfigIF
PUBLIC: Provides model, view and skin information for the applicationImplementors wanting to provide special models, view or skins can implement their own version which may use the controller.xml configuration file. The new class must implement ControlConfigIF.
-
-
Constructor Summary
Constructors Constructor Description ControlConfig(String resource)Constructor which takes a path to the configuration file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBehaviour()StringgetContentType()StringgetModel()StringgetModelPath()StringgetSkin()StringgetSkinPath()StringgetView()StringgetViewPath()voidupdate(String model, String view, String skin)Updates the state of the object to include user preferences.
-
-
-
Constructor Detail
-
ControlConfig
public ControlConfig(String resource)
Constructor which takes a path to the configuration file.
-
-
Method Detail
-
update
public void update(String model, String view, String skin)
Updates the state of the object to include user preferences. The application makes its own default model, view and skin for a particular request.userUpdateallows the user preferences to be incorporated- Specified by:
updatein interfaceControlConfigIF- Parameters:
model- a string representing the model choiceview- a string representing the view choiceskin- a string representing the skin choice
-
getModelPath
public String getModelPath()
- Specified by:
getModelPathin interfaceControlConfigIF
-
getViewPath
public String getViewPath()
- Specified by:
getViewPathin interfaceControlConfigIF
-
getSkinPath
public String getSkinPath()
- Specified by:
getSkinPathin interfaceControlConfigIF
-
getBehaviour
public String getBehaviour()
- Specified by:
getBehaviourin interfaceControlConfigIF
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceControlConfigIF
-
getModel
public String getModel()
- Specified by:
getModelin interfaceControlConfigIF
-
getView
public String getView()
- Specified by:
getViewin interfaceControlConfigIF
-
getSkin
public String getSkin()
- Specified by:
getSkinin interfaceControlConfigIF
-
-