org.apache.wicket.extensions.markup.html.repeater.util
Class SortParam

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortParam
All Implemented Interfaces:
Serializable, IClusterable

public class SortParam
extends Object
implements IClusterable

Represents sorting information of a property

Author:
Igor Vaynberg ( ivaynberg )
See Also:
Serialized Form

Constructor Summary
SortParam(String property, boolean asc)
           
 
Method Summary
 boolean equals(Object rhs)
           
 String getProperty()
           
 boolean isAscending()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortParam

public SortParam(String property,
                 boolean asc)
Parameters:
property - sort property
asc - sort direction
Method Detail

isAscending

public boolean isAscending()
Returns:
true if sort dir is ascending, false otherwise

getProperty

public String getProperty()
Returns:
sort property

equals

public boolean equals(Object rhs)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.