|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FavoriteView
A FavoriteView
is an object which links a
with a connection and a new name, which can
be determined by the user.
CubeView
FavoriteView
s are always stored in a
, which provides a container for
all saved favorite views.
Please note that favorite views are saved for each connection, so each
favorite view can represent a view from any database of that connection.
In order to create a FavoriteViewsFolder
FavoriteView
object, please use the
. In order to create a new
favorite view with the name TestFavoriteView, representing the
FavoriteViewFactory
CubeView
, cubeView, you would use:
FavoriteView favoriteView =
FavoriteViewFactory.getInstance().
createFavoriteView("TestFavoriteView", cubeView);
When creating the favorite view, you can also specify an optional third
argument giving the position of the new favorite view realtive to its parent.
For example, if the parent of the favorite view (a favorite view folder) has
five children, you can insert a new view at any position from 0 to 5 (sic!).
The new child will be inserted after the specified number and thus, "5" is
valid in this case to append the new favorite view at the end of its parent's
children.
Method Summary | |
---|---|
CubeView |
getCubeView()
Returns the that is attached to this
favorite view. |
int |
getPosition()
Returns the position of this favorite view in relation to its parent. |
void |
setName(java.lang.String newName)
Sets a new name for this favorite view. |
void |
setPosition(int newPosition)
Sets a new position for this favorite view. |
Methods inherited from interface org.palo.api.ext.favoriteviews.FavoriteViewObject |
---|
getConnection |
Methods inherited from interface org.palo.api.NamedEntity |
---|
getName |
Method Detail |
---|
void setName(java.lang.String newName)
newName
- the new name for this favorite view.int getPosition()
void setPosition(int newPosition)
newPosition
- the new position for this favorite view.CubeView getCubeView()
CubeView
that is attached to this
favorite view.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |