KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: JNComponentAttributes.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.jdnc.JNComponent;
11
12 import net.openmarkup.AttributeApplier;
13 import net.openmarkup.Realizable;
14
15 /**
16  * @author Amy Fowler
17  * @author ...
18  */

19 public class JNComponentAttributes {
20
21     // ...
22

23     public static final AttributeApplier backgroundImageApplier = new AttributeApplier() {
24         public void apply(Realizable target, String JavaDoc namespaceURI,
25                           String JavaDoc attributeName, String JavaDoc attributeValue) {
26           /* REMIND(aim): implement JNComponent backgroundImageApplier
27             JNComponent component = (JNComponent) target.getObject();
28             URL imageURL = ...
29             component.setBackgroundImage(image);
30           */

31         }
32     };
33
34     // ...
35
}
36
Popular Tags