KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > css > engine > value > ShorthandManager


1 /*
2
3    Copyright 2002-2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.css.engine.value;
19
20 import org.apache.batik.css.engine.CSSEngine;
21 import org.w3c.css.sac.LexicalUnit;
22 import org.w3c.dom.DOMException JavaDoc;
23
24 /**
25  * This interface represents the objects which provide support for
26  * shorthand properties.
27  *
28  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
29  * @version $Id: ShorthandManager.java,v 1.5 2005/03/27 08:58:31 cam Exp $
30  */

31 public interface ShorthandManager {
32     
33     /**
34      * Returns the name of the property handled.
35      */

36     String JavaDoc getPropertyName();
37     
38     /**
39      * Sets the properties which are affected by this shorthand
40      * property.
41      * @param eng The current CSSEngine.
42      * @param ph The property handler to use.
43      * @param lu The SAC lexical unit used to create the value.
44      * @param imp The property priority.
45      */

46     void setValues(CSSEngine eng,
47                    PropertyHandler ph,
48                    LexicalUnit lu,
49                    boolean imp)
50         throws DOMException JavaDoc;
51
52     /**
53      * To handle a property value created by a ShorthandManager.
54      */

55     public interface PropertyHandler {
56         public void property(String JavaDoc name, LexicalUnit value,
57                              boolean important);
58     }
59 }
60
Popular Tags