|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.AbstractBasicDetails
org.scijava.module.AbstractModuleItem<T>
org.scijava.command.CommandModuleItem<T>
public class CommandModuleItem<T>
ModuleItem implementation describing an input or output of a command.
| Constructor Summary | |
|---|---|
CommandModuleItem(ModuleInfo info,
Field field)
|
|
| Method Summary | |
|---|---|
String |
get(String key)
Gets the value of the given key, or null if undefined. |
String |
getCallback()
Gets the function that is called whenever this item changes. |
List<T> |
getChoices()
Gets the list of possible values. |
int |
getColumnCount()
Gets the preferred width of the input field in characters (if applicable). |
String |
getDescription()
Gets a string describing the object. |
Field |
getField()
|
Type |
getGenericType()
Gets the type of the item, including Java generic parameters. |
String |
getInitializer()
Gets the function that is called to initialize the item's value. |
ItemIO |
getIOType()
Gets the input/output type of the item. |
String |
getLabel()
Gets the name to appear in a UI, if applicable. |
T |
getMaximumValue()
Gets the maximum allowed value (if applicable). |
T |
getMinimumValue()
Gets the minimum allowed value (if applicable). |
String |
getName()
Gets the name of the object. |
Parameter |
getParameter()
|
String |
getPersistKey()
Gets the key to use for saving the value persistently. |
Number |
getStepSize()
Gets the preferred step size to use when rendering the item in a user interface (if applicable). |
Class<T> |
getType()
Gets the type of the item. |
ItemVisibility |
getVisibility()
Gets the visibility of the item. |
String |
getWidgetStyle()
Gets the preferred widget style to use when rendering the item in a user interface. |
boolean |
is(String key)
Returns true iff the given key is defined. |
boolean |
isAutoFill()
Gets whether the item value is allowed to be auto-filled. |
boolean |
isPersisted()
Gets whether to remember the most recent value of the parameter. |
boolean |
isRequired()
Gets whether the item value must be specified (i.e., no default). |
| Methods inherited from class org.scijava.module.AbstractModuleItem |
|---|
callback, getDelegateClass, getInfo, getSoftMaximum, getSoftMinimum, getValue, initialize, isInput, isOutput, loadValue, saveValue, setValue, toString |
| Methods inherited from class org.scijava.AbstractBasicDetails |
|---|
set, setDescription, setLabel, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.scijava.BasicDetails |
|---|
set, setDescription, setLabel |
| Methods inherited from interface org.scijava.Named |
|---|
setName |
| Constructor Detail |
|---|
public CommandModuleItem(ModuleInfo info,
Field field)
| Method Detail |
|---|
public Field getField()
public Parameter getParameter()
public Class<T> getType()
ModuleItem
public Type getGenericType()
ModuleItem
For many modules, this may be the same Class object returned by
ModuleItem.getType(), but some module inputs or outputs may be backed by a
generic type such as List<String> or Iterable<Integer>.
getGenericType in interface ModuleItem<T>getGenericType in class AbstractModuleItem<T>Field.getGenericType()public ItemIO getIOType()
ModuleItem
getIOType in interface ModuleItem<T>getIOType in class AbstractModuleItem<T>public ItemVisibility getVisibility()
ModuleItem
getVisibility in interface ModuleItem<T>getVisibility in class AbstractModuleItem<T>public boolean isAutoFill()
ModuleItem
isAutoFill in interface ModuleItem<T>isAutoFill in class AbstractModuleItem<T>public boolean isRequired()
ModuleItem
isRequired in interface ModuleItem<T>isRequired in class AbstractModuleItem<T>public boolean isPersisted()
ModuleItem
isPersisted in interface ModuleItem<T>isPersisted in class AbstractModuleItem<T>public String getPersistKey()
ModuleItem
getPersistKey in interface ModuleItem<T>getPersistKey in class AbstractModuleItem<T>public String getInitializer()
ModuleItem
getInitializer in interface ModuleItem<T>getInitializer in class AbstractModuleItem<T>public String getCallback()
ModuleItemThis mechanism enables interdependent items of various types. For example, two int parameters "width" and "height" could update each other when another boolean "Preserve aspect ratio" flag is set.
getCallback in interface ModuleItem<T>getCallback in class AbstractModuleItem<T>public String getWidgetStyle()
ModuleItem
getWidgetStyle in interface ModuleItem<T>getWidgetStyle in class AbstractModuleItem<T>public T getMinimumValue()
ModuleItem
getMinimumValue in interface ModuleItem<T>getMinimumValue in class AbstractModuleItem<T>public T getMaximumValue()
ModuleItem
getMaximumValue in interface ModuleItem<T>getMaximumValue in class AbstractModuleItem<T>public Number getStepSize()
ModuleItem
getStepSize in interface ModuleItem<T>getStepSize in class AbstractModuleItem<T>public int getColumnCount()
ModuleItem
getColumnCount in interface ModuleItem<T>getColumnCount in class AbstractModuleItem<T>public List<T> getChoices()
ModuleItem
getChoices in interface ModuleItem<T>getChoices in class AbstractModuleItem<T>public String getLabel()
BasicDetails
getLabel in interface BasicDetailsgetLabel in class AbstractBasicDetailspublic String getDescription()
BasicDetails
getDescription in interface BasicDetailsgetDescription in class AbstractBasicDetailspublic boolean is(String key)
BasicDetails
is in interface BasicDetailsis in class AbstractBasicDetailspublic String get(String key)
BasicDetails
get in interface BasicDetailsget in class AbstractBasicDetailspublic String getName()
Named
getName in interface NamedgetName in class AbstractBasicDetails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||