取得对表格ID、值对象类、数据行的会话属性和组合框(如果有的话)的会话属性的引用。
Obtains the reference for the table ID, value object class, session attribute for data rows, and session attribute for combo box if one exists.
用户界面看起来没有任何不同 —这些字段都将使用组合框来显示 —但是类之间的关系稍微有些不同。
The user interface won't look any different — the fields will all be displayed using combo boxes — but the relationship between the classes is subtly but importantly different.
如果现在为Entry类生成视图的话,Grails会提供一个组合框,其中显示一个Author列表,如清单2所示。
If you generated the views now for the Entry class, Grails would provide a combo box that displays a list of Authors, as shown in Listing 2.
例如,如果想消除显示在组合框中的主键的泄漏,只要在airline类中添加toString方法就可以,如清单6所示。
For example, getting rid of the leaky primary key that shows up in the combo box is as easy as adding a toString method to the Airline class, as shown in Listing 6.
一个自定义的组合框控件类,实现了自画功能。
Since the definition of a combination box controls and realizes the function of sel …
组合列表框的窗口类名称。
组合列表框的窗口类名称。
应用推荐