org.jdesktop.appframework.swingx
Class XProperties.SortKeyState
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modelIndex
int modelIndex
comparator
Comparator comparator
ascending
boolean ascending
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
-
getSortKey
protected org.jdesktop.swingx.decorator.SortKey getSortKey()
getAscending
public boolean getAscending()
getModelIndex
public int getModelIndex()
getComparator
public Comparator getComparator()