当前位置: 首页>>代码示例>>Java>>正文


Java HtmlTag类代码示例

本文整理汇总了Java中de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag的典型用法代码示例。如果您正苦于以下问题:Java HtmlTag类的具体用法?Java HtmlTag怎么用?Java HtmlTag使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HtmlTag类属于de.agilecoders.wicket.core.markup.html.bootstrap.html包,在下文中一共展示了HtmlTag类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onInitialize

import de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag; //导入依赖的package包/类
@Override
    protected void onInitialize() {
        super.onInitialize();
        //add(new GrowlBehavior());
        add(new HtmlTag("html", Locale.US));
        add(new Label("title", getTitleModel()));
        add(new MetaTag("metaDescription", new Model<>("description"), getMetaDescriptionModel()));
        add(new BookmarkablePageLink<>("skillManagementLink", SkillManagementPage.class, new PageParameters().set("skillId", "")));
//        add(new BookmarkablePageLink<>("roadsLink", RoadListPage.class,
//                new PageParameters().set(SeoBookmarkableMapper.LOCALE_PREF_ID_PARAMETER, localePrefId)));
//        add(new BookmarkablePageLink<>("camerasLink", CameraListPage.class,
//                new PageParameters().set(SeoBookmarkableMapper.LOCALE_PREF_ID_PARAMETER, localePrefId)));
//
//        add(new BookmarkablePageLink<>("tweetListLink", TweetListPage.class,
//                new PageParameters().set(SeoBookmarkableMapper.LOCALE_PREF_ID_PARAMETER, localePrefId)));
//        add(new BookmarkablePageLink<>("tweetMapLink", TweetMapPage.class,
//                new PageParameters().set(SeoBookmarkableMapper.LOCALE_PREF_ID_PARAMETER, localePrefId)));
        notificationPanel = new NotificationPanel("notificationPanel");
        notificationPanel.setOutputMarkupId(true);
        add(notificationPanel);
    }
 
开发者ID:lumenrobot,项目名称:lumen,代码行数:22,代码来源:PubLayout.java

示例2: onInitialize

import de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag; //导入依赖的package包/类
@Override
protected void onInitialize() {
    super.onInitialize();
    add(new HtmlTag("html", Locale.US));
    add(new Label("title", getTitleModel()));
    add(new MetaTag("metaDescription", new Model<>("description"), getMetaDescriptionModel()));
    add(new BookmarkablePageLink<>("yagoTypeListLink", YagoTypeListPage.class));
    add(new BookmarkablePageLink<>("thingListLink", ThingListPage.class));
    add(new BookmarkablePageLink<>("factServiceLink", FactServicePage.class));
    add(new BookmarkablePageLink<>("taxonomyListLink", TaxonomyNeo4jListPage.class));
    notificationPanel = new NotificationPanel("notificationPanel");
    notificationPanel.setOutputMarkupId(true);
    add(notificationPanel);
}
 
开发者ID:lumenrobot,项目名称:lumen,代码行数:15,代码来源:PubLayout.java

示例3: BasePage

import de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag; //导入依赖的package包/类
public BasePage(final PageParameters params) {
    super(params);

    add(new HtmlTag("html"));

    add(new OptimizedMobileViewportMetaTag("viewport"));
    add(new MetaTag("description", Model.of("description"), Model.of("Tansu")));
    add(new MetaTag("author", Model.of("author"), Model.of("Copper Arrow Software Services")));
    add(new ChromeFrameMetaTag("chrome-frame"));

    //add header panel
    add(new HeaderPanel("header"));
    add(new FooterPanel("footer"));
}
 
开发者ID:dmbeer,项目名称:wicket-bootstrap-example,代码行数:15,代码来源:BasePage.java

示例4: newHtmlTag

import de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag; //导入依赖的package包/类
@Override
protected HtmlTag newHtmlTag(final String id) {
    return new HtmlTag(id, getLocale(), false); //modernizr already added from the outside
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:AExampleIFrameWebPage.java

示例5: AWebPage

import de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag; //导入依赖的package包/类
public AWebPage(final IModel<?> model) {
    super(model);

    if (ABaseWebApplication.get().getDelegate().getAuthenticationService() != null) {
        //check remember me before anything else
        final SignIn signIn = new SignIn();
        signIn.setComponent(this);
        signIn.checkRememberMe();
    }

    final HtmlTag htmlTag = newHtmlTag("html");
    add(htmlTag);
    //default title is the classname, though this can be changed by calling the setter afterwards
    titleModel = Model.of(
            Objects.toVisibleName(Strings.removeTrailing(getClass().getSimpleName(), Page.class.getSimpleName())));
    final Label title = new Label("title", new AbstractReadOnlyModel<String>() {
        @Override
        public String getObject() {
            return getTitleModel().getObject();
        }
    });
    add(title);
    //need a separate container inside body to prevent it from rendering outside of the html tag
    final WebMarkupContainer ajaxIndicatorAppenderContainer = new WebMarkupContainer(
            "ajaxIndicatorAppenderContainer");
    add(ajaxIndicatorAppenderContainer);
    ajaxIndicatorAppender = newAjaxIndicatorAppender();
    if (ajaxIndicatorAppender != null) {
        ajaxIndicatorAppenderContainer.add(ajaxIndicatorAppender);
    }

    final Navbar navbar = newNavbar("navbar");
    if (navbar != null) {
        add(navbar);
    } else {
        add(new EmptyPanel("navbar").setVisible(false));
    }

    DebugBar debugBar = null;
    if (getApplication().getDebugSettings().isDevelopmentUtilitiesEnabled()) {
        debugBar = newDebugBar("debugBar");
    }
    if (debugBar != null) {
        add(debugBar);
    } else {
        add(new EmptyPanel("debugBar").setVisible(false));
    }

    add(newContainer("bodyContainer"));
    final AFooter footer = newFooter("footer");
    if (footer != null) {
        footer.setContainerClass(getContainerClass());
        add(footer);
    } else {
        add(new WebMarkupContainer("footer").setVisible(false));
    }
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:58,代码来源:AWebPage.java

示例6: newHtmlTag

import de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag; //导入依赖的package包/类
protected HtmlTag newHtmlTag(final String id) {
    return new HtmlTag(id, getLocale(), true);
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:4,代码来源:AWebPage.java


注:本文中的de.agilecoders.wicket.core.markup.html.bootstrap.html.HtmlTag类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。