|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--com.novell.application.console.widgets.NDialog
|
+--com.novell.utility.nmsgbox.NMsgBox
Provides a common message box for displaying messages.
This message box consists of the following four types:
| Inner classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
| Inner classes inherited from class java.awt.Dialog |
java.awt.Dialog.AccessibleAWTDialog |
| Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static int |
CANCEL
[Cancel] button identifier. |
static int |
CLOSE
[Close] button identifier. |
static int |
CONFIRM
Confirmation message box type. |
static int |
DETAILS
[Details] button identifier. |
static int |
ERROR
Error message box type. |
static int |
ERROR_IGNORE
Error allowing the user to ignore, ignore all, or cancel. |
static int |
IGNORE
[IGNORE] button identifier. |
static int |
IGNORE_ALL
[IGNORE_ALL] button identifier. |
static int |
INFO
Information message box type. |
static int |
NO
[No] button identifier. |
static int |
NO_ALL
[No All] button identifier. |
static int |
OK
[OK] button identifier. |
static int |
PROMPT
[Prompt] button identifier. |
static int |
WARN
Warning message box type. |
static int |
WARN_ALL
Warning all message box type. |
static int |
WARN_ALL_WITH_CANCEL
Warning all message box type with cancel. |
static int |
WARN_PROMPT_WITH_CANCEL
Warn with prompt option and cancel. |
static int |
WARN_WITH_CANCEL
Warning message box type with cancel. |
static int |
YES
[Yes] button identifier. |
static int |
YES_ALL
[Yes All] button identifier. |
| Fields inherited from class com.novell.application.console.widgets.NDialog |
CANCEL_BUTTON,
CLOSE_BUTTON,
HELP_BUTTON,
NO_BUTTON,
NULL_BUTTON,
OK_BUTTON,
parent,
YES_BUTTON |
| Fields inherited from class javax.swing.JDialog |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
NMsgBox(java.awt.Component parent,
java.lang.String title,
java.lang.String msg,
int type)
Creates a pre-defined modal message box without help system support. |
|
NMsgBox(java.awt.Component parent,
java.lang.String title,
java.lang.String msg,
int type,
java.lang.String helpSetName)
Creates a pre-defined modal message box with help system support. |
|
NMsgBox(java.awt.Component parent,
java.lang.String title,
java.lang.String msg,
int type,
java.lang.String helpSetName,
java.lang.String helpID)
Creates a pre-defined modal message box with help system support. |
|
| Method Summary | |
java.awt.Component |
add(java.awt.Component comp)
Adds a component to the button panel. |
java.util.Vector |
c1AutomationInvoke(java.util.Vector vTokens)
|
java.awt.Dimension |
getPreferredSize()
Return the preferred size of the message box dialog. |
int |
getPressedButton()
Returns the button that was pressed. |
protected void |
help()
Override superclass help method. |
void |
keyPressed(java.awt.event.KeyEvent event)
|
void |
keyReleased(java.awt.event.KeyEvent event)
|
void |
keyTyped(java.awt.event.KeyEvent event)
|
int |
launch()
Launches the message box, calls setVisible(true), and calls getPressedButton() to return the button that the user pressed. |
void |
setVisible(boolean state)
Override the setVisible() and try to work out a more thread safe war of doing nMsgBox. |
| Methods inherited from class com.novell.application.console.widgets.NDialog |
add,
add,
add,
add,
closeDialog,
processEvent,
setEmptyBorder,
setEmptyBorder,
setLayout,
setPressedButton,
show |
| Methods inherited from class javax.swing.JDialog |
addImpl,
createRootPane,
dialogInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLocationRelativeTo,
setRootPane,
setRootPaneCheckingEnabled,
update |
| Methods inherited from class java.awt.Dialog |
addNotify,
getTitle,
hide,
isModal,
isResizable,
setModal,
setResizable,
setTitle |
| Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
finalize,
getFocusOwner,
getGraphicsConfiguration,
getInputContext,
getListeners,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isShowing,
pack,
postEvent,
removeWindowListener,
setCursor,
toBack,
toFront |
| Methods inherited from class java.awt.Container |
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addHierarchyBoundsListener,
addHierarchyListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
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,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeHierarchyBoundsListener,
removeHierarchyListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int CONFIRM
(CONFIRM = 0)
public static final int INFO
(INFO = 1)
public static final int WARN
(WARN = 2)
public static final int ERROR
(ERROR = 3)
public static final int WARN_ALL
(WARN_ALL = 4)
public static final int WARN_WITH_CANCEL
(WARN_WITH_CANCEL = 5)
public static final int WARN_ALL_WITH_CANCEL
(WARN_ALL_WITH_CANCEL = 6)
public static final int WARN_PROMPT_WITH_CANCEL
(WARN_PROMPT_WITH_CANCEL = 7)
public static final int ERROR_IGNORE
(ERROR_IGNORE = 8)
public static final int OK
(OK = 0x0001)
public static final int CANCEL
(CANCEL = 0x0002)
public static final int CLOSE
(CLOSE = 0x0004)
public static final int YES
(YES = 0x0008)
public static final int NO
(NO = 0x0010)
public static final int DETAILS
(DETAILS = 0x00020)
public static final int YES_ALL
(YES_ALL = 0x0040)
public static final int NO_ALL
(NO_ALL = 0x0080)
public static final int PROMPT
(PROMPT = 0x0100)
public static final int IGNORE
(IGNORE = 0x0102
public static final int IGNORE_ALL
(IGNORE_ALL = 0x0104
| Constructor Detail |
public NMsgBox(java.awt.Component parent,
java.lang.String title,
java.lang.String msg,
int type,
java.lang.String helpSetName,
java.lang.String helpID)
parent - The parent Component.title - The title to be put in the title bar.msg - The message to be displayed in the message area.type - The type of the pre-built message box.helpSetName - The help set file name (pass in 'null' for no help).helpID - The help set ID.public NMsgBox(java.awt.Component parent,
java.lang.String title,
java.lang.String msg,
int type,
java.lang.String helpSetName)
parent - The parent component.title - The title to be put in the title bar.msg - The message to be displayed in the message area.type - The type of the pre-built message box.helpSetName - The help set file name (pass in 'null' for no help).public NMsgBox(java.awt.Component parent,
java.lang.String title,
java.lang.String msg,
int type)
parent - The parent component.title - The title to be put in the title bar.msg - The message to be displayed in the message area.type - The type of the pre-built message box.| Method Detail |
public java.awt.Component add(java.awt.Component comp)
comp - The Component to add to the button panel.public java.awt.Dimension getPreferredSize()
You can override the Dimension returned from getPreferredSize() to make sure your page is shown properly, otherwise the page will be displayed at the default standard size.
public int launch()
setVisible(boolean),
getPressedButton()public void setVisible(boolean state)
setVisible(boolean)public int getPressedButton()
This method is intended to be called after the message box is launched and then dismissed.
launch()protected void help()
public void keyReleased(java.awt.event.KeyEvent event)
public void keyPressed(java.awt.event.KeyEvent event)
public void keyTyped(java.awt.event.KeyEvent event)
public java.util.Vector c1AutomationInvoke(java.util.Vector vTokens)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||