本文整理汇总了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);
}
示例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);
}
示例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"));
}
示例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
}
示例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));
}
}
示例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);
}