nl.coderight.jazz.dialog
Class InputDialog

java.lang.Object
  extended by 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

Constructor Summary
InputDialog()
           
InputDialog(View view)
           
 
Method Summary
 Object getInputValue()
           
 ReturnOptionType getReturnOptionType()
           
 void setDefaultSelectionValue(Object defaultSelectionValue)
           
 void setMessage(Message message)
           
 void setMessage(String message)
           
 void setMessageType(MessageType messageType)
           
 void setModalityType(Dialog.ModalityType modalityType)
           
 void setOptions(Action ok, Action cancel)
           
 void setOptions(String ok, String cancel)
           
 void setSelectionValues(Object... selectionValues)
           
 void setTitle(String title)
           
 void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputDialog

public InputDialog()

InputDialog

public InputDialog(View view)
Method Detail

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.