OFBiz widget

Overview

Here is the way the pages are generated

The general structure of each entity ( Form, Tree, Menu) is defined in the Model and Factory files. The html code is written in the HtmlRenderer files. They get the data from a context and put the appropriate html code in a buffer. The Wrappers make it easy to do and setup the rendering. The buffer is then used by the ScreenRenderer that generate the final page. The interaction between the different files is simply shown in the flow chart. ( Only a part of the interactions are shown.)

 

Forms
  • Forms Factory
Gets and read the data of forms.
  • FormStringRenderer
Interface.
  • ModelForm
Creates the form's structure.
  • ModelFormAction
Sets the fields of forms and test keys.
  • ModelFormField
Allows to get and to set the variable of forms. Some variables are only declared at the call of the object, or methods. HtmlFormRenderer use it to get values and create elements such as hyperlinks... ModelFormField use ModelForm to create the structure of forms. The same process is followed by Trees and Menus so it won't be explained.

Html
  • HtmlFormRenderer
Creates the page using the methods in ModelFormField. The html code and the data of forms and concatened in a buffer.
  • HtmlFormWrapper
Makes it easy to setup and render a form.
  • HtmlMenuRenderer
As HtmlFormRenderer, HtmlMenuRenderer renders a menu thanks to ModelMenu.
  • HtmlMenuRendererImage
Creates the html code needed to show an image.
  • HtmlMenuWrapper
Makes it easy to setup and render a menu.
  • HtmlMenuWrapperImage
Makes it easy to setup and render an image.
  • HtmlScreenRenderer
Creates the final render from ModelScreenWidget.
  • HtmlTreeRenderer
Makes a render of trees.
  • NsingleHtmlFormWrapper
Extends the HtmlFormWrapper to add 2 or 3 updates for Neogia.

Menu
  • MenuFactory 
    Gets and reads the data of menus.
  • MenuStringRenderer 
    Interface.
  • MenuWrapTransform 
    Allows the user to modifie the URLs.
  • ModelMenu 
    Creates the structure of menus and sets the default values.
  • ModelMenuAction 
    Sets the values of menus and tests keys.
  • ModelMenuCondition 
    Methods doing tests on some elements and returning booleans.
  • ModelMenuItem 
    Sets and gets the walues of the menu items ( works likMethods doing tests on some elements and returning booleans.e HtmlFormField).

Screen
  • HtmlWidget
Convert ftl in html.
  • IterateSectionWidget
Render the next and previous button.
  • ModelScreen
Render the text of the screen.
  • ModelScreenAction
Sets values of screens and tests keys.
  • ModelScreenCondition
Methods doing tests on some elements and returning booleans.
  • ModelScreenWidget
Makes the data ready to render for HtmlScreenRenderer.
  • ScreenFactory
Gives the information on a screen.
  • ScreenFopPdfViewHandler
Creates a pdf file from a screen.
  • ScreenRenderer
Sets the default values of a screen. It used to deal with ftl files.
  • ScreenStringRenderer
Interface.
  • ScreenWidgetViewHandler
Manage the render for screen widget.

Tree
  • ModelTree
Creates the structure and sets, returns values.
  • ModelTreeAction
Set the values and tests keys.
  • ModelTreeCondition
Methods doing tests on some elements and returning booleans.
  • TreeFactory
Gets information on a tree.
  • TreeStringRenderer
Interface.

Widget
  • WidgetWorker
Creates hyperlinks and stores it in a buffer.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值