Class CriterionPanel
java.lang.Object
ro.sync.ecss.extensions.commons.sort.CriterionPanel
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 Summary
ConstructorsConstructorDescriptionCriterionPanel
(Container parent, GridBagConstraints constr, List<CriterionInformation> criterionInformation, CriterionInformation selectedItem, AuthorResourceBundle authorResourceBundle, KeysController keysController, List<CriterionInformation> allCriteria) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Selects the checbox associated with the criterion panel, which means that the criterion information from it will be taken into account when sorting.Returns the user input as aCriterionInformation
object.Obtain the combo for the criterion key.
-
Constructor Details
-
CriterionPanel
public CriterionPanel(Container parent, GridBagConstraints constr, List<CriterionInformation> criterionInformation, CriterionInformation selectedItem, AuthorResourceBundle authorResourceBundle, KeysController keysController, List<CriterionInformation> allCriteria) Constructor.- Parameters:
parent
- The parentContainer
.constr
- TheGridBagConstraints
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 Details
-
getInformation
Returns the user input as aCriterionInformation
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
Obtain the combo for the criterion key.- Returns:
- Returns the combo for the criterion key.
-