📄 footerbean.java
字号:
/*$Id: FooterBean.java,v 1.1 2008/07/15 03:38:23 liqi Exp $ *-------------------------------------- * Apusic (Kingdee Middleware) *--------------------------------------- * Copyright By Apusic ,All right Reserved * author date comment * chenhongxin 2008-4-14 Created*/package org.operamasks.example.ejb.hr.litebean.module;import org.operamasks.example.ejb.hr.constants.ILocalStringsKey;import org.operamasks.faces.annotation.BeforeRender;import org.operamasks.faces.annotation.Bind;import org.operamasks.faces.annotation.ManagedBean;import org.operamasks.faces.annotation.ManagedBeanScope;/** * 页脚页面的托管Bean * @author chenhongxin */@ManagedBean(name="module.footerBean", scope=ManagedBeanScope.SESSION)public class FooterBean extends BaseBean { /** * 绑定帮助链接的显示值 */ @Bind(id="footerHelp", attribute="value") private String footerHelp; /** * 绑定使用条款链接的显示值 */ @Bind(id="footerTermsOfUse", attribute="value") private String footerTermsOfUse; /** * 绑定法律申明链接的显示值 */ @Bind(id="footerDeclareOfLaw", attribute="value") private String footerDeclareOfLaw; @BeforeRender void beforeRender(boolean isPostback) { if(!isPostback) {//执行链接显示值的国际化初始化 footerHelp = getMessages().get(ILocalStringsKey.HELP_LABEL); footerTermsOfUse = getMessages().get(ILocalStringsKey.TERMS_OF_USE_LABEL); footerDeclareOfLaw = getMessages().get(ILocalStringsKey.DECLARE_OF_LAW_LABEL); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -