|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.script.Bridge
public class Bridge
This class provides a bridge between javascript and specific functions of a Pepper Package.
Method Summary | |
---|---|
void |
action(String command)
the action method performs the
requested action if available for this page |
void |
action(String command,
String parameter)
the action method performs the
requested action if available for this page |
void |
action(String command,
String[] actionParams)
Invokes the specified action for the current program; parameters are passed as a String[] . |
String |
evalXPath(String xPath)
Return the value of an XPath expression in the current page. |
String |
findAddresses(String str)
Return a list of possible address matches in the cache based on the string value passed in. |
String[] |
getAMPMStrs()
Return the localized strings for AM + PM. |
MessageCatalog |
getCatalog()
Get the MessageCatalog for the program |
int |
getDaysInMonth(int year,
int month)
Return the number of days in the current month, according to the default Locale's default calendar. |
String |
getMessage(String key)
Returns the specified message catalog string. |
static Bridge |
getPackage(String packageID)
Get the instance of Bridge for the specified package |
String |
getPackageID()
Returns the unique ID of the package |
String |
getPackageTitle()
Returns the title of the package. |
Object |
getProperty(String propertyName)
Get the value of a specific property from the AbstractPepperProgram used by this bridge |
Object |
getProperty(String propertyName,
String param)
Get the value of a specific property from the AbstractPepperProgram used by this bridge |
Object |
getProperty(String propertyName,
String[] params)
Get the value of a specific property from the AbstractPepperProgram used by this bridge |
String |
getSelectedId(String sectionId)
Calls into program to retrieve page id of the tree selection |
boolean |
isPad()
Checks if we are on the pad |
void |
setModified(String id)
Manually mark a given Form Element (represented by the passed in Element id attr) as modified so that it's value is saved when the page is auto saved. |
void |
setSelectedId(String sectionId,
String id)
Calls into program to store page id of the current tree selection |
void |
status(String message)
The status method write a message into the
Keeper's status area |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Bridge getPackage(String packageID)
packageID
- The packageId to retrieve the Bridge object for
Bridge
valuepublic void setSelectedId(String sectionId, String id)
sectionId
- the section id of the current sectionid
- the page id of the currently selected pagepublic String getSelectedId(String sectionId)
sectionId
- a String
value
String
valuepublic Object getProperty(String propertyName)
propertyName
- The propertyName to look up in the package
Object
valuepublic Object getProperty(String propertyName, String param)
propertyName
- The propertyName to look up in the packageparam
- A String parameter to pass to the getProperty method
Object
valuepublic Object getProperty(String propertyName, String[] params)
propertyName
- The propertyName to look up in the packageparams
- A String[] of arguments to pass to the getProperty method
Object
valuepublic String getPackageTitle()
public String getPackageID()
public void action(String command)
action
method performs the
requested action if available for this page
command
- A string matching a defined actionpublic void action(String command, String parameter)
action
method performs the
requested action if available for this page
command
- A string matching a defined actionparameter
- A string parameter for the commandpublic void action(String command, String[] actionParams)
String[]
.
command
- a String
instance specifying an action.actionParams
- a String[]
instance containing the
action's parameters.public boolean isPad()
public void status(String message)
status
method write a message into the
Keeper's status area
message
- A string to displaypublic MessageCatalog getCatalog()
public String getMessage(String key)
key
- a String
instance containg a message
catalog key.
String
instance containing the retrieved
message text.public String findAddresses(String str)
str
- a String
value to find matches for
String
of possible address matchespublic String evalXPath(String xPath)
public int getDaysInMonth(int year, int month)
public String[] getAMPMStrs()
public void setModified(String id)
id
- The Element id attribute that represents the node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |