public class InfoDialog
extends javax.swing.JDialog
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 |
---|---|
static int |
CANCEL_BUTTON |
static int |
CANCEL_WINDOW |
static int |
OK |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
InfoDialog(java.awt.Frame parent)
Creates new InfoDialog, for parent frame with modality modal
|
Modifier and Type | Method and Description |
---|---|
void |
appendInfoText(java.lang.String text)
Append text to the information area, Scrolling should be enabled
|
void |
createError(java.lang.String title)
Create error dialog
|
void |
createError(java.lang.String title,
java.lang.String info)
Create error dialog
|
void |
createInfo(java.lang.String title)
Convenience methods
|
void |
createInfo(java.lang.String title,
java.lang.String info) |
void |
createProgress(java.lang.String title,
java.lang.String info)
Create progress bar dialog
|
void |
createWarn(java.lang.String title) |
void |
createWarn(java.lang.String title,
java.lang.String info)
Create warning dialog
|
java.awt.Font |
getFont() |
int |
getReturnStatus() |
javax.swing.JTextArea |
getTextArea() |
boolean |
isCheckBoxSelected()
Test to see if checkbox is selected
|
void |
progressTask(int status,
javax.swing.JProgressBar jpb)
Overridable handle for a progress based task
|
void |
setAckEnabled(boolean enabled)
Set whether Ok button is enabled
|
void |
setAckVisible(boolean visible)
Set whether OK button is visible
|
void |
setAutoClose(int millis)
Set the form auto close period in milliseconds
|
void |
setAutoScrollEnabled(boolean enabled)
Enable/Disable Autoscrolling
|
void |
setCancelButtonText(java.lang.String text) |
void |
setCancelEnabled(boolean enabled)
Set whether Cancel button is enabled
|
void |
setCancelVisible(boolean visible)
Set whether Cancel button is visible
|
void |
setCheckBoxEnabled(boolean checked)
Set check box selection status
|
void |
setCheckBoxText(java.lang.String text) |
void |
setCheckBoxVisible(boolean enabled)
Set whether the forms checkbox is enabled
|
void |
setCloseButtonText(java.lang.String text) |
void |
setContinueButtonText(java.lang.String text) |
void |
setFont(java.lang.String font,
int sizeoffset)
Set info font
|
void |
setInfoText(java.lang.String text)
Set dialog message body
|
void |
setInfoText(java.lang.String text,
java.awt.Color fgcolor)
Set dialog message body, and font colour
|
void |
setTimeLock(int secs) |
void |
setTitle(java.lang.String title)
Set dialog title
|
void |
setVisibleWithFocus(boolean visible) |
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, setUndecorated, setVisible, 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, 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
public static final int CANCEL_BUTTON
public static final int CANCEL_WINDOW
public static final int OK
public InfoDialog(java.awt.Frame parent)
parent
- public final java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
getFont
in class java.awt.Component
public final void createInfo(java.lang.String title)
title
- public final void createInfo(java.lang.String title, java.lang.String info)
title
- info
- public final void setTitle(java.lang.String title)
setTitle
in class java.awt.Dialog
title
- public final void createWarn(java.lang.String title)
title
- public final void createWarn(java.lang.String title, java.lang.String info)
title
- info
- public final void createProgress(java.lang.String title, java.lang.String info)
title
- info
- public void progressTask(int status, javax.swing.JProgressBar jpb)
status
- jpb
- public final void createError(java.lang.String title)
title
- public final void createError(java.lang.String title, java.lang.String info)
title
- info
- public final void setTimeLock(int secs)
public final void setCloseButtonText(java.lang.String text)
public final void setCancelButtonText(java.lang.String text)
public final void setContinueButtonText(java.lang.String text)
public final void setCheckBoxText(java.lang.String text)
public final void setAutoScrollEnabled(boolean enabled)
enabled
- public final void appendInfoText(java.lang.String text)
text
- public final void setCheckBoxVisible(boolean enabled)
enabled
- public final void setCheckBoxEnabled(boolean checked)
checked
- public final boolean isCheckBoxSelected()
public final void setFont(java.lang.String font, int sizeoffset)
font
- sizeoffset
- public final void setAutoClose(int millis)
millis
- public final javax.swing.JTextArea getTextArea()
public final int getReturnStatus()
public final void setInfoText(java.lang.String text)
text
- public final void setInfoText(java.lang.String text, java.awt.Color fgcolor)
text
- fgcolor
- public final void setCancelEnabled(boolean enabled)
enabled
- public final void setCancelVisible(boolean visible)
visible
- public final void setAckEnabled(boolean enabled)
enabled
- public final void setAckVisible(boolean visible)
visible
- public void setVisibleWithFocus(boolean visible)