org.jdesktop.appframework.swingx
Class XProperties.SortKeyState

java.lang.Object
  extended by org.jdesktop.appframework.swingx.XProperties.SortKeyState
Enclosing class:
XProperties

public static class XProperties.SortKeyState
extends Object

Quick hack to make SortKey encodable. How to write a PersistenceDelegate for a SortKey? Boils down to how to write a delegate for the uninstantiable class (SwingX) SortOrder which does enum-mimickry (defines privately intantiated constants)


Field Summary
(package private)  boolean ascending
           
(package private)  Comparator comparator
           
(package private)  int modelIndex
           
 
Constructor Summary
XProperties.SortKeyState(boolean ascending, int modelIndex, Comparator comparator)
          Constructor used by the custom PersistenceDelegate.
XProperties.SortKeyState(org.jdesktop.swingx.decorator.SortKey sortKey)
          Constructor used by property.
 
Method Summary
 boolean getAscending()
           
 Comparator getComparator()
           
 int getModelIndex()
           
protected  org.jdesktop.swingx.decorator.SortKey getSortKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelIndex

int modelIndex

comparator

Comparator comparator

ascending

boolean ascending
Constructor Detail

XProperties.SortKeyState

public XProperties.SortKeyState(boolean ascending,
                                int modelIndex,
                                Comparator comparator)
Constructor used by the custom PersistenceDelegate.

Parameters:
ascending -
modelIndex -
comparator -

XProperties.SortKeyState

public XProperties.SortKeyState(org.jdesktop.swingx.decorator.SortKey sortKey)
Constructor used by property.

Parameters:
sortKey -
Method Detail

getSortKey

protected org.jdesktop.swingx.decorator.SortKey getSortKey()

getAscending

public boolean getAscending()

getModelIndex

public int getModelIndex()

getComparator

public Comparator getComparator()