DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.display
Class SortWidget

java.lang.Object
  extended by 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 Summary
SortWidget(String fieldName, String label)
          Constructor for the SortWidget object
SortWidget(String fieldName, String label, int order)
          Constructor for the SortWidget object, where the sort order is explicitly defined.
 
Method Summary
 int getDefaultOrder()
          Gets the defaultOrder attribute of the SortWidget object.
 String getFieldName()
          Gets the fieldName attribute of the SortWidget object
 String getImage()
          Gets the image attribute of the SortWidget object
 String getLabel()
          Gets the label attribute of the SortWidget object
 int getOrder()
          Specifies the sort order for this wid
 int getOtherOrder()
          Gets the otherOrder attribute of the SortWidget object
 void setOrder(int order)
          Sets the order attribute of the SortWidget object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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

DLESE Tools
v1.6.0