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

📄 adminpagebean.java

📁 基于Jabber协议的即时消息服务器
💻 JAVA
字号:
/** * $RCSfile$ * $Revision: 297 $ * $Date: 2004-11-10 12:13:33 -0800 (Wed, 10 Nov 2004) $ * * Copyright (C) 2004 Jive Software. All rights reserved. * * This software is published under the terms of the GNU Public License (GPL), * a copy of which is included in this distribution. */package org.jivesoftware.admin;import org.jivesoftware.util.StringUtils;import java.util.Collection;import java.util.ArrayList;/** * A bean to hold page information for the admin console. */public class AdminPageBean {    private String title;    private Collection breadcrumbs;    private String pageID;    private String subPageID;    private String extraParams;    private Collection scripts;    public AdminPageBean() {    }    /**     * Returns the title of the page with HTML escaped.     */    public String getTitle() {        if (title != null) {            return StringUtils.escapeHTMLTags(title);        }        else {            return title;        }    }    /**     * Sets the title of the admin console page.     */    public void setTitle(String title) {        this.title = title;    }    /**     * Returns a collection of breadcrumbs. Use the Collection API to get/set/remove crumbs.     */    public Collection getBreadcrumbs() {        if (breadcrumbs == null) {            breadcrumbs = new ArrayList();        }        return breadcrumbs;    }    /**     * Returns the page ID (corresponds to sidebar ID's).     */    public String getPageID() {        return pageID;    }    /**     * Sets the ID of the page (corresponds to sidebar ID's).     * @param pageID     */    public void setPageID(String pageID) {        this.pageID = pageID;    }    /**     * Returns the subpage ID (corresponds to sidebar ID's).     */    public String getSubPageID() {        return subPageID;    }    /**     * Sets the subpage ID (corresponds to sidebar ID's).     * @param subPageID     */    public void setSubPageID(String subPageID) {        this.subPageID = subPageID;    }    /**     * Returns a string of extra parameters for the URLs - these might be specific IDs for resources.     */    public String getExtraParams() {        return extraParams;    }    /**     * Sets the string of extra parameters for the URLs.     */    public void setExtraParams(String extraParams) {        this.extraParams = extraParams;    }    /**     * Returns a collection of scripts. Use the Collection API to get/set/remove scripts.     */    public Collection getScripts() {        if (scripts == null) {            scripts = new ArrayList();        }        return scripts;    }    /**     * A simple model of a breadcrumb. A bread crumb is a link with a display name.     */    public static class Breadcrumb {        private String name;        private String url;        /**         * Creates a crumb given a name an URL.         */        public Breadcrumb(String name, String url) {            this.name = name;            this.url = url;        }        /**         * Returns the name, with HTML escaped.         */        public String getName() {            if (name != null) {                return StringUtils.escapeHTMLTags(name);            }            else {                return name;            }        }        /**         * Returns the URL.         */        public String getUrl() {            return url;        }    }}

⌨️ 快捷键说明

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