|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.qfs.lib.config.ConfigWrapper
de.qfs.lib.config.DialogConfigWrapper
A ConfigWrapper for Dialog
objects. The state saved
is the dialog's location and size.
Field Summary | |
protected java.awt.Dialog |
dialog
The wrapped Dialog. |
protected RegistrationHelper |
regHelper
Helper for registration callbacks. |
Constructor Summary | |
DialogConfigWrapper()
Create a new DialogConfigWrapper with the default name "dialog". |
Method Summary | |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
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)
|
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.Dialog dialog
protected RegistrationHelper regHelper
Constructor Detail |
public DialogConfigWrapper()
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 interface Configurable
getConfigurableState
in class ConfigWrapper
public void setConfigurableState(java.util.Properties state)
setConfigurableState
in interface Configurable
setConfigurableState
in class ConfigWrapper
state
- The state to set. Ignored.public void registrationChanged(Configuration config, java.lang.String name, boolean registered, boolean valuesKept)
registrationChanged
in interface Configurable
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
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
protected void restore(java.awt.Dimension size, java.awt.Point location)
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |