|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.portlet.SpaceModel
public class SpaceModel
Class declaration
Constructor Summary | |
---|---|
SpaceModel()
Empty constructor to satisfy the J2EE requirement for the <jsp:useBean> tag Should never be called |
|
SpaceModel(String aSpaceId)
SpaceModel |
Method Summary | |
---|---|
void |
addColumn(SpaceColumn aColumn)
Add a column to the space model |
void |
addColumn(SpaceColumn aColumn,
int col)
Insert a column to the space model at the specified position |
void |
addPortlet(int col,
int row,
Portlet aPortlet)
Insert a single portlet to the SpaceModel at the specified col, before the specified row if the col is invalid a new one is created and added to the spaceModel |
void |
addPortlet(int colNum,
Portlet aPortlet)
Append a single portlet to the SpaceModel to the specified column. if the column is invalid, create a new one. |
SpaceColumn |
getColumn(int col)
getColumn |
int |
getcolumnsCount()
getcolumnsCount |
String |
getColumnsRatios()
getColumnsRatios |
boolean |
getIsAdministrator()
getIsAdministrator |
String |
getname()
Method declaration |
Portlet |
getPortlet(int col,
int row)
getPortlet |
int |
getPortletCount()
Method declaration |
int |
getPortletIndex(int instanceId)
return -1 if not found. |
Portlet |
getPortlets(int index)
Retrieve a portlet by Its index in the space Model |
int |
getSpaceId()
getSpaceId |
int |
getUserId()
getUserId |
void |
removeColumn(int col)
removeColumn |
void |
removePortlet(int col,
int row)
Remove the portlet from the in memory spaceModel |
void |
setIsAdministrator(boolean isAdmin)
setIsAdministrator |
void |
setUserId(int aUserId)
setUserId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpaceModel() throws PortletException
PortletException
public SpaceModel(String aSpaceId)
String
- aSpaceIdMethod Detail |
---|
public void setIsAdministrator(boolean isAdmin)
isAdmin
- true if the user is administratorpublic boolean getIsAdministrator()
public void setUserId(int aUserId)
aUserId
- parameter for setUserIdpublic int getUserId()
public int getSpaceId()
public String getname()
public int getcolumnsCount()
public SpaceColumn getColumn(int col)
col
- parameter for getColumn
public String getColumnsRatios()
public Portlet getPortlets(int index)
public int getPortletCount()
public Portlet getPortlet(int col, int row)
col
- parameter for getPortlet
public int getPortletIndex(int instanceId)
public void addColumn(SpaceColumn aColumn, int col)
public void addColumn(SpaceColumn aColumn)
public void addPortlet(int col, int row, Portlet aPortlet)
public void addPortlet(int colNum, Portlet aPortlet)
public void removeColumn(int col)
col
- parameter for removeColumnpublic void removePortlet(int col, int row)
col
- is the index of the column in spaceColumns, first col is 0row
- is the index of the portlet in the column, first row is 0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |