⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.jsp

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JSP
字号:
<%@ page import="org.gridsphere.layout.PortletTab" %><%@ taglib uri="/portletUI" prefix="ui" %><%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %><portlet:defineObjects/><jsp:useBean id="controlUI" class="java.lang.String" scope="request"/><ui:text var="msg1" key="LAYOUT_CREATE_MENU"/><ui:text var="msg2" key="LAYOUT_EDIT_MENU"/><% PortletTab tab = (PortletTab) request.getAttribute("portletComp"); %><% String label;    if (request.getAttribute("isnewtab") != null) {        label = msg1;    } else {        label = msg2 + " <b>" + tab.getTitle("en") + "</b>";    }%><ui:group label="<%= label %>">    <ui:table>        <ui:tablerow>            <ui:tablecell>                <ui:actionsubmit beanId="moveLeftButton" action="doMoveTabLeft" key="LAYOUT_MV_LEFT"/>            </ui:tablecell>            <ui:tablecell>                <ui:actionsubmit beanId="moveRightButton" action="doMoveTabRight" key="LAYOUT_MV_RIGHT"/>            </ui:tablecell>        </ui:tablerow>    </ui:table>    <ui:table>        <ui:tablerow>            <ui:tablecell>                <ui:text key="LAYOUT_EDIT_TABNAME"/>                <ui:textfield beanId="nameTF" value="<%= tab.getTitle("en") %>"/>            </ui:tablecell>        </ui:tablerow>        <ui:tablerow>            <ui:tablecell>                <ui:text key="LAYOUT_SEL_ROLES"/>                <ui:listbox beanId="rolesLB"/>            </ui:tablecell>        </ui:tablerow>        <ui:tablerow>            <ui:tablecell>                <ui:text key="LAYOUT_SEL_BOOKMARKING"/>                <ui:textfield beanId="labelTF" value="<%= tab.getLabel() %>"/>            </ui:tablecell>        </ui:tablerow>        <ui:tablerow>            <ui:tablecell>                <ui:text key="LAYOUT_SEL_COLLAYOUT"/>                <ui:listbox beanId="colsLB"/>            </ui:tablecell>        </ui:tablerow>    </ui:table>    <ui:table>        <ui:tablerow>            <ui:tablecell>                <% if (request.getAttribute("isnewtab") != null) { %>                <ui:actionsubmit action="doSaveNewTab" key="SAVE"/>                <% } else { %>                <ui:actionsubmit action="doSaveTab" key="SAVE"/>                <% } %>            </ui:tablecell>            <ui:tablecell>                <% if (request.getAttribute("isnewtab") != null) { %>                <ui:actionsubmit action="doCancel" key="CANCEL"/>                <% } else { %>                <ui:actionsubmit action="doDeleteTab" key="DELETE"/>                <% } %>            </ui:tablecell>        </ui:tablerow>    </ui:table></ui:group>

⌨️ 快捷键说明

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