1 7 8 package org.jdesktop.jdnc.markup.attr; 9 10 import org.jdesktop.swing.Application; 11 12 import java.awt.BorderLayout ; 13 14 import javax.swing.JComponent ; 15 import javax.swing.JRootPane ; 16 import javax.swing.JSplitPane ; 17 import javax.swing.JTabbedPane ; 18 19 import net.openmarkup.ApplierException; 20 import net.openmarkup.AttributeApplier; 21 import net.openmarkup.Document; 22 import net.openmarkup.Realizable; 23 24 27 public class RootPaneAttributes { 28 public static final AttributeApplier appApplier = new AttributeApplier() { 29 public void apply(Realizable target, String namespaceURI, 30 String attributeName, String attributeValue) 31 throws ApplierException { 32 Application app = (Application)BaseAttribute.getReferencedObject(target, 33 attributeValue); 34 JRootPane rootPane = (JRootPane ) target.getObject(); 35 rootPane.putClientProperty("Application", app); 36 } 37 }; 38 } 40 | Popular Tags |