Package net.geco.ui.tabs

Examples of net.geco.ui.tabs.StagePanel


    launchGUI();
  }
 
  public void initGUI(AppBuilder builder){
    updateWindowTitle();
    buildGUI(new StagePanel(this.geco, this),
         builder.buildUITabs(geco, this),
         builder.buildConfigPanels(geco, this));
  }
View Full Code Here


  public void stagePanelSetupWithTabs(){
    ConfigPanel mockConfig = mock(ConfigPanel.class);
    JPanel mockPanel = mock(JPanel.class);
    when(mockConfig.build()).thenReturn(mockPanel);
    when(mockConfig.getLabel()).thenReturn("mock config");
    StagePanel stagePanel = new StagePanel(mockGeco, mock(JFrame.class));
    stagePanel.buildConfigPanels(new ConfigPanel[] { mockConfig });
    verify(mockConfig, times(1)).getLabel();
    JPanel c = stagePanel.getConfigFor("mock config");
    Assert.assertEquals(mockPanel, c.getComponent(0));
  }
View Full Code Here

TOP

Related Classes of net.geco.ui.tabs.StagePanel

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.