Package com.github.gwtbootstrap.client.ui

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


        cellTable.addColumn( lastModifiedColumn, new ResizableHeader( M2RepoEditorConstants.INSTANCE.LastModified(),
                                                                      cellTable,
                                                                      lastModifiedColumn ) );

        // Add "View kjar detail" button column
        final Column<JarListPageRow, String> openColumn = new Column<JarListPageRow, String>( new ButtonCell() {{
            setSize( ButtonSize.MINI );
        }} ) {
            public String getValue( JarListPageRow row ) {
                return M2RepoEditorConstants.INSTANCE.Open();
            }
View Full Code Here


    @PostConstruct
    public void init() {
        //If the current user is not an Administrator do not include the download button
        if ( identity.hasRole( ADMIN ) ) {
            final Column<JarListPageRow, String> downloadColumn = new Column<JarListPageRow, String>( new ButtonCell() {{
                setSize( ButtonSize.MINI );
            }} ) {
                public String getValue( JarListPageRow row ) {
                    return M2RepoEditorConstants.INSTANCE.Download();
                }
View Full Code Here

            } );
            cellTable.addColumn( lastModifiedColumn, new ResizableHeader( "LastModified", cellTable, lastModifiedColumn ) );
        }
        {
            // Add "View kjar detail" button column
            final Column<JarListPageRow, String> openColumn = new Column<JarListPageRow, String>( new ButtonCell() {{
                setSize( ButtonSize.MINI );
            }} ) {
                public String getValue( JarListPageRow row ) {
                    return "Open";
                }
View Full Code Here

    @PostConstruct
    public void init() {
        //If the current user is not an Administrator do not include the download button
        if ( identity.hasRole( ADMIN ) ) {
            final Column<JarListPageRow, String> downloadColumn = new Column<JarListPageRow, String>( new ButtonCell() {{
                setSize( ButtonSize.MINI );
            }} ) {
                public String getValue( JarListPageRow row ) {
                    return "Download";
                }
View Full Code Here

    }

    private void addDeleteModuleColumn() {

        //TODO add i18n constants.
        final ButtonCell deleteModuleButton = new ButtonCell( ButtonSize.SMALL );
        deleteModuleButton.setType( ButtonType.DANGER );
        deleteModuleButton.setIcon( IconType.MINUS_SIGN );
        final Column<ProjectModuleRow, String> deleteModuleColumn = new Column<ProjectModuleRow, String>( deleteModuleButton ) {
            @Override
            public String getValue( final ProjectModuleRow moduleRow ) {
                return Constants.INSTANCE.DeleteModule();
            }
View Full Code Here

    }

    private void addEditModuleColumn() {


        final ButtonCell editModuleButton = new ButtonCell( ButtonSize.SMALL );
        editModuleButton.setType( ButtonType.PRIMARY );
        editModuleButton.setIcon( IconType.EDIT );
        final Column<ProjectModuleRow, String> editModuleColumn = new Column<ProjectModuleRow, String>( editModuleButton ) {
            @Override
            public String getValue( final ProjectModuleRow moduleRow ) {
                return Constants.INSTANCE.EditModule();
            }
View Full Code Here

TOP

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

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.