|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Dialog
Interface for widgets that can be used as a dialog box.
| display/geotk-widgets-swing (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
commitEdit()
Forces the current value to be taken from the editable fields and set them as the current values. |
boolean |
showDialog(Component owner,
String title)
Shows a dialog box requesting input from the user. |
| Method Detail |
|---|
boolean showDialog(Component owner,
String title)
owner. If owner is contained into a JDesktopPane,
the dialog box will appears as an internal frame.
Multi-threading
Geotk implementations allow this method to be invoked from any thread. If the caller
thread is not the Swing thread, then the execution of this method will be
registered in the AWT Event Queue and the caller thread will block until completion.
owner - The parent component for the dialog box, or null if there is no parent.title - The dialog box title.
true if user pressed the "Ok" button, or false otherwise
(e.g. pressing "Cancel" or closing the dialog box from the title bar).
void commitEdit()
throws ParseException
This method is typically invoked after showDialog(Component, String)
returned true and before to read the values from the dialog widget.
ParseException - If at least one values couldn't be commited.JFormattedTextField.commitEdit(),
JSpinner.commitEdit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||