Style Intelligence v12.0

inetsoft.uql.asset
Class SortInfo

java.lang.Object
  extended by inetsoft.uql.asset.SortInfo
All Implemented Interfaces:
AssetObject, inetsoft.util.ContentObject, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class SortInfo
extends Object
implements AssetObject, inetsoft.util.ContentObject

Sort info contains the sort information of a TableAssembly.

See Also:
Serialized Form

Constructor Summary
SortInfo()
          Constructor.
 
Method Summary
 void addSort(int index, SortRef ref)
          Add one sort ref.
 void addSort(SortRef ref)
          Add one sort ref.
 void clear()
          Clear all the sort refs.
 Object clone()
          Clone the object.
 boolean containsSort(DataRef ref)
          Check if contains the sort ref.
 boolean equals(Object obj)
          Check if equals another object.
 boolean equalsContent(Object obj)
          Check if equals another object in content.
 PropertyChangeListener getListener()
          Get the listener to monitor the change of column selection.
 SortRef getSort(DataRef ref)
          Get the sort ref.
 SortRef getSort(int index)
          Get the sort ref.
 int getSortCount()
          Get the sort ref count.
 SortRef[] getSorts()
          Get all the sort refs.
 int hashCode()
          Get the hash code.
 boolean isEmpty()
          Check if the sort info is empty.
 void parseXML(Element elem)
          Method to parse an xml segment.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void removeSort(DataRef ref)
          Remove the sort ref.
 void removeSort(int index)
          Remove the sort ref.
 void setListener(PropertyChangeListener listener)
          Set the listener to monitor the change of column selection.
 String toString()
          Get the string representation.
 void validate(ColumnSelection columns)
          Validate the group info.
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortInfo

public SortInfo()
Constructor.

Method Detail

getSort

public SortRef getSort(DataRef ref)
Get the sort ref.

Parameters:
ref - the specified attribute.
Returns:
the sort ref of the attribute.

getSort

public SortRef getSort(int index)
Get the sort ref.

Parameters:
index - the specified index.
Returns:
the sort ref of the attribute.

getSorts

public SortRef[] getSorts()
Get all the sort refs.

Returns:
all the sort refs.

getSortCount

public int getSortCount()
Get the sort ref count.

Returns:
the sort ref count.

containsSort

public boolean containsSort(DataRef ref)
Check if contains the sort ref.

Parameters:
ref - the specified attribute.
Returns:
true if contains, false otherwise.

addSort

public void addSort(SortRef ref)
Add one sort ref.

Parameters:
ref - the specified attribute.

addSort

public void addSort(int index,
                    SortRef ref)
Add one sort ref.

Parameters:
ref - the specified attribute.
index - the specified index.

removeSort

public void removeSort(DataRef ref)
Remove the sort ref.

Parameters:
ref - the specified attribute.

removeSort

public void removeSort(int index)
Remove the sort ref.

Parameters:
index - the specified index.

clear

public void clear()
Clear all the sort refs.


isEmpty

public boolean isEmpty()
Check if the sort info is empty.

Returns:
true if empty, false otherwise.

validate

public void validate(ColumnSelection columns)
Validate the group info.

Parameters:
columns - the specified column selection.

writeXML

public void writeXML(PrintWriter writer)
Write the xml segment to print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the destination print writer.

parseXML

public void parseXML(Element elem)
              throws Exception
Method to parse an xml segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element.
Throws:
Exception

clone

public Object clone()
Clone the object.

Specified by:
clone in interface AssetObject
Overrides:
clone in class Object
Returns:
the cloned object.

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class Object
Parameters:
obj - the specified object.
Returns:
true if yes, false otherwise.

hashCode

public int hashCode()
Get the hash code.

Overrides:
hashCode in class Object
Returns:
the hash code.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
the string representation.

printKey

public boolean printKey(PrintWriter writer)
                 throws Exception
Print the key to identify this content object. If the keys of two content objects are equal, the content objects are equal too.

Specified by:
printKey in interface inetsoft.util.ContentObject
Throws:
Exception

equalsContent

public boolean equalsContent(Object obj)
Check if equals another object in content.

Specified by:
equalsContent in interface inetsoft.util.ContentObject
Parameters:
obj - the specified object.
Returns:
true if equals the object in content, false otherwise.

setListener

public void setListener(PropertyChangeListener listener)
Set the listener to monitor the change of column selection.


getListener

public PropertyChangeListener getListener()
Get the listener to monitor the change of column selection.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.