Interface DifferentDataDisplayValue

All Known Implementing Classes:
ComboboxItem, DualListBox, RadioButtonItem, SelectorItem

public interface DifferentDataDisplayValue

This interface specifies components whose displayed value differs from the component’s value. Such a component is ComboboxItem. Data values and displayed values in a ComboboxItem are different.

A data value is the value taken by the component upon the selection of an element. This data value is saved to the database if the component is allowed to modify data. If the component value is queried, this value is returned.

A displayed value is the value visible to the user if an element is displayed on the interface. This value is displayed only on the interface and neither does it affect the database value, nor the component value.

The interface implements two methods: getDisplayValue() and getOriginalDisplayValue(). Both methods return the component’s displayed values. The former method returns the display values of the currently selected ones. The latter method returns the displayed values of the original values.

Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the displayed value for the component’s current value.
    Gets the displayed value for the component’s original value.
  • Method Details

    • getDisplayValue

      String getDisplayValue()
      Gets the displayed value for the component’s current value.
      Returns:
      The displayed value for the component’s current value or null if the component’s current value is null
    • getOriginalDisplayValue

      String getOriginalDisplayValue()
      Gets the displayed value for the component’s original value.
      Returns:
      The displayed value for the component’s original value or null if the component’s original value is null