Package com.github.gwtbootstrap.client.ui

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


                } ).loadInbox( request );

            }
        } );

        final Button refreshButton = new Button();
        refreshButton.setIcon( IconType.REFRESH );
        refreshButton.addClickHandler( new ClickHandler() {
            @Override
            public void onClick( ClickEvent event ) {
                refresh();
            }
        } );
View Full Code Here


                } ).loadInbox( request );

            }
        } );

        final Button refreshButton = new Button();
        refreshButton.setIcon( IconType.REFRESH );
        refreshButton.addClickHandler( new ClickHandler() {
            @Override
            public void onClick( ClickEvent event ) {
                refresh();
            }
        } );
View Full Code Here

        columnMetaList.add( columnMeta );
        dataGrid.addColumn( columnMeta.getColumn(), columnMeta.getHeader() );
    }

    public Button createToggleButton() {
        final Button button = new Button();
        button.setToggle( true );
        button.setIcon( IconType.LIST_UL );

        popup.getElement().getStyle().setZIndex( Integer.MAX_VALUE );
        popup.addAutoHidePartner( button.getElement() );
        popup.addCloseHandler( new CloseHandler<PopupPanel>() {
            public void onClose( CloseEvent<PopupPanel> popupPanelCloseEvent ) {
                if ( popupPanelCloseEvent.isAutoClosed() ) {
                    button.setActive( false );
                }
            }
        } );

        button.addClickHandler( new ClickHandler() {
            public void onClick( ClickEvent event ) {
                if ( !button.isActive() ) {
                    showColumnPickerPopup( button.getAbsoluteLeft(),
                            button.getAbsoluteTop() + button.getOffsetHeight() );
                } else {
                    popup.hide( false );
                }
            }
        } );
View Full Code Here

                } ).loadInbox( request );

            }
        } );

        final Button refreshButton = new Button();
        refreshButton.setIcon( IconType.REFRESH );
        refreshButton.addClickHandler( new ClickHandler() {
            @Override
            public void onClick( ClickEvent event ) {
                refresh();
            }
        } );
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( M2RepoEditorConstants.INSTANCE.Cancel() ) {{
            addClickHandler( new ClickHandler() {
                @Override
                public void onClick( ClickEvent event ) {
                    hide();
                }
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

      verify(closedHandler).onClosed(any(ClosedEvent.class));
   }

   @Test
   public void testButtonLoadingState() {
      Button b = new Button("button");
      b.state().complete();
   }
View Full Code Here

   public void testModal() {
      Modal modal = new Modal();
      modal.add(new Label("Modal"));

      ModalFooter footer = new ModalFooter();
      footer.add(new Button("close"));
      modal.add(footer);

      modal.addShowHandler(showHandler);
      modal.addShownHandler(shownHandler);
      modal.addHideHandler(hideHandler);
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.