|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormWindow
All Tentackle windows (top level container) must implement this interface.
Adds features like auto positioning, related window, form wrapping,
autoclose, etc...
| Method Summary | |
|---|---|
void |
addFormWrapListener(FormWrapListener listener)
Adss a wrap listener which will be invoked whenever the focus wraps in this window, i.e. |
void |
alignLocation()
Aligns the location of this window in order not to cover other windows (best as possible). |
boolean |
checkAutoClose()
Checks if window should be autoclosed. |
void |
fireFormWrappedFocus(FormWrapEvent evt)
Fires all form wrap listeners for this window. |
long |
getAutoClose()
Gets the autoclose timeout. |
boolean |
getKeepChangedValues()
Gets the behaviour for setFormValues(). |
FormWindow |
getRelatedWindow()
Gets the related window. Falls back to getOwner() if not set and owner is a formwindow. |
long |
getTimeOfLastValuesChanged()
Gets the system-time of last setFormValues() or triggerValuesChanged() for this window in milliseconds. |
TooltipDisplay |
getTooltipDisplay()
Gets the tooltip display for this window. |
int |
getUIVersion()
Gets the look and feel version for this window. |
boolean |
isAutoCloseable()
Returns whether this window is a candidate for autoClose-monitoring. |
boolean |
isAutoPosition()
Returns whether auto position is enabled. |
void |
removeFormWrapListener(FormWrapListener listener)
Removes a form wrap listener. |
void |
setAutoClose(long timeout)
Set a timer to close the window automatically. FormContainers use this feature to close after a certain time of inactivity and unchanged data. Note: autoClosing must be set before displaying the window (just like setModal()). |
void |
setAutoPosition(boolean autoPosition)
Sets the autoposition feature. Windows with this autoposition enabled will place themselves in a nice manner on the screen when displayed initially. |
void |
setKeepChangedValues(boolean keepChanged)
Sets the behaviour of setFormValues() of FormContainers in this FormWindow. |
void |
setRelatedWindow(FormWindow relatedWindow)
Sets the related FormWindow. Related windows are somewhat similar to Owners, but they don't change fg/bg-behaviour of the window-manager. |
void |
setTimeOfLastValuesChanged(long millis)
Sets the system-time of last setFormValues() or triggerValuesChanged() for this window in milliseconds. |
void |
setTooltipDisplay(TooltipDisplay tooltipDisplay)
Sets the tooltip display for this window. If a tooltip display is set the component's tooltips will be displayed for each component receiving the keyboard focus (instead of popping up on mouse hover). |
void |
setUIVersion(int version)
Sets a version number for the current look and feel of this window. |
| Methods inherited from interface org.tentackle.ui.FormContainer |
|---|
areValuesChanged, getFormValues, getHelpURL, getParentWindow, getTitle, invalidateParentInfo, isAllChangeable, isHonourAllChangeable, saveValues, setAllChangeable, setFormValues, setFormValuesKeepChanged, setHelpURL, setHonourAllChangeable, setTitle, showHelp, triggerValuesChanged |
| Method Detail |
|---|
void setRelatedWindow(FormWindow relatedWindow)
relatedWindow - the related FormWindowFormWindow getRelatedWindow()
void setAutoPosition(boolean autoPosition)
autoPosition - true to enable autoposition, false if not (default)boolean isAutoPosition()
void addFormWrapListener(FormWrapListener listener)
listener - the form wrap listenerFormFocusTraversalPolicyvoid removeFormWrapListener(FormWrapListener listener)
listener - the listener to removevoid fireFormWrappedFocus(FormWrapEvent evt)
evt - the form wrap eventvoid setUIVersion(int version)
version - the n-th look and feel versionint getUIVersion()
void setTooltipDisplay(TooltipDisplay tooltipDisplay)
tooltipDisplay - the tooltip display, null = none (default)TooltipDisplay getTooltipDisplay()
void setKeepChangedValues(boolean keepChanged)
keepChanged - true if setFormValues() should NOT override values
changed by the user. The default is false.boolean getKeepChangedValues()
void alignLocation()
void setAutoClose(long timeout)
timeout - the time in milliseconds, 0 = no autocloselong getAutoClose()
boolean isAutoCloseable()
boolean checkAutoClose()
void setTimeOfLastValuesChanged(long millis)
millis - the time of last values changedlong getTimeOfLastValuesChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||