Example usage for javax.swing JSplitPane VERTICAL_SPLIT

List of usage examples for javax.swing JSplitPane VERTICAL_SPLIT

Introduction

In this page you can find the example usage for javax.swing JSplitPane VERTICAL_SPLIT.

Prototype

int VERTICAL_SPLIT

To view the source code for javax.swing JSplitPane VERTICAL_SPLIT.

Click Source Link

Document

Vertical split indicates the Components are split along the y axis.

Usage

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

public CFInternetSwingTenantViewEditJPanel(ICFInternetSwingSchema argSchema, ICFInternetTenantObj argFocus) {
    super();// w  w w .j av a 2s . c o m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getTenantFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getTenantFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

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

public CFInternetSwingClusterViewEditJPanel(ICFInternetSwingSchema argSchema, ICFInternetClusterObj argFocus) {
    super();//from ww w  . java 2 s.  co  m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getClusterFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getClusterFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

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

public CFInternetSwingSecFormViewEditJPanel(ICFInternetSwingSchema argSchema, ICFInternetSecFormObj argFocus) {
    super();/*  w w  w .j a v a2 s .  co  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getSecFormFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getSecFormFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

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

public CFInternetSwingSecUserViewEditJPanel(ICFInternetSwingSchema argSchema, ICFInternetSecUserObj argFocus) {
    super();//w  w  w  .  j  a  va2s .  c  om
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getSecUserFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getSecUserFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

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

public CFInternetSwingServiceViewEditJPanel(ICFInternetSwingSchema argSchema, ICFInternetServiceObj argFocus) {
    super();// w w w.ja  v  a  2s .c  om
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getServiceFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getServiceFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingTSecGroupIncludeViewEditJPanel.java

public CFCrmSwingTSecGroupIncludeViewEditJPanel(ICFCrmSwingSchema argSchema,
        ICFCrmTSecGroupIncludeObj argFocus) {
    super();//  w w w .j  av  a  2 s  .c o  m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getTSecGroupIncludeFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getTSecGroupIncludeFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:com.haulmont.cuba.desktop.gui.components.DesktopSplitPanel.java

public DesktopSplitPanel() {
    impl = new JSplitPane() {
        @Override/*  www  .  j a  va 2s. c  o m*/
        public void paint(Graphics g) {
            super.paint(g);

            if (applyNewPosition) {
                double ratio = position / 100.0;

                impl.setDividerLocation(ratio);
                impl.setResizeWeight(ratio);
                applyNewPosition = false;
            }
        }
    };

    // default orientation as web split
    impl.setOrientation(JSplitPane.VERTICAL_SPLIT);

    impl.setUI(new SynthSplitPaneUI() {
        @Override
        protected void dragDividerTo(int location) {
            super.dragDividerTo(location);

            // user touched split divider
            positionChanged = true;
        }
    });

    impl.setLeftComponent(new JPanel());
    impl.setRightComponent(new JPanel());

    impl.getLeftComponent().setMinimumSize(new Dimension());
    impl.getRightComponent().setMinimumSize(new Dimension());
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingISOCountryCurrencyViewEditJPanel.java

public CFCrmSwingISOCountryCurrencyViewEditJPanel(ICFCrmSwingSchema argSchema,
        ICFCrmISOCountryCurrencyObj argFocus) {
    super();/*from w w  w.j av  a2 s  . c  o  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getISOCountryCurrencyFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getISOCountryCurrencyFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingISOCountryLanguageViewEditJPanel.java

public CFCrmSwingISOCountryLanguageViewEditJPanel(ICFCrmSwingSchema argSchema,
        ICFCrmISOCountryLanguageObj argFocus) {
    super();/*from   w  ww. j  a v  a  2s .c  o  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getISOCountryLanguageFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getISOCountryLanguageFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

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

public CFInternetSwingHostNodeViewEditJPanel(ICFInternetSwingSchema argSchema,
        ICFInternetHostNodeObj argFocus) {
    super();// w  w  w .  jav  a2  s  .  c o m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getHostNodeFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getHostNodeFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}