com.swfm.mica.widgets
Class MiWidget

java.lang.Object
  extended bycom.swfm.mica.core.MiPart
      extended bycom.swfm.mica.core.MiContainer
          extended bycom.swfm.mica.layouts.MiLayout
              extended bycom.swfm.mica.core.MiVisibleContainer
                  extended bycom.swfm.mica.widgets.MiWidget
All Implemented Interfaces:
MiiActionTypes, MiiAttributeTypes, MiiCopyable, MiiDragAndDropParticipant, MiiEventTypes, MiiLayout, MiiNames, MiiPropertyTypes, MiiTypes
Direct Known Subclasses:
MiAdjuster, MiAnotherView, MiAttributeOptionMenu, MiBalloonWidget, MiBirdsEyeView, MiBox, MiColorChooser, MiComboBox, MiComboList, MiDialogBoxTemplate, MiEditorPalette, MiEditorStatusBar, MiExpandoBox, MiExportPanel, MiFileChooser, MiFilenameTextEntryWithBrowserWidget, MiFileSystemExplorerWidget, MiFishEyeView, MiFontChooser, MiHelpViewer, MiIconWithOptionMenu, MiLabel, MiLabeledWidget, MiLoggingPanel, MiMagnifierLens, MiMagnifierView, MiMenu, MiMenuBar, MiOkCancelHelpButtons, MiPieChart, MiPlayerPanel, MiPrintPanel, MiPropertyPanel, MiRadioBox, MiRadioStateEnforcer, MiRuler, MiRulerBox, MiSash, MiScrolledBox, MiSelectionBox, MiSpinBox, MiSpinButtons, MiStandardMenu, MiStatusBar, MiStripChart, MiSwatchesColorPalette, MiSystemResourceDialog, MiTabbedFolder, MiTable, MiTabs, MiTaskBar, MiTextField, MiToolBar, MiWindowBorder

public class MiWidget
extends MiVisibleContainer

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)

Version:
%I% %G%
Author:
Michael L. Davis
See Also:
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 com.swfm.mica.core.MiVisibleContainer
calcMinimumSize, calcPreferredSize, getContainerLayoutSpec, getDisplaysFocusBorder, getInnerBounds, getIntersectionWithLine, getOKToDrawOutsideInnerBounds, getShadowShape, getShape, getTotalMargins, getVisibleContainerAutomaticLayoutEnabled, invalidateArea, isShapeShrinkToFitEnabled, pick, setContainerLayoutSpec, setDisplaysFocusBorder, setMargins, setOKToDrawOutsideInnerBounds, setShape, setShape, setShapeShrinkToFitEnabled, setVisibleContainerAutomaticLayoutEnabled
 
Methods inherited from class com.swfm.mica.layouts.MiLayout
determinesPreferredAndMinimumSizes, getAlleyHSpacing, getAlleyMargins, getAlleyVSpacing, getCellMargins, getCellMargins, getElementHJustification, getElementHSizing, getElementVJustification, getElementVSizing, getInsetMargins, getInsetMargins, getLastElementJustification, getTarget, getUniqueElementIndex, getUniqueElementSizing, isEnabled, isIndependantOfTargetPosition, isScalingOfPartsWhenBoundsChangesHandledDuringLayout, layoutParts, makeCopy, setAlleyHSpacing, setAlleySpacing, setAlleyVSpacing, setCellMargins, setCellMargins, setElementHJustification, setElementHSizing, setElementJustification, setElementSizing, setElementVJustification, setElementVSizing, setEnabled, setInsetMargins, setInsetMargins, setLastElementJustification, setScalingOfPartsWhenBoundsChangesHandledDuringLayout, setTarget, setUniqueElementIndex, setUniqueElementSizing, toString
 
Methods inherited from class com.swfm.mica.core.MiContainer
appendPart, containsPart, deepCopy, doImport, getIndexOfPart, getKeepConnectionsBelowNodes, getNumberOfParts, getPart, getPart, getSupportedImportFormats, hasEventHandlers, hasValidCachedEventHandlerInfo, insertPart, invalidateCachedEventHandlerInfo, isContainerOf, isContainerOf, isContainerOfWithAttachments, pickDeepListContents, pickObject, removeAllParts, removePart, removePart, setKeepConnectionsBelowNodes, setPart, translate
 
