89 |
|
|
90 |
protected void configurePropertiesFromAction(Action a) |
protected void configurePropertiesFromAction(Action a) |
91 |
{ |
{ |
92 |
//Factory method which sets the AbstractButton's properties according to values from the Action instance. |
// Factory method which sets the AbstractButton's properties according to |
93 |
|
// values from the Action instance. |
94 |
super.configurePropertiesFromAction(a); |
super.configurePropertiesFromAction(a); |
95 |
} |
} |
96 |
|
|
97 |
public AccessibleContext getAccessibleContext() |
public AccessibleContext getAccessibleContext() |
98 |
{ |
{ |
99 |
//Gets the AccessibleContext associated with this JButton. |
// Gets the AccessibleContext associated with this JButton. |
100 |
return null; |
return null; |
101 |
} |
} |
102 |
|
|
103 |
public String getUIClassID() |
public String getUIClassID() |
104 |
{ |
{ |
105 |
//Returns a string that specifies the name of the L&F class that renders this component. |
// Returns a string that specifies the name of the L&F class that renders |
106 |
|
// this component. |
107 |
return "ButtonUI"; |
return "ButtonUI"; |
108 |
} |
} |
109 |
|
|
110 |
public boolean isDefaultButton() |
public boolean isDefaultButton() |
111 |
{ |
{ |
112 |
//Returns whether or not this button is the default button on the RootPane. |
// Returns whether or not this button is the default button on the |
113 |
|
// RootPane. |
114 |
return is_def; |
return is_def; |
115 |
} |
} |
116 |
|
|
117 |
public boolean isDefaultCapable() |
public boolean isDefaultCapable() |
118 |
{ |
{ |
119 |
//Returns whether or not this button is capable of being the default button on the RootPane. |
// Returns whether or not this button is capable of being the default |
120 |
|
// button on the RootPane. |
121 |
return def; |
return def; |
122 |
} |
} |
123 |
|
|