In each project, there is an XML with the description of all controls with CubaId.
It is necessary to use it for automatic generation of classes describing screens with all controls. Getters with the appropriate type of control must be created in these classes.
Get'er to form the pattern ”get” + "Control Type" + Cuba-Id
web-screen.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<screen-config xmlns="http://schemas.haulmont.com/cuba/screens.xsd">
<include file="com/haulmont/projectName/screens.xml"/>
<screen id="projectName$Client.browse"
template="com/haulmont/projectName/web/screens/client/client-browse.xml"/>
<screen id="projectName$Client.edit"
template="com/haulmont/projectName/web/screens/client/client-edit.xml"/>
<screen id="projectName$ReferenceType.edit"
template="/com/haulmont/projectName/web/screens/common/reference_type/reference-type-edit.xml"/>
<screen id="projectName$ReferenceType.browse"
template="/com/haulmont/projectName/web/screens/common/reference_type/reference-type-browse.xml"/>
<screen id="html-page-editor"
File client-browse.xml
<buttonsPanel id="buttonsPanel"
alwaysVisible="true">
<hbox margin="false,true,false,false"
spacing="true">
<button id="createBtn"
action="clientsTable.create"/>
<button id="editBtn"
action="clientsTable.edit"/>
<button id="removeBtn"
action="clientsTable.remove"/>
</hbox>
<button id="openChatBtn"
action="clientsTable.openChat"/>
<popupButton id="paymentsPopupBtn"
caption="msg://paymentsCaption">
<actions>
<action id="startPaymentYearForSelected"
caption="msg://startPaymentYearForSelectedCaption"
invoke="startPaymentYearForSelected"/>
<action id="startPaymentYearForAll"
caption="msg://startPaymentYearForAllCaption"
invoke="startPaymentYearForAll"/>
</actions>
</popupButton>
<hbox margin="false,false,false,true"
spacing="true">
<button id="excelBtn"
action="clientsTable.excel"/>
<button id="importBtn"
caption="mainMsg://actions.Import"
icon="icons/excel.png"
invoke="importExcelFile"/>
<button id="importTransactionsBtn"
caption="msg://actions.ImportTransactions"
icon="icons/excel.png"
invoke="importTransactions"/>
</hbox>
</buttonsPanel>
In each project, there is an XML with the description of all controls with CubaId.
It is necessary to use it for automatic generation of classes describing screens with all controls. Getters with the appropriate type of control must be created in these classes.
Get'er to form the pattern ”get” + "Control Type" + Cuba-Id
web-screen.xml
File client-browse.xml