|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.tentackle.ui.FormFrame
public class FormFrame
Extended JFrame implementing FormWindow (and FormContainer).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FormFrame()
Constructs a new FormFrame that is initially invisible
without at title. |
|
FormFrame(String title)
Creates a new, initially invisible FormFrame with the
specified title. |
|
| Method Summary | |
|---|---|
void |
addFormWrapListener(FormWrapListener l)
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 |
areValuesChanged()
Checks whether the contents of some components in this or sub containers have changed since the last savepoint. |
boolean |
checkAutoClose()
Checks if window should be autoclosed. |
void |
componentAdded(ContainerEvent e)
Invoked when a component has been added to the container. |
void |
componentRemoved(ContainerEvent e)
Invoked when a component has been removed from the container. |
void |
fireFormWrappedFocus(FormWrapEvent evt)
Fires all form wrap listeners for this window. |
long |
getAutoClose()
Gets the autoclose timeout. |
void |
getFormValues()
Retrieves the values from all components in this container and all sub containers. Used to update the data from the view according to the data binding. |
String |
getHelpURL()
Gets the online-help URL. |
boolean |
getKeepChangedValues()
Gets the behaviour for setFormValues(). |
Window |
getParentWindow()
Gets the parent window. |
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. |
void |
invalidateParentInfo()
Invalidates all container-relevant (cached) information for the hierarchy of this container's parents. For optimization purposes. |
boolean |
isAllChangeable()
Returns whether this container has the all-changeable attribute set. |
boolean |
isAutoCloseable()
Returns whether this window is a candidate for autoClose-monitoring. |
boolean |
isAutoPosition()
Returns whether auto position is enabled. |
boolean |
isHonourAllChangeable()
Returns whether the container should honour the allChangeable attribute. |
void |
pack()
Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. |
void |
paint(Graphics g)
Paints the container. |
protected void |
processWindowEvent(WindowEvent e)
Processes window events occurring on this component. |
void |
removeFormWrapListener(FormWrapListener l)
Removes a form wrap listener. |
void |
saveValues()
Sets a savepoint for all components in this container and all sub containers. |
void |
setAllChangeable(boolean flag)
Sets the changeable attribute of all components of this container and all sub containers. |
void |
setAutoClose(long autoClose)
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 flag)
Sets the autoposition feature. Windows with this autoposition enabled will place themselves in a nice manner on the screen when displayed initially. |
void |
setFormValues()
Sets the values in all form components in this container and all sub containers. Used to update the view from the data according to the data binding. |
void |
setFormValuesKeepChanged()
Sets the values in all unchanged form components in this container and all sub containers. All changed components are left untouched. |
void |
setHelpURL(String helpURL)
Sets the online-help URL. If a help url is set for this container, a browser will be launched to show that url if there is no help url for the component the help was requested for. |
void |
setHonourAllChangeable(boolean flag)
Sets whether the container should honour the allChangeable attribute. |
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 display)
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. |
void |
showHelp()
Displays online help for this container. |
void |
triggerValuesChanged()
Signals that values in the components of the container may have changed. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.tentackle.ui.FormContainer |
|---|
getTitle, setTitle |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public FormFrame(String title)
FormFrame with the
specified title.
title - the title for the frame, null if no titleJFrame.JFrame(java.lang.String)public FormFrame()
FormFrame that is initially invisible
without at title.
JFrame.JFrame()| Method Detail |
|---|
protected void processWindowEvent(WindowEvent e)
defaultCloseOperation property.
Overridden to allow FormHelper keeping track of windows
processWindowEvent in class JFramee - the window eventJFrame.setDefaultCloseOperation(int),
Window.processWindowEvent(java.awt.event.WindowEvent)public void pack()
Overridden to autolocate window if possible
pack in class WindowComponent.isDisplayable()public void paint(Graphics g)
Overridden in order to bring modal windows to front in case accidently covered by another window. This is the case whenever a modal dialog is not owned by the window covering it. It solves the problem of "freezing" an application because the user clicked on another window.
paint in class Containerg - the specified Graphics windowComponent.update(Graphics)public void componentAdded(ContainerEvent e)
java.awt.event.ContainerListener
componentAdded in interface ContainerListenerpublic void componentRemoved(ContainerEvent e)
java.awt.event.ContainerListener
componentRemoved in interface ContainerListenerpublic Window getParentWindow()
FormContainer
getParentWindow in interface FormContainerpublic void invalidateParentInfo()
FormContainer
invalidateParentInfo in interface FormContainerpublic void setFormValues()
FormContainer
setFormValues in interface FormContainerpublic void setFormValuesKeepChanged()
FormContainer
setFormValuesKeepChanged in interface FormContainerFormComponent.isValueChanged()public void getFormValues()
FormContainer
getFormValues in interface FormContainerpublic void saveValues()
FormContainer
saveValues in interface FormContainerFormComponent.saveValue()public boolean areValuesChanged()
FormContainer
areValuesChanged in interface FormContainerpublic void triggerValuesChanged()
FormContainer
triggerValuesChanged in interface FormContainerpublic void setAllChangeable(boolean flag)
FormContainer
setAllChangeable in interface FormContainerflag - true if all changeable (default)public boolean isAllChangeable()
FormContainer
isAllChangeable in interface FormContainerpublic void setHonourAllChangeable(boolean flag)
FormContainer
setHonourAllChangeable in interface FormContainerflag - true to honour allchangeable (default)public boolean isHonourAllChangeable()
FormContainer
isHonourAllChangeable in interface FormContainerpublic void setHelpURL(String helpURL)
FormContainer
setHelpURL in interface FormContainerhelpURL - the help urlFormHelper.openHelpURL(Component)public String getHelpURL()
FormContainer
getHelpURL in interface FormContainerpublic void showHelp()
FormContainer
showHelp in interface FormContainerpublic int getUIVersion()
FormWindow
getUIVersion in interface FormWindowpublic void setUIVersion(int version)
FormWindow
setUIVersion in interface FormWindowversion - the n-th look and feel versionpublic void setTooltipDisplay(TooltipDisplay display)
FormWindow
setTooltipDisplay in interface FormWindowdisplay - the tooltip display, null = none (default)public TooltipDisplay getTooltipDisplay()
FormWindow
getTooltipDisplay in interface FormWindowpublic void fireFormWrappedFocus(FormWrapEvent evt)
FormWindow
fireFormWrappedFocus in interface FormWindowevt - the form wrap eventpublic void addFormWrapListener(FormWrapListener l)
FormWindow
addFormWrapListener in interface FormWindowl - the form wrap listenerFormFocusTraversalPolicypublic void removeFormWrapListener(FormWrapListener l)
FormWindow
removeFormWrapListener in interface FormWindowl - the listener to removepublic void setAutoPosition(boolean flag)
FormWindow
setAutoPosition in interface FormWindowflag - true to enable autoposition, false if not (default)public boolean isAutoPosition()
FormWindow
isAutoPosition in interface FormWindowpublic void setRelatedWindow(FormWindow relatedWindow)
FormFrames never have an owner (except the default shared swing object, which is no FormWindow).
setRelatedWindow in interface FormWindowrelatedWindow - the related FormWindowpublic FormWindow getRelatedWindow()
FormFrames never have an owner (except the default shared swing object, which is no FormWindow).
getRelatedWindow in interface FormWindowpublic void alignLocation()
FormWindow
alignLocation in interface FormWindowpublic void setKeepChangedValues(boolean keepChanged)
FormWindow
setKeepChangedValues in interface FormWindowkeepChanged - true if setFormValues() should NOT override values
changed by the user. The default is false.public boolean getKeepChangedValues()
FormWindow
getKeepChangedValues in interface FormWindowpublic long getTimeOfLastValuesChanged()
FormWindow
getTimeOfLastValuesChanged in interface FormWindowpublic void setTimeOfLastValuesChanged(long millis)
FormWindow
setTimeOfLastValuesChanged in interface FormWindowmillis - the time of last values changedpublic void setAutoClose(long autoClose)
FormWindow
setAutoClose in interface FormWindowautoClose - the time in milliseconds, 0 = no autoclosepublic long getAutoClose()
FormWindow
getAutoClose in interface FormWindowpublic boolean isAutoCloseable()
FormWindow
isAutoCloseable in interface FormWindowpublic boolean checkAutoClose()
FormWindow
checkAutoClose in interface FormWindow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||