/** * Static component init. * * <pre> * - panel * - northPanel * - parameterPanel * - toolBar * - gridController * - confirmPanel * - statusBar * </pre> * * @throws Exception */ void jbInit() throws Exception { // [ 1707303 ] Account Combination Form(VAccountDialog) translation issue titledBorder = new TitledBorder( BorderFactory.createEtchedBorder(Color.white, new Color(134, 134, 134)), Msg.getMsg(Env.getCtx(), "Parameter")); // panelLayout.setHgap(5); panelLayout.setVgap(5); northLayout.setHgap(5); northLayout.setVgap(5); // parameterPanel.setLayout(parameterLayout); parameterPanel.setBorder(titledBorder); northPanel.setLayout(northLayout); toolBar.setOrientation(JToolBar.VERTICAL); toolBar.setBorder(null); toolBar.setRequestFocusEnabled(false); toolBar.setBorderPainted(false); toolBar.setMargin(new Insets(5, 5, 5, 5)); bSave.setIcon(new ImageIcon(ResourceFinder.getResource("images/Save24.gif"))); bSave.setMargin(new Insets(2, 2, 2, 2)); bSave.setToolTipText(Msg.getMsg(Env.getCtx(), "AccountNewUpdate")); bSave.addActionListener(this); bRefresh.setIcon(new ImageIcon(ResourceFinder.getResource("images/Refresh24.gif"))); bRefresh.setMargin(new Insets(2, 2, 2, 2)); bRefresh.setToolTipText(Msg.getMsg(Env.getCtx(), "Refresh")); bRefresh.addActionListener(this); bIgnore.setIcon(new ImageIcon(ResourceFinder.getResource("images/Ignore24.gif"))); bIgnore.setMargin(new Insets(2, 2, 2, 2)); bIgnore.setToolTipText(Msg.getMsg(Env.getCtx(), "Ignore")); bIgnore.addActionListener(this); // toolBar.addSeparator(); toolBar.add(bRefresh, null); toolBar.add(bIgnore, null); toolBar.add(bSave, null); // getContentPane().add(panel); panel.setLayout(panelLayout); panel.add(confirmPanel, BorderLayout.SOUTH); panel.add(northPanel, BorderLayout.NORTH); northPanel.add(parameterPanel, BorderLayout.CENTER); northPanel.add(toolBar, BorderLayout.EAST); // this.getContentPane().add(statusBar, BorderLayout.SOUTH); confirmPanel.addActionListener(this); } // jbInit
/** * Static Init * * @throws Exception */ private void jbInit() throws Exception { mainPanel.setLayout(mainLayout); this.getContentPane().add(mainPanel, BorderLayout.CENTER); // North northPanel.setLayout(new ALayout()); northPanel.add(showAll, new ALayoutConstraint(0, 0)); showAll.addActionListener(this); this.getContentPane().add(northPanel, BorderLayout.NORTH); // Center mainPanel.add(centerScrollPane, BorderLayout.CENTER); centerScrollPane.getViewport().add(m_table, null); // South mainPanel.add(confirmPanel, BorderLayout.SOUTH); mainPanel.setPreferredSize(new Dimension(SCREEN_WIDTH, SCREEN_HEIGHT)); confirmPanel.addActionListener(this); }
/** * Static component init * * @throws Exception */ void jbInit() throws Exception { panel.setLayout(panelLayout); southPanel.setLayout(southLayout); mainPanel.setLayout(gridBagLayout); panelLayout.setHgap(5); panelLayout.setVgap(10); getContentPane().add(panel); panel.add(mainPanel, BorderLayout.NORTH); panel.add(southPanel, BorderLayout.SOUTH); southPanel.add(confirmPanel, BorderLayout.CENTER); toLink.setText(TO_LINK); toLink.addActionListener(this); toLink.setMargin(ConfirmPanel.s_insets); confirmPanel.addComponent(toLink); toRoute.setText(TO_ROUTE); toRoute.addActionListener(this); toRoute.setMargin(ConfirmPanel.s_insets); confirmPanel.addComponent(toRoute); getAddress.setText("Procurar"); getAddress.addActionListener(this); getAddress.setMargin(ConfirmPanel.s_insets); confirmPanel.addComponent(getAddress); // fAddress1.setMandatory( new MColumn(Env.getCtx(), MColumn.getColumn_ID("C_Location", "Address1"), null) .isMandatory()); fAddress2.setMandatory( new MColumn(Env.getCtx(), MColumn.getColumn_ID("C_Location", "Address2"), null) .isMandatory()); fAddress3.setMandatory( new MColumn(Env.getCtx(), MColumn.getColumn_ID("C_Location", "Address3"), null) .isMandatory()); fAddress4.setMandatory( new MColumn(Env.getCtx(), MColumn.getColumn_ID("C_Location", "Address4"), null) .isMandatory()); fPostal.setMandatory( new MColumn(Env.getCtx(), MColumn.getColumn_ID("C_Location", "Postal"), null) .isMandatory()); confirmPanel.addActionListener(this); } // jbInit