|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hillenbrand.jreqtools.AbstractRequester
de.hillenbrand.jreqtools.OkCancelRequester
public abstract class OkCancelRequester
Field Summary | |
---|---|
protected int |
answer
|
protected javax.swing.JButton |
cancel
|
protected java.lang.String |
comment
|
protected boolean |
drawFirstSeparator
|
protected boolean |
drawSecondSeparator
|
protected javax.swing.Icon |
icon
|
protected javax.swing.JButton |
ok
|
Fields inherited from class de.hillenbrand.jreqtools.AbstractRequester |
---|
CANCEL, dialog, listener, message, OK, title |
Constructor Summary | |
---|---|
OkCancelRequester(java.lang.String title,
java.lang.String message)
|
|
OkCancelRequester(java.lang.String title,
java.lang.String message,
javax.swing.Icon icon)
|
Method Summary | |
---|---|
protected void |
cancel()
|
protected javax.swing.JPanel |
createContentPane()
|
java.lang.String |
getComment()
Returns the value of the comment property. |
protected javax.swing.JButton |
getDefaultButton()
|
javax.swing.Icon |
getIcon()
Returns the value of the icon property. |
protected javax.swing.JComponent |
getOkTriggerComponent()
|
protected java.awt.Dimension |
getPreferredRequesterSize()
Return the preferred size of the dialog's frame to be used when the requester opens for the first time. |
protected int |
getReturnValue()
|
protected abstract javax.swing.JPanel |
getUserPanel()
|
boolean |
isDrawFirstSeparator()
|
boolean |
isDrawSecondSeparator()
|
protected void |
ok()
|
protected void |
prepareForRequest()
This method is being called directly before the dialog will be shown. |
void |
setCancelButtonText(java.lang.String text)
Sets the text of the "Cancel" button. |
void |
setComment(java.lang.String arg)
Assigns the value of the comment property. |
void |
setDrawFirstSeparator(boolean drawFirstSeparator)
|
void |
setDrawSecondSeparator(boolean drawSecondSeparator)
|
void |
setDrawSeparators(boolean drawSeparators)
|
void |
setIcon(javax.swing.Icon arg)
Assigns the value of the icon property. |
void |
setOkButtonText(java.lang.String text)
Sets the text of the "Ok" button. |
void |
simulateCancelPressed()
|
void |
simulateOkPressed()
|
protected java.lang.String |
validateData()
|
Methods inherited from class de.hillenbrand.jreqtools.AbstractRequester |
---|
_checkLocation, _checkLocation, _checkSize, _checkSize, checkForClass, enableHelpKey4JavaHelp, getBounds, getLocation, getMessage, getSize, getTitle, request, request, request, setBorder, setBounds, setBounds, setLocation, setLocation, setMessage, setSize, setSize, setTitle, setVisible, showError, showException, showMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int answer
protected java.lang.String comment
protected final javax.swing.JButton ok
protected final javax.swing.JButton cancel
protected javax.swing.Icon icon
protected boolean drawFirstSeparator
protected boolean drawSecondSeparator
Constructor Detail |
---|
public OkCancelRequester(java.lang.String title, java.lang.String message)
public OkCancelRequester(java.lang.String title, java.lang.String message, javax.swing.Icon icon)
Method Detail |
---|
public boolean isDrawFirstSeparator()
public void setDrawFirstSeparator(boolean drawFirstSeparator)
public boolean isDrawSecondSeparator()
public void setDrawSecondSeparator(boolean drawSecondSeparator)
public void setDrawSeparators(boolean drawSeparators)
protected void cancel()
protected javax.swing.JPanel createContentPane()
createContentPane
in class AbstractRequester
public java.lang.String getComment()
protected javax.swing.JButton getDefaultButton()
getDefaultButton
in class AbstractRequester
public javax.swing.Icon getIcon()
protected javax.swing.JComponent getOkTriggerComponent()
protected java.awt.Dimension getPreferredRequesterSize()
protected int getReturnValue()
getReturnValue
in class AbstractRequester
protected abstract javax.swing.JPanel getUserPanel()
protected void ok()
protected void prepareForRequest()
AbstractRequester
prepareForRequest
in class AbstractRequester
public void setCancelButtonText(java.lang.String text)
text
- public void setComment(java.lang.String arg)
arg
- public void setIcon(javax.swing.Icon arg)
arg
- public void setOkButtonText(java.lang.String text)
text
- public void simulateCancelPressed()
public void simulateOkPressed()
protected java.lang.String validateData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |