public class ControlConfig extends Object implements ControlConfigIF
Implementors 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 and Description |
---|
ControlConfig(String resource)
Constructor which takes a path to the configuration file.
|
Modifier and Type | Method and 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.
|
public ControlConfig(String resource)
public void update(String model, String view, String skin)
userUpdate
allows the user preferences to be
incorporatedupdate
in interface ControlConfigIF
model
- a string representing the model choiceview
- a string representing the view choiceskin
- a string representing the skin choicepublic String getModelPath()
getModelPath
in interface ControlConfigIF
public String getViewPath()
getViewPath
in interface ControlConfigIF
public String getSkinPath()
getSkinPath
in interface ControlConfigIF
public String getBehaviour()
getBehaviour
in interface ControlConfigIF
public String getContentType()
getContentType
in interface ControlConfigIF
public String getModel()
getModel
in interface ControlConfigIF
public String getView()
getView
in interface ControlConfigIF
public String getSkin()
getSkin
in interface ControlConfigIF