|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.qfs.lib.config.ConfigWrapper | +--de.qfs.lib.config.FrameConfigWrapper
A ConfigWrapper for Frame
objects. The state saved
is the frame's location and size.
Field Summary | |
protected java.awt.Frame |
frame
The wrapped Frame. |
Constructor Summary | |
FrameConfigWrapper()
Create a new FrameConfigWrapper with the default name "frame". |
Method Summary | |
void |
componentHidden(java.awt.event.ComponentEvent e)
Ignored. |
void |
componentMoved(java.awt.event.ComponentEvent e)
Notify the Configuration that the state has changed. |
void |
componentResized(java.awt.event.ComponentEvent e)
Notify the Configuration that the state has changed. |
void |
componentShown(java.awt.event.ComponentEvent e)
Ignored. |
java.util.Properties |
getConfigurableState()
Get the Configurable's state. |
void |
registrationChanged(Configuration config,
java.lang.String name,
boolean registered,
boolean valuesKept)
This callback is used to notify the Configurable whenever it is registered with or unregistered from the Configuration, so it can decide whether to notify the Configuration when its state changes. |
protected void |
restore(java.awt.Dimension size,
java.awt.Point location)
Restore the frame's size and location. |
protected void |
setClient(java.lang.Object client)
Set the client object for the ConfigWrapper. |
void |
setConfigurableState(java.util.Properties state)
Set the Configurable's state. |
Methods inherited from class de.qfs.lib.config.ConfigWrapper |
addPackage, getConfigurableName, makeWrapper, makeWrapper, setConfigurableName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Frame frame
Constructor Detail |
public FrameConfigWrapper()
Method Detail |
protected void setClient(java.lang.Object client)
setClient
in class ConfigWrapper
client
- The client object to set.public java.util.Properties getConfigurableState()
getConfigurableState
in class ConfigWrapper
de.qfs.lib.config.ConfigWrapper
public void setConfigurableState(java.util.Properties state)
setConfigurableState
in class ConfigWrapper
de.qfs.lib.config.ConfigWrapper
state
- The state to set. Ignored.public void registrationChanged(Configuration config, java.lang.String name, boolean registered, boolean valuesKept)
registrationChanged
in class ConfigWrapper
config
- The affected Configuration.name
- The registration name of the Configurable which may
be different from the Configurable's name.registered
- True if the Configurable was just registered,
false if it was unregistered.valuesKept
- Whether the Configurable's values were kept, if
it was just unregistered.public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
e
- Ignored.public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
e
- Ignored.public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
e
- Ignored.public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
e
- Ignored.protected void restore(java.awt.Dimension size, java.awt.Point location)
size
- The size to set.location
- The location to set.
|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |