KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > webapp > taglib > core > menu > context > ItemPart


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

16 package com.blandware.atleap.webapp.taglib.core.menu.context;
17
18 import javax.servlet.jsp.tagext.SimpleTag JavaDoc;
19
20 /**
21  * <p>Interface for some part of menu item (enabled or disabled)</p>
22  * <p><a HREF="MenuItemPart.java.htm"><i>View Source</i></a></p>
23  *
24  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
25  * @version $Revision: 1.2 $ $Date: 2005/09/21 13:46:05 $
26  */

27 public interface ItemPart extends SimpleTag JavaDoc {
28
29     /**
30      * Flag used to say that content of this part will be included in page
31      */

32     public static final int FLAG_RENDER_TO_PAGE = 0;
33
34     /**
35      * Flag used to say that content of this part will be included in menu
36      */

37     public static final int FLAG_RENDER_TO_MENU = 1;
38
39     /**
40      * Returns flag that shows, where content of this part will be included: in page or in menu.
41      * It may be used by some tags which are nested within tag, implementing this interface
42      *
43      * @return Flag that shows, where content of this part will be included: in page or in menu
44      */

45     public int getRenderingFlag();
46 }
47
Popular Tags