private Component buildToolbar() { JXToolBar toolbar = UISupport.createSmallToolbar(); toolbar.addFixed(UISupport.createToolbarButton(new AddPartAction())); removePartButton = UISupport.createToolbarButton(new RemovePartAction()); toolbar.addFixed(removePartButton); return toolbar; }
private Component buildToolbar() { JXToolBar toolbar = UISupport.createSmallToolbar(); JToggleButton toggleButton = new JToggleButton(new TogglePropertiesAction()); toggleButton.setToolTipText("Toggles displaying of Test Properties in tree"); toggleButton.setSize(10, 12); toolbar.addFixed(toggleButton); toolbar.addGlue(); return toolbar; }
private JComponent buildToolbar() { configureAssertionAction = new ConfigureAssertionAction(); removeAssertionAction = new RemoveAssertionAction(); addLoadTestAssertionAction = new AddLoadTestAssertionAction(); JXToolBar toolbar = UISupport.createSmallToolbar(); JButton button = UISupport.createToolbarButton(addLoadTestAssertionAction); toolbar.addFixed(button); button = UISupport.createToolbarButton(removeAssertionAction); toolbar.addFixed(button); button = UISupport.createToolbarButton(configureAssertionAction); toolbar.addFixed(button); toolbar.addGlue(); toolbar.add(new ShowOnlineHelpAction(HelpUrls.LOADTEST_ASSERTIONS_URL)); return toolbar; }
private Component buildToolbar() { toolbar = UISupport.createSmallToolbar(); if (holder instanceof MutableTestPropertyHolder) { removePropertyAction = new RemovePropertyAction(); MutableTestPropertyHolder mutablePropertyHolder = (MutableTestPropertyHolder) holder; addPropertyAction = new AddParamAction( propertiesTable, mutablePropertyHolder, "Adds a property to the property list"); movePropertyUpAction = new MovePropertyUpAction( propertiesTable, mutablePropertyHolder, "Moves selected property up one row"); movePropertyDownAction = new MovePropertyDownAction( propertiesTable, mutablePropertyHolder, "Moves selected property down one row"); JButton addPropertyButton = UISupport.createToolbarButton(addPropertyAction); toolbar.add(addPropertyButton); JButton removePropertyButton = UISupport.createToolbarButton(removePropertyAction); toolbar.add(removePropertyButton); toolbar.addRelatedGap(); JButton movePropertyUpButton = UISupport.createToolbarButton(movePropertyUpAction); toolbar.add(movePropertyUpButton); JButton movePropertyDownButton = UISupport.createToolbarButton(movePropertyDownAction); toolbar.add(movePropertyDownButton); if (!(holder instanceof AMFRequestTestStep || holder instanceof JdbcRequestTestStep)) { toolbar.addRelatedGap(); toolbar.add(UISupport.createToolbarButton(new SortPropertiesAction())); toolbar.addRelatedGap(); } } JButton clearPropertiesButton = UISupport.createToolbarButton(new ClearPropertiesAction()); toolbar.add(clearPropertiesButton); JButton loadPropertiesButton = UISupport.createToolbarButton(loadPropertiesAction); toolbar.add(loadPropertiesButton); toolbar.add(UISupport.createToolbarButton(new SavePropertiesAction())); return toolbar; }
@Override protected Component buildContent() { JPanel mainPanel = new JPanel(new BorderLayout()); JSplitPane splitPane = UISupport.createHorizontalSplit(buildCategoriesList(), buildAssertionsList()); splitPane.setDividerLocation(220); getAssertionsTable().setSelectable(true); JXToolBar toolbar = UISupport.createSmallToolbar(); hideDescCB = new JCheckBox("Hide descriptions"); hideDescCB.setOpaque(false); hideDescCB.addItemListener(hideDescListener); hideDescCB.setSelected( SoapUI.getSettings().getBoolean(AssertionDescriptionSettings.SHOW_ASSERTION_DESCRIPTION)); toolbar.add(new JLabel("Assertions")); toolbar.addGlue(); toolbar.add(hideDescCB); mainPanel.add(toolbar, BorderLayout.NORTH); mainPanel.add(splitPane, BorderLayout.CENTER); return mainPanel; }