KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > jdnc > markup > attr > RootPaneAttributes


1 /*
2  * $Id: RootPaneAttributes.java,v 1.1.1.1 2004/06/16 01:43:40 davidson1 Exp $
3  *
4  * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5  * Santa Clara, California 95054, U.S.A. All rights reserved.
6  */

7
8 package org.jdesktop.jdnc.markup.attr;
9
10 import org.jdesktop.swing.Application;
11
12 import java.awt.BorderLayout JavaDoc;
13
14 import javax.swing.JComponent JavaDoc;
15 import javax.swing.JRootPane JavaDoc;
16 import javax.swing.JSplitPane JavaDoc;
17 import javax.swing.JTabbedPane JavaDoc;
18
19 import net.openmarkup.ApplierException;
20 import net.openmarkup.AttributeApplier;
21 import net.openmarkup.Document;
22 import net.openmarkup.Realizable;
23
24 /**
25  * @author Amy Fowler
26  */

27 public class RootPaneAttributes {
28     public static final AttributeApplier appApplier = new AttributeApplier() {
29         public void apply(Realizable target, String JavaDoc namespaceURI,
30                           String JavaDoc attributeName, String JavaDoc attributeValue)
31         throws ApplierException {
32             Application app = (Application)BaseAttribute.getReferencedObject(target,
33                                          attributeValue);
34             JRootPane JavaDoc rootPane = (JRootPane JavaDoc) target.getObject();
35             rootPane.putClientProperty("Application", app);
36         }
37     };
38      // ...
39
}
40
Popular Tags