Package overit.geocall.basic.ui.control
Class InputOption.MatchingOption
java.lang.Object
overit.geocall.basic.ui.control.InputOption.MatchingOption
- All Implemented Interfaces:
Serializable
- Enclosing class:
InputOption
Object that represents the option that match with the searched value; it is composed by a label,
a title and a boolean that defines if the value is visible or not (it is not active). It can contain a
foreign key field value, used by the
InputLookup- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMatchingOption(String label, String title, String fkvalue, boolean visible) Creates a new MatchinOption instance -
Method Summary
Modifier and TypeMethodDescriptionReturns the string that defines the value of the field used as foreign key (for theInputLookupand only with the multi lookup mechanism)getLabel()Returns the label of the MatchingOption objectgetTitle(boolean onlyExplicit) Returns the title of the MatchingOption object, ie the tooltip that will appear when the user stay with the cursor on the elementbooleanReturns the visibility state of the MatchingOption object
-
Constructor Details
-
MatchingOption
Creates a new MatchinOption instance- Parameters:
label- The label that will be displayedtitle- The title, ie the tooltip that will appear when the user stay with the cursor on the elementfkvalue- The foreign key field value, used in theInputLookupobject (only with the multi lookup mechanism)visible- defines if the value is visible (true) or not (false)
-
-
Method Details
-
getLabel
Returns the label of the MatchingOption object- Returns:
- The string that represents the label, correctly padded the reach the minimum length or the maximum length
-
getTitle
Returns the title of the MatchingOption object, ie the tooltip that will appear when the user stay with the cursor on the element- Parameters:
onlyExplicit- boolean that defines if the title must be the one explicitly set or can be automatically created using the label, when the label is trimmed- Returns:
- The string that represents the title
-
getFKValue
Returns the string that defines the value of the field used as foreign key (for theInputLookupand only with the multi lookup mechanism)- Returns:
- The foreign key field value
-
isVisible
public boolean isVisible()Returns the visibility state of the MatchingOption object- Returns:
- A boolean value that defines if the value is visible (
true) or not (false)
-