|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.BasicButton
public class BasicButton
Constructor Summary | |
---|---|
BasicButton()
Creates a button with no set text or icon. |
|
BasicButton(javax.swing.Action a)
Creates a button where properties are taken from the Action supplied. |
|
BasicButton(javax.swing.Icon icon)
Creates a button with an icon. |
|
BasicButton(java.lang.String text)
Creates a button with text. |
|
BasicButton(java.lang.String text,
javax.swing.Icon icon)
Creates a button with initial text and an icon. |
Method Summary | |
---|---|
protected void |
configurePropertiesFromAction(javax.swing.Action a)
Factory method which sets the AbstractButton 's properties
according to values from the Action instance. |
java.lang.String |
getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
Constructor Detail |
---|
public BasicButton()
public BasicButton(javax.swing.Icon icon)
icon
- the Icon image to display on the buttonpublic BasicButton(java.lang.String text)
text
- the text of the buttonpublic BasicButton(javax.swing.Action a)
Action
supplied.
a
- the Action
used to specify the new buttonpublic BasicButton(java.lang.String text, javax.swing.Icon icon)
text
- the text of the buttonicon
- the Icon image to display on the buttonMethod Detail |
---|
public void updateUI()
updateUI
in class javax.swing.AbstractButton
JComponent.updateUI()
public java.lang.String getUIClassID()
getUIClassID
in class javax.swing.JComponent
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
protected void configurePropertiesFromAction(javax.swing.Action a)
AbstractButton
's properties
according to values from the Action
instance.
The properties which get set may differ for AbstractButton
subclasses. By default, the properties which get set are
Text, Icon, Enabled, ToolTipText, ActionCommand
, and
Mnemonic
.
configurePropertiesFromAction
in class javax.swing.AbstractButton
a
- the Action
from which to get the
properties, or null
Action
,
AbstractButton.setAction(javax.swing.Action)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |