com.swfm.mica.widgets
Class MiTextField

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
                      extended bycom.swfm.mica.widgets.MiTextField
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiAttributeTypes, MiiCopyable, MiiDragAndDropParticipant, MiiEventTypes, MiiLayout, MiiNames, MiiPropertyTypes, MiiTypes
Direct Known Subclasses:
MiCommandLineTextField, MiRestrictedTextField, MiTextArea, MiUpperLowerCaseTextField, MiValidatedTextField

public class MiTextField
extends MiWidget
implements MiiActionHandler, MiiActionTypes

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static int Mi_TEXT_FIELD_SIZE_SAME_OR_LARGER_THAN_TEXT
           
static int Mi_TEXT_FIELD_SIZE_UNRELATED_TO_TEXT
           
static java.lang.String Mi_TEXTFIELD_PROTOTYPE_CLASS_NAME
           
                   
Constructor Summary
MiTextField()
           
MiTextField(boolean useStandardMinimumSize)
           
MiTextField(java.lang.String str)
           
MiTextField(java.lang.String str, boolean useStandardMinimumSize)
           
 
Method Summary
 void appendPart(MiPart obj)
          Appends the given part to this container.
 void calcMinimumSize(MiSize size)
          Gets the minimum size of this MiPart.
 void calcPreferredSize(MiSize size)
          Gets the preferred size of this MiPart.
 void copy(MiPart source)
          Copy the state of this MiPart into the target MiPart.
static MiWidget create()
          Creates a new widget from the prototype.
 double getBaselineY()
           
 int getCursorPosition()
           
 char getEchoCharacter()
           
 MiIFlowEditorEventHandler getInteractiveEditor()
           
 int getMaxNumCharacters()
           
 int getMaxNumDisplayedColumns()
           
 int getMaxNumDisplayedRows()
           
 int getMinNumDisplayedColumns()
           
 boolean getModificationsAreUndoable()
           
 int getNumDisplayedColumns()
           
 int getNumDisplayedRows()
           
 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.
static MiWidget getPrototype()
          Gets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created.
 MiText getText()
           
 boolean getUseMaxInsteadOfAveFontSize()
           
 java.lang.String getValue()
          Gets the value this widget displays.
 boolean getWordWrapEnabled()
           
 boolean isEditable()
           
 boolean processAction(MiiAction action)
          Processes the given action.
 void render(MiRenderer renderer)
           
 void scale(MiPoint center, MiScale scale)
          Scales the bounds of this MiPart by the given scale factor (multipliers).
 void set1DShapeStrokeBackgroundColor(java.awt.Color c)
          Sets the background (fill) color of the (wide) lines of a shape unless it is a rectangle, circle, etc, whose stroke fill color is always the foreground color.
 void set1DShapeStrokesFilled(boolean flag)
          Sets whether the graphic will always be 'solid', i.e.
 void setAttributes(MiAttributes atts)
          Sets the attributes the widget is to have in the normal state.
 void setBaselineY(double y)
           
 void setCursorPosition(int pos)
           
 void setEchoCharacter(char ch)
           
 void setElementHJustification(int justification)
          Sets the horizontal justification of the elements with respect to the target as a whole.
 void setElementVJustification(int justification)
          Sets the vertical justification of the elements with respect to the target as a whole.
 void setFontHJustification(int justification)
           
 void setFontVJustification(int justification)
           
 void setIsEditable(boolean flag)
           
 void setKeyboardFocus(boolean flag)
          Update the attributes of this widget while setting it's keyboard focus state.
 void setMaxNumCharacters(int max)
           
 void setMaxNumDisplayedColumns(int numCols)
           
 void setMaxNumDisplayedRows(int numRows)
           
 void setMinNumDisplayedColumns(int numCols)
           
 void setModificationsAreUndoable(boolean flag)
           
 void setNumDisplayedColumns(int num)
           
 void setNumDisplayedRows(int num)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
          Sets the property with the given name to the given value.
