menu.java

来自「这个weblogging 设计得比较精巧」· Java 代码 · 共 38 行

JAVA
38
字号
package org.roller.presentation.tags.menu;import org.roller.RollerException;import javax.servlet.http.HttpServletRequest;/** An individual menu which contains MenuItems */ public interface Menu {	/** Name of Menu */	public String getName();	/** Collection of MenuItem objects contained in this menu */	public java.util.Vector getMenuItems();	/** Determine if this menu is selected based on request */	public boolean isSelected( HttpServletRequest req ) throws RollerException;	/** Get currently selected menu item in this menu */	public MenuItem getSelectedMenuItem( HttpServletRequest req ) throws RollerException;    /** Url to be displayed in menu */     public String getUrl( javax.servlet.jsp.PageContext pctx );        /** Is user principal permitted to use this menu? */     public boolean isPermitted( HttpServletRequest req ) throws RollerException;        /** Set roles allowed to use this menu (comma separated list). */     public void setRoles( String roles );    /** Name of true/false configuration property that enables this menu */     public void setEnabledProperty( String enabledProperty );    /** Name of true/false configuration property that disables this menu */     public void setDisabledProperty( String disabledProperty );}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?