public class OptionDialog extends Panel implements OptionChooser
Panel.AccessibleAWTPanelContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR |
static String |
ERROR_ICON |
static int |
INFORMATION |
static String |
INFORMATION_ICON |
static int |
QUESTION |
static String |
QUESTION_ICON |
static int |
UNCATEGORISED |
static boolean |
useDialogForPrompt |
static int |
WARNING |
static String |
WARNING_ICON |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
OptionDialog(int type,
Object text,
Option[] choices,
OptionCallback callback) |
OptionDialog(int type,
Object text,
Option[] choices,
OptionCallback callback,
Component buttonBarAccessory) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendException(Throwable exception,
int level,
StringBuffer buf,
boolean details) |
void |
choice(Option choice) |
Option |
dialogPrompt(Component parent,
String title) |
static void |
error(Component parent,
String title,
String message)
Show an error message with detail
|
static void |
error(Component parent,
String title,
String mesg,
Throwable exception)
Show an error message with toggable detail
|
static Option |
error(Component parent,
String title,
String mesg,
Throwable exception,
Option[] options)
Show an error message with toggable detail
|
static void |
error(Component parent,
String title,
Throwable exception)
Show an error message with detail
|
Component |
getComponent() |
static void |
info(Component parent,
String title,
String message) |
static void |
main(String[] args) |
static Option |
prompt(Component parent,
int type,
String title,
Object text,
Option[] choices) |
static Option |
prompt(Component parent,
int type,
String title,
Object text,
Option[] choices,
OptionCallback callback) |
static Option |
prompt(Component parent,
int type,
String title,
Object text,
Option[] choices,
OptionCallback callback,
Component buttonBarAccesory) |
static char[] |
promptForAuthentication(Component parent,
String title) |
static char[] |
promptForAuthentication(Component parent,
String title,
String label) |
static String |
promptForText(Component parent,
String title,
String defaultText,
Component accessory,
char echoCharacter,
String label) |
static String |
promptForText(Component parent,
String title,
String defaultText,
Component accessory,
char echoCharacter,
String label,
int textWidth,
String accesoryPosition) |
addNotify, getAccessibleContextadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, 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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static String INFORMATION_ICON
public static String WARNING_ICON
public static String QUESTION_ICON
public static String ERROR_ICON
public static final int INFORMATION
public static final int QUESTION
public static final int WARNING
public static final int ERROR
public static final int UNCATEGORISED
public static boolean useDialogForPrompt
public OptionDialog(int type,
Object text,
Option[] choices,
OptionCallback callback)
public OptionDialog(int type,
Object text,
Option[] choices,
OptionCallback callback,
Component buttonBarAccessory)
public static void main(String[] args)
public void choice(Option choice)
public static char[] promptForAuthentication(Component parent, String title)
public static char[] promptForAuthentication(Component parent, String title, String label)
public static String promptForText(Component parent, String title, String defaultText, Component accessory, char echoCharacter, String label)
public static String promptForText(Component parent, String title, String defaultText, Component accessory, char echoCharacter, String label, int textWidth, String accesoryPosition)
public static Option prompt(Component parent, int type, String title, Object text, Option[] choices)
public static Option prompt(Component parent, int type, String title, Object text, Option[] choices, OptionCallback callback)
public static Option prompt(Component parent, int type, String title, Object text, Option[] choices, OptionCallback callback, Component buttonBarAccesory)
public static void error(Component parent, String title, Throwable exception)
parent - title - exception - public static void error(Component parent, String title, String message)
parent - title - exception - public static void error(Component parent, String title, String mesg, Throwable exception)
parent - mesg - title - exception - public static Option error(Component parent, String title, String mesg, Throwable exception, Option[] options)
parent - mesg - title - exception - protected static void appendException(Throwable exception, int level, StringBuffer buf, boolean details)
public Component getComponent()
getComponent in interface OptionChooserCopyright © 2021. All rights reserved.