|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.ext.favoriteviews.impl.FavoriteViewsFolderImpl
public class FavoriteViewsFolderImpl
FavoriteViewsFolderImpl
A folder is a container object with a name. It also holds a position
information so that the user can place it anywhere she likes (in relation
to its siblings in the tree).
Furthermore the folder has information on the connection from which it was
created. This is used to assign favorite view structures to specific
connections. If a folder is being moved to a favorite view structure of a
different connection, the transfer is aborted.
Constructor Summary | |
---|---|
FavoriteViewsFolderImpl(java.lang.String name,
Connection con)
Creates a new folder with the specified name and connection. |
|
FavoriteViewsFolderImpl(java.lang.String name,
Connection con,
int position)
Creates a new folder with the specified name and position. |
Method Summary | |
---|---|
Connection |
getConnection()
Returns the connection for this folder. |
java.lang.String |
getName()
Returns the name of the folder. |
int |
getPosition()
Returns the position of the folder. |
void |
setName(java.lang.String newName)
Sets a new name for the folder. |
void |
setPosition(int newPosition)
Sets a new position for the folder. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FavoriteViewsFolderImpl(java.lang.String name, Connection con)
name
- the name of the folder.con
- the connection to which this bookmark folder belongs.public FavoriteViewsFolderImpl(java.lang.String name, Connection con, int position)
name
- the name of the folder.con
- the connection to which this bookmark folder belongs.position
- the position in relation to its siblings.Method Detail |
---|
public java.lang.String getName()
getName
in interface NamedEntity
public void setName(java.lang.String newName)
setName
in interface FavoriteViewsFolder
newName
- the new name for the folder.public int getPosition()
getPosition
in interface FavoriteViewsFolder
public void setPosition(int newPosition)
setPosition
in interface FavoriteViewsFolder
newPosition
- the new position for the folder.public Connection getConnection()
getConnection
in interface FavoriteViewObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |