|
||||||||||
| 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.MiBox
This class draws a box with an optional label. The label can be any graphical part.
| Field Summary | |
static java.lang.String |
Mi_BOX_PROTOTYPE_CLASS_NAME
|
| Constructor Summary | |
MiBox()
Constructs a new MiBox without a label. |
|
MiBox(MiPart label)
Constructs a new MiBox with the given graphical label. |
|
MiBox(java.lang.String text)
Constructs a new MiBox with the given text label. |
|
| Method Summary | |
void |
calcMinimumSize(MiSize size)
Calulates the minimum size of this part. |
void |
calcPreferredSize(MiSize size)
Calulates the preferred size of this part. |
void |
copy(MiPart source)
Copy the state of this MiPart into the target MiPart. |
static MiBox |
create()
Creates a new widget from the prototype. |
MiPart |
getLabel()
Gets the label of this box. |
static MiBox |
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. |
java.lang.String |
getValue()
Get the value of this widget, which is the label. |
void |
setAttributes(MiAttributes attributes)
Sets the attributes the widget is to have in the normal state. |
void |
setInsetMargins(MiMargins m)
Sets the margins of empty space immediately inside of the target's (inner) bounds. |
void |
setLabel(MiPart l)
Sets the label of this box. |
void |
setMargins(MiMargins m)
Sets the margins of this MiPart. |
static void |
setPrototype(MiBox 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 |
setValue(java.lang.String text)
Set the value of this widget, which is the label, to the given text. |
java.lang.String |
toString()
Return a textual description of this class. |
| 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_BOX_PROTOTYPE_CLASS_NAME
| Constructor Detail |
public MiBox()
public MiBox(java.lang.String text)
text - the box's label textpublic MiBox(MiPart label)
label - the box's label| Method Detail |
public static MiBox create()
setPrototype(com.swfm.mica.widgets.MiBox)public void setSensitive(boolean flag)
MiWidget
setSensitive in class MiWidgetflag - true if sensitivepublic void setAttributes(MiAttributes attributes)
MiWidget
setAttributes in class MiWidgetattributes - the attributesMiPart.setAttributes(com.swfm.mica.core.MiAttributes)public void setValue(java.lang.String text)
setValue in class MiWidgettext - the new labelpublic java.lang.String getValue()
getValue in class MiWidgetpublic MiPart getLabel()
public void setLabel(MiPart l)
l - the label graphicspublic void copy(MiPart source)
copy in class MiWidgetMiPart.copy()public java.lang.String toString()
toString in class MiLayoutpublic static void setPrototype(MiBox p)
p - the new prototypegetPrototype(),
create(),
MiPart.copy()public static MiBox getPrototype()
setPrototype(com.swfm.mica.widgets.MiBox),
create(),
MiPart.copy()public void calcMinimumSize(MiSize size)
calcMinimumSize in class MiVisibleContainersize - the (returned) minimum sizeMiPart.getMinimumSize(com.swfm.mica.core.MiSize)public void calcPreferredSize(MiSize size)
calcPreferredSize in class MiVisibleContainersize - the (returned) preferred sizeMiPart.getPreferredSize(com.swfm.mica.core.MiSize)public void setMargins(MiMargins m)
setMargins in class MiVisibleContainerm - the margins or nullpublic void setInsetMargins(MiMargins m)
setInsetMargins in class MiLayoutm - the 'inside' margins of the targetMiPart.setMargins(com.swfm.mica.core.MiMargins)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||