/**
* Creates the various views.
*/
protected void initializeUI() {
if (insertView == null && hasInsertView()) {
insertView = new MasterView(getIndex());
// table view
if (!isAbstract()) {
DcTable table = new DcTable(this, false, true);
table.setDynamicLoading(false);
View tableView = new View(insertView, View._TYPE_INSERT, table,
DcResources.getText("lblNewItem", getObjectNamePlural()),
IconLibrary._icoItemsNew, MasterView._TABLE_VIEW);
table.setView(tableView);
insertView.addView(MasterView._TABLE_VIEW, tableView);
}
// list view
DcObjectList list = new DcObjectList(this, DcObjectList._CARDS, true, true);
View listView = new View(insertView, View._TYPE_INSERT, list,
DcResources.getText("lblNewItem", getObjectNamePlural()),
IconLibrary._icoItemsNew, MasterView._LIST_VIEW);
list.setView(listView);
insertView.addView(MasterView._LIST_VIEW, listView);
}
if (searchView == null && hasSearchView() ) {
searchView = new MasterView(getIndex());
searchView.setTreePanel(this);
// table view
if (!isAbstract()) {
DcTable table = new DcTable(this, false, true);