Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.MultiSplitLayout$ColSplit


   * @param dockable the dockable object containing the XDockingPanel instance
   * that is to be zoomed/shown
   */
  public void swapViews( XDockable dockable )
  {
    MultiSplitLayout multiSplitLayout = (MultiSplitLayout)multiSplitPane.getLayout();
    if ( !zoomPanel.isVisible()) {
      // If the name is non null the dividers are also removed
      multiSplitLayout.setRemoveDividers( false );
      zoomPanel.add( dockable.dockedContainer, BorderLayout.CENTER );
      cardManager.show( this, "ZoomPane" );
      dockable.dockedContainer.setVisible( true );
      zoomedDockable = dockable;
    }
    else {
      // Reset the panel name
      multiSplitLayout.setRemoveDividers( true );
      multiSplitPane.add( dockable.dockedContainer, dockable.dockedContainer.getConstraint() );
      cardManager.show( this, "MultiSplitPane" );
      zoomedDockable = null;
    }
    revalidate();
View Full Code Here


   * view is not zoomed then this method has no effect.
   */
  public XDockingPanel restoreViews()
  {
    if ( zoomPanel.isVisible()) {
      MultiSplitLayout multiSplitLayout = (MultiSplitLayout)multiSplitPane.getLayout();
      XDockingPanel dockedContainer = null;
      if ( zoomPanel.getComponentCount() > 0 ) {
        dockedContainer = ((XDockingPanel)zoomPanel.getComponent( 0 ));
        // Reset the panel name
        multiSplitLayout.setRemoveDividers( true );
        multiSplitPane.add( dockedContainer, dockedContainer.getConstraint() );
      }
      cardManager.show( this, "MultiSplitPane" );
      if ( zoomedDockable != null )
        zoomedDockable.header.setZoomState( zoomedDockable.header.ZOOM );
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.MultiSplitLayout$ColSplit

Copyright © 2018 www.massapicom. 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.