Package org.cytoscape.command
Class AbstractStringTunableHandler
java.lang.Object
org.cytoscape.work.AbstractTunableHandler
org.cytoscape.command.AbstractStringTunableHandler
- All Implemented Interfaces:
StringTunableHandler,TunableHandler
public abstract class AbstractStringTunableHandler
extends AbstractTunableHandler
implements StringTunableHandler
-
Field Summary
Fields inherited from class org.cytoscape.work.AbstractTunableHandler
CONTEXT, FORMAT, GRAVITY, TOOLTIP -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStringTunableHandler(Field f, Object o, Tunable t) AbstractStringTunableHandler(Method get, Method set, Object o, Tunable t) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidhandle()Updates an annotated object with the current value as retrieved from the the user interface generated by this handler.abstract ObjectprocessArg(String arg) Each specific handler really only needs to implement this method and all it does is convert the String input into a value of the appropriate type.voidMethods inherited from class org.cytoscape.work.AbstractTunableHandler
controlsMutuallyExclusiveNestedChildren, dependsOn, getChildKey, getContext, getDescription, getExampleStringValue, getFormat, getGravity, getGroups, getLongDescription, getName, getParams, getQualifiedName, getRequired, getTooltip, getType, getValue, listenForChange, setOffset, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cytoscape.work.TunableHandler
controlsMutuallyExclusiveNestedChildren, dependsOn, getChildKey, getDescription, getExampleStringValue, getGroups, getLongDescription, getName, getParams, getQualifiedName, getType, getValue, listenForChange, setValue
-
Constructor Details
-
AbstractStringTunableHandler
-
AbstractStringTunableHandler
-
-
Method Details
-
processArgString
- Specified by:
processArgStringin interfaceStringTunableHandler
-
processArg
Each specific handler really only needs to implement this method and all it does is convert the String input into a value of the appropriate type.- Specified by:
processArgin interfaceStringTunableHandler- Parameters:
arg- A String representing a value that will be parsed into an object of a specific type.- Returns:
- An object of a particular type based on the input string.
- Throws:
Exception- If there is any problem converting the string into an object.
-
handle
public final void handle()Description copied from interface:TunableHandlerUpdates an annotated object with the current value as retrieved from the the user interface generated by this handler.- Specified by:
handlein interfaceTunableHandler
-