Package edu.wpi.cs.wpisuitetng.janeway.gui.container.toolbar

Examples of edu.wpi.cs.wpisuitetng.janeway.gui.container.toolbar.ToolbarGroupView


    content.add(createDefect);
    content.add(searchDefects);
    content.add(searchField);
   
    // Construct a new toolbar group to be added to the end of the toolbar
    ToolbarGroupView toolbarGroup = new ToolbarGroupView("Home", content);
   
    // Calculate the width of the toolbar
    Double toolbarGroupWidth = createDefect.getPreferredSize().getWidth() + searchDefects.getPreferredSize().getWidth() + 40; // 40 accounts for margins between the buttons
    toolbarGroup.setPreferredWidth(toolbarGroupWidth.intValue());
    addGroup(toolbarGroup);
  }
View Full Code Here


   
    // Instantiate the controller
    controller = new RetrieveAllDefectsController(this);
   
    // Instantiate the button panel
    buttonGroup = new ToolbarGroupView("Search/Filter");
   
    // Instantiate the refresh button
    btnRefresh = new JButton();
    btnRefresh.setAction(new RefreshDefectsAction(controller));
    buttonGroup.getContent().add(btnRefresh);
View Full Code Here

    if(containingTab == null) {
      containingTab = new DummyTab();
    }
   
    // Instantiate the button panel
    buttonGroup = new ToolbarGroupView("Create Defect");
   
    containingTab.setIcon(new ImageIcon());
    if(editMode == Mode.CREATE) {
      containingTab.setTitle("Create Defect");
      containingTab.setToolTipText("Create a new defect");
View Full Code Here

  }
 
  @Before
  public void setUp() throws Exception {
    toolbar = new DefaultToolbarView();
    group1 = new ToolbarGroupView(null);
    group2 = new ToolbarGroupView(null);
    group3 = new ToolbarGroupView(null);
    toolbar.addGroup(group1);
    toolbar.addGroup(group2);
    toolbar.addGroup(group3);
    newGroup = new ToolbarGroupView(null);
  }
View Full Code Here

TOP

Related Classes of edu.wpi.cs.wpisuitetng.janeway.gui.container.toolbar.ToolbarGroupView

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.