public class EntryDialog
extends java.lang.Object
Constructor and Description |
---|
EntryDialog(EntryPane... entryPanes)
Same as general constructor, but the dialog is positioned at
the screen center.
|
EntryDialog(int ulx,
int uly,
EntryPane... entryPanes)
General constructor that shows a modeless message dialog at given
position (upper left corner) containing any number of EntryPanes containers
any number of EntryItems of the same type.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntryListener(EntryListener listener)
Registers an EntryListener.
|
void |
addExitListener(ExitListener listener)
Registers a class that implements ExitListener.notifyExit() that will be called when
the title bar's close button is hit.
|
void |
dispose() |
javax.swing.JFrame |
getFrame()
Returns the underlaying JFrame
|
void |
hide()
Hides the dialog window.
|
boolean |
isChanged()
Checks if the state of the entry pane has changed due to user action.
|
boolean |
isDisposed()
Returns true, if the window is disposed.
|
void |
setAlwaysOnTop(boolean enable)
Enables/disalbes whether this window should always be above other windows.
|
void |
setTitle(java.lang.String text)
Displays the given title in the title bar.
|
void |
show()
Shows a hidden dialog window.
|
void |
toFront(boolean enable)
Brings the visible window to the front and make it focused or brings it to back.
|
public EntryDialog(EntryPane... entryPanes)
public EntryDialog(int ulx, int uly, EntryPane... entryPanes)
ulx
- the x-coordinate of the upper left corner of the dialog windowuly
- the y-coordinate of the upper left corner of the dialog windowentryPanes
- one or more references to EntryPane objects. They appear
in the order they are passedpublic boolean isChanged()
public void dispose()
public boolean isDisposed()
public void addExitListener(ExitListener listener)
public void addEntryListener(EntryListener listener)
public void setTitle(java.lang.String text)
text
- the text used as titlepublic void hide()
public void show()
public void setAlwaysOnTop(boolean enable)
enable
- if true, the dialog window remains on top (but may lost the focus)public void toFront(boolean enable)
enable
- if true, the dialog windows is put to the front; otherwise it is put to the backpublic javax.swing.JFrame getFrame()