Examples of TitlePane


Examples of net.sf.swingdocking.title.TitlePane

    if (index == -1) {
      addTab(frame, getTabCount());
    } else {
      index = getInsertionIndex(index);
      insertTab(null, null, createTabPage(frame), null, index);     
      setTabComponentAt(index, new TitlePane(frame));
    }
  }
View Full Code Here

Examples of net.sf.swingdocking.title.TitlePane

      addTab(null, null, tabPage, null);
      index = getTabCount() - 1;
    } else {
      insertTab(null, null, tabPage, null, index);
    }
    setTabComponentAt(index, new TitlePane(frame));
    if (frame.isSelected()) {
      setSelectedIndex(index);
    }
  }
View Full Code Here

Examples of org.flexdock.demos.util.Titlepane

        setContentPane(createContentPane());
    }

    private Container createContentPane() {
        port = new DefaultDockingPort();
        Titlepane pane1 = new Titlepane("View 1");
        Titlepane pane2 = new Titlepane("View 2");
        Titlepane pane3 = new Titlepane("View 3");
        Titlepane pane4 = new Titlepane("View 4");
        Titlepane pane5 = new Titlepane("View 5");

        DockingManager.dock(pane1, (DockingPort)port);
        DockingManager.dock(pane2, pane1, DockingConstants.NORTH_REGION, 0.3f);
        DockingManager.dock(pane3, pane1, DockingConstants.SOUTH_REGION);
        DockingManager.dock(pane4, pane1, DockingConstants.EAST_REGION, 0.3f);
View Full Code Here

Examples of org.springframework.richclient.dialog.TitlePane

    }

    public void testCreateTitlePane() {
        TestDialogPage page = new TestDialogPage();

        TitlePane titlePane = DialogPageUtils.createTitlePane(page);

        page.setMessage(new DefaultMessage("test message"));
        assertEquals("Message text not equal", titlePane.getMessage().getMessage(), "test message");
    }
View Full Code Here

Examples of org.springframework.richclient.dialog.TitlePane

     * page. The title pane will also be configured from the dialog page's title and icon.
     *
     * @param dialogPage to process
     */
    public static TitlePane createTitlePane( DialogPage dialogPage ) {
        TitlePane titlePane = new TitlePane();
        titlePane.setTitle(dialogPage.getTitle());
        titlePane.setImage(dialogPage.getImage());
        addMessageMonitor(dialogPage, titlePane);

        return titlePane;
    }
View Full Code Here

Examples of org.springframework.richclient.dialog.TitlePane

  @Override
  public JComponent getControl() {
    if ( control == null ) {
      control = new JPanel( new BorderLayout() );

      TitlePane titlePane = new TitlePane();
      titlePane.setTitle( getTitle() );
      titlePane.setMessage( new DefaultMessage( getMessage() ) );

      JPanel titlePaneContainer = new JPanel( new BorderLayout() );
      titlePaneContainer.add( titlePane.getControl(), BorderLayout.CENTER );
      titlePaneContainer.add( new JSeparator(), BorderLayout.SOUTH );

      control.add( BorderLayout.NORTH, titlePaneContainer );
      JComponent content = createControl();
      content.setBorder( BorderFactory.createEmptyBorder( UIConstants.ONE_SPACE, UIConstants.TWO_SPACES, UIConstants.ONE_SPACE, UIConstants.TWO_SPACES ) );
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.