static void setPrototype(MiTextField p)
          Sets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created.
 void setSensitive(boolean flag)
          Update the attributes of this widget while setting it's sensitivity.
 void setText(MiText t)
           
 void setUseMaxInsteadOfAveFontSize(boolean flag)
           
 void setValue(java.lang.String t)
          Sets the value this widget displays.
 void setWordWrapEnabled(boolean flag)
           
 java.lang.String toString()
          Returns information about this MiPart.
 
Methods inherited from class com.swfm.mica.widgets.MiWidget
doExport, getContents, getEnterKeyFocusAttributes, getEnterKeyFocusBackgroundColor, getEnterKeyFocusBorderLook, getEnterKeyFocusColor, getEnterKeyFocusStatusHelp, getInSensitiveAttributes, getInSensitiveBackgroundColor, getInSensitiveBorderLook, getInSensitiveColor, getInSensitiveStatusHelp, getKeyboardFocusAttributes, getKeyboardFocusBackgroundColor, getKeyboardFocusBorderLook, getKeyboardFocusColor, getKeyboardFocusStatusHelp, getMouseFocusAttributes, getMouseFocusBackgroundColor, getMouseFocusBorderLook, getMouseFocusColor, getMouseFocusStatusHelp, getNormalAttributes, getNormalBackgroundColor, getNormalBorderLook, getNormalColor, getNormalStatusHelp, getRadioStateEnforcer, getSelectedAttributes, getSelectedBackgroundColor, getSelectedBorderLook, getSelectedColor, getSelectedStatusHelp, getToolkit, getWidgetAttributes, isAutoAttributesEnabled, isDesignTime, select, setAutoAttributesEnabled, setContents, setCurrentBackgroundColor, setCurrentColor, setEnterKeyFocus, setEnterKeyFocusAttributes, setEnterKeyFocusBackgroundColor, setEnterKeyFocusBorderLook, setEnterKeyFocusColor, setEnterKeyFocusStatusHelpMessage, setInSensitiveAttributes, setInSensitiveBackgroundColor, setInSensitiveBorderLook, setInSensitiveColor, setInSensitiveStatusHelpMessage, setKeyboardFocusAttributes, setKeyboardFocusBackgroundColor, setKeyboardFocusBorderLook, setKeyboardFocusColor, setKeyboardFocusStatusHelpMessage, setMouseFocus, setMouseFocusAttributes, setMouseFocusBackgroundColor, setMouseFocusBorderLook, setMouseFocusColor, setMouseFocusStatusHelpMessage, setNormalAttributes, setNormalBackgroundColor, setNormalBorderLook, setNormalColor, setNormalStatusHelpMessage, setPropertyValues, setRadioStateEnforcer, setSelectedAttributes, setSelectedBackgroundColor, setSelectedBorderLook, setSelectedColor, setSelectedStatusHelpMessage, setWidgetAttributes, setWidgetAttributes
 
Methods inherited from class com.swfm.mica.core.MiVisibleContainer
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, setElementHSizing, setElementJustification, setElementSizing, setElementVSizing, setEnabled, setInsetMargins, setInsetMargins, setLastElementJustification, setScalingOfPartsWhenBoundsChangesHandledDuringLayout, setTarget, setUniqueElementIndex, setUniqueElementSizing
 
Methods inherited from class com.swfm.mica.core.MiContainer
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, 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
 

Field Detail

Mi_TEXT_FIELD_SIZE_SAME_OR_LARGER_THAN_TEXT

public static final int Mi_TEXT_FIELD_SIZE_SAME_OR_LARGER_THAN_TEXT
See Also:
Constant Field Values

Mi_TEXT_FIELD_SIZE_UNRELATED_TO_TEXT

public static final int Mi_TEXT_FIELD_SIZE_UNRELATED_TO_TEXT
See Also:
Constant Field Values

