nl.coderight.jazz.dialog
Class InputDialog
java.lang.Object
nl.coderight.jazz.dialog.InputDialog
public class InputDialog
- extends Object
Provides an implementation of an input dialog.
Example:
InputDialog dialog = new InputDialog();
dialog.setTitle("Question...");
dialog.setMessage("Please enter value");
dialog.setMessageType(MessageType.QUESTION);
dialog.show();
Object value = dialog.getInputValue();
For more information see JOptionPane.showInputDialog(Object)
.
- See Also:
JOptionPane
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputDialog
public InputDialog()
InputDialog
public InputDialog(View view)
setTitle
public void setTitle(String title)
setMessage
public void setMessage(String message)
setMessage
public void setMessage(Message message)
setMessageType
public void setMessageType(MessageType messageType)
setDefaultSelectionValue
public void setDefaultSelectionValue(Object defaultSelectionValue)
setSelectionValues
public void setSelectionValues(Object... selectionValues)
setOptions
public void setOptions(String ok,
String cancel)
setOptions
public void setOptions(Action ok,
Action cancel)
getReturnOptionType
public ReturnOptionType getReturnOptionType()
getInputValue
public Object getInputValue()
show
public void show()
setModalityType
public void setModalityType(Dialog.ModalityType modalityType)
Copyright 2010 CodeRight, All rights reserved.