Class CriterionPanel

java.lang.Object
ro.sync.ecss.extensions.commons.sort.CriterionPanel

@API(type=NOT_EXTENDABLE, src=PRIVATE) public class CriterionPanel extends Object
This class will add to the given parent container a checkbox to enable the criterion, a combobox to select the key, a type combobox and order combobox. It will return the user choice as a CriterionInformation object.
  • Constructor Details

  • Method Details

    • getInformation

      public CriterionInformation getInformation()
      Returns the user input as a CriterionInformation object.
      Returns:
      The criterion information selected by the user in the current component.
    • enableSortcriterion

      public void enableSortcriterion()
      Selects the checbox associated with the criterion panel, which means that the criterion information from it will be taken into account when sorting.
    • getKeyCombo

      public JComboBox getKeyCombo()
      Obtain the combo for the criterion key.
      Returns:
      Returns the combo for the criterion key.