de.hillenbrand.jreqtools
Class IconRequester
java.lang.Object
de.hillenbrand.jreqtools.AbstractRequester
de.hillenbrand.jreqtools.OkCancelRequester
de.hillenbrand.jreqtools.IconRequester
public class IconRequester
- extends OkCancelRequester
This is a requester for image icons.
Constructor Summary |
IconRequester(java.lang.String message,
javax.swing.Icon[] icons,
javax.swing.Icon selected)
|
IconRequester(java.lang.String title,
java.lang.String message,
javax.swing.Icon[] icons,
javax.swing.Icon selected)
|
Method Summary |
javax.swing.Icon |
getIcon()
Returns the value of the icon property. |
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 javax.swing.JPanel |
getUserPanel()
|
protected void |
ok()
|
protected void |
prepareForRequest()
This method is being called directly before the dialog will be shown. |
void |
setIcon(javax.swing.Icon arg)
Assigns the value of the icon property. |
Methods inherited from class de.hillenbrand.jreqtools.OkCancelRequester |
cancel, createContentPane, getComment, getDefaultButton, getOkTriggerComponent, getReturnValue, isDrawFirstSeparator, isDrawSecondSeparator, setCancelButtonText, setComment, setDrawFirstSeparator, setDrawSecondSeparator, setDrawSeparators, setOkButtonText, simulateCancelPressed, simulateOkPressed, 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 |
IconRequester
public IconRequester(java.lang.String message,
javax.swing.Icon[] icons,
javax.swing.Icon selected)
IconRequester
public IconRequester(java.lang.String title,
java.lang.String message,
javax.swing.Icon[] icons,
javax.swing.Icon selected)
getIcon
public javax.swing.Icon getIcon()
- Returns the value of the icon property.
- Overrides:
getIcon
in class OkCancelRequester
- Returns:
getPreferredRequesterSize
protected java.awt.Dimension getPreferredRequesterSize()
- Description copied from class:
OkCancelRequester
- Return the preferred size of the dialog's frame to be used when the requester opens for the first time.
If it returns null, Dialog.pack() will be used ti determine the preferred size.
- Overrides:
getPreferredRequesterSize
in class OkCancelRequester
- Returns:
getUserPanel
protected javax.swing.JPanel getUserPanel()
- Specified by:
getUserPanel
in class OkCancelRequester
ok
protected void ok()
- Overrides:
ok
in class OkCancelRequester
prepareForRequest
protected void prepareForRequest()
- Description copied from class:
AbstractRequester
- This method is being called directly before the dialog will be shown.
- Overrides:
prepareForRequest
in class OkCancelRequester
setIcon
public void setIcon(javax.swing.Icon arg)
- Assigns the value of the icon property.
- Overrides:
setIcon
in class OkCancelRequester