Package org.dlese.dpc.schemedit.display
Class SortWidget
java.lang.Object
org.dlese.dpc.schemedit.display.SortWidget
SortWidgets are used to display lists of search results, and to render the
controls for changing the field upon which results are sorted, as well as
the order in which the results are sorted. A SortWidget is associated with
each sortable field.
- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionSortWidget(String fieldName, String label) Constructor for the SortWidget objectSortWidget(String fieldName, String label, int order) Constructor for the SortWidget object, where the sort order is explicitly defined. -
Method Summary
Modifier and TypeMethodDescriptionintGets the defaultOrder attribute of the SortWidget object.Gets the fieldName attribute of the SortWidget objectgetImage()Gets the image attribute of the SortWidget objectgetLabel()Gets the label attribute of the SortWidget objectintgetOrder()Specifies the sort order for this widintGets the otherOrder attribute of the SortWidget objectvoidsetOrder(int order) Sets the order attribute of the SortWidget object
-
Constructor Details
-
SortWidget
Constructor for the SortWidget object- Parameters:
fieldName- Description of the Parameterlabel- Description of the Parameter
-
SortWidget
Constructor for the SortWidget object, where the sort order is explicitly defined.- Parameters:
fieldName- Description of the Parameterlabel- Description of the Parameterorder- Description of the Parameter
-
-
Method Details
-
getLabel
Gets the label attribute of the SortWidget object- Returns:
- The label value
-
getFieldName
Gets the fieldName attribute of the SortWidget object- Returns:
- The fieldName value
-
getOrder
public int getOrder()Specifies the sort order for this wid- Returns:
- The order value
-
setOrder
public void setOrder(int order) Sets the order attribute of the SortWidget object- Parameters:
order- The new order value
-
getImage
Gets the image attribute of the SortWidget object- Returns:
- The image value
-
getDefaultOrder
public int getDefaultOrder()Gets the defaultOrder attribute of the SortWidget object.- Returns:
- The defaultOrder value
-
getOtherOrder
public int getOtherOrder()Gets the otherOrder attribute of the SortWidget object- Returns:
- The otherOrder value
-