Methods inherited from class com.swfm.mica.core.MiPart
_reCalcBounds, _render, _replaceBounds, _setContainer, _setDrawManager, _setValidatingLayout, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendAttachment, appendAttachment, appendCommandHandler, appendCommandHandler, appendCommandHandler, appendConnection, appendContainer, appendEventHandler, appendItem, appendPoint, appendPoint, applyCustomLookAndFeel, containsItem, containsOpaqueRectangles, copy, deleteAllConnections, deleteAllParts, deleteSelf, dispatchAction, dispatchAction, dispatchAction, dispatchActionRequest, dispatchActionRequest, dispatchActionRequest, dispatchEvent, draw, drawNow, drawNow, flip, flip, freeAccessLock, get1DShapeStrokeBackgroundColor, get1DShapeStrokesFilled, getAccessLock, getActionHandler, getActionsGenerated, getActionsLocallyGenerated, getActionsRequestedFromParts, getAfterRenderer, getAlphaCompositeRenderMode, getAnnotationPointManager, getAssociatedParts, getAttachment, getAttachment, getAttachmentMargins, getAttachments, getAttributeLockMask, getAttributePublicMask, getAttributes, getAttributeValue, getBackgroundColor, getBackgroundImage, getBackgroundRenderer, getBackgroundTile, getBalloonHelp, getBeforeRenderer, getBlackColor, getBorderHiliteColor, getBorderHiliteWidth, getBorderLook, getBorderRenderer, getBounds, getBounds, getCenter, getCenter, getCenterOfRotation, getCenterX, getCenterY, getColor, getConnection, getConnectionPointManager, getContainer, getContainerRequestedActions, getContainingEditor, getContainingWindow, getContextCursor, getContextMenu, getContextMenu, getControlPointManager, getCustomLookAndFeels, getCustomLookAndFeels, getDarkColor, getDeepConnection, getDeepConnection, getDeepConnections, getDeeplyInvalidateAreas, getDefaultAttributes, getDialogHelp, getDoubleBuffer, getDragAndDropBehavior, getDrawBounds, getDrawManager, getEventHandler, getEventHandler, getEventHandlerWithClass, getEventHandlingDisabledByContainer, getEventHandlingEnabled, getFlipped, getFont, getFontHorizontalJustification, getFontPointSize, getFontVerticalJustification, getHasBorderHilite, getHasShadow, getHeight, getID, getIncomingInvalidLayoutNotificationsEnabled, getIndexOfItem, getInnerBounds, getInvalidAreaNotificationsEnabled, getInvalidLayoutNotificationsEnabled, getItem, getItem, getKeyFocusTraversalGroup, getLayout, getLayoutManipulator, getLightColor, getLineEndSize, getLineEndsRenderer, getLineEndsSizeFnOfLineWidth, getLineEndStyle, getLineStartSize, getLineStartStyle, getLineStyle, getLineWidth, getLocallyRequestedEventTypes, getManipulator, getMargins, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumPickAreaSize, getMinimumSize, getMinimumWidth, getName, getNumberOfActionHandlers, getNumberOfAttachments, getNumberOfConnections, getNumberOfContainers, getNumberOfDeepConnections, getNumberOfEventHandlers, getNumberOfItems, getNumberOfPoints, getNumberOfResources, getOutgoingInvalidLayoutNotificationsEnabled, getPoint, getPoint, getPointEntryAngle, getPointExitAngle, getPointX, getPointY, getPreferredSize, getPrototypeManipulator, getRelativeLocation, getResource, getResourceName, getRootWindow, getRotation, getSelectionGraphics, getShadowColor, getShadowDirection, getShadowLength, getShadowRenderer, getShadowStyle, getSize, getSnapPointManager, getStatusHelp, getSupportedExportFormats, getThisOrPartHasInvalidArea, getToolHintHelp, getTotalNumberOfPartsCreated, getTransform, getTransparency, getValidatingLayout, getVisibilityAnimator, getWhiteColor, getWidth, getWriteMode, getXmax, getXmin, getXorColor, getYmax, getYmin, hasAttachment, hasAttribute, hasEnterKeyFocus, hasEventHandler, hasFixedAspectRatio, hasFixedHeight, hasFixedWidth, hasKeyboardFocus, hasMouseFocus, hasOverriddenMinimumSize, hasOverriddenPreferredSize, hasProperty, hasTotallyInvalidArea, hasValidLayout, insertActionHandler, insertActionHandler, insertActionHandler, insertConnection, insertContainer, insertEventHandler, insertItem, insertPoint, insertPoint, invalidateArea, invalidateLayout, isAcceptingEnterKeyFocus, isAcceptingKeyboardFocus, isAcceptingMouseFocus, isAcceptingTabKeys, isActionDispatchingEnabled, isConnectable, isConnectedTo, isCopyable, isCopyableAsPartOfCopyable, isDeletable, isDoubleBuffered, isDragAndDropSource, isDragAndDropTarget, isFilled, isFontBold, isFontItalic, isFontUnderlined, isHidden, isMovable, isOpaqueRectangle, isPickable, isPickableWhenTransparent, isPrintable, isSavable, isSelectable, isSelected, isSensitive, isShowing, isSnappable, isUngroupable, isValidConnectionDestination, isValidConnectionSource, isVisible, makeImageFromArea, makeLayoutManipulator, makeManipulator, optimizedInvalidateArea, optimizedInvalidateDrawBoundsArea, overrideAttributes, overrideEventHandlingDisabledByContainer, packLayout, pickDeepList, preRenderToDoubleBuffer, refreshBounds, refreshLookAndFeel, refreshLookAndFeel, removeActionHandler, removeActionHandler, removeActionHandlers, removeAllActionHandlers, removeAllAttachments, removeAllConnections, removeAllEventHandlers, removeAllItems, removeAllManipulators, removeAttachment, removeAttachment, removeCommandHandler, removeCommandHandler, removeConnection, removeConnection, removeContainer, removeContainer, removeEventHandler, removeFromAllContainers, removeItem, removeItem, removePoint, removeResource, removeSelf, replaceDrawBounds, replaceSelf, requestEnterKeyFocus, requestKeyboardFocus, rotate, rotate, rotateTo, scale, scale, scale, set1DShapeStrokeBackgroundColor, set1DShapeStrokesFilled, setAcceptingEnterKeyFocus, setAcceptingKeyboardFocus, setAcceptingMouseFocus, setAcceptingTabKeys, setActionDispatchingEnabled, setAfterRenderer, setAlphaCompositeRenderMode, setAnnotationPointManager, setAttachmentDrawnAfter, setAttachmentMargins, setAttachmentsVisibility, setAttributeLockMask, setAttributePublicMask, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundRenderer, setBackgroundTile, setBalloonHelp, setBalloonHelpMessage, setBeforeRenderer, setBlackColor, setBorderHiliteColor, setBorderHiliteWidth, setBorderLook, setBorderRenderer, setBounds, setBounds, setCenter, setCenter, setCenterX, setCenterY, setColor, setColor, setConnectable, setConnectionPointManager, setContextCursor, setContextMenu, setControlPointManager, setCopyable, setCopyableAsPartOfCopyable, setCustomLookAndFeels, setCustomLookAndFeels, setDarkColor, setDeeplyInvalidateAreas, setDefaultAttributes, setDeletable, setDialogHelp, setDialogHelpMessage, setDoubleBuffer, setDoubleBuffered, setDragAndDropBehavior, setEventHandlingEnabled, setFilled, setFixedAspectRatio, setFixedHeight, setFixedWidth, setFont, setFontBold, setFontHorizontalJustification, setFontItalic, setFontPointSize, setFontUnderlined, setFontVerticalJustification, setHasBorderHilite, setHasShadow, setHeight, setHidden, setIncomingInvalidLayoutNotificationsEnabled, setInvalidAreaNotificationsEnabled, setInvalidLayoutNotificationsEnabled, setIsDragAndDropSource, setIsDragAndDropTarget, setIsOpaqueRectangle, setItem, setKeyFocusTraversalGroup, setLayout, setLightColor, setLineEndSize, setLineEndSizeFnOfLineWidth, setLineEndsRenderer, setLineEndStyle, setLineStartSize, setLineStartStyle, setLineStyle, setLineWidth, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumPickAreaSize, setMinimumSize, setMinimumWidth, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPickable, setPickableWhenTransparent, setPoint, setPoint, setPreferredSize, setPrintable, setPrototypeManipulator, setResource, setSavable, setSelectable, setSelectionGraphics, setShadowColor, setShadowDirection, setShadowLength, setShadowRenderer, setShadowStyle, setSize, setSize, setSnappable, setSnapPointManager, setStatusHelp, setStatusHelpMessage, setSupportedImportFormats, setToolHintHelp, setToolHintMessage, setTransparency, setTransparency, setUngroupable, setVisibilityAnimator, setVisible, setWhiteColor, setWidth, setWriteMode, setXmax, setXmin, setXorColor, setYmax, setYmin, supportsImportOfSpecificInstance, translate, translate, translatePoint, validateLayout, validatePropertyValue, waitUntilRedrawn
 
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

