Package com.nexirius.framework.swing

Examples of com.nexirius.framework.swing.CFJTabbedPane.addTab()


            JPanel personPanel = new ArrayPanel(false, ArrayLayout.FULL_SIZE);

            JComponent personEditor = factory.createDefaultEditor(memberModel.getPerson()).getJComponent();
            personPanel.add(personEditor);
            personPanel.add(createFieldEditor(MemberModel.FIELD_TYPE, factory));
            tabbedPane.addTab(PersonModel.FIELD_PERSON, createTabComponent(personPanel));
            DataModel addressList = memberModel.getChild(AddressListModel.FIELD_ADDRESS_LIST);
            tabbedPane.addTab(AddressListModel.FIELD_ADDRESS_LIST, createTabComponent(factory.createDefaultEditor(addressList).getJComponent()));
            DataModel phoneList = memberModel.getChild(PhoneListModel.FIELD_PHONE_LIST);
            tabbedPane.addTab(PhoneListModel.FIELD_PHONE_LIST, createTabComponent(factory.createDefaultEditor(phoneList).getJComponent()));
        } catch (Exception e) {
View Full Code Here


            JComponent personEditor = factory.createDefaultEditor(memberModel.getPerson()).getJComponent();
            personPanel.add(personEditor);
            personPanel.add(createFieldEditor(MemberModel.FIELD_TYPE, factory));
            tabbedPane.addTab(PersonModel.FIELD_PERSON, createTabComponent(personPanel));
            DataModel addressList = memberModel.getChild(AddressListModel.FIELD_ADDRESS_LIST);
            tabbedPane.addTab(AddressListModel.FIELD_ADDRESS_LIST, createTabComponent(factory.createDefaultEditor(addressList).getJComponent()));
            DataModel phoneList = memberModel.getChild(PhoneListModel.FIELD_PHONE_LIST);
            tabbedPane.addTab(PhoneListModel.FIELD_PHONE_LIST, createTabComponent(factory.createDefaultEditor(phoneList).getJComponent()));
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

            personPanel.add(createFieldEditor(MemberModel.FIELD_TYPE, factory));
            tabbedPane.addTab(PersonModel.FIELD_PERSON, createTabComponent(personPanel));
            DataModel addressList = memberModel.getChild(AddressListModel.FIELD_ADDRESS_LIST);
            tabbedPane.addTab(AddressListModel.FIELD_ADDRESS_LIST, createTabComponent(factory.createDefaultEditor(addressList).getJComponent()));
            DataModel phoneList = memberModel.getChild(PhoneListModel.FIELD_PHONE_LIST);
            tabbedPane.addTab(PhoneListModel.FIELD_PHONE_LIST, createTabComponent(factory.createDefaultEditor(phoneList).getJComponent()));
        } catch (Exception e) {
            e.printStackTrace();
        }

        tabbedPane.setPreferredSize(new Dimension(450, 300));
View Full Code Here

            int tabIndex = tabbedPane.indexOfTab(tabLabel);

            if (tabIndex < 0) {
                // have to create a new tab
                tabbedPane.addTab(tabLabel, tabIcon, comp);
                tabIndex = tabbedPane.getTabCount() - 1;

                if (model instanceof DataModel) {
                    DataModel dataModel = (DataModel) model;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.