bibliothek.gui.dock.facile.state
Class StateManager.StateManagerSetting<B>

java.lang.Object
  extended by bibliothek.gui.dock.support.action.ModeTransitionSetting<StateManager.Location,B>
      extended by bibliothek.gui.dock.facile.state.StateManager.StateManagerSetting<B>
Type Parameters:
B - the internal representation of the properties
Enclosing class:
StateManager

public static class StateManager.StateManagerSetting<B>
extends ModeTransitionSetting<StateManager.Location,B>

A set of properties used to store the contents of a StateManager

Author:
Benjamin Sigg

Constructor Summary
StateManager.StateManagerSetting(ModeTransitionConverter<StateManager.Location,B> converter)
          Creates a new setting.
 
Method Summary
 Map<String,StateManager.Location> getLastMaximizedLocation()
          Gets the location of the last elements that were maximized.
 Map<String,String> getLastMaximizedMode()
          Gets the mode the last maximized elements were in.
 void read(DataInputStream in)
          Clears all properties of this setting and then reads new properties from in.
 void readXML(XElement element)
          Clears all properties of this setting and then reads new properties from element.
 void setLastMaximizedLocation(Map<String,StateManager.Location> lastMaximizedLocation)
          Sets the location of the last elements that were maximized.
 void setLastMaximizedMode(Map<String,String> lastMaximizedMode)
          Sets the mode the last maximized elements were in.
 void write(DataOutputStream out)
          Writes all properties of this setting into out.
 void writeXML(XElement element)
          Writes the contents of this setting in xml format.
 
Methods inherited from class bibliothek.gui.dock.support.action.ModeTransitionSetting
add, getConverter, getCurrent, getHistory, getId, getProperties, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateManager.StateManagerSetting

public StateManager.StateManagerSetting(ModeTransitionConverter<StateManager.Location,B> converter)
Creates a new setting.

Parameters:
converter - converts internal and external properties
Method Detail

setLastMaximizedMode

public void setLastMaximizedMode(Map<String,String> lastMaximizedMode)
Sets the mode the last maximized elements were in.

Parameters:
lastMaximizedMode - the modes or null

getLastMaximizedMode

public Map<String,String> getLastMaximizedMode()
Gets the mode the last maximized elements were in.

Returns:
the modes or null

setLastMaximizedLocation

public void setLastMaximizedLocation(Map<String,StateManager.Location> lastMaximizedLocation)
Sets the location of the last elements that were maximized.

Parameters:
lastMaximizedLocation - the locations or null

getLastMaximizedLocation

public Map<String,StateManager.Location> getLastMaximizedLocation()
Gets the location of the last elements that were maximized.

Returns:
the locations or null

write

public void write(DataOutputStream out)
           throws IOException
Description copied from class: ModeTransitionSetting
Writes all properties of this setting into out.

Overrides:
write in class ModeTransitionSetting<StateManager.Location,B>
Parameters:
out - the stream to write into
Throws:
IOException - if an I/O-error occurs

read

public void read(DataInputStream in)
          throws IOException
Description copied from class: ModeTransitionSetting
Clears all properties of this setting and then reads new properties from in.

Overrides:
read in class ModeTransitionSetting<StateManager.Location,B>
Parameters:
in - the stream to read from
Throws:
IOException - if an I/O-error occurs

writeXML

public void writeXML(XElement element)
Description copied from class: ModeTransitionSetting
Writes the contents of this setting in xml format.

Overrides:
writeXML in class ModeTransitionSetting<StateManager.Location,B>
Parameters:
element - the elemnt to write into, the attributes of element will not be changed.
See Also:
ModeTransitionSetting.readXML(XElement)

readXML

public void readXML(XElement element)
Description copied from class: ModeTransitionSetting
Clears all properties of this setting and then reads new properties from element.

Overrides:
readXML in class ModeTransitionSetting<StateManager.Location,B>
Parameters:
element - the element from which the properties should be read
See Also:
ModeTransitionSetting.writeXML(XElement)