|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface IstiDialogInterface defines the methods used to operate a 'IstiDialogPopup' object. Other objects may use this interface to optionally operate a dialog popup without having to reference the 'IstiDialogPopup' class.
Field Summary |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Method Summary | |
void |
close()
Closes the popup dialog window. |
void |
close(java.lang.Object obj)
Closes the popup dialog window. |
void |
closeWithWait(int maxWaitTimeMs)
Waits (if necessary) for the popup dialog window to be visible and then closes it. |
void |
closeWithWait(java.lang.Object obj,
int maxWaitTimeMs)
Waits (if necessary) for the popup dialog window to be visible and then closes it. |
void |
dispose()
Disposes the popup dialog window. |
java.lang.Object |
getInputValue()
Returns the value the user has input. |
java.lang.Object |
getMessageObj()
Returns the message object displayed by this dialog. |
java.lang.String |
getMessageStr()
Returns the message string displayed by this dialog. |
java.lang.String |
getTitleStr()
Returns the title displayed by this dialog. |
java.lang.String |
getUserMessageString()
Returns the user-defined message string set via the 'setMessageString()' method. |
java.lang.Object |
getValue()
Returns the value the user has selected. |
void |
hide()
Hides the popup dialog window. |
void |
invalidate()
Invalidates the popup dialog window. |
boolean |
isModal()
Returns the modal status of the dialog. |
boolean |
isShowing()
Returns true if the popup dialog window is showing. |
boolean |
isVisible()
Determines whether the popup dialog should be visible when its parent is visible. |
void |
pack()
Causes this dialog to be sized to fit the preferred size and layouts of its subcomponents. |
void |
repaint()
Repaints the popup dialog window. |
void |
requestFocus()
Requests that the dialog get the input focus, and that the dialog's top-level ancestor become the focused Window. |
void |
setDefaultCloseOperation(int selVal)
Sets the operation which will happen by default when the user initiates a "close" on this dialog. |
void |
setInitialFocus()
Requests that the current "initial" component have focus. |
void |
setLocation(int x,
int y)
Moves the dialog to a new location. |
void |
setMessageObj(java.lang.Object obj)
Sets the message object displayed by this dialog. |
void |
setMessageStr(java.lang.String str)
Sets the message object displayed by this dialog to the given string. |
void |
setModal(boolean modalFlag)
Specifies whether this dialog should be modal. |
void |
setResizable(boolean resizableFlag)
Sets whether the dialog is resizable by the user. |
void |
setSize(int width,
int height)
Sets the size of the dialog. |
void |
setTitleStr(java.lang.String str)
Sets the title displayed by this dialog. |
void |
setUserMessageString(java.lang.String str)
Sets a user-defined message string that may be fetched via the 'getMessageString()' method. |
void |
setVisible(boolean flgVal)
Sets the visibility of the dialog window. |
void |
setVisibleViaInvokeLater(boolean flgVal)
Sets the visibility of the dialog window, using the event-dispatch thread via a call to 'SwingUtilities.invokeLater()'. |
java.lang.Object |
show()
Displays the popup dialog window. |
java.lang.Object |
showAndWait()
Displays the popup dialog window. |
void |
validate()
Validates the popup dialog window. |
boolean |
waitForDialogVisible(int maxWaitTimeMs)
Waits for the popup dialog window to be visible, up to the given maximum time value. |
Method Detail |
public java.lang.Object show()
public java.lang.Object showAndWait()
public void setVisible(boolean flgVal)
flgVal
- true for visible, false for hidden.public void setVisibleViaInvokeLater(boolean flgVal)
flgVal
- true for visible, false for hidden.public boolean isVisible()
true
if the popup dialog is visible;
false
otherwise.public boolean isShowing()
public boolean waitForDialogVisible(int maxWaitTimeMs)
maxWaitTimeMs
- the maximum time to wait, in milliseconds.
public void close(java.lang.Object obj)
obj
- the value to be returned via the 'show()' or 'showAndWait()'
method.public void close()
public void closeWithWait(java.lang.Object obj, int maxWaitTimeMs)
obj
- the value to be returned via the 'show()' or 'showAndWait()'
method.maxWaitTimeMs
- the maximum time to wait for the popup dialog
window to be visible, in milliseconds.public void closeWithWait(int maxWaitTimeMs)
maxWaitTimeMs
- the maximum time to wait for the popup dialog
window to be visible, in milliseconds.public void hide()
public void dispose()
public void repaint()
public void validate()
public void invalidate()
public void pack()
public void setSize(int width, int height)
width
- the width to use.height
- the height to use.public void setResizable(boolean resizableFlag)
resizableFlag
- true if the user can resize this dialog; false
otherwise.public void setLocation(int x, int y)
x
and y
parameters in the coordinate space of this component's parent.
x
- The x-coordinate of the new location's
top-left corner in the parent's coordinate space.y
- The y-coordinate of the new location's
top-left corner in the parent's coordinate space.public void requestFocus()
public void setModal(boolean modalFlag)
modalFlag
- true for modal, false for modeless (allows other
windows to run).public boolean isModal()
public void setDefaultCloseOperation(int selVal)
selVal
- one of the following constants: DISPOSE_ON_CLOSE,
DO_NOTHING_ON_CLOSE, or HIDE_ON_CLOSE.public void setMessageObj(java.lang.Object obj)
obj
- the message obj.public java.lang.Object getMessageObj()
public void setMessageStr(java.lang.String str)
str
- the message string.public java.lang.String getMessageStr()
public void setTitleStr(java.lang.String str)
str
- the title string to display.public java.lang.String getTitleStr()
public java.lang.Object getInputValue()
public java.lang.Object getValue()
public void setUserMessageString(java.lang.String str)
str
- the message text.public java.lang.String getUserMessageString()
public void setInitialFocus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |