use of org.eevolution.grid.VBrowserTable in project adempiere by adempiere.
the class VBrowser method initComponents.
/**
* Init View componets
*/
private void initComponents() {
toolsBar = new javax.swing.JToolBar();
tabsPanel = new javax.swing.JTabbedPane();
searchTab = new CPanel();
topPanel = new CPanel();
// FR [ 344 ]
searchPanel = new VBrowserSearch(getWindowNo(), getAD_Browse_ID(), BrowserSearch.COLUMNS_2);
searchPanel.init();
//
buttonSearchPanel = new CPanel();
centerPanel = new javax.swing.JScrollPane();
detail = new VBrowserTable(this);
detail.setRowSelectionAllowed(true);
detail.getSelectionModel().addListSelectionListener(this);
footPanel = new CPanel();
footButtonPanel = new CPanel(new FlowLayout(FlowLayout.CENTER));
processPanel = new CPanel();
graphPanel = new CPanel();
setupToolBar();
toolsBar.setRollover(true);
bSelectAll.setText(Msg.getMsg(Env.getCtx(), "SelectAll").replaceAll("[&]", ""));
bSelectAll.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
bSelectAll.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
bSelectAll.setEnabled(false);
toolsBar.add(bSelectAll);
bZoom.setText(Msg.getMsg(Env.getCtx(), "Zoom").replaceAll("[&]", ""));
bZoom.setFocusable(false);
bZoom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
bZoom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
bZoom.setEnabled(false);
if (AD_Window_ID > 0)
toolsBar.add(bZoom);
bExport.setText(Msg.getMsg(Env.getCtx(), ("Export")));
bExport.setFocusable(false);
bExport.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
bExport.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
bExport.setEnabled(false);
toolsBar.add(bExport);
bDelete.setText(Msg.getMsg(Env.getCtx(), "Delete").replaceAll("[&]", ""));
bDelete.setFocusable(false);
bDelete.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
bDelete.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
bDelete.setEnabled(false);
if (isDeleteable())
toolsBar.add(bDelete);
m_frame.getContentPane().add(toolsBar, java.awt.BorderLayout.PAGE_START);
searchTab.setLayout(new java.awt.BorderLayout());
topPanel.setLayout(new java.awt.BorderLayout());
collapsibleSearch = new CollapsiblePanel(Msg.getMsg(Env.getCtx(), ("SearchCriteria")));
collapsibleSearch.add(searchPanel.getPanel());
topPanel.add(collapsibleSearch, java.awt.BorderLayout.NORTH);
bSearch.setText(Msg.getMsg(Env.getCtx(), "StartSearch"));
buttonSearchPanel.add(bSearch);
collapsibleSearch.add(buttonSearchPanel);
searchTab.add(topPanel, java.awt.BorderLayout.NORTH);
centerPanel.setViewportView(detail);
searchTab.add(centerPanel, java.awt.BorderLayout.CENTER);
footPanel.setLayout(new java.awt.BorderLayout());
footButtonPanel.add(bCancel);
footButtonPanel.add(bOk);
footPanel.add(footButtonPanel, java.awt.BorderLayout.SOUTH);
processPanel.setLayout(new java.awt.BorderLayout());
footPanel.add(processPanel, java.awt.BorderLayout.CENTER);
searchTab.add(footPanel, java.awt.BorderLayout.SOUTH);
tabsPanel.addTab(Msg.getMsg(Env.getCtx(), "Search"), searchTab);
graphPanel.setLayout(new java.awt.BorderLayout());
m_frame.getContentPane().add(tabsPanel, java.awt.BorderLayout.CENTER);
}
Aggregations