|
||||||||||
| 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.MiComboBox
| Field Summary | |
static java.lang.String |
Mi_COMBOBOX_PROTOTYPE_CLASS_NAME
|
| Constructor Summary | |
MiComboBox()
|
|
MiComboBox(boolean textFieldSensitive)
|
|
| Method Summary | |
MiPart |
copy()
Returns a copy of this MiPart. |
void |
copy(MiPart source)
Copy the state of this MiPart into the target MiPart. |
static MiComboBox |
create()
Creates a new widget from the prototype. |
boolean |
getAutoCompleteValues()
|
Strings |
getContents()
Gets the contents (list of values) this widget displays. |
MiTable |
getList()
|
MiMenu |
getMenu()
|
static MiComboBox |
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. |
boolean |
getRestrictionIgnoresCase()
|
MiTextField |
getTextField()
|
java.lang.String |
getValue()
Gets the value this widget displays. |
boolean |
isRestrictingValuesToThoseInList()
|
boolean |
isRestrictionWarnsOnly()
|
static MiPart |
makeDecoration()
|
static MiPart |
makeDecoration(double width,
double height)
|
boolean |
processAction(MiiAction action)
Processes the given action. |
void |
setAutoCompleteValues(boolean flag)
|
void |
setContents(Strings contents)
Sets the contents (list of values) this widget displays. |
void |
setList(MiTable list)
|
static void |
setPrototype(MiComboBox 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 |
setRestrictingValuesToThoseInList(boolean flag)
|
void |
setRestrictionIgnoresCase(boolean flag)
|
void |
setRestrictionWarnsOnly(boolean flag)
|
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. |
| 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_COMBOBOX_PROTOTYPE_CLASS_NAME
| Constructor Detail |
public MiComboBox()
public MiComboBox(boolean textFieldSensitive)
| Method Detail |
public static MiComboBox create()
setPrototype(com.swfm.mica.widgets.MiComboBox)public MiTable getList()
public void setList(MiTable list)
public MiTextField getTextField()
public MiMenu getMenu()
public void setSensitive(boolean flag)
MiWidget
setSensitive in class MiWidgetflag - true if sensitivepublic void setValue(java.lang.String value)
MiWidget
setValue in class MiWidgetvalue - the value in the form of a text
stringpublic java.lang.String getValue()
MiWidget
getValue in class MiWidgetpublic void setContents(Strings contents)
MiWidget
setContents in class MiWidgetcontents - the contents in the form of a list
of text stringspublic Strings getContents()
MiWidget
getContents in class MiWidgetpublic void setRestrictingValuesToThoseInList(boolean flag)
public boolean isRestrictingValuesToThoseInList()
public void setRestrictionWarnsOnly(boolean flag)
public boolean isRestrictionWarnsOnly()
public void setRestrictionIgnoresCase(boolean flag)
public boolean getRestrictionIgnoresCase()
public void setAutoCompleteValues(boolean flag)
public boolean getAutoCompleteValues()
public static void setPrototype(MiComboBox p)
p - the new prototypegetPrototype(),
create(),
MiPart.copy()public static MiComboBox getPrototype()
setPrototype(com.swfm.mica.widgets.MiComboBox),
create(),
MiPart.copy()public boolean processAction(MiiAction action)
MiiActionHandler
processAction in interface MiiActionHandleraction - the action to process
public static MiPart makeDecoration()
public static MiPart makeDecoration(double width,
double height)
public MiPart copy()
MiPartMiPart theNewCopy = (MiPart )action.getActionSystemInfo(); MiPart theCopied = action.getActionSource();
In addition a Mi_COPY_ACTION | Mi_EXECUTE_ACTION_PHASE action is sent to the 'copied' MiPart. This allows the application to perform the copy itself:
MiPart[] theNewCopy = (MiPart[] )action.getActionSystemInfo(); MiPart theCopied = action.getActionSource(); ... semantics = ((Semantics )theCopied.getResource("semantics")).copy(); ... theNewCopy[0] = semantics.getGraphics(); return(true);
This should be rarely overridden as the overridding method cannot tell whether the copy was performed by a MiiActionHandler as described above (so all data in the copy has been copied and adjusted already).
copy in class MiPartMiPart.deepCopy()public void copy(MiPart source)
copy in class MiWidgetsource - the part to copyMiPart.copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||