1 7 8 package org.jdesktop.jdnc.markup.attr; 9 10 import java.awt.Color ; 11 12 import org.jdesktop.swing.decorator.Sorter; 13 import org.jdesktop.swing.decorator.ConditionalHighlighter; 14 import org.jdesktop.swing.decorator.Highlighter; 15 import net.openmarkup.AttributeApplier; 16 import net.openmarkup.Realizable; 17 18 23 public class SorterAttributes { 24 public static final AttributeApplier directionApplier = new AttributeApplier() { 25 28 public void apply(Realizable target, String namespaceURI, 29 String attributeName, String attributeValue) { 30 ((Sorter) target.getObject()).setAscending( 31 !attributeValue.equals("descending")); 32 } 33 }; 34 } 35 | Popular Tags |