Class CriterionPanel
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.sort.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 aCriterionInformation
object.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.CriterionInformation
getInformation()
Returns the user input as aCriterionInformation
object.javax.swing.JComboBox
getKeyCombo()
Obtain the combo for the criterion key.
-
-
-
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 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 Detail
-
getInformation
public CriterionInformation 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
public javax.swing.JComboBox getKeyCombo()
Obtain the combo for the criterion key.- Returns:
- Returns the combo for the criterion key.
-
-