MiWidget

public MiWidget()
Constructs a new MiWidget. Attributes are assigned to this widget by the MiToolkit. These attributes are: MiToolkit.widgetNormalAttributes MiToolkit.widgetMouseFocusAttributes MiToolkit.widgetKeyboardFocusAttributes MiToolkit.widgetEnterKeyFocusAttributes MiToolkit.widgetSelectedAttributes MiToolkit.widgetInSensitiveAttributes

Method Detail

getWidgetAttributes

public MiWidgetAttributes getWidgetAttributes()
Gets the set of attributes that this widget has.

Returns:
the set of attributes

setWidgetAttributes

public void setWidgetAttributes(MiWidgetAttributes atts)
Set the set of attributes that this widget has.

Parameters:
atts - the set of attributes

setWidgetAttributes

public 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.

Parameters:
atts - the attributes

getNormalAttributes

public MiAttributes getNormalAttributes()
Gets the attributes that this MiWidget uses when it is in the normal state.

Returns:
the normal state attributes

getInSensitiveAttributes

public MiAttributes getInSensitiveAttributes()
Gets the attributes that this MiWidget uses when it is sensitive.

Returns:
the insensitive attributes

getSelectedAttributes

public MiAttributes getSelectedAttributes()
Gets the attributes that this MiWidget uses when it is selected.

