Class CriterionComposite
java.lang.Object
ro.sync.ecss.extensions.commons.sort.CriterionComposite
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
ConstructorsConstructorDescriptionCriterionComposite
(org.eclipse.swt.widgets.Composite parent, AuthorResourceBundle authorResourceBundle, List<CriterionInformation> criterionInformation, CriterionInformation selectedItem, boolean isFirstCriterion, 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.org.eclipse.swt.widgets.Combo
Obtain access to the keys combobox.
-
Constructor Details
-
CriterionComposite
public CriterionComposite(org.eclipse.swt.widgets.Composite parent, AuthorResourceBundle authorResourceBundle, List<CriterionInformation> criterionInformation, CriterionInformation selectedItem, boolean isFirstCriterion, KeysController keysController, List<CriterionInformation> allCriteria) Constructor.- Parameters:
parent
- The parent composite.authorResourceBundle
- The Author resource bundlecriterionInformation
- The list of available criterion which will be added to the keys combobox.selectedItem
- The item which will be selected in the keys combobox.isFirstCriterion
-true
if the titles for every component of the current composite should be displayed.keysController
- The keys combo controller.allCriteria
- All criteria information, not only the criteria information shown by the current criterion composite.
-
-
Method Details
-
getKeyCombo
public org.eclipse.swt.widgets.Combo getKeyCombo()Obtain access to the keys combobox.- Returns:
- Returns the keys combobox.
-
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.
-