|
qflib 0.98.1 | ||||||||
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.DialogConfigWrapper | +--de.qfs.lib.config.RelativeDialogConfigWrapper
Special configuration wrapper that stores the Dialog location relative to some other window instead of as absolute screen values.
Field Summary | |
protected boolean |
constrain
Whether to constrain the dialog to the screen |
protected java.awt.Point |
location
The stored relative location of the dialog. |
protected EventQueueMark |
mark
Mark to distinguish user events from artificial ones. |
protected java.awt.Window |
master
The master window to position relative to. |
protected java.lang.String |
reference
The reference for the Dialog's location, one of "Absolute", "Center", "Northwest", "Northeast", "Southwest" and "Southeast". |
protected boolean |
storeSize
Whether to store the dialog's size as well as its location. |
Fields inherited from class de.qfs.lib.config.DialogConfigWrapper |
dialog, regHelper |
Constructor Summary | |
RelativeDialogConfigWrapper(java.awt.Dialog dialog,
java.lang.String name,
boolean constrain,
boolean storeSize)
Create a new RelativeDialogConfigWrapper. |
Method Summary | |
void |
componentMoved(java.awt.event.ComponentEvent e)
Notify the RelativeDialogConfigWrapper that its dialog has moved. |
void |
componentResized(java.awt.event.ComponentEvent e)
Notify the RelativeDialogConfigWrapper that a window was resized. |
java.util.Properties |
getConfigurableState()
Get the Configurable's state. |
protected void |
getLocation()
Determine location and reference relative to the master window. |
protected void |
restore(java.awt.Dimension size,
java.awt.Point location)
Restore the dialog's size and location. |
void |
setConfigurableState(java.util.Properties state)
Set the Configurable's state. |
protected void |
setLocation(java.awt.Dimension size)
Set the dialog's location relative to its master. |
void |
setMaster(java.awt.Window window)
Set the master window for the dialog. |
Methods inherited from class de.qfs.lib.config.DialogConfigWrapper |
componentHidden, componentShown, registrationChanged, setClient |
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.Window master
protected java.awt.Point location
protected java.lang.String reference
protected EventQueueMark mark
protected boolean constrain
protected boolean storeSize
Constructor Detail |
public RelativeDialogConfigWrapper(java.awt.Dialog dialog, java.lang.String name, boolean constrain, boolean storeSize)
Method Detail |
public void setMaster(java.awt.Window window)
window
- The new master.public java.util.Properties getConfigurableState()
getConfigurableState
in class DialogConfigWrapper
de.qfs.lib.config.ConfigWrapper
public void setConfigurableState(java.util.Properties state)
setConfigurableState
in class DialogConfigWrapper
de.qfs.lib.config.ConfigWrapper
state
- The state to set. Ignored.public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in class DialogConfigWrapper
e
- Details about the event.public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in class DialogConfigWrapper
e
- Details about the event.protected void restore(java.awt.Dimension size, java.awt.Point location)
restore
in class DialogConfigWrapper
size
- The size to set.location
- The location to set.protected void setLocation(java.awt.Dimension size)
size
- The new size for the dialog.protected void getLocation()
|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |