Example usage for javax.swing JTabbedPane WRAP_TAB_LAYOUT

List of usage examples for javax.swing JTabbedPane WRAP_TAB_LAYOUT

Introduction

In this page you can find the example usage for javax.swing JTabbedPane WRAP_TAB_LAYOUT.

Prototype

int WRAP_TAB_LAYOUT

To view the source code for javax.swing JTabbedPane WRAP_TAB_LAYOUT.

Click Source Link

Document

The tab layout policy for wrapping tabs in multiple runs when all tabs will not fit within a single run.

Usage

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingMajorVersionEltJTabbedPane.java

public CFFreeSwitchSwingMajorVersionEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema,
        ICFInternetMajorVersionObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }//  w ww . j  a  v  a2  s  .c om
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsMajorVersion(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsMinorVersionList, getTabViewComponentsMinorVersionListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetSwing.CFInternetSwingISOCountryEltJTabbedPane.java

public CFInternetSwingISOCountryEltJTabbedPane(ICFInternetSwingSchema argSchema,
        ICFInternetISOCountryObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }/*from  ww w  .j  a  v a2s  .c  o  m*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsISOCountry(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsCurrencyList, getTabViewComponentsCurrencyListJPanel());
    addTab(LABEL_TabComponentsLanguageList, getTabViewComponentsLanguageListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetSwing.CFInternetSwingTopDomainEltJTabbedPane.java

public CFInternetSwingTopDomainEltJTabbedPane(ICFInternetSwingSchema argSchema,
        ICFInternetTopDomainObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }//from w  ww.ja v  a 2  s .co m
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsTopDomain(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsSubDomainList, getTabViewComponentsSubDomainListJPanel());
    addTab(LABEL_TabComponentsTopProjectList, getTabViewComponentsTopProjectListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetSwing.CFInternetSwingTopProjectEltJTabbedPane.java

public CFInternetSwingTopProjectEltJTabbedPane(ICFInternetSwingSchema argSchema,
        ICFInternetTopProjectObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }/*from ww  w. j av  a  2 s.c  o m*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsTopProject(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsMajorVersionList, getTabViewComponentsMajorVersionListJPanel());
    addTab(LABEL_TabComponentsSubProjectList, getTabViewComponentsSubProjectListJPanel());
    swingIsInitializing = false;
}

From source file:hr.fer.zemris.vhdllab.platform.support.SimplisticEclipseBasedApplicationPage.java

@Override
protected JComponent createControl() {
    projectExplorerPane = new JPanel(new BorderLayout());
    editorsPane = new JPanel(new BorderLayout());
    viewsTabbedPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    viewsTabbedPane.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
            // if we're adding a component, ignore change of active
            // component
            if (!addingView && getViewsTabbedPane().getSelectedIndex() >= 0) {
                setActiveComponent(getComponent(getViewsTabbedPane().getSelectedIndex()));
            }/*  w ww . j  a v a 2s. co  m*/
        }
    });

    final double horizontalLocation = 0.15;
    final double verticalLocation = 0.75;
    final JSplitPane horizontalPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, projectExplorerPane,
            editorsPane);
    horizontalPane.setDividerLocation(horizontalLocation);
    final JSplitPane verticalPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, horizontalPane, viewsTabbedPane);
    verticalPane.setDividerLocation(verticalLocation);

    JPanel maximizedPanel = new JPanel(new BorderLayout());
    maximizedPanel.add(verticalPane, BorderLayout.CENTER);
    JPanel control = new JPanel(new BorderLayout());
    control.add(maximizedPanel, BorderLayout.CENTER);
    control.addComponentListener(new ComponentAdapter() {
        @Override
        public void componentResized(ComponentEvent e) {
            horizontalPane.setDividerLocation(horizontalLocation);
            verticalPane.setDividerLocation(verticalLocation);
        }
    });

    this.getPageDescriptor().buildInitialLayout(this);

    if (viewsTabbedPane.getTabCount() > 0) {
        viewsTabbedPane.setSelectedIndex(0);
    }

    Logger.getRootLogger().addAppender(new AppenderSkeleton() {
        @Override
        public boolean requiresLayout() {
            return false;
        }

        @Override
        public void close() {
        }

        @SuppressWarnings("synthetic-access")
        @Override
        protected void append(LoggingEvent event) {
            if (event.getLevel().equals(Level.INFO)) {
                Object message = event.getMessage();
                if (message != null) {
                    getActiveWindow().getStatusBar().setMessage(message.toString());
                }
            }
        }
    });
    return control;
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingSipConfEltJTabbedPane.java

public CFAsteriskSwingSipConfEltJTabbedPane(ICFAsteriskSwingSchema argSchema, ICFAsteriskSipConfObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }/*from w w w.  j av  a  2  s .  c om*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsSipConf(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingFSSFVMailEltJTabbedPane.java

public CFFreeSwitchSwingFSSFVMailEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema,
        ICFFreeSwitchFSSFVMailObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }/*  w ww.  j  ava 2s.c om*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsFSSFVMail(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingAsteriskConfEltJTabbedPane.java

public CFAsteriskSwingAsteriskConfEltJTabbedPane(ICFAsteriskSwingSchema argSchema,
        ICFAsteriskAsteriskConfObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }//from  w ww  .  j  ava  2  s.  c  om
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsAsteriskConf(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingFSSFDialerEltJTabbedPane.java

public CFFreeSwitchSwingFSSFDialerEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema,
        ICFFreeSwitchFSSFDialerObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }/*from w w w.  j  a v  a 2 s  . co  m*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsFSSFDialer(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_1.CFCrmSwing.CFCrmSwingTSecGroupEltJTabbedPane.java

public CFCrmSwingTSecGroupEltJTabbedPane(ICFCrmSwingSchema argSchema, ICFCrmTSecGroupObj argFocus) {
    super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT);
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }/*from w ww  .j  ava  2  s  .  co m*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsTSecGroup(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsIncludeList, getTabViewComponentsIncludeListJPanel());
    addTab(LABEL_TabComponentsMemberList, getTabViewComponentsMemberListJPanel());
    addTab(LABEL_TabChildrenIncByGroupList, getTabViewChildrenIncByGroupListJPanel());
    swingIsInitializing = false;
}