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 String
getBehaviour()
String
getContentType()
String
getModel()
String
getModelPath()
String
getSkin()
String
getSkinPath()
String
getView()
String
getViewPath()
void
update(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.userUpdate
allows the user preferences to be incorporated- Specified by:
update
in 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:
getModelPath
in interfaceControlConfigIF
-
getViewPath
public String getViewPath()
- Specified by:
getViewPath
in interfaceControlConfigIF
-
getSkinPath
public String getSkinPath()
- Specified by:
getSkinPath
in interfaceControlConfigIF
-
getBehaviour
public String getBehaviour()
- Specified by:
getBehaviour
in interfaceControlConfigIF
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceControlConfigIF
-
getModel
public String getModel()
- Specified by:
getModel
in interfaceControlConfigIF
-
getView
public String getView()
- Specified by:
getView
in interfaceControlConfigIF
-
getSkin
public String getSkin()
- Specified by:
getSkin
in interfaceControlConfigIF
-
-