<< Click to Display Table of Contents >> Navigation: »No topics above this level« Structure |
Application page consists of frames. Frame consists of another frames and components. Components may contain data and other components.
Here is an example of main frame:
<frame>
<splitview id="main-vpanels" layout="h">
<primary id="main-left">
<sidebar frame="MAIN" id="main-vpanels0-left0-sidebar0" name="Sidebar" target="main-right">
<item frame="Categories"/>
<item frame="Customers"/>
</sidebar>
</primary>
<secondary id="main-right" name="Main-right" placeholder="true">
</secondary>
</splitview>
</frame>
Root is a frame which contains Splitview component. Primary panel contain Sidebar component, secondary is empty.
Components containing data (tables, etc.) should have dataclass attribute set to WebUIClass ID.
WebUIClass represent application business objects. In most cases WebUIClass corresponds to database table, but there may be several classes linked to single table.
Each WebUIClass has a set of actions (WebUIAction). Action has Operation field (Add, Edit, Delete, Refresh, etc) which is used when calculating user permissions.
By default actions are represented as buttons on a toolbar in a component containing WebUIClass data.
Each WebUI class corresponds to Delphi class. There are the following standard WebUI classes:
•TWebUIFrameComponent
•TWebUIScrollbox
•TWebUISideBar
•TWebUISplitview
•TWebUITree
•TWebUIPages
•TWebUITabs
•TWebUIReport
•TWebUIChart
•TWebUISearch
•TWebUICodeScanner
•TWebUI3DViewer
•TWebUISyntaxMemo
Custom components can be registered using THtWebUIComponent.RegisterComponent method.