Package com.dodo.blog.ui.component.input

Examples of com.dodo.blog.ui.component.input.Button


            }

            @Override
            public void populate( Article article )
            {
                Button publish;
                if ( !article.isPublished() )
                {
                    publish = new Button( "publish", article.getId().toString(), localize( "button.publish" ) ).setAjaxMethod( PUBLISH_ARTICLE_METHOD );
                }
                else
                {
                    publish = new Button( "hide", article.getId().toString(), localize( "button.hide" ) ).setAjaxMethod( HIDE_ARTICLE_METHOD );
                }

                addColumn( article.getTitle() );
                addColumn( article.getCategory() != null ? categoryService.getCategoryById( article.getCategory() ).getName() : "" );
                addColumn( article.isPublished().toString() );
                addColumn( article.getCreatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn( article.getUpdatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn(
                        publish,
                        new Anchor( "edit", localize( "button.edit" ), ArticleEdit.class ).addParameter( ArticleEdit.ARTICLE_ID, article.getId() ),
                        new Button( "delete", article.getId().toString(), localize( "button.delete" ) ).setAjaxMethod( DELETE_ARTICLE_METHOD )
                );
            }
        };
        add( table );
View Full Code Here


                addColumn( playground.getDescription() );
                addColumn( playground.getCreatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn( playground.getUpdatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn(
                        new Anchor( "edit", localize( "button.edit" ), PlaygroundEdit.class ).addParameter( PlaygroundEdit.PLAYGROUND_ID, playground.getId() ),
                        new Button( "delete", playground.getId().toString(), localize( "button.delete" ) ).setAjaxMethod( DELETE_PLAYGROUND_METHOD )
                );
            }
        };
        add( table );
View Full Code Here

                addColumn( category.getNormalizedName() );
                addColumn( category.getCreatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn( category.getUpdatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn(
                        new Anchor( "edit", localize( "button.edit" ), CategoryEdit.class ).addParameter( CategoryEdit.CATEGORY_ID, category.getId() ),
                        new Button( "delete", category.getId().toString(), localize( "button.delete" ) ).setAjaxMethod( DELETE_CATEGORY_METHOD )
                );
            }
        };
        add( table );
View Full Code Here

                addColumn( tag.getNormalizedName() );
                addColumn( tag.getCreatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn( tag.getUpdatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn(
                        new Anchor( "edit", localize( "button.edit" ), TagEdit.class ).addParameter( TagEdit.TAG_ID, tag.getId() ),
                        new Button( "delete", tag.getId().toString(), localize( "button.delete" ) ).setAjaxMethod( DELETE_TAG_METHOD )
                );
            }
        };
        add( table );
View Full Code Here

TOP

Related Classes of com.dodo.blog.ui.component.input.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.