public class FwkDialog extends javax.swing.JDialog implements FwkDialogInterface
Property Keyword | Datatype | Default | Description |
---|---|---|---|
FwkDialog.Text.Ok | String | FwkDialog.Text.Ok | The keyword for the Text Ok |
FwkDialog.Mnemonic.Ok | char | FwkDialog.Mnemonic.Ok | The keyword for the mnemonic for the Ok button. |
FwkDialog.Text.Back | String | FwkDialog.Text.Back | The keyword for the Text Back |
FwkDialog.Text.Cancel | String | FwkDialog.Text.Cancel | The keyword for the Text Cancel |
FwkDialog.Mnemonic.Cancel | char | FwkDialog.Mnemonic.Cancel | The keyword for the mnemonic for the Cancel button. |
FwkDialog.Text.Reset | String | FwkDialog.Text.Reset | The keyword for the Text Reset |
FwkDialog.Mnemonic.Reset | char | FwkDialog.Mnemonic.Reset | The keyword for the mnemonic for the Reset button. |
FwkDialog.Text.Close | String | FwkDialog.Text.Close | The keyword for the Text Close |
FwkDialog.Mnemonic.Close | char | FwkDialog.Mnemonic.Close | The keyword for the mnemonic for the Close button. |
FwkDialog.Text.Help | String | FwkDialog.Text.Help | The keyword for the Text Help |
FwkDialog.Mnemonic.Help | char | FwkDialog.Mnemonic.Help | The keyword for the mnemonic for the Help button. |
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
FwkDialog.CancelActionListener
The cancel listener.
|
class |
FwkDialog.KeyboardListener
The keyboard listener.
|
class |
FwkDialog.OkActionListener
The main action listener for the ok button.
|
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected java.awt.CardLayout |
cardLayout |
protected javax.swing.JPanel |
cardPanel |
protected static FwkHelp |
fwkHelp |
protected static java.lang.String |
HELP_PANEL |
protected javax.swing.JPanel |
helpPanel |
static java.lang.String |
version |
protected static java.lang.String |
WORKING_PANEL |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
CANCEL_BUTTON, CLOSE_BUTTON, HELP_BUTTON, OK_BUTTON, RESET_BUTTON
Constructor and Description |
---|
FwkDialog(java.awt.Component parent,
java.lang.String title,
boolean modal,
FwkDialogPaneInterface[] pane,
java.awt.event.ActionListener okListener,
java.awt.event.ActionListener cancelListener,
java.awt.event.ActionListener resetListener,
java.awt.event.ActionListener closeListener)
The constructor for multi-pane dialogs.
|
FwkDialog(java.awt.Component parent,
java.lang.String title,
boolean modal,
FwkDialogPaneInterface pane,
java.awt.event.ActionListener okListener,
java.awt.event.ActionListener cancelListener,
java.awt.event.ActionListener closeListener,
java.awt.event.ActionListener resetListener)
The constructor for single-pane dialogs.
|
FwkDialog(java.awt.Component parent,
java.lang.String title,
boolean modal,
FwkDialogPaneInterface pane,
java.awt.event.ActionListener okListener,
java.awt.event.ActionListener cancelListener,
java.awt.event.ActionListener closeListener,
java.awt.event.ActionListener resetListener,
int hqsType)
The constructor for single-pane dialogs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancelDialog()
Cancel dialog.
|
boolean |
commitDialog()
Commit dialog.
|
protected javax.swing.JPanel |
createHelpPanel()
Create a help panel.
|
FwkDialogPaneValueInterface[] |
get()
Get the settings.
|
javax.swing.JComponent |
getDialogComponent(int ident)
This method returns a component of the dialog.
|
FwkKeyListenerInterface |
getKeyListener()
Get the keyboard listener of this dialog.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
release()
Release the object.
|
void |
reset()
Reset the dialog.
|
boolean |
resetDialog()
Reset dialog.
|
void |
save()
Save the settings.
|
void |
setVisible(boolean flag)
Show the dialog.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final java.lang.String HELP_PANEL
protected static final java.lang.String WORKING_PANEL
public static final java.lang.String version
protected javax.swing.JPanel cardPanel
protected static FwkHelp fwkHelp
protected javax.swing.JPanel helpPanel
protected java.awt.CardLayout cardLayout
public FwkDialog(java.awt.Component parent, java.lang.String title, boolean modal, FwkDialogPaneInterface pane, java.awt.event.ActionListener okListener, java.awt.event.ActionListener cancelListener, java.awt.event.ActionListener closeListener, java.awt.event.ActionListener resetListener)
parent
- The parent component.title
- The titel string.modal
- If true the dialog box is modal.scrollable
- If true the dialog box will be created a scrollable pane.pane
- The chooser panel.okListener
- The OK button callback.cancelListener
- The CANCEL callback.resetListener
- The RESET callback.public FwkDialog(java.awt.Component parent, java.lang.String title, boolean modal, FwkDialogPaneInterface pane, java.awt.event.ActionListener okListener, java.awt.event.ActionListener cancelListener, java.awt.event.ActionListener closeListener, java.awt.event.ActionListener resetListener, int hqsType)
parent
- The parent component.title
- The titel string.modal
- If true the dialog box is modal.scrollable
- If true the dialog box will be created a scrollable pane.pane
- The chooser panel.okListener
- The OK button callback.cancelListener
- The CANCEL callback.resetListener
- The RESET callback.hqsType
- the HQS panel type (use -1 to ommit hqs panel).public FwkDialog(java.awt.Component parent, java.lang.String title, boolean modal, FwkDialogPaneInterface[] pane, java.awt.event.ActionListener okListener, java.awt.event.ActionListener cancelListener, java.awt.event.ActionListener resetListener, java.awt.event.ActionListener closeListener)
parent
- The parent component.title
- The titel string.modal
- If true the dialog box is modal.pane
- The chooser panel array.okListener
- The OK button callback.cancelListener
- The CANCEL callback.resetListener
- The RESET callback.public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
public void release()
release
in interface FwkInterface
protected javax.swing.JPanel createHelpPanel()
public boolean cancelDialog()
cancelDialog
in interface FwkDialogInterface
public boolean resetDialog()
resetDialog
in interface FwkDialogInterface
public boolean commitDialog()
commitDialog
in interface FwkDialogInterface
public javax.swing.JComponent getDialogComponent(int ident)
getDialogComponent
in interface FwkDialogInterface
ident
- The ident of the component. Use the predefined idents
to specify what component is requested.public FwkKeyListenerInterface getKeyListener()
public void setVisible(boolean flag)
setVisible
in class java.awt.Dialog
public void save()
public FwkDialogPaneValueInterface[] get()
public void reset()