1 7 8 package org.jdesktop.jdnc.markup.attr; 9 10 import org.jdesktop.swing.Application; 11 12 import net.openmarkup.ApplierException; 13 import net.openmarkup.AttributeApplier; 14 import net.openmarkup.Realizable; 15 16 19 public class AppAttributes { 20 public static final AttributeApplier titleApplier = new AttributeApplier() { 21 public void apply(Realizable target, String namespaceURI, 22 String attributeName, String attributeValue) throws ApplierException { 23 Application app = (Application) target.getObject(); 24 app.setTitle(attributeValue); 25 } 26 }; 27 28 public static final AttributeApplier versionStringApplier = new AttributeApplier() { 29 public void apply(Realizable target, String namespaceURI, 30 String attributeName, String attributeValue) throws ApplierException { 31 Application app = (Application) target.getObject(); 32 app.setVersionString(attributeValue); 33 } 34 }; 35 } 37 | Popular Tags |