Returns:
the selected attributes

getKeyboardFocusAttributes

public MiAttributes getKeyboardFocusAttributes()
Gets the attributes that this MiWidget uses when it has the keyboard focus.

Returns:
the keyboard focus attributes

getEnterKeyFocusAttributes

public MiAttributes getEnterKeyFocusAttributes()
Gets the attributes that this MiWidget uses when it has the enter key focus.

Returns:
the enter key focus attributes

getMouseFocusAttributes

public MiAttributes getMouseFocusAttributes()
Gets the attributes that this MiWidget uses when it has the mouse focus.

Returns:
the mouse focus attributes

setNormalAttributes

public void setNormalAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it is in the normal state.

Parameters:
atts - the normal state attributes

setInSensitiveAttributes

public void setInSensitiveAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it is in sensitive.

Parameters:
atts - the insensitive attributes

setSelectedAttributes

public void setSelectedAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it is selected.

Parameters:
atts - the selected attributes

setKeyboardFocusAttributes

public void setKeyboardFocusAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it has the keyboard focus.

Parameters:
atts - the keyboard focus attributes

setEnterKeyFocusAttributes

public void setEnterKeyFocusAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it has the enter key focus.

Parameters:
atts - the enter key attributes

setMouseFocusAttributes

public void setMouseFocusAttributes(MiAttributes atts)
Sets the attributes that this MiWidget uses when it has the mouse focus.

Parameters:
atts - the mouse focus attributes

getToolkit

public static MiToolkit getToolkit()
Get the widget toolkit.

Returns:
the global toolkit

isDesignTime

public boolean isDesignTime()
Get whether this widget is being designed and not running.

Returns:
true if it is not runtime

isAutoAttributesEnabled

public boolean isAutoAttributesEnabled()
Get whether this widget has it's attributes modified automatically when it changes state.

Returns:
true if attributes are state dependant

setAutoAttributesEnabled

public void setAutoAttributesEnabled(boolean flag)
Set whether this widget has it's attributes modified automatically when it changes state.

Parameters:
flag - true if attributes are state dependant

setNormalColor

public void setNormalColor(java.awt.Color c)
Set the foreground color the widget is to have when it is in the normal state.

Parameters:
c - the color

setInSensitiveColor

public void setInSensitiveColor(java.awt.Color c)
Set the foreground color the widget is to have when it is insensitive.

Parameters:
c - the color

setSelectedColor

public void setSelectedColor(java.awt.Color c)
Set the foreground color the widget is to have when it is selected.

Parameters:
c - the color

setKeyboardFocusColor

public void setKeyboardFocusColor(java.awt.Color c)
Set the foreground color the widget is to have when it has the keyboard focus.

Parameters:
c - the color

setEnterKeyFocusColor

public void setEnterKeyFocusColor(java.awt.Color c)
Set the foreground color the widget is to have when it has the enter key focus.

Parameters:
c - the color

setMouseFocusColor

public void setMouseFocusColor(java.awt.Color c)
Set the foreground color the widget is to have when it has the mouse focus.

Parameters:
c - the color

setNormalBackgroundColor

public void setNormalBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it is in the normal state.

Parameters:
c - the color

setInSensitiveBackgroundColor

public void setInSensitiveBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it is insensitive.

Parameters:
c - the color

setSelectedBackgroundColor

public void setSelectedBackgroundColor(java.awt.Color c)
Set the background color the widget is to have when it is selected.

Parameters:
c - the color