private void jbInit() { setSize(ApplicationContext.getDefaultMainFrame().getDefaultInternalFrameSize()); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); addPropertyChangeListener(this); addVetoableChangeListener(this); // main tabbed pane JTabbedPane intermediateTabbedPane = new JTabbedPane(); getContentPane().add(intermediateTabbedPane, BorderLayout.CENTER); // data Model section... String[] orOptionTabs = getListOptionTabs(DbORNotation.class, "listOptionTabs"); // NOT LOCALIZABLE for (int i = 0; i < orOptionTabs.length; i = i + 4) { String[] optionsName = new String[] { orOptionTabs[i], orOptionTabs[i + 1], orOptionTabs[i + 2], orOptionTabs[i + 3] }; orNotationComponent = new NotationComponent(this, DbORNotation.metaClass, DbORNotation.fBuiltIn, optionsName); orNotationbankComponent = new NotationBankComponent(this, DbORNotation.metaClass, optionsName, false); JSplitPane dataSP = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, orNotationbankComponent, orNotationComponent); intermediateTabbedPane.addTab(DATA_MODEL, dataSP); } // Process model section... if (ScreenPerspective.isFullVersion()) { String[] beOptionTabs = getListOptionTabs(DbBENotation.class, "listOptionTabs"); // NOT LOCALIZABLE for (int i = 0; i < beOptionTabs.length; i = i + 4) { String[] optionsName = new String[] { beOptionTabs[i], beOptionTabs[i + 1], beOptionTabs[i + 2], beOptionTabs[i + 3] }; beNotationComponent = new NotationComponent(this, DbBENotation.metaClass, DbBENotation.fBuiltIn, optionsName); beNotationbankComponent = new NotationBankComponent(this, DbBENotation.metaClass, optionsName, false); JSplitPane dataSP = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, beNotationbankComponent, beNotationComponent); intermediateTabbedPane.addTab(BUSINESS_PROCESS_MODEL, dataSP); } // UML model section... for (int i = 0; i < beOptionTabs.length; i = i + 4) { String[] optionsName = new String[] { beOptionTabs[i], beOptionTabs[i + 1], beOptionTabs[i + 2], beOptionTabs[i + 3] }; umlNotationComponent = new NotationComponent(this, DbBENotation.metaClass, DbBENotation.fBuiltIn, optionsName); umlNotationbankComponent = new NotationBankComponent(this, DbBENotation.metaClass, optionsName, true); JSplitPane dataSP = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, umlNotationbankComponent, umlNotationComponent); intermediateTabbedPane.addTab(UML_MODEL, dataSP); } } // end if /** Control Button Panel */ JPanel btnPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 5, 5)); btnPanel.setBorder(BorderFactory.createEmptyBorder(12, 6, 6, 6)); getContentPane().add(btnPanel, BorderLayout.SOUTH); btnPanel.add(applyBtn); btnPanel.add(closeCancelBtn); // HIDEHELPforV1//btnPanel.add(helpBtn); applyBtn.setEnabled(false); applyBtn.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { applyChanges(); } }); closeCancelBtn.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { close(); } }); helpBtn.setEnabled(ApplicationContext.getDefaultMainFrame().isHelpInstalled()); helpBtn.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { helpBtn_actionPerformed(e); } }); AwtUtil.normalizeComponentDimension(jButtonList, jPossibleButtonList); intermediateTabbedPane.setSelectedIndex(_lastSelectedIndex); intermediateTabbedPane.addChangeListener(this); }
SetReferencedConstraintAction() { super(kReferencedConstraint); setEnabled(false); setVisible(ScreenPerspective.isFullVersion()); }