|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.rt.hook.FolderRendererPolicy
The default implementation of the FolderRendererHook.
Inner Class Summary |
Type | Class |
---|---|
class |
FolderRendererPolicy.PapzSetupActionImpl
Special version of setup action for actions that will invoke PapzLite Constructs the correct URL |
Field Summary |
Type | Field |
---|---|
static java.lang.String |
BOTTOMIMAGE
|
static java.lang.String |
TOPIMAGE
|
Method Summary |
Type | Method |
---|---|
org.w3c.dom.Element |
createServiceMenu(ServiceContext serviceContext)
Create the service menu, using a MobilXML SimpleMenu tag. |
org.w3c.dom.Element |
createServiceMenuItem(org.w3c.dom.Element parent,
Service currService)
Create a service menu item, using a MobilXML SimpleMenuItem tag. |
org.w3c.dom.Element |
getBody(ServiceContext context)
Helper to create the folder body |
Service[] |
getCurrentServices(ServiceContext context)
Get all visible services in the given folder. |
User |
getCurrentUser(ServiceContext context)
Convenience method for getting the current user given a Service Context This method should probably move to the ServiceContext interface |
FolderSetupAction |
getEditPresetsAction(ServiceContext context)
|
FolderSetupAction |
getEditServicesAction(ServiceContext context)
|
FolderSetupAction |
getEditUserInfoAction(ServiceContext context)
|
FolderSetupAction |
getEditUserProfileAction(ServiceContext context)
|
java.lang.String |
getFolderName(ServiceContext context)
Get the 'canonical' title to use for the current folder. |
org.w3c.dom.Element |
getFooter(ServiceContext context)
Add a footer with setup buttons etc. |
org.w3c.dom.Element |
getFooter(ServiceContext context,
boolean addSetupMenu)
Add a footer with setup buttons etc. |
org.w3c.dom.Element |
getHeader(ServiceContext context)
Get the MobileXML for the header of the current folder |
org.w3c.dom.Element |
getHeader(ServiceContext context,
java.lang.String headerName,
java.lang.String imageName)
Get the MobileXML for the header of the current folder, using the specified title and image |
static FolderRendererPolicy |
getInstance()
The "thread-safe" singleton getter |
FolderSetupAction |
getLoginAction(ServiceContext context)
|
FolderSetupAction |
getLogoffAction(ServiceContext context)
|
FolderSetupAction |
getRegisterAction(ServiceContext context)
|
org.w3c.dom.Element |
invoke(Folder folder,
ServiceContext context)
Invoke the renderer using the service context. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String TOPIMAGE
public static java.lang.String BOTTOMIMAGE
Method Detail |
public org.w3c.dom.Element createServiceMenu(ServiceContext serviceContext)
Folder
- the current folderServiceContext
- the current service contextcreateServiceMenuItem
public org.w3c.dom.Element createServiceMenuItem(org.w3c.dom.Element parent, Service currService)
Element
- parent the Service menu tagService
- the current servicecreateServiceMenu
public static FolderRendererPolicy getInstance()
public java.lang.String getFolderName(ServiceContext context)
ServiceContext
- the current service contextpublic User getCurrentUser(ServiceContext context)
ServiceContext
- the current service contextpublic Service[] getCurrentServices(ServiceContext context)
Folder
- the current folderServiceContext
- the current service contextpublic org.w3c.dom.Element invoke(Folder folder, ServiceContext context) throws PanamaRuntimeException
invoke
in interface FolderRendererHook
folder
- the Folder
to be renderedcontext
- the ServiceContext
that contains all parameters<{PanamaRuntimeException}>
- public org.w3c.dom.Element getBody(ServiceContext context)
sr
- the service request.children
- the vector of services.public FolderSetupAction getLoginAction(ServiceContext context)
ServiceContext
- the current service contextpublic FolderSetupAction getLogoffAction(ServiceContext context)
ServiceContext
- the current service contextpublic FolderSetupAction getRegisterAction(ServiceContext context)
ServiceContext
- the current service contextpublic FolderSetupAction getEditServicesAction(ServiceContext context)
ServiceContext
- the current service contextpublic FolderSetupAction getEditUserInfoAction(ServiceContext context)
ServiceContext
- the current service contextpublic FolderSetupAction getEditUserProfileAction(ServiceContext context)
ServiceContext
- the current service contextpublic FolderSetupAction getEditPresetsAction(ServiceContext context)
ServiceContext
- the current service contextpublic org.w3c.dom.Element getHeader(ServiceContext context)
Folder
- the current folderServiceContext
- service contextpublic org.w3c.dom.Element getHeader(ServiceContext context, java.lang.String headerName, java.lang.String imageName)
Folder
- the current folderServiceContext
- service contextString
- title to use for header (can be null)String
- path/URL of image to use for header (can be null);public org.w3c.dom.Element getFooter(ServiceContext context)
Folder
- the current folderServiceContext
- service contextpublic org.w3c.dom.Element getFooter(ServiceContext context, boolean addSetupMenu)
Folder
- the current folderServiceContext
- service contextboolean
- addSetupMenu flag for whether we should add setup menu or not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |