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

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


                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 );

        add( new Anchor( "new-article", localize( "button.new" ), ArticleEdit.class ) );
    }
View Full Code Here


        fieldSet.add( new FormRow( localize( "label.description" ), new TextBox( "description" ).setAutoFocus( true ) ) );
        fieldSet.add( new FormRow( localize( "label.code" ), new TextArea( "code" ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), PlaygroundList.class ) );
    }
View Full Code Here

        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.name" ), new TextBox( "name" ).setAutoFocus( true ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), CategoryList.class ) );
    }
View Full Code Here

        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.name" ), new TextBox( "name" ).setAutoFocus( true ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), TagList.class ) );
    }
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 );

        add( new Anchor( "new-playground", localize( "button.new" ), PlaygroundEdit.class ) );
    }
View Full Code Here

                addColumn( category.getName() );
                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 );

        add( new Anchor( "new-category", localize( "button.new" ), CategoryEdit.class ) );
    }
View Full Code Here

        {
            fieldSet.add( new FormRow( localize( "label.tag" ) + "_" + i, new Select<Tag>( "tag_" + i, getTags(), new EntityChoiceRenderer(), true ) ) );
        }

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), ArticleList.class ) );
    }
View Full Code Here

                addColumn( tag.getName() );
                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 );

        add( new Anchor( "new-tag", localize( "button.new" ), TagEdit.class ) );
    }
View Full Code Here

        providersFieldSet.setClassName( "login-providers-panel" );

        for ( Map.Entry<String, String> provider : loginProperties.getProviders().entrySet() )
        {
            String providerKey = provider.getKey();
            Anchor a = new Anchor( providerKey, localize( "label." + providerKey ), provider.getValue() );
            a.setClassName( "login-provider" );
            a.addClassName( providerKey );
            providersFieldSet.add( a );
        }

        return providersFieldSet;
    }
View Full Code Here

            Th col = new Th();
            header.add( col );

            if ( tableHeader.getName() != null )
            {
                Anchor a = new Anchor();
                a.setAttribute( ATTR_REPEATER_ID, getId() );
                a.addClassName( CLASS_REPEATER_LINK );
                a.setInnerHtml( tableHeader.getLabel() );

                OrderDirection orderDirection = OrderDirection.ASC;
                if ( tableHeader.getName().equals( getOrderBy() ) )
                {
                    col.addClassName( "sort" );
                    col.addClassName( getOrderDirection().name().toLowerCase() );
                    if ( getOrderDirection() == OrderDirection.ASC )
                    {
                        orderDirection = OrderDirection.DESC;
                    }
                }
                a.setHref( createUrl( getFirstRow(), getMaxRows(), tableHeader.getName(), orderDirection ) );

                col.add( a );
            }
            else
            {
View Full Code Here

TOP

Related Classes of com.dodo.blog.ui.component.input.Anchor

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.