net.ontopia.topicmaps.nav.conf
Class ControlConfig

java.lang.Object
  extended by 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 application

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 Summary
ControlConfig(String resource)
          Constructor which takes a path to the configuration file.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ControlConfigIF
Parameters:
model - a string representing the model choice
view - a string representing the view choice
skin - a string representing the skin choice

getModelPath

public String getModelPath()
Specified by:
getModelPath in interface ControlConfigIF

getViewPath

public String getViewPath()
Specified by:
getViewPath in interface ControlConfigIF

getSkinPath

public String getSkinPath()
Specified by:
getSkinPath in interface ControlConfigIF

getBehaviour

public String getBehaviour()
Specified by:
getBehaviour in interface ControlConfigIF

getContentType

public String getContentType()
Specified by:
getContentType in interface ControlConfigIF

getModel

public String getModel()
Specified by:
getModel in interface ControlConfigIF

getView

public String getView()
Specified by:
getView in interface ControlConfigIF

getSkin

public String getSkin()
Specified by:
getSkin in interface ControlConfigIF


Copyright © 2000-2012 Ontopia.