org.oddjob.arooa.design.view
Class ValueDialog

java.lang.Object
  extended by org.oddjob.arooa.design.view.ValueDialog

public class ValueDialog
extends Object

Create dialogs for forms.


Constructor Summary
ValueDialog(Component form)
          Default OK action set the chosen flag.
ValueDialog(Component form, Callable<Boolean> okAction)
          Provide an action for when OK selected.
 
Method Summary
 boolean isChosen()
           
 void showDialog(Component parent)
          Show the dialogue.
 void showDialog(Component parent, boolean hideCancel)
          This is used by designer sub dialogues because there is no way to cancel a change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueDialog

public ValueDialog(Component form)
Default OK action set the chosen flag.

Parameters:
form -

ValueDialog

public ValueDialog(Component form,
                   Callable<Boolean> okAction)
Provide an action for when OK selected.

Parameters:
form -
okAction -
Method Detail

isChosen

public boolean isChosen()

showDialog

public void showDialog(Component parent)
Show the dialogue.

Parameters:
parent - The parent component/frame.

showDialog

public void showDialog(Component parent,
                       boolean hideCancel)
This is used by designer sub dialogues because there is no way to cancel a change. This implementation is a quick and dirty and needs re-thinking.

Parameters:
parent - The parent component/frame.
hideCancel - Hide the cancel button.