public abstract class HostPseudoModel extends PseudoModel
ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED| Constructor and Description |
|---|
HostPseudoModel()
Instantiates a HostPseudoModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beep(int nBeep)
Causes the system to play a sound.
|
void |
exportData(String sFilename,
boolean bXDP)
Exports the data from the current form in either XDP or XML format to a file.
|
String |
getAppType()
Returns the name of the client application in which this application is currently running.
|
boolean |
getCalculationsEnabled()
Determines whether calculate scripts will execute.
|
String |
getCurrentDateTime()
Returns the current local time expressed as an ISO 8601 string using
the format YYYYMMDDTHHMMSS.
|
int |
getCurrentPage()
Gets the currently active page of a document at run time.
|
int |
getDocumentCountInBatch()
Returns the number of documents in the current batch.
|
int |
getDocumentInBatch()
Returns the ordinal number of the current document within the batch.
|
Obj |
getFocus()
Returns the form object that currently has the input focus.
|
String |
getLanguage()
Gets the language of the running host application.
|
String |
getName()
Gets the name of the running host application.
|
int |
getNumPages()
Gets the number of pages in the current document.
|
String |
getPlatform()
Gets the platform of the machine running the script.
|
ScriptTable |
getScriptTable() |
String |
getTitle()
Gets the title of the document.
|
boolean |
getValidationsEnabled()
Determines whether validations will execute.
|
String |
getVariation()
Gets the packaging of the application that is running the script.
|
String |
getVersion()
Gets the version number of the current application.
|
void |
gotoURL(String sURL,
boolean bNewInstance)
Retrieves the specified URL.
|
void |
importData(String sFilename)
Imports data to the current form from a specified file.
|
boolean |
importDataPermsCheck()
This method is called before any attempt to call the
$host.importData()
scripting method. |
int |
messageBox(String sMessage,
String sTitle,
int nIcon,
int nType)
Displays a dialog box on the screen.
|
String |
metaData(int nOutputType) |
void |
openList(Node node)
Opens the drop-down list specified by the parameter
This method is only available for client applications.
|
void |
openList(String sSOMExpr)
Opens the drop-down list specified by the reference syntax expression.
|
void |
pageDown()
Moves to the next page of a form.
|
void |
pageUp()
Moves to the next previous of a form.
|
void |
print(boolean bUI,
int nStart,
int nEnd,
boolean bSilent,
boolean bShrinkToFit,
boolean bPrintAsImage,
boolean bReverse,
boolean bAnnotation)
Prints a specific number of pages from a document.
|
void |
resetData(List<String> oNodes)
Resets the fields to their default values within the document.
|
boolean |
resetDataPermsCheck(List<String> nodes)
This method is called before any attempt to call the
$host.resetData()
scripting method. |
String |
response(String sQuestion,
String sTitle,
String sDefault,
boolean bPassword)
Displays a dialog box containing a question and an entry field for the user
to reply to the question.
|
void |
setCalculationsEnabled(boolean bEnabled)
Determines whether calculate scripts will execute.
|
void |
setCurrentPage(int nPage)
Sets the currently active page of a document at run time.
|
void |
setFocus(Node node)
Sets the focus to the form object specified by the parameter
This method is only available for client applications.
|
void |
setFocus(String sSOMExpr)
Sets the focus to the form object specified by the reference syntax expression.
|
void |
setTitle(String sTitle)
Sets the title of the document.
|
void |
setValidationsEnabled(boolean bEnabled)
Determines whether validations will execute.
|
getAliasObject, getClassName, getEventTableaddPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, peerRemoved, removePeer, removePeeredNode, sendMessenge, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer, validateUsage, validateUsageFailedIsFatalpublic ScriptTable getScriptTable()
getScriptTable in class PseudoModelpublic String getAppType()
$host.appType scripting property
is to be supported.public int getCurrentPage()
$host.currentPage scripting property
is to be supported.public void setCurrentPage(int nPage)
$host.currentPage scripting property
is to be supported.nPage - the 0-based page number to make activepublic String getCurrentDateTime()
$host.currentDateTime()
scripting method, and derived classes do not normally need to override this implementation.public int getDocumentInBatch()
$host.documentInBatch() scripting method.public int getDocumentCountInBatch()
$host.documentCountInBatch() scripting method.public String getLanguage()
$host.language scripting property
is to be supported.public String getName()
$host.name scripting property
is to be supported.public int getNumPages()
$host.numPages scripting property
is to be supported.public String getPlatform()
$host.platform scripting property
is to be supported.public String getTitle()
$host.title scripting property
is to be supported.public void setTitle(String sTitle)
$host.title scripting property
is to be supported.sTitle - the title of the documentpublic String getVariation()
$host.variation scripting property
is to be supported.public String getVersion()
$host.version scripting property
is to be supported.public boolean getCalculationsEnabled()
true.
This method must be overridden in derived classes if setCalculationsEnabled(boolean)
is overridden.true if calculate scripts are enabled.public void setCalculationsEnabled(boolean bEnabled)
$host.calculationsEnabled scripting property
is to be supported.bEnabled - true if calculation scripts are enabledpublic boolean getValidationsEnabled()
true.
This method must be overridden in derived classes if setValidationsEnabled(boolean)
is overridden.true if validations are enabled.public void setValidationsEnabled(boolean bEnabled)
$host.calculationsEnabled scripting property
is to be supported.bEnabled - true if validations are enabledpublic void beep(int nBeep)
$host.beep() scripting function
is to be supported.nBeep - a system code for the appropriate soundpublic void exportData(String sFilename, boolean bXDP)
$host.exportData() scripting function
is to be supported.sFilename - the location and file name of the file where the data will export.
In a client application, omitting this parameter causes a dialog box to open to let the user
select the file manually.bXDP - if true, the data is exported in XDP format;
if false, the data is exported as plain XML data.public void importData(String sFilename)
$host.importData() scripting function
is to be supported.sFilename - the location and name of the file from which the data will be imported.
In a client application, if this parameter is an empty string, a dialog box opens to let the user
select the file manually.importDataPermsCheck()public void gotoURL(String sURL, boolean bNewInstance)
$host.gotoURL() scripting function
is to be supported.sURL - a string representing a fully qualified or relative URL. The URL may contain a query string.bNewInstance - if true, the resulting pages are appended to the current document.public int messageBox(String sMessage, String sTitle, int nIcon, int nType)
$host.messageBox() scripting function
is to be supported.sMessage - the message to displaysTitle - the title to appear in the title bar of the dialog windownIcon - the icon to display in the dialog boxnType - the buttons to displaypublic void resetData(List<String> oNodes)
$host.resetData() scripting function
is to be supported.oNodes - a comma-delimited list of SOM expressions of the fields to reset to their default values.
If empty, all fields in the form are reset to their default values.resetDataPermsCheck(List)public void print(boolean bUI,
int nStart,
int nEnd,
boolean bSilent,
boolean bShrinkToFit,
boolean bPrintAsImage,
boolean bReverse,
boolean bAnnotation)
$host.print() scripting function
is to be supported.bUI - if true, displays a print dialog box and prompts the user for
printing setup information and confirmation of the actionnStart - the 0-based page number of the start page to printnEnd - the 0-based page number of the end page to printbSilent - if true, does not display the cancel dialog during the printing processbShrinkToFit - if true, shrinks the page (if necessary) to fit within the
imageable area of the printed pagebPrintAsImage - if true, prints each page as an imagebReverse - if true, prints the pages in reverse orderbAnnotation - if true, prints all annotationspublic String response(String sQuestion, String sTitle, String sDefault, boolean bPassword)
$host.response() scripting function
is to be supported.sQuestion - a string representing a question for the usersTitle - a string representing the title that appears in the title bar of the dialog boxsDefault - a string representing the default vlaue for the answer to the questionbPassword - if true, masks the user's password with asterisksnullpublic Obj getFocus()
$host.getFocus() scripting function
is to be supported.null
if no form object has the input focuspublic void setFocus(String sSOMExpr)
sSOMExpr is null or empty, setFocus performs
a clear focus operation.
This method must be overridden in derived classes if the $host.setFocus() scripting function
is to be supported.sSOMExpr - a fully qualified reference syntax expression for the form objectpublic void setFocus(Node node)
node is null or empty, setFocus performs
a clear focus operation.
This method must be overridden in derived classes if the $host.setFocus() scripting function
is to be supported.node - the form node to set focus topublic void pageDown()
$host.pageDown() scripting function
is to be supported.public void pageUp()
$host.pageUp() scripting function
is to be supported.public void openList(String sSOMExpr)
$host.openList() scripting function
is to be supported.sSOMExpr - a fully qualified reference syntax expression that specifies a drop-down listpublic void openList(Node node)
$host.openList() scripting function
is to be supported.node - the drop-down list form object to openpublic String metaData(int nOutputType)
public boolean importDataPermsCheck()
$host.importData()
scripting method. The implementation should check the that all DataModel
nodes (excluding any data description nodes) are not locked.
This method must be overridden in derived classes if the $host.importData() scripting function
is to be supported.true if the call to the importData() scripting
method should be allowed to proceed.importData(String)public boolean resetDataPermsCheck(List<String> nodes)
$host.resetData()
scripting method. If nodes is empty, all nodes in FormModel derived from
Container (as well as FormModel) should be checked to ensure that neither
they nor any of their children have an ancestor that is locked.
If nodes is not empty, the same test is applied to
the nodes identified by the fully qualified reference expressions in nodes
This method must be overridden in derived classes if the $host.resetData() scripting function
is to be supported.nodes - a list of fully qualified reference expressions of nodes to checktrue if the call to the resetData() scripting
method should be allowed to proceed.resetData(List)Copyright © 2010 - 2020 Adobe. All Rights Reserved