net.yura.mobile.gui.components
Class OptionPane
java.lang.Object
net.yura.mobile.gui.components.Component
net.yura.mobile.gui.components.Panel
net.yura.mobile.gui.components.Window
net.yura.mobile.gui.components.Frame
net.yura.mobile.gui.components.OptionPane
- All Implemented Interfaces:
- Runnable, ActionListener
public class OptionPane
- extends Frame
- implements Runnable, ActionListener
- Author:
- Yura Mamyrin
- See Also:
JOptionPane
Fields inherited from class net.yura.mobile.gui.components.Component |
background, empty, FOCUS_GAINED, FOCUS_LOST, focusable, foreground, height, parent, posX, posY, preferredHeight, preferredWidth, state, theme, width |
Method Summary |
void |
actionPerformed(String actionCommand)
|
static void |
autoMnemonic(Vector items)
|
ActionListener |
getActionListener()
|
static Vector |
getAllWindows()
|
Object |
getMessage()
|
int |
getMessageType()
|
Button[] |
getOptions()
|
boolean |
processKeyEvent(KeyEvent keypad)
|
void |
run()
|
void |
setActionListener(ActionListener actionListener)
|
void |
setIcon(Icon icon)
|
void |
setInitialValue(Button initialValue)
|
void |
setMessage(Object newMessage)
|
void |
setMessageType(int messageType)
|
void |
setOptions(Button[] options)
|
static OptionPane |
showConfirmDialog(ActionListener parent,
Object message,
String title,
int optionType)
|
static OptionPane |
showMessageDialog(ActionListener parent,
Object message,
String title,
int messageType)
|
static OptionPane |
showOptionDialog(ActionListener parent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Button[] options,
Button initialValue)
|
Methods inherited from class net.yura.mobile.gui.components.Frame |
add, add, add, breakOutAction, doLayout, getContentPane, getDefaultName, getMenuBar, getTitle, getTitlePane, isMaximum, setClosable, setContentPane, setIconImage, setMaximizable, setMaximum, setMenuBar, setTitle, setUndecorated, workoutMinimumSize |
Methods inherited from class net.yura.mobile.gui.components.Window |
addCommand, addWindowListener, doClose, findMneonicButton, getComponentAt, getDesktopPane, getFocusOwner, getMostRecentFocusOwner, getRendererComponentOnScreen, isFocused, isVisible, makeVisible, pack, paint, paintSoftKeys, passScrollUpDown, processMouseEvent, removeCommand, setCloseOnFocusLost, setDesktopPane, setFocusedComponent, setLocationRelativeTo, setSize, setupFocusedComponent, setVisible, updateUI |
Methods inherited from class net.yura.mobile.gui.components.Panel |
addImpl, getComponentCount, getComponents, getConstraints, getLayout, paintChildren, paintComponent, remove, remove, removeAll, setLayout, toString, validate |
Methods inherited from class net.yura.mobile.gui.components.Component |
addFocusListener, animate, clip, consumesMotionEvents, focusGained, focusLost, getBackground, getBorder, getCurrentState, getFocusListeners, getForeground, getHeight, getHeightWithBorder, getInsets, getName, getParent, getPreferredHeight, getPreferredWidth, getState, getToolTipLocationX, getToolTipLocationY, getToolTipText, getValue, getWidth, getWidthWithBorder, getWindow, getX, getXOnScreen, getXWithBorder, getY, getYOnScreen, getYWithBorder, insert, insert, isComponentVisible, isFocusable, isFocusOwner, isOpaque, isRectVisible, isShowing, paintBorder, processMultitouchEvent, removeFocusListener, removeParent, repaint, requestFocusInWindow, revalidate, scrollRectToVisible, scrollUpDown, setBackground, setBorder, setBounds, setBoundsWithBorder, setFocusable, setForeground, setLocation, setName, setPreferredSize, setState, setToolTipText, setupState, setValue, transferFocus, wait, workoutSize |
ERROR_MESSAGE
public static final int ERROR_MESSAGE
- See Also:
JOptionPane.ERROR_MESSAGE
,
Constant Field Values
INFORMATION_MESSAGE
public static final int INFORMATION_MESSAGE
- See Also:
JOptionPane.INFORMATION_MESSAGE
,
Constant Field Values
OK_CANCEL_OPTION
public static final int OK_CANCEL_OPTION
- See Also:
JOptionPane.OK_CANCEL_OPTION
,
Constant Field Values
OK_OPTION
public static final int OK_OPTION
- See Also:
JOptionPane.OK_OPTION
,
Constant Field Values
PLAIN_MESSAGE
public static final int PLAIN_MESSAGE
- See Also:
JOptionPane.PLAIN_MESSAGE
,
Constant Field Values
QUESTION_MESSAGE
public static final int QUESTION_MESSAGE
- See Also:
JOptionPane.QUESTION_MESSAGE
,
Constant Field Values
WARNING_MESSAGE
public static final int WARNING_MESSAGE
- See Also:
JOptionPane.WARNING_MESSAGE
,
Constant Field Values
YES_NO_OPTION
public static final int YES_NO_OPTION
- See Also:
JOptionPane.YES_NO_OPTION
,
Constant Field Values
OptionPane
public OptionPane()
- See Also:
JOptionPane.JOptionPane
actionPerformed
public void actionPerformed(String actionCommand)
- Specified by:
actionPerformed
in interface ActionListener
- Parameters:
actionCommand
- The Command of the action- See Also:
ActionListener.actionPerformed
autoMnemonic
public static void autoMnemonic(Vector items)
getActionListener
public ActionListener getActionListener()
getAllWindows
public static Vector getAllWindows()
getMessage
public Object getMessage()
- See Also:
JOptionPane.getMessage
getMessageType
public int getMessageType()
- See Also:
JOptionPane.getMessageType
getOptions
public Button[] getOptions()
- See Also:
JOptionPane.getOptions
processKeyEvent
public boolean processKeyEvent(KeyEvent keypad)
- Overrides:
processKeyEvent
in class Component
- See Also:
JComponent.processKeyEvent
run
public void run()
- Specified by:
run
in interface Runnable
setActionListener
public void setActionListener(ActionListener actionListener)
setIcon
public void setIcon(Icon icon)
- See Also:
JOptionPane.setIcon
setInitialValue
public void setInitialValue(Button initialValue)
- See Also:
JOptionPane.setInitialValue
setMessage
public void setMessage(Object newMessage)
- See Also:
JOptionPane.setMessage
setMessageType
public void setMessageType(int messageType)
- See Also:
JOptionPane.setMessageType
setOptions
public void setOptions(Button[] options)
- See Also:
JOptionPane.setOptions
showConfirmDialog
public static OptionPane showConfirmDialog(ActionListener parent,
Object message,
String title,
int optionType)
- See Also:
JOptionPane.showConfirmDialog
showMessageDialog
public static OptionPane showMessageDialog(ActionListener parent,
Object message,
String title,
int messageType)
- See Also:
JOptionPane.showMessageDialog
showOptionDialog
public static OptionPane showOptionDialog(ActionListener parent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Button[] options,
Button initialValue)
- See Also:
JOptionPane.showOptionDialog