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

📄 portletbean.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
////                                   ____.//                       __/\ ______|    |__/\.     _______//            __   .____|    |       \   |    +----+       \//    _______|  /--|    |    |    -   \  _    |    :    -   \_________//   \\______: :---|    :    :           |    :    |         \________>//           |__\---\_____________:______:    :____|____:_____\//                                      /_____|////                 . . . i n   j a h i a   w e   t r u s t . . .////--------------------------// PortletBean//--------------------------// J閞鬽e B閐at 15.12.2000//--------------------------package org.jahia.layout;/** * This class defines the bean that contains all the variables for a portlet. * @author Jerome Bedat */public class PortletBean{    public static final int NO_CONTAINER_ID = -1;    private int			PortletID = 0;    private int			PortletSourceID = 0;    private int         PortletW = 0;    private int         PortletH = 0;    private int         PortletColumn = 0;    private int         PortletRow = 0;    private int         containerID = NO_CONTAINER_ID ; // this is used to store the container ID if                                                        // this bean was loaded from a container.                                                        // This allows for some optimization in                                                        // management of objects.    private boolean     modified = false; // set to true as soon as values are                                          // set in the bean...    /**     * Real constructor, sets ALL member variables without exception. This     * contructor is used by all the constructors below.     */    public PortletBean( int PortletID, int PortletSourceID, int PortletW, int PortletH,                        int PortletColumn, int PortletRow, int containerID)    {        this.PortletID		    = PortletID;        this.PortletSourceID   	= PortletSourceID;        this.PortletW		    = PortletW;        this.PortletH		    = PortletH;        this.PortletColumn      = PortletColumn;        this.PortletRow		    = PortletRow;        this.containerID        = containerID;    }    /**     * PortletBean   All Params except container ID     *     * @author J閞鬽e B閐at     *     */    public PortletBean( int PortletID, int PortletSourceID, int PortletW, int PortletH,                        int PortletColumn, int PortletRow)    {        this(PortletID, PortletSourceID, PortletW,             PortletH, PortletColumn, PortletRow, NO_CONTAINER_ID);    } // end Constructor    /**     * This is a tool constructor. All parameters are strings and automatic     * conversion is done here. Version with container ID     *     * @author Serge Huber     *     */    public PortletBean( String PortletID, String PortletSourceID, String PortletW, String PortletH,                        String PortletColumn, String PortletRow, int containerID)    {        this(   Integer.parseInt(PortletID),                Integer.parseInt(PortletSourceID),                Integer.parseInt(PortletW),                Integer.parseInt(PortletH),                Integer.parseInt(PortletColumn),                Integer.parseInt(PortletRow),                containerID            );    } // end Constructor    /**     * This is a tool constructor. All parameters are strings and automatic     * conversion is done here. Version without container ID     *     * @author Serge Huber     *     */    public PortletBean( String PortletID, String PortletSourceID, String PortletW, String PortletH,                        String PortletColumn, String PortletRow)    {        this(   Integer.parseInt(PortletID),                Integer.parseInt(PortletSourceID),                Integer.parseInt(PortletW),                Integer.parseInt(PortletH),                Integer.parseInt(PortletColumn),                Integer.parseInt(PortletRow),                NO_CONTAINER_ID            );    } // end Constructor    /**     * PortletBean   HTML Params     *     * @author J閞鬽e B閐at     *     */    public PortletBean( int PortletID, int PortletSourceID,                        int PortletColumn, int PortletRow)    {        this(PortletID, PortletSourceID, 0, 0,             PortletColumn, PortletRow, NO_CONTAINER_ID);    } // end Constructor    /**     * This constructor is used by the event listener, in order to create new PortletBeans     * that have never been stored before. This is a first time object until it will be     * stored in persistant storage later.     * @author Serge Huber.     */    public PortletBean(int portletSourceID) {        this(portletSourceID, portletSourceID,             0, 0,             0, 0, NO_CONTAINER_ID);    }    public int		getPortletID()     	    {   return PortletID;    	    }    public int		getPortletSourceID()   	{   return PortletSourceID;		}    public int  	getPortletW()    	    {   return PortletW;    	    }    public int  	getPortletH()    	    {   return PortletH;    	    }    public int  	getPortletColumn()    	{   return PortletColumn;       }    public int  	getPortletRow()    	    {   return PortletRow;    	    }    public void     setPortletW (int w)           { this.PortletW = w;    modified = true;       }    public void     setPortletH (int h)           { this.PortletH = h;    modified = true;       }    public void     setPortletColumn (int column) { this.PortletColumn = column; modified = true;}    public void     setPortletRow (int row)       { this.PortletRow = row;       modified = true;}    public int      getContainerID()        {   return containerID;         }    public boolean  isModified()            {   return modified;            }}

⌨️ 快捷键说明

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