Package com.github.gwtbootstrap.client.ui

Examples of com.github.gwtbootstrap.client.ui.Button


   public void testPopover() {
      Popover popover = new Popover();
      popover.setHeading("heading");
      popover.setText("conetnt");

      popover.setWidget(new Button("test"));

      popover.show();
      popover.hide();

      // for configure()
View Full Code Here


   }

   @Test
   public void testTooltip() {
      Tooltip tooltip = new Tooltip("test");
      tooltip.setWidget(new Button("button"));
      tooltip.show();
      tooltip.hide();

      // for configure()
      tooltip.asWidget();
View Full Code Here

    private final FormStyleLayout hiddenFieldsPanel = new FormStyleLayout();

    @PostConstruct
    public void init() {
        popup.add( new ModalFooter( new Button( M2RepoEditorConstants.INSTANCE.Cancel() ) {{
            addClickHandler( new ClickHandler() {
                @Override
                public void onClick( ClickEvent event ) {
                    hide();
                }
View Full Code Here

        navigator.setWidget( row, col, new Widget() {{
            setElement( messageCol );
        }} );

        if ( onRevertCommand != null ) {
            navigator.setWidget( row, ++col, new Button( CoreConstants.INSTANCE.Revert() ) {{
                setType( ButtonType.DANGER );
                addClickHandler( new ClickHandler() {
                    @Override
                    public void onClick( final ClickEvent event ) {
                        final YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Warning(),
View Full Code Here

        navigator.setWidget( row, col, new Widget() {{
            setElement( messageCol );
        }} );

        if ( onRevertCommand != null ) {
            navigator.setWidget( row, ++col, new Button( CoreConstants.INSTANCE.Revert() ) {{
                setType( ButtonType.DANGER );
                addClickHandler( new ClickHandler() {
                    @Override
                    public void onClick( final ClickEvent event ) {
                        final YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Warning(),
View Full Code Here

    private final FormStyleLayout hiddenFieldsPanel = new FormStyleLayout();

    @PostConstruct
    public void init() {
        popup.add( new ModalFooter( new Button( M2RepoEditorConstants.INSTANCE.Cancel() ) {{
            addClickHandler( new ClickHandler() {
                @Override
                public void onClick( ClickEvent event ) {
                    hide();
                }
View Full Code Here

        addAttribute( "GroupID:", groupIDTextBox );
        TextBox artifactIDTextBox = new TextBox();
        addAttribute( "ArtifactID:", artifactIDTextBox );
        TextBox versionID = new TextBox();
        addAttribute( "VersionID:", versionID );
        Button ok = new Button( "upload" );
        ok.addClickHandler( new ClickHandler() {
            public void onClick( ClickEvent event ) {
                form.reset();
                HorizontalPanel fields = new HorizontalPanel();
                fields.add( getHiddenField( HTMLFileManagerFields.GROUP_ID, "" ) );
                fields.add( getHiddenField( HTMLFileManagerFields.ARTIFACT_ID, "" ) );
View Full Code Here

    private final FormStyleLayout hiddenFieldsPanel = new FormStyleLayout();

    @PostConstruct
    public void init() {
        popup.add( new ModalFooter( new Button( "Cancel" ) {{
            addClickHandler( new ClickHandler() {
                @Override
                public void onClick( ClickEvent event ) {
                    hide();
                }
View Full Code Here

        addAttribute( "GroupID:", groupIDTextBox );
        TextBox artifactIDTextBox = new TextBox();
        addAttribute( "ArtifactID:", artifactIDTextBox );
        TextBox versionID = new TextBox();
        addAttribute( "VersionID:", versionID );
        Button ok = new Button( "upload" );
        ok.addClickHandler( new ClickHandler() {
            public void onClick( ClickEvent event ) {
                form.reset();
                HorizontalPanel fields = new HorizontalPanel();
                fields.add( getHiddenField( HTMLFileManagerFields.GROUP_ID, "" ) );
                fields.add( getHiddenField( HTMLFileManagerFields.ARTIFACT_ID, "" ) );
View Full Code Here

    @PostConstruct
    public void setup() {
        l = new Label( "Click to close" );
        t = new TextBox();
        b = new Button( "Close" );
        b.addClickHandler( new ClickHandler() {

            @Override
            public void onClick( final ClickEvent event ) {
                beforeClosePlaceEvent.fire( new BeforeClosePlaceEvent( place ) );
View Full Code Here

TOP

Related Classes of com.github.gwtbootstrap.client.ui.Button

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.