You can perform UI binding to an MBO through the configureObjectMetaDataById method.
The following code shows how to perform UI binding to an MBO:
protected void configureObjectMetaDataById(int ID, Object object) { switch (ID) { ... case CELLTABLE1: CellTable localcellTable1 = (CellTable) object; localcellTable1.setColumnPercentage( new int[] {33, 34, 33 }); localcellTable1.setSortingColumn("Sort on column"); localcellTable1.setMboId(BOBCUIDefinition.MBO_A_B_C_DEPARTMENT); localcellTable1.setFocusFontStyle(styleCell_Table_Focus_Style); localcellTable1.setNumberOfColumns(3); localcellTable1.setColumnConfig( new String[] {"dept_id","dept_name","dept_head_id" }); localcellTable1.setUnfocusFontStyle( styleCell_Table_Unfocus_Style); break; ...
The setMboId method binds the cell table to the MBO department. This also applies to other MBO data controls such as grid table, select box and list detail.