Mi_TEXTFIELD_PROTOTYPE_CLASS_NAME

public static final java.lang.String Mi_TEXTFIELD_PROTOTYPE_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

MiTextField

public MiTextField()

MiTextField

public MiTextField(boolean useStandardMinimumSize)

MiTextField

public MiTextField(java.lang.String str)

MiTextField

public MiTextField(java.lang.String str,
                   boolean useStandardMinimumSize)
Method Detail

create

public static MiWidget create()
Creates a new widget from the prototype. This is the factory pattern implementation for this widget. If the prototype is null, then the default contructor is used.

Returns:
the new widget
See Also:
setPrototype(com.swfm.mica.widgets.MiTextField)

setText

public void setText(MiText t)

getText

public MiText getText()

setValue

public void setValue(java.lang.String t)
Description copied from class: MiWidget
Sets the value this widget displays. Override this, if desired, as it implements the core functionality. Most widgets do.

Overrides:
setValue in class MiWidget
Parameters:
t - the value in the form of a text string

getValue

public java.lang.String getValue()
Description copied from class: MiWidget
Gets the value this widget displays. Override this, if desired, as it implements the core functionality. Most widgets do.

Overrides:
getValue in class MiWidget
Returns:
the value in the form of a text string

setNumDisplayedColumns

public void setNumDisplayedColumns(int num)

getNumDisplayedColumns

public int getNumDisplayedColumns()

setNumDisplayedRows

public void setNumDisplayedRows(int num)

getNumDisplayedRows

public int getNumDisplayedRows()

setMaxNumDisplayedRows

public void setMaxNumDisplayedRows(int numRows)

getMaxNumDisplayedRows

public int getMaxNumDisplayedRows()

setMaxNumDisplayedColumns

public void setMaxNumDisplayedColumns(int numCols)

getMaxNumDisplayedColumns

public int getMaxNumDisplayedColumns()

setMinNumDisplayedColumns

public void setMinNumDisplayedColumns(int numCols)

getMinNumDisplayedColumns

public int getMinNumDisplayedColumns()

setMaxNumCharacters

public void setMaxNumCharacters(int max)

getMaxNumCharacters

public int getMaxNumCharacters()

setWordWrapEnabled

public void setWordWrapEnabled(boolean flag)

getWordWrapEnabled

public boolean getWordWrapEnabled()

setEchoCharacter

public void setEchoCharacter(char ch)

getEchoCharacter

public char getEchoCharacter()

setCursorPosition

public void setCursorPosition(int pos)

getCursorPosition

public int getCursorPosition()

setKeyboardFocus

public void setKeyboardFocus(boolean flag)
Description copied from class: MiWidget
Update the attributes of this widget while setting it's keyboard focus state.

Overrides:
setKeyboardFocus in class MiWidget
Parameters:
flag - true if to have keyboard focus

getInteractiveEditor

public MiIFlowEditorEventHandler getInteractiveEditor()

setSensitive

public void setSensitive(boolean flag)
Description copied from class: MiWidget
Update the attributes of this widget while setting it's sensitivity.

Overrides:
setSensitive in class MiWidget
Parameters:
flag - true if sensitive

isEditable

public boolean isEditable()

setIsEditable

public void setIsEditable(boolean flag)

setModificationsAreUndoable

public void setModificationsAreUndoable(boolean flag)

getModificationsAreUndoable

public boolean getModificationsAreUndoable()

setUseMaxInsteadOfAveFontSize

public void setUseMaxInsteadOfAveFontSize(boolean flag)

getUseMaxInsteadOfAveFontSize

public boolean getUseMaxInsteadOfAveFontSize()

setPrototype

public static void setPrototype(MiTextField p)
Sets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created.

Parameters:
p - the new prototype
See Also:
getPrototype(), create(), MiPart.copy()

getPrototype

public static MiWidget getPrototype()
Gets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created.

