|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
com.swfm.mica.layouts.MiLayout
com.swfm.mica.core.MiVisibleContainer
com.swfm.mica.widgets.MiWidget
com.swfm.mica.widgets.MiLabel
com.swfm.mica.widgets.MiButton
This abstract class is the base class for all sorts of button widgets.
| Field Summary | |
static java.lang.String |
Mi_FOCUS_LABEL_PROPERTY_NAME
|
static java.lang.String |
Mi_INSENSITIVE_LABEL_PROPERTY_NAME
|
static java.lang.String |
Mi_LABEL_PROPERTY_NAME
|
static java.lang.String |
Mi_SELECTED_LABEL_PROPERTY_NAME
|
| Constructor Summary | |
MiButton()
Constructs a new MiButton. |
|
MiButton(MiPart obj)
Constructs a new MiButton with the given graphics label. |
|
MiButton(java.lang.String text)
Constructs a new MiButton with the given text label. |
|
| Method Summary | |
void |
appendShortCut(MiEvent event)
Add a short cut to this button. |
void |
copy(MiPart source)
Copy the state of this MiPart into the target MiPart. |
MiPart |
getFocusLabel()
Gets the label to be displayed when this button has keyboard and or mouse focus. |
MiPart |
getInsensitiveLabel()
Gets the label to be displayed when this button is not sensitive. |
MiPart |
getNormalLabel()
Gets the label to be displayed when this button is sensitive, not selected and with neither mouse or keyboard focus. |
MiPropertyDescriptions |
getPropertyDescriptions()
Gets the descriptions of all of the properties. |
java.lang.String |
getPropertyValue(java.lang.String name)
Gets the textual value of the property with the given name. |
MiPart |
getSelectedLabel()
Gets the label to be displayed when this button is selected. |
boolean |
hasProperty(java.lang.String name)
Returns whether the property with the given name is valid. |
void |
processCommand(java.lang.String arg)
Executes/selects this button. |
void |
select(boolean flag)
Sets the button's selected state. |
void |
select(boolean flag,
boolean dispatchValueChangedActionUponSelect)
Sets the button's selected state. |
void |
setFocusLabel(MiPart label)
Sets the label to be displayed when this button has keyboard and or mouse focus. |
void |
setFocusLabel(java.lang.String label)
Sets the label to be displayed when this button has keyboard and or mouse focus. |
void |
setInsensitiveLabel(MiPart label)
Sets the label to be displayed when this button is not sensitive. |
void |
setInsensitiveLabel(java.lang.String label)
Sets the label to be displayed when this button is not sensitive. |
void |
setKeyboardFocus(boolean flag)
Sets the buttons keyboard focus state. |
void |
setLabel(MiPart obj)
Sets the label of this widget. |
void |
setMouseFocus(boolean flag)
Sets the buttons mouse focus state. |
void |
setNormalLabel(MiPart label)
Sets the label to be displayed when this button is sensitive, not selected and with neither mouse or keyboard focus. |
void |
setNormalLabel(java.lang.String label)
Sets the label to be displayed when this button is sensitive, not selected and with neither mouse or keyboard focus. |
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given value. |
void |
setSelectedLabel(MiPart label)
Sets the label to be displayed when this button is selected. |
void |
setSelectedLabel(java.lang.String label)
Sets the label to be displayed when this button is selected. |
void |
setValue(java.lang.String text)
Set the value of this widget, which is the label, to the given text. |
| Methods inherited from class com.swfm.mica.widgets.MiLabel |
create, getLabel, getPrototype, getValue, setLabel, setPrototype, setSensitive, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.swfm.mica.layouts.MiiLayout |
getMinimumSize, getPreferredSize, invalidateLayout |
| Field Detail |
public static final java.lang.String Mi_FOCUS_LABEL_PROPERTY_NAME
public static final java.lang.String Mi_SELECTED_LABEL_PROPERTY_NAME
public static final java.lang.String Mi_INSENSITIVE_LABEL_PROPERTY_NAME
public static final java.lang.String Mi_LABEL_PROPERTY_NAME
| Constructor Detail |
public MiButton()
public MiButton(java.lang.String text)
public MiButton(MiPart obj)
| Method Detail |
public void setValue(java.lang.String text)
setValue in class MiLabeltext - the new labelpublic void appendShortCut(MiEvent event)
event - the short cutpublic void setLabel(MiPart obj)
setLabel in class MiLabelobj - the new labelpublic void setNormalLabel(java.lang.String label)
label - the normal-state labelpublic void setNormalLabel(MiPart label)
label - the normal-state labelpublic MiPart getNormalLabel()
public void setSelectedLabel(java.lang.String label)
label - the selected-state labelpublic void setSelectedLabel(MiPart label)
label - the selected-state labelpublic MiPart getSelectedLabel()
public void setInsensitiveLabel(java.lang.String label)
label - the insensitive-state labelpublic void setInsensitiveLabel(MiPart label)
label - the insensitive-state labelpublic MiPart getInsensitiveLabel()
public void setFocusLabel(java.lang.String label)
label - the focus-state labelpublic void setFocusLabel(MiPart label)
label - the focus-state labelpublic MiPart getFocusLabel()
public void select(boolean flag)
select in class MiWidgetflag - true if this is selectedMiWidget.setRadioStateEnforcer(com.swfm.mica.widgets.MiRadioStateEnforcer)
public void select(boolean flag,
boolean dispatchValueChangedActionUponSelect)
flag - true if this is selecteddispatchValueChangedActionUponSelect - this is false
only for MiMenuLauncherButton and the like whose
value does not change, they just popup a menupublic void setMouseFocus(boolean flag)
setMouseFocus in class MiWidgetflag - true if this is selectedpublic void setKeyboardFocus(boolean flag)
setKeyboardFocus in class MiWidgetflag - true if this is selectedpublic void processCommand(java.lang.String arg)
processCommand in interface MiiCommandHandlerarg - the command argument
public void setPropertyValue(java.lang.String name,
java.lang.String value)
setPropertyValue in class MiWidgetname - the name of an attributevalue - the value of the attributepublic java.lang.String getPropertyValue(java.lang.String name)
getPropertyValue in class MiWidgetname - the name of a property
public MiPropertyDescriptions getPropertyDescriptions()
getPropertyDescriptions in class MiWidgetpublic boolean hasProperty(java.lang.String name)
MiPart
hasProperty in class MiPartname - the name of an property or attribute
public void copy(MiPart source)
copy in class MiLabelMiPart.copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||