|
||||||||||
| 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
This is the super class of all widgets in the Mica User Interface Toolkit. When isAutoAttributesEnabled() is true, each MiWidget has a seperate instance of MiAttributes for each of 6 possible states the widget might be in: normal selected enterKeyFocus keyboardFocus mouseFocus inSensitive The widgets gets it's resultant attributes from (1) overriding from the normal attributes and then overriding from the attributes assigned to the current states of the widget in the above order. For example: if the widget is not sensitive and has mouse focus, then to the current widget attributes are applied: atts.overrideFrom(normalAttributes) atts.overrideFrom(mouseFocusAttributes) atts.overrideFrom(inSensitiveAttributes)
MiToolkit| Field Summary |
| Constructor Summary | |
MiWidget()
Constructs a new MiWidget. |
|
| Method Summary | |
void |
copy(MiPart source)
Copy the state of this MiPart into the target MiPart. |
java.lang.Object |
doExport(java.lang.String format)
Exports data as specified. |
Strings |
getContents()
Gets the contents (list of values) this widget displays. |
MiAttributes |
getEnterKeyFocusAttributes()
Gets the attributes that this MiWidget uses when it has the enter key focus. |
java.awt.Color |
getEnterKeyFocusBackgroundColor()
Get the background color the widget is to have when it has the enter key focus. |
int |
getEnterKeyFocusBorderLook()
Get the border look the widget is to have when it has the enter key focus. |
java.awt.Color |
getEnterKeyFocusColor()
Get the foreground color the widget is to have when it has the enter key focus. |
MiiHelpInfo |
getEnterKeyFocusStatusHelp()
Get the status bar message the widget is to have when it has the enter key focus. |
MiAttributes |
getInSensitiveAttributes()
Gets the attributes that this MiWidget uses when it is sensitive. |
java.awt.Color |
getInSensitiveBackgroundColor()
Get the background color the widget is to have when it is insensitive. |
int |
getInSensitiveBorderLook()
Get the border look the widget is to have when it is in the normal state. |
java.awt.Color |
getInSensitiveColor()
Get the foreground color the widget is to have when it is insensitive. |
MiiHelpInfo |
getInSensitiveStatusHelp()
Get the status bar message the widget is to have when it is insensitive. |
MiAttributes |
getKeyboardFocusAttributes()
Gets the attributes that this MiWidget uses when it has the keyboard focus. |
java.awt.Color |
getKeyboardFocusBackgroundColor()
Get the background color the widget is to have when it has the keyboard focus. |
int |
getKeyboardFocusBorderLook()
Get the border look the widget is to have when it has the keyboard focus. |
java.awt.Color |
getKeyboardFocusColor()
Get the foreground color the widget is to have when it has the keyboard focus. |
MiiHelpInfo |
getKeyboardFocusStatusHelp()
Get the status bar message the widget is to have when it has the keyboard focus. |
MiAttributes |
getMouseFocusAttributes()
Gets the attributes that this MiWidget uses when it has the mouse focus. |
java.awt.Color |
getMouseFocusBackgroundColor()
Get the background color the widget is to have when it has the mouse focus. |
int |
getMouseFocusBorderLook()
Get the border look the widget is to have when it has the mouse focus. |
java.awt.Color |
getMouseFocusColor()
Get the foreground color the widget is to have when it has the mouse focus. |
MiiHelpInfo |
getMouseFocusStatusHelp()
Get the status bar message the widget is to have when it has the mouse focus. |
MiAttributes |
getNormalAttributes()
Gets the attributes that this MiWidget uses when it is in the normal state. |
java.awt.Color |
getNormalBackgroundColor()
Get the background color the widget is to have when it is in the normal state. |
int |
getNormalBorderLook()
Get the border look the widget is to have when it is in the normal state. |
java.awt.Color |
getNormalColor()
Get the foreground color the widget is to have when it is in the normal state. |
MiiHelpInfo |
getNormalStatusHelp()
Get the status bar message the widget is to have when it is in the normal state. |
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. |
MiRadioStateEnforcer |
getRadioStateEnforcer()
Gets the radio state enforcer for this widget. |
MiAttributes |
getSelectedAttributes()
Gets the attributes that this MiWidget uses when it is selected. |
java.awt.Color |
getSelectedBackgroundColor()
Get the background color the widget is to have when it is selected. |
int |
getSelectedBorderLook()
Get the border look the widget is to have when it is selected. |
java.awt.Color |
getSelectedColor()
Get the foreground color the widget is to have when it is selected. |
MiiHelpInfo |
getSelectedStatusHelp()
Get the status bar message the widget is to have when it is selected. |
static MiToolkit |
getToolkit()
Get the widget toolkit. |
java.lang.String |
getValue()
Gets the value this widget displays. |
MiWidgetAttributes |
getWidgetAttributes()
Gets the set of attributes that this widget has. |
boolean |
isAutoAttributesEnabled()
Get whether this widget has it's attributes modified automatically when it changes state. |
boolean |
isDesignTime()
Get whether this widget is being designed and not running. |
void |
select(boolean flag)
Update the attributes of this widget while setting it's selected state. |
void |
setAttributes(MiAttributes atts)
Sets the attributes the widget is to have in the normal state. |
void |
setAutoAttributesEnabled(boolean flag)
Set whether this widget has it's attributes modified automatically when it changes state. |
void |
setContents(Strings contents)
Sets the contents (list of values) this widget displays. |
void |
setCurrentBackgroundColor(java.awt.Color c)
Set the background color the widget is to have now until it changes state again. |
void |
setCurrentColor(java.awt.Color c)
Set the foreground color the widget is to have now until it changes state again. |
void |
setEnterKeyFocus(boolean flag)
Update the attributes of this widget while setting it's enter key focus state. |
void |
setEnterKeyFocusAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it has the enter key focus. |
void |
setEnterKeyFocusBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it has the enter key focus. |
void |
setEnterKeyFocusBorderLook(int look)
Set the border look the widget is to have when it has the enter key focus. |
void |
setEnterKeyFocusColor(java.awt.Color c)
Set the foreground color the widget is to have when it has the enter key focus. |
void |
setEnterKeyFocusStatusHelpMessage(java.lang.String msg)
Set the status bar message the widget is to have when it has the enter key focus. |
void |
setInSensitiveAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it is in sensitive. |
void |
setInSensitiveBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it is insensitive. |
void |
setInSensitiveBorderLook(int look)
Set the border look the widget is to have when it is in the normal state. |
void |
setInSensitiveColor(java.awt.Color c)
Set the foreground color the widget is to have when it is insensitive. |
void |
setInSensitiveStatusHelpMessage(java.lang.String msg)
Set the status bar message the widget is to have when it is insensitive. |
void |
setKeyboardFocus(boolean flag)
Update the attributes of this widget while setting it's keyboard focus state. |
void |
setKeyboardFocusAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it has the keyboard focus. |
void |
setKeyboardFocusBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it has the keyboard focus. |
void |
setKeyboardFocusBorderLook(int look)
Set the border look the widget is to have when it has the keyboard focus. |
void |
setKeyboardFocusColor(java.awt.Color c)
Set the foreground color the widget is to have when it has the keyboard focus. |
void |
setKeyboardFocusStatusHelpMessage(java.lang.String msg)
Set the status bar message the widget is to have when it has the keyboard focus. |
void |
setMouseFocus(boolean flag)
Update the attributes of this widget while setting it's mouse focus state. |
void |
setMouseFocusAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it has the mouse focus. |
void |
setMouseFocusBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it has the mouse focus. |
void |
setMouseFocusBorderLook(int look)
Set the border look the widget is to have when it has the mouse focus. |
void |
setMouseFocusColor(java.awt.Color c)
Set the foreground color the widget is to have when it has the mouse focus. |
void |
setMouseFocusStatusHelpMessage(java.lang.String msg)
Set the status bar message the widget is to have when it has the mouse focus. |
void |
setNormalAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it is in the normal state. |
void |
setNormalBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it is in the normal state. |
void |
setNormalBorderLook(int look)
Set the border look the widget is to have when it is in the normal state. |
void |
setNormalColor(java.awt.Color c)
Set the foreground color the widget is to have when it is in the normal state. |
void |
setNormalStatusHelpMessage(java.lang.String msg)
Set the status bar message the widget is to have when it is in the normal state. |
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given value. |
void |
setPropertyValues(java.util.Properties properties)
|
void |
setRadioStateEnforcer(MiRadioStateEnforcer enforcer)
Sets the radio state enforcer for this widget. |
void |
setSelectedAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it is selected. |
void |
setSelectedBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it is selected. |
void |
setSelectedBorderLook(int look)
Set the border look the widget is to have when it is selected. |
void |
setSelectedColor(java.awt.Color c)
Set the foreground color the widget is to have when it is selected. |
void |
setSelectedStatusHelpMessage(java.lang.String msg)
Set the status bar message the widget is to have when it is selected. |
void |
setSensitive(boolean flag)
Update the attributes of this widget while setting it's sensitivity. |
void |
setValue(java.lang.String value)
Sets the value this widget displays. |
void |
setWidgetAttributes(MiAttributes atts)
Sets the set of attributes for this widget by assigning the single MiAttributes to be used for all of the states this widget can have. |
void |
setWidgetAttributes(MiWidgetAttributes atts)
Set the set of attributes that this widget has. |
| 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 |
| Constructor Detail |
public MiWidget()
| Method Detail |
public MiWidgetAttributes getWidgetAttributes()
public void setWidgetAttributes(MiWidgetAttributes atts)
atts - the set of attributespublic void setWidgetAttributes(MiAttributes atts)
atts - the attributespublic MiAttributes getNormalAttributes()
public MiAttributes getInSensitiveAttributes()
public MiAttributes getSelectedAttributes()
public MiAttributes getKeyboardFocusAttributes()
public MiAttributes getEnterKeyFocusAttributes()
public MiAttributes getMouseFocusAttributes()
public void setNormalAttributes(MiAttributes atts)
atts - the normal state attributespublic void setInSensitiveAttributes(MiAttributes atts)
atts - the insensitive attributespublic void setSelectedAttributes(MiAttributes atts)
atts - the selected attributespublic void setKeyboardFocusAttributes(MiAttributes atts)
atts - the keyboard focus attributespublic void setEnterKeyFocusAttributes(MiAttributes atts)
atts - the enter key attributespublic void setMouseFocusAttributes(MiAttributes atts)
atts - the mouse focus attributespublic static MiToolkit getToolkit()
public boolean isDesignTime()
public boolean isAutoAttributesEnabled()
public void setAutoAttributesEnabled(boolean flag)
flag - true if attributes are state dependantpublic void setNormalColor(java.awt.Color c)
c - the colorpublic void setInSensitiveColor(java.awt.Color c)
c - the colorpublic void setSelectedColor(java.awt.Color c)
c - the colorpublic void setKeyboardFocusColor(java.awt.Color c)
c - the colorpublic void setEnterKeyFocusColor(java.awt.Color c)
c - the colorpublic void setMouseFocusColor(java.awt.Color c)
c - the colorpublic void setNormalBackgroundColor(java.awt.Color c)
c - the colorpublic void setInSensitiveBackgroundColor(java.awt.Color c)
c - the colorpublic void setSelectedBackgroundColor(java.awt.Color c)
c - the color