com.funambol.client.controller
Class AdvancedSettingsScreenController

java.lang.Object
  extended by com.funambol.client.controller.AdvancedSettingsScreenController

public abstract class AdvancedSettingsScreenController
extends java.lang.Object

Realize the MVC control section of the view elements' in all of the AdvancedSettingsScreen interface implementation. It uses the screen in order to set and get the log level and correctly initialize and dinamically manage its view elements. This class is abstract as it contains generic methods to send and view log; such those methods are implementation dependent as their realization is different on different platforms.


Field Summary
protected  Configuration configuration
           
protected  Controller controller
           
protected  Customization customization
           
protected  Localization localization
           
protected  AdvancedSettingsScreen screen
           
static java.lang.String TAG_LOG
          The tag to be wirtten into the log
 
Constructor Summary
AdvancedSettingsScreenController(Controller controller, AdvancedSettingsScreen screen)
          public constructor: uses the simple controller object and the controlled screen because on one side it must be compliant with the customization, localization and configuration related to the screen and on the other side it must control the behavior of the screen elements referring to the AdvancedSettingsScreen interface.
 
Method Summary
 void checkAndSave()
          Check the view parameters and save the configuration related to the AdvancedSettingsScreen implementation that uses this class.
 void initialize()
          Initialize the config parameter on the screen, in particular the log level.
 void reset()
          Realize the "Reset" action.
abstract  void sendLog()
          Realize the Send log action.
abstract  void viewLog()
          Realize the View log action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_LOG

public static final java.lang.String TAG_LOG
The tag to be wirtten into the log

See Also:
Constant Field Values

screen

protected AdvancedSettingsScreen screen

controller

protected Controller controller

configuration

protected Configuration configuration

customization

protected Customization customization

localization

protected Localization localization
Constructor Detail

AdvancedSettingsScreenController

public AdvancedSettingsScreenController(Controller controller,
                                        AdvancedSettingsScreen screen)
public constructor: uses the simple controller object and the controlled screen because on one side it must be compliant with the customization, localization and configuration related to the screen and on the other side it must control the behavior of the screen elements referring to the AdvancedSettingsScreen interface.

Parameters:
controller - the object that contains the customization, localization and configuration instances.
screen - the AdvancedSettingsScreen implementation to be controlled by this class.
Method Detail

checkAndSave

public void checkAndSave()
Check the view parameters and save the configuration related to the AdvancedSettingsScreen implementation that uses this class.


reset

public void reset()
Realize the "Reset" action. Implement the client dependent reset feature and it is common to every high level AdvancedSettingsScreen controllers.


initialize

public void initialize()
Initialize the config parameter on the screen, in particular the log level. Implement the client dependent screen's view population referring to the customization object retrieved by the Controller object that was passed as parameter of the consturctor. Due to this reference this method can hide the screen's commands (buttons, view items, or every other command implementation such as menu items). The initialization covers also the dinamyc aspect: if a sync is in progress and the AdvancedSettingsScreen is required to be shown, the send log and reset commands should appear disabled in most cases (if not hidden by the customization implementation). This method must be overridden if the application must behave differently from the above description.


sendLog

public abstract void sendLog()
Realize the Send log action. As the send log feature is platform dependent this method is left abstract and must be implemented on the high level client controller.


viewLog

public abstract void viewLog()
Realize the View log action. As the view log feature is platform dependent this method is left abstract and must be implemented on the high level client controller.



Copyright © 2001-2009 Funambol.