com.primix.vlib.components
Class Border
java.lang.Object
|
+--com.primix.tapestry.AbstractComponent
|
+--com.primix.tapestry.BaseComponent
|
+--com.primix.vlib.components.Border
- All Implemented Interfaces:
- IComponent, IRender
- public class Border
- extends BaseComponent
The standard Border component, which provides the title of the page,
the link to MyLibrary
, the Login
page and the Logout
page.
- Version:
- $Id: Border.java,v 1.14 2001/08/15 21:28:10 hship Exp $
- Author:
- Howard Ship
Methods inherited from class com.primix.tapestry.AbstractComponent |
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getPage, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Border
public Border()
setTitleBinding
public void setTitleBinding(IBinding value)
getTitleBinding
public IBinding getTitleBinding()
setSubtitleBinding
public void setSubtitleBinding(IBinding value)
getSubtitleBinding
public IBinding getSubtitleBinding()
getPageType
protected int getPageType()
- Determines the 'type' of page, which is used to highlight (with an icon) one of the options
on the left-side navigation bar.
This is determined from the page's specification; a property named "page-type" is read. It
should be one of the following values:
If not specified, "search" is assumed.
isLoggedOut
public boolean isLoggedOut()
isLoggedIn
public boolean isLoggedIn()
isAdmin
public boolean isAdmin()
- Returns true if the user is logged in and is an adminstrator.
This makes additional left-side options appear.
getShowLogout
public boolean getShowLogout()
- Show the Logout button on all pages except the Logout page itself.
getWindowTitle
public java.lang.String getWindowTitle()
login
public void login(IRequestCycle cycle)
throws RequestCycleException
getSearchIcon
public IAsset getSearchIcon()
getMyLibraryIcon
public IAsset getMyLibraryIcon()
getLoginIcon
public IAsset getLoginIcon()
isLibraryPage
public boolean isLibraryPage()
getShowSlash
public boolean getShowSlash()
- Show the slash on library pages that aren't "MyLibrary".
getAdminIcon
public IAsset getAdminIcon()
editProfile
public void editProfile(IRequestCycle cycle)
- Listener that invokes the
EditProfile
page to allow a user
to edit thier name, etc.
addNewBook
public void addNewBook(IRequestCycle cycle)
- Listener used to return a book.
getSubheader
public IAsset getSubheader()