Returns:
the prototype
See Also:
setPrototype(com.swfm.mica.widgets.MiTextField), create(), MiPart.copy()

setAttributes

public void setAttributes(MiAttributes atts)
Description copied from class: MiWidget
Sets the attributes the widget is to have in the normal state. So that when, say, setColor is called on a widget, this color will be used when the widget is in the 'normal' state.

Overrides:
setAttributes in class MiWidget
Parameters:
atts - the attributes
See Also:
MiPart.setAttributes(com.swfm.mica.core.MiAttributes)

setElementHJustification

public void setElementHJustification(int justification)
Description copied from class: MiLayout
Sets the horizontal justification of the elements with respect to the target as a whole. Valid values are: Mi_CENTER_JUSTIFIED Mi_LEFT_JUSTIFIED Mi_RIGHT_JUSTIFIED Mi_JUSTIFIED

Overrides:
setElementHJustification in class MiLayout
Parameters:
justification - the justification

setFontHJustification

public void setFontHJustification(int justification)

setElementVJustification

public void setElementVJustification(int justification)
Description copied from class: MiLayout
Sets the vertical justification of the elements with respect to the target as a whole. Valid values are: Mi_CENTER_JUSTIFIED Mi_BOTTOM_JUSTIFIED Mi_TOP_JUSTIFIED Mi_JUSTIFIED

Overrides:
setElementVJustification in class MiLayout
Returns:
the justification

setFontVJustification

public void setFontVJustification(int justification)

toString

public java.lang.String toString()
Description copied from class: MiPart
Returns information about this MiPart.

Overrides:
toString in class MiLayout

render

public void render(MiRenderer renderer)
Parameters:
renderer - the renderer to use for drawing

processAction

public boolean processAction(MiiAction action)
Description copied from interface: MiiActionHandler
Processes the given action.

Specified by:
processAction in interface MiiActionHandler
Parameters:
action - the action to process
Returns:
true if it is OK to send action to the next action handler false if it is NOT OK to send action to the next action handler

calcMinimumSize

public void calcMinimumSize(MiSize size)
Description copied from class: MiVisibleContainer
Gets the minimum size of this MiPart. Override this, if desired, as it implements the core functionality.

Overrides:
calcMinimumSize in class MiVisibleContainer
Parameters:
size - the (returned) minimum size
See Also:
MiPart.getMinimumSize(com.swfm.mica.core.MiSize)

calcPreferredSize

public void calcPreferredSize(MiSize size)
Description copied from class: MiVisibleContainer
Gets the preferred size of this MiPart. Override this, if desired, as it implements the core functionality.

Overrides:
calcPreferredSize in class MiVisibleContainer
Parameters:
size - the (returned) preferred size
See Also:
MiPart.getPreferredSize(com.swfm.mica.core.MiSize)

copy

public void copy(MiPart source)
Copy the state of this MiPart into the target MiPart.

Overrides:
copy in class MiWidget
Parameters:
source - the part to copy
See Also:
MiPart.copy()

appendPart

public void appendPart(MiPart obj)
Description copied from class: MiContainer
Appends the given part to this container.

Overrides:
appendPart in class MiContainer
Parameters:
obj - the part to append

scale

public void scale(MiPoint center,
                  MiScale scale)
Description copied from class: MiPart
Scales the bounds of this MiPart by the given scale factor (multipliers). Any parts of this MiPart are also scaled in kind. Override this, if desired, as it implements the core functionality.

Overrides:
scale in class MiPart
Parameters:
center - the center of the scaling
scale - the scale factor

setBaselineY

public void setBaselineY(double y)

getBaselineY

public double getBaselineY()

setPropertyValue

public void setPropertyValue(java.lang.String name,
                             java.lang.String value)
Sets the property with the given name to the given value. This method supports the use of property names of form: selected.backgroundColor in order to specify the values of attributes for this widget on a state by state basis.

Overrides:
setPropertyValue in class MiWidget
Parameters: