Package org.cytoscape.work.properties
Interface TunablePropertyHandler
-
- All Superinterfaces:
TunableHandler
public interface TunablePropertyHandler extends TunableHandler
An extension ofTunableHandlerwith added functionality to support converting to/from a String.Module:
work-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidhandle()Typically don't need to implement this method, default implementation is empty.voidparseAndSetValue(String propertyValue)Converts the String representation to an object or primitive value and sets the tunable.StringtoPropertyValue()Converts the value of the tunable to a String.-
Methods inherited from interface org.cytoscape.work.TunableHandler
controlsMutuallyExclusiveNestedChildren, dependsOn, getChildKey, getDescription, getExampleStringValue, getGroups, getLongDescription, getName, getParams, getQualifiedName, getType, getValue, listenForChange, setValue
-
-
-
-
Method Detail
-
toPropertyValue
String toPropertyValue()
Converts the value of the tunable to a String.- Returns:
- String representation of the tunable value.
- Throws:
IllegalArgumentException- If there is a problem accessing the tunable value.
-
parseAndSetValue
void parseAndSetValue(String propertyValue)
Converts the String representation to an object or primitive value and sets the tunable.- Throws:
IllegalArgumentException- If there is a problem setting the tunable value.
-
handle
default void handle()
Typically don't need to implement this method, default implementation is empty.- Specified by:
handlein interfaceTunableHandler
-
-