public class ValueDialog
extends java.lang.Object
Constructor and Description |
---|
ValueDialog(java.awt.Component form)
Default OK action set the chosen flag.
|
ValueDialog(java.awt.Component form,
java.util.concurrent.Callable<java.lang.Boolean> okAction)
Provide an action for when OK selected.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isChosen() |
void |
showDialog(java.awt.Component parent)
Show the dialogue.
|
void |
showDialog(java.awt.Component parent,
boolean hideCancel)
This is used by designer sub dialogues because there is no
way to cancel a change.
|
public ValueDialog(java.awt.Component form)
form
- public ValueDialog(java.awt.Component form, java.util.concurrent.Callable<java.lang.Boolean> okAction)
form
- okAction
- public boolean isChosen()
public void showDialog(java.awt.Component parent)
parent
- The parent component/frame.public void showDialog(java.awt.Component parent, boolean hideCancel)
parent
- The parent component/frame.hideCancel
- Hide the cancel button.