Class CriterionPanel


  • @API(type=NOT_EXTENDABLE,
         src=PRIVATE)
    public class CriterionPanel
    extends java.lang.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 Detail

      • CriterionPanel

        public CriterionPanel​(java.awt.Container parent,
                              java.awt.GridBagConstraints constr,
                              java.util.List<CriterionInformation> criterionInformation,
                              CriterionInformation selectedItem,
                              AuthorResourceBundle authorResourceBundle,
                              KeysController keysController,
                              java.util.List<CriterionInformation> allCriteria)
        Constructor.
        Parameters:
        parent - The parent Container.
        constr - The GridBagConstraints object.
        criterionInformation - The list of available criterion which will be added to the keys combobox.
        selectedItem - The item which will be selected in the keys combobox.
        authorResourceBundle - The reosurce bundle for i18n.
        keysController - The keys controller.
        allCriteria - All criteria information, not only the criteria information shown by the current criterion composite.
    • Method Detail

      • 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 javax.swing.JComboBox getKeyCombo()
        Obtain the combo for the criterion key.
        Returns:
        Returns the combo for the criterion key.