|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
"Views" are deep copy immutable objects. Unlike "Definitions" and "Instances" Views cannot be modified by the developer. A Instance or a Definition however can always be obtained from the view. The persistence APIs provides course grain and fine grain getters but only fine grain setters. If you are interested in an object and all its children then retrieve the View, if you are only interested in the immediate object and don't care about its children then retrieve the Definition.
View class for a navigable, which is either a book or a page. In other words, Parent Books can contain both child Pages and Child Books. Navigable is a term/interface used to represent either one of these. A navigable is an item on a book that can be navigated to from a menu.
View
Field Summary | |
static short |
ALIGNMENT_LEFT
Constant for signifying that the menu tabs should align to the left. |
static short |
ALIGNMENT_RIGHT
Constant for signifying that the menu tabs should align to the right. |
Method Summary | |
int |
getAlignment()
Returns the menu tabs alignment for this navigable (page or book). |
String |
getDefinitionLabel()
The unique definition label as defined in the .portal file. |
LocalizationResourceView |
getLocalizationResourceView()
The Localization resource contains the localized title and description for this navigable. |
int |
getMenuPosition()
Return the relative position of this navigable (page or book) in the menu. |
NavigableDefinition |
getNavigableDefinition()
Retrieve the associated NavigableDefinition from this Navigable View. |
NavigableInstance |
getNavigableInstance()
Retrieve the associated NavigableInstance from this Navigable View. |
boolean |
isDefaultPage()
Indicates whether this is a default navigable or not. |
boolean |
isHidden()
I this book/page hidden? |
boolean |
isPublic()
Is this book/page public? |
Methods inherited from interface com.bea.netuix.application.view.View |
getDescription, getTitle |
Field Detail |
public static final short ALIGNMENT_LEFT
public static final short ALIGNMENT_RIGHT
Method Detail |
public int getAlignment()
Returns the menu tabs alignment for this navigable (page or book). The alignment is a hint to the menu skeleton to render the tab on the left or right side of the menu. Since this is only a hint to the menu skeleton, if the skeleton does not support it, it will have no effect.
ALIGNMENT_LEFT
or ALIGNMENT_RIGHT
public String getDefinitionLabel()
public LocalizationResourceView getLocalizationResourceView()
The Localization resource contains the localized title and description for this navigable.
*
public int getMenuPosition()
Return the relative position of this navigable (page or book) in the menu. The actual position
is determined by a combination of alignment
and menuPosition
. Positions
do not have to be sequential (0,1,2,3); they can be (3,7,9), although future service packs may enforce this.
public NavigableDefinition getNavigableDefinition()
Retrieve the associated NavigableDefinition
from this Navigable View. Navigable Views are immutable but
Navigable Definitions are not. Therefore it is often necessary to retrieve the definition from the view in
order to update its values and then in turn call the persistence API. The Navigable Definition is constructed
(in the database) either via API of disassembling a .portal file.
public NavigableInstance getNavigableInstance()
Retrieve the associated NavigableInstance
from this Navigable View. Navigable Views are
immutable but Navigable Instances and Navigable Definitions are not. Therefore it is often necessary to
retrieve the instance from the view in order to update its values and then in turn call the persistence API.
public boolean isDefaultPage()
public boolean isHidden()
I this book/page hidden? The hidden flag is an indicator to the parent book's Menu
to
not display a tab or menu item for this Book/Page. The Navigable can still be
displayed via another link or backing files.
public boolean isPublic()
Is this book/page public? The public flag determines if the book or page should show up in the admin tool's library. The definition still exists in the database it just doesn't show up in the tools. Books and Pages created by admins at the desktop level or visitors creating their own books and pages are not public. This is to prevent thousands of books/pages being displkayed in the library or to other user for selection.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |