Package javax.swing

Examples of javax.swing.AbstractButton.doClick()


//  }
 
  public void selectTool( int toolID )
  {
    final AbstractButton b = (AbstractButton) mapToolButtons.get( new Integer( toolID ));
    if( b != null ) b.doClick();
  }
 
  public void dispose()
  {
    /* empty */
View Full Code Here


    private static final class MnemonicAction extends AbstractAction {
        public void actionPerformed(final ActionEvent event) {
            final AbstractButton button = (AbstractButton)event.getSource();
            if (button.isEnabled()) {
                button.requestFocusInWindow();
                button.doClick();
            }
        }
    };

    private static final Action PRESS_ACTION = new PressButtonAction();
View Full Code Here

   * @param action action of the button to be clicked
   */
  public void clickButton(AbstractJMTAction action) {
    AbstractButton button = getButton(action);
    if (button != null) {
      button.doClick();
    }
  }

  /**
   * Returns all buttons inside this toolbar
View Full Code Here

//  }
 
  public void selectTool( int toolID )
  {
    final AbstractButton b = (AbstractButton) mapToolButtons.get( new Integer( toolID ));
    if( b != null ) b.doClick();
  }
 
  public void dispose()
  {
    /* empty */
View Full Code Here

    private static final class MnemonicAction extends AbstractAction {
        public void actionPerformed(final ActionEvent event) {
            final AbstractButton button = (AbstractButton)event.getSource();
            if (button.isEnabled()) {
                button.requestFocusInWindow();
                button.doClick();
            }
        }
    };

    private static final Action PRESS_ACTION = new PressButtonAction();
View Full Code Here

    private static final class MnemonicAction extends AbstractAction {
        public void actionPerformed(final ActionEvent event) {
            final AbstractButton button = (AbstractButton)event.getSource();
            if (button.isEnabled()) {
                button.requestFocusInWindow();
                button.doClick();
            }
        }
    };

    private static final Action PRESS_ACTION = new PressButtonAction();
View Full Code Here

    @Test
    public void disablesRemoveButtonAfterRemoval() throws Exception {
        editor.selectField(containerWalker.findComponent("Input panel 2", OAuth2ScriptsEditor.InputPanel.class));
        stubbedDialogs.mockConfirmWithReturnValue(true);
        AbstractButton removeButton = containerWalker.findButtonWithName(OAuth2ScriptsEditor.REMOVE_SCRIPT_BUTTON_NAME);
        removeButton.doClick();

        assertThat(removeButton, is(not(enabled())));
    }

    @Test
View Full Code Here

        RequestTransport anyTransport = mock(RequestTransport.class);
        WsdlSubmit<WsdlRequest> submit = new WsdlSubmit<WsdlRequest>(request, new SubmitListener[0], anyTransport);
        when(request.submit(isA(SubmitContext.class), eq(true))).thenReturn(submit);

        AbstractButton runButton = desktopPanel.getSubmitButton();
        runButton.doClick();
        verify(request).submit(isA(SubmitContext.class), eq(true));
    }

    @Ignore
    @Test
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.