Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.rt.hook
Class FolderRendererPolicy.PapzSetupActionImpl

java.lang.Object
  |
  +--oracle.panama.rt.hook.FolderRendererPolicy.FolderSetupActionImpl
        |
        +--oracle.panama.rt.hook.FolderRendererPolicy.PapzSetupActionImpl
All Implemented Interfaces:
FolderSetupAction
Enclosing class:
FolderRendererPolicy

public class FolderRendererPolicy.PapzSetupActionImpl
extends oracle.panama.rt.hook.FolderRendererPolicy.FolderSetupActionImpl

Special version of setup action for actions that will invoke PapzLite Constructs the correct URL


Constructor Summary
FolderRendererPolicy.PapzSetupActionImpl(java.lang.String name, java.lang.String formOption, oracle.panama.rt.hook.FolderRendererPolicy.Predicate active)
           
FolderRendererPolicy.PapzSetupActionImpl(java.lang.String name, java.lang.String formOption, java.lang.String label, oracle.panama.rt.hook.FolderRendererPolicy.Predicate active)
           

 

Method Summary
 java.lang.String getAudioURL(ServiceContext context)
          Get the audio file to use for this action
 org.w3c.dom.Element getElement(ServiceContext context)
          Get the preferred element to display for this action If an icon is available, it will be used
 java.lang.String getIconURL(ServiceContext context)
          Get the icon file to use for this action
 java.lang.String getLabel()
           
 java.lang.String getLabel(ServiceContext context)
          Get the localized label for this action
 java.lang.String getName()
           
 java.lang.String getURL()
           
 java.lang.String getURL(ServiceContext context)
          Get the URL this action should invoke
 boolean isActive(ServiceContext context)
          Is it appropriate to display this action for this user/folder
 boolean isEnabled()
           
 boolean isEnabled(ServiceContext context)
          Is the action enabled in system config

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

FolderRendererPolicy.PapzSetupActionImpl

public FolderRendererPolicy.PapzSetupActionImpl(java.lang.String name,
                                                java.lang.String formOption,
                                                oracle.panama.rt.hook.FolderRendererPolicy.Predicate active)

FolderRendererPolicy.PapzSetupActionImpl

public FolderRendererPolicy.PapzSetupActionImpl(java.lang.String name,
                                                java.lang.String formOption,
                                                java.lang.String label,
                                                oracle.panama.rt.hook.FolderRendererPolicy.Predicate active)
Method Detail

getURL

public java.lang.String getURL(ServiceContext context)
Get the URL this action should invoke
Specified by:
getURL in interface FolderSetupAction
Overrides:
getURL in class oracle.panama.rt.hook.FolderRendererPolicy.FolderSetupActionImpl
Returns:
String the URL to invoke for this action

isActive

public boolean isActive(ServiceContext context)
Is it appropriate to display this action for this user/folder
Specified by:
isActive in interface FolderSetupAction
Returns:
boolean is current action active

getAudioURL

public java.lang.String getAudioURL(ServiceContext context)
Description copied from interface: FolderSetupAction
Get the audio file to use for this action
Specified by:
getAudioURL in interface FolderSetupAction
Returns:
String URL/path to audio file

getIconURL

public java.lang.String getIconURL(ServiceContext context)
Description copied from interface: FolderSetupAction
Get the icon file to use for this action
Specified by:
getIconURL in interface FolderSetupAction
Returns:
String URL/path to icon file

getElement

public org.w3c.dom.Element getElement(ServiceContext context)
Get the preferred element to display for this action If an icon is available, it will be used

getLabel

public java.lang.String getLabel(ServiceContext context)
Get the localized label for this action
Specified by:
getLabel in interface FolderSetupAction
Returns:
String localized label, NULL if no label could be found for this action in the current resource bundle.

isEnabled

public boolean isEnabled(ServiceContext context)
Is the action enabled in system config
Specified by:
isEnabled in interface FolderSetupAction
Returns:
boolean is current action enabled

getURL

public java.lang.String getURL()

isEnabled

public boolean isEnabled()

getLabel

public java.lang.String getLabel()

getName

public java.lang.String getName()

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.