org.jtheque.core.managers.view.impl
Class WindowsConfiguration

java.lang.Object
  extended by org.jtheque.core.managers.state.AbstractState
      extended by org.jtheque.core.managers.view.impl.WindowsConfiguration
All Implemented Interfaces:
IState

public final class WindowsConfiguration
extends AbstractState

A state for persist different views configuration.

Author:
Baptiste Wicht

Constructor Summary
WindowsConfiguration()
           
 
Method Summary
 void configure(java.lang.String name, IView view, int defaultWidth, int defaultHeight)
          Configure the view.
 void delegateLoad(java.util.List<NodeState> nodes)
          Delegate the load.
 java.util.List<NodeState> delegateSave()
          Delegate the save.
 boolean isDelegated()
          Indicate if the write and read operations are delegated to the state or are standard managed by the statemanager.
 void update(java.lang.String name, IView view)
          Update the configuration with the view.
 
Methods inherited from class org.jtheque.core.managers.state.AbstractState
getProperties, getProperty, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsConfiguration

public WindowsConfiguration()
Method Detail

isDelegated

public boolean isDelegated()
Description copied from interface: IState
Indicate if the write and read operations are delegated to the state or are standard managed by the statemanager.

Specified by:
isDelegated in interface IState
Overrides:
isDelegated in class AbstractState
Returns:
true if the operations are delegated else false.

delegateLoad

public void delegateLoad(java.util.List<NodeState> nodes)
Description copied from interface: IState
Delegate the load.

Specified by:
delegateLoad in interface IState
Overrides:
delegateLoad in class AbstractState
Parameters:
nodes - The noads of the state.

delegateSave

public java.util.List<NodeState> delegateSave()
Description copied from interface: IState
Delegate the save.

Specified by:
delegateSave in interface IState
Overrides:
delegateSave in class AbstractState
Returns:
A List of NodeState to write.

update

public void update(java.lang.String name,
                   IView view)
Update the configuration with the view.

Parameters:
name - The name of the view.
view - The view.

configure

public void configure(java.lang.String name,
                      IView view,
                      int defaultWidth,
                      int defaultHeight)
Configure the view.

Parameters:
name - The name of the view.
view - The view.
defaultWidth - The default width of the view.
defaultHeight - The default height of the view.


Copyright © 2009 JTheque. All Rights Reserved.