Class SortWidget

java.lang.Object
org.dlese.dpc.schemedit.display.SortWidget

public class SortWidget extends Object
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 Details

    • SortWidget

      public SortWidget(String fieldName, String label)
      Constructor for the SortWidget object
      Parameters:
      fieldName - Description of the Parameter
      label - Description of the Parameter
    • SortWidget

      public SortWidget(String fieldName, String label, int order)
      Constructor for the SortWidget object, where the sort order is explicitly defined.
      Parameters:
      fieldName - Description of the Parameter
      label - Description of the Parameter
      order - Description of the Parameter
  • Method Details

    • getLabel

      public String getLabel()
      Gets the label attribute of the SortWidget object
      Returns:
      The label value
    • getFieldName

      public String 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

      public String 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