|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Page
The Page
interface represents a displayable page of a form. A page can be displayed to a user as a web page or can be included
within a PDF document (see WebForm.generatePdf(PdfOptions)
).
Individual pages can be accessed via the Pages
interface.
Method Summary | |
---|---|
void |
clearFocus()
Removes any focus set on the page for individual controls using method Control.requestFocus() . |
Control[] |
getAllControls()
Returns an array of all controls on the page in display order. |
Control[] |
getControlsByModifier(java.lang.String modifier)
Returns an array of controls that have the named modifier. |
Page |
getNextPage()
Returns the Page object for the next page or null if no next page exists. |
Control |
getPageControl()
Returns the Page Control that acts as the root control for all controls on the page. |
Page |
getPreviousPage()
Returns the Page object for the previous page displayed to the user. |
Methods inherited from interface com.ebasetech.xi.api.MessageContainer |
---|
addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, existErrorMessages, existMessages, existWarningMessages |
Method Detail |
---|
Control getPageControl()
Control[] getAllControls()
Javascript example:
for each (var ctrl in pages.PAGE_1.allControls) { log(ctrl.elementName); }
void clearFocus()
Control.requestFocus()
. Note that
focus is reset automatically each time a page is displayed.
Control.requestFocus()
Control[] getControlsByModifier(java.lang.String modifier)
Modifiers provide a way of flagging one or more controls so they can be found programatically, e.g. a group of Field Controls might be changed from enterable to display only. Modifiers are assigned to controls at design time using the Modifiers property. Any number of modifiers can be assigned - modifiers are entered as a comma delimited list.
Javascript example:
var page = pages.PAGE_1; for each (var ctrl in page.getControlsByModifier("FINANCE")) { if (!system.securityManager.hasRole("FINANCE_CONTROLLER")) { ctrl.hide(); } }
modifier
-
Control.hasModifier(String)
Page getNextPage()
Page
object for the next page or null if no next page exists. This is the page which will be displayed
to the user when a Next Page Button is clicked.
Page getPreviousPage()
Page
object for the previous page displayed to the user. This method only returns a valid Page object when
the page on which it is invoked has been displayed to the user, otherwise it returns null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |