Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.ui.properties
Class DefaultTableLabelSorter

java.lang.Object
  extended by ViewerSorter
      extended by com.ibm.etools.systems.application.visual.editor.ui.properties.DefaultTableLabelSorter

public class DefaultTableLabelSorter
extends ViewerSorter

Default viewer sorter for properties tables of the Application Diagram. The selected column is sorted either by string value or numerical vaule.


Field Summary
static String copyright
           
 
Constructor Summary
DefaultTableLabelSorter(ITableLabelProvider labelProvider)
          Constructor.
DefaultTableLabelSorter(ITableLabelProvider contentProvider, int columnNumber)
          Constructor.
DefaultTableLabelSorter(ITableLabelProvider contentProvider, int columnNumber, boolean isNumber)
          Constructor.
 
Method Summary
 int compare(Viewer viewer, Object e1, Object e2)
          Compare two objects in table viewer.
 int getColumnNumber()
          Get column number.
 boolean getIsNumber()
          Getter of isNumber.
 boolean isAscend()
          Return true if the column is reversed.
 void setAscend(boolean ascend)
          Set reversed status.
 void setColumnNumber(int newColumnNumber)
          Set column number.
 void setIsNumber(boolean isNumber)
          Setter of isNumber.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

DefaultTableLabelSorter

public DefaultTableLabelSorter(ITableLabelProvider labelProvider)
Constructor.


DefaultTableLabelSorter

public DefaultTableLabelSorter(ITableLabelProvider contentProvider,
                               int columnNumber)
Constructor.


DefaultTableLabelSorter

public DefaultTableLabelSorter(ITableLabelProvider contentProvider,
                               int columnNumber,
                               boolean isNumber)
Constructor.

Method Detail

compare

public int compare(Viewer viewer,
                   Object e1,
                   Object e2)
Compare two objects in table viewer.

See Also:
ViewerSorter#compare(Viewer, Object, Object)

getColumnNumber

public int getColumnNumber()
Get column number.


setColumnNumber

public void setColumnNumber(int newColumnNumber)
Set column number.


isAscend

public boolean isAscend()
Return true if the column is reversed. False otherwise.


setAscend

public void setAscend(boolean ascend)
Set reversed status.


setIsNumber

public void setIsNumber(boolean isNumber)
Setter of isNumber.


getIsNumber

public boolean getIsNumber()
Getter of isNumber.


Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.