Package de.mid.innovator.ui
Class PropertyCfg<T>
java.lang.Object
de.mid.innovator.ui.PropertyCfg<T>
- Type Parameters:
T- the type of the property value
- All Implemented Interfaces:
Property,Comparable<Property>
The class is the
Property interface default implementation
that can be used with Innovator applications.
The application uses this class to specify the properties which it will react
to upon runtime; this is done using a PropertyProvider.
You can specify a wide array of property configurations that are, e.g.
given to the PropertyProvider upon creation.- Author:
- borschet
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyCfg(String key, String help) Creates a property configuration without a default value.PropertyCfg(String key, T defVal, String help) Creates a property configuration of type T with a name, corresponding help string and configured default value. -
Method Summary
Modifier and TypeMethodDescriptionintGetter for default value as string.Getter for default value.Getter for additional help.getKey()Getter for key.
-
Constructor Details
-
PropertyCfg
Creates a property configuration of type T with a name, corresponding help string and configured default value.- Parameters:
key- the property namedefVal- the default valuehelp- additional help information shown about using the application
-
PropertyCfg
Creates a property configuration without a default value.- Parameters:
key- the property namehelp- additional help information shown about using the application
-
-
Method Details
-
getKey
Getter for key. -
getDefaultAsString
Getter for default value as string.- Specified by:
getDefaultAsStringin interfaceProperty- Returns:
- The default value as string.
-
getDescription
Getter for additional help.- Specified by:
getDescriptionin interfaceProperty- Returns:
- A (hopefully) helpful description that was configured, which a user can view.
-
getDefaultValue
Getter for default value.- Specified by:
getDefaultValuein interfaceProperty- Returns:
- The default value that was previously configured as a (castable) object.
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-