Package org.oddjob.arooa.design.view
Class ValueDialog
java.lang.Object
org.oddjob.arooa.design.view.ValueDialog
Create dialogs for forms.
-
Constructor Summary
ConstructorsConstructorDescriptionValueDialog(Component form) Default OK action set the chosen flag.ValueDialog(Component form, Callable<Boolean> okAction) Provide an action for when OK selected. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisChosen()voidshowDialog(Component parent) Show the dialogue.voidshowDialog(Component parent, boolean hideCancel) This is used by designer sub dialogues because there is no way to cancel a change.voidshowDialog(Component parent, boolean hideCancel, Consumer<? super AutoCloseable> asyncClose) Show the dialogue with the ability to close it being passed out.
-
Constructor Details
-
ValueDialog
Default OK action set the chosen flag.- Parameters:
form-
-
ValueDialog
Provide an action for when OK selected.- Parameters:
form-okAction-
-
-
Method Details
-
isChosen
public boolean isChosen() -
showDialog
Show the dialogue.- Parameters:
parent- The parent component/frame.
-
showDialog
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.
-
showDialog
public void showDialog(Component parent, boolean hideCancel, Consumer<? super AutoCloseable> asyncClose) Show the dialogue with the ability to close it being passed out. Required so the Input Dialogue can be closed when the job that created it stops.- Parameters:
parent- The parent component/frame.hideCancel- Hide the cancel button.asyncClose- A consumer that will be given a way to close this dialog.
-