Skip to main content

Page Definition Properties

This section describes the general properties available for the page definition.

General

PropertyDescriptionExample
AlignmentControls the alignments of the contained elements or text within the element, selected from a drop down list.CENTRE
Allow Close?Indicates whether the page definition will show a 'close' button.true
Allow Help?Indicates whether the page definition will show a 'help' buttontrue
Allow Move?Indicates whether the page definition will support being moved on the screen.true
Allow Pause?Indicates whether the page definition will show a 'pause' button.true
Allow Resize?Indicates whether the page definition will support being resized.true
Background ColourThe background colour for the element. It can be shown as the colour name for common colours, e.g. RED, or a hex code, e.g. #ff0000. It could also contain a conditional statement to determine which colour is to be used, e.g. #{notEmpty(view.currentlyInTrainingMode)&& view.currentlyInTrainingMode ? '#80FF80': 'WHITE' }.RED
Background Image URLIndicates the URL for background image to be displayed on the element.Mac1024x768/Pos/PosDialogHoverButton1024x768.gif
Border ColourThe border colour for the element. It can be shown as the colour name for common colours, e.g. RED, or a hex code, e.g. #ff0000. It could also contain a conditional statement to determine which colour is to be used, e.g. #{notEmpty(view.currentlyInTrainingMode)&& view.currentlyInTrainingMode ? '#80FF80': 'WHITE' }.#ff0000
Border SizeIndicates the size of border in pixels. Integer value, 0 means no border.1
Border StyleIndicates the style of the element's borders. Styles are selected from a drop down list.Line
ClassnameAn optional classname that allows the capabilities of the element to be extended.com.enactor.coreUI.swing.pageElementHandlers.
SwingClockLabelElementHandler
Default Message ResourceThe default message base used when resolving message IDs for the page.Pos/Sale/SaleMessages
Editable?Indicates whether the element is editable.true
Editable ExpressionAn expression that determines if the element is editable. This will take precedence over the Editable flag.#{!readOnly}
Enabled?Indicates whether the element is enabled.true
Enabled ExpressionAn expression that determines if the element is enabled. This will take precedence over the Enabled flag. This is entered via a pop up text window.#{size(addressList) > 0}
Font NameIndicates the name of font for element, selected via a pop up window, from a drop down list of available fonts.Arial
Font SizeIndicates the size of font for element. Numerical value entered via a pop up window.10
Font StyleIndicates the style of font for element, e.g. bold, italic etc. Selected from list of available styles. The User can set more than one style on the element.[Bold,Underline]
Function LibrariesA list of the function libraries that are available in this page definition. This is done via a pop up window with the following fields:
Name - name of function, e.g. customerPage.
Path - path of function, e.g. class:com.enactor.crm.customer.CustomerEditPage.
[customerPage]
Handler ClassnamesSpecifies which handlers should be used to support the custom element given a view type. This is done via a pop up window with the following fields:
View ID - ID of the view, e.g. JSFMaintenance.
Handler Classname - classname of the handler, e.g. com.enactor.coreUI.web.JSF.pageElementHandlers.custom.PageControlElementHandler.
[JSFMaintenance]
Has Title Bar?Indicates whether the page definition has a title bar.true
HeightThe height of the element, specified as an absolute pixel value (e.g. 50), a percentage (e.g. 10%) or automatically sized (auto).200
Management Bean ClassnameThe name of a management bean class that provides additional functions that can be called by expressions in the page definition.com.enactor.crm.customer.CustomerEditPage
Management Bean NameThe variable name used to access the management bean within the page definition.customerPage
MSR Data NameIf MSR input is enabled, this is the name of the state data item into which the MSR data will be captured. This must be of type string.enactor.pos.CardTrack2
MSR Enabled?Indicates whether input from a Magnetic Stripe Reader is enabled, if present, default falsetrue
Page Definition URLURL of the whole page definition.Pos/Sale/Sale
Page EventsIndicates events that are handled by the page. Each entry has an event name, a destination page element and an action name to raise on that element. It allows a page to receive events and perform actions on individual elements. For example: event 'key.EnterPressed', action 'OKPressed', destination 'Prompt'. This is done via a pop up window with the following fields:
Event Name - e.g. TrackChanges.
Action Name - e.g. #{changesMade}.
Destination - e.g. page.
[TrackChanges]
Page Validation EventsEvents that, when fired, trigger validation of the data within the page. If not supplied, all events will trigger validation.[Save]
Preferred Constraint TypeThe preferred constraint type for the page definition. New elements will by default use this constraint type when they are added to the page definition. It is selected from a drop down list, i.e. bounds or flow.BOUNDS
Scanner Data NameIf scanner input is enabled, this is the name of the state data item into which the scanner data will be captured. This must be a string variable.enactor.pos.ProductCodeScanned
Scanner Enabled?Indicates whether input from a barcode scanner is enabled, if present, default falsetrue
StyleThe style for the element. It is entered using a pop up window.vertical-align:top
Style ClassThe style class for the element, entered using a pop up window.removeLink
StylesheetsA list of design time stylesheets, used to help the designer present a more realistic preview.[Mac/portalstyles.css]
Sub TitleThe subtitle for the page definition.xxx
Sub Title Message IdThe message ID to use as the subtitle for the page definition.xxx
Template URL (Design Time)URL of template used for design of page definition.Pos/StandardPosTemplate
TimeoutA timeout in milliseconds. If the no button is pressed within this timeout, the page will automatically expire and raise an event back to the process.0
TitleTitle of page definition.Sale
Title Message IdMessage ID of title if applicable.EDIT_PREFERENCE_TITLE
Transparent BackgroundIndicates whether background of element is transparent.false
URL ResolverA class that will determine how the URLs on the page definition are interpreted.com.enactor.coreUI.web.JSF.pageElementHandlers.
ButtonServletURLResolver
Variable DeclarationsA list of variable names that are available within the page definition. This is only used during validation. This is done via a pop up window with the following fields:
Name - name of variable, e.g. enactor.coreUI.User.
Type - type of variable, e.g. com.enactor.core.signOn.ISignedOnUser.
Required - indicates whether variable is required.
[enactor.mfc.TransactionHandler,enactor.coreUI.User]
WidthThe width of the element. Can be specified as an absolute pixel value (e.g. 50), a percentage value (10%), or an automatically sized value (auto).833
Window TypeThis takes various values to determine the kind of window, frame or dialog that should be displayed.View Panel (View Controller)
xIf the element is absolutely positioned, the x coordinate it should appear at (relative to the element's parent)0
yIf the element is absolutely positioned, the y coordinate it should appear at (relative to the element's parent)0

List Template Constraints

For all the 'Allow' properties below, the User can select either inherit (i.e. use the associated template values), true or false.

PropertyDescriptionExample
Allow Change Bounds?Indicates whether the bounds of the element can be changed.Inherit
Allow Creation?Indicates whether new child elements can be added to the element.Inherit
Allow Edit?Indicates whether the properties of the element can be modified.Inherit
Allow RemovalIndicates whether the properties of the element can be removed.Inherit
Allow Replacement?Indicates whether child elements that were contributed by the template can be replaced with other elements.Inherit