Class InputDependency
java.lang.Object
com.motivewave.platform.sdk.common.desc.InputDependency
- Direct Known Subclasses:
EnabledDependency
,TradeLotsDependency
,ValueDependency
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInputDependency
(String src, String... fields) InputDependency
(List<String> sources, String... fields) -
Method Summary
Modifier and TypeMethodDescriptionboolean
areConditionsMet
(Settings settings) Gets the identifier for the primary source of this dependency.Gets an option secondary source.Gets an option tertiary source.boolean
Gets the hide control option.void
onSourceUpdated
(Settings settings, Map<String, Object> fields) Override this method to implement a dependency between fields.void
setHideControl
(boolean b) Sets the option to hide the control when the dependency is not met.void
void
setSource2
(String src) Sets an option secondary source.void
setSource3
(String src) Sets an option tertiary source.
-
Field Details
-
sources
-
dependentFields
-
-
Constructor Details
-
InputDependency
-
InputDependency
-
-
Method Details
-
onSourceUpdated
Override this method to implement a dependency between fields. -
getSource
Gets the identifier for the primary source of this dependency. -
getSources
-
setSource2
Sets an option secondary source. If set the fields will be enabled if the source and source2 are enabled.- Parameters:
src
- identifier of the secondary source
-
getSource2
Gets an option secondary source. If set the fields will be enabled if the source and source2 are enabled.- Returns:
- identifier of the secondary source
-
setSource3
Sets an option tertiary source. If set the fields will be enabled if the source and source2 and source3 are enabled.- Parameters:
src
- identifier of the tertiary source
-
getSource3
Gets an option tertiary source. If set the fields will be enabled if the source and source2 and source3 are enabled.- Returns:
- identifier of the tertiary source
-
getDependentFields
-
getSettingsDescriptor
-
setSettingsDescriptor
-
areConditionsMet
-
isHideControl
public boolean isHideControl()Gets the hide control option. If true the controls will be hidden when the dependency is not met, otherwise it will be disabled. By default this option is false.- Returns:
- true if the control should be hidden when the dependency is not met.
-
setHideControl
public void setHideControl(boolean b) Sets the option to hide the control when the dependency is not met. Otherwise the control will be hidden.- Parameters:
b
- true if the control be hidden
-