• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Navbar类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected Navbar newNavbar(final String id) {
    final Navbar navbar = super.newNavbar(id);
    navbar.setBrandName(null);
    navbar.setBrandImage(LOGO, Model.of("bsg-coach"));

    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(RedirectToGuidePage.class, Model.of("Home")).setIconType(GlyphIconType.home)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(ABaseWebApplication.get().getHomePage(), Model.of("Get Feedback"))
                    .setIconType(GlyphIconType.upload)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.RIGHT,
            new NavbarExternalLink(Model.of("mailto:[email protected]"))
                    .setLabel(Model.of("Tell us what you think!")).setIconType(GlyphIconType.envelope)));

    navbar.setInverted(INVERTED_HEADER_AND_FOOTER);

    return navbar;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:20,代码来源:ABsgCoachWebPage.java


示例2: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
protected Navbar newNavbar(final String id) {
    final Navbar navbar = new Navbar(id) {

        @Override
        protected TransparentWebMarkupContainer newContainer(final String componentId) {
            final TransparentWebMarkupContainer container = super.newCollapseContainer(componentId);
            container.add(AttributeModifier.replace("class", getContainerClass()));
            return container;
        }

        @Override
        protected Class<? extends Page> getHomePage() {
            return getNavbarHomePage();
        }

    };
    navbar.setBrandName(Model.of("invesdwin-NoWicket"));
    navbar.setBrandImage(DEFAULT_LOGO, Model.of("logo"));

    addSignInOrSignOutPageToNavbar(navbar);

    return navbar;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:24,代码来源:AWebPage.java


示例3: createNavbarContents

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected void createNavbarContents(Navbar navbar) {
	NavbarButton<Page> edit = new NavbarButton<Page>(EditProductPage.class, getResolver().expand(getModel().getObject()), Model.of("Edit"));
	edit.setIconType(GlyphIconType.edit);
	NavbarDropDownButton create = new NavbarDropDownButton(Model.of("Create")) {

		@Override
		protected List<AbstractLink> newSubMenuButtons(String buttonMarkupId) {
			List<AbstractLink> submenus = new ArrayList<>();
			BookmarkablePageLink<EditVersionPage> createHotfix = new BookmarkablePageLink<EditVersionPage>(buttonMarkupId,EditVersionPage.class,getResolver().expand(getModel().getObject()));
			createHotfix.setBody(Model.of("Hotfix"));
			submenus.add(createHotfix);
			BookmarkablePageLink<EditVersionPage> createVersion = new BookmarkablePageLink<EditVersionPage>(buttonMarkupId,EditVersionPage.class,getResolver().expand(getModel().getObject()));
			createVersion.setBody(Model.of("Version"));
			submenus.add(createVersion);
			return submenus;
		}
	};
	create.setIconType(GlyphIconType.plus);
	navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT, edit, create));
}
 
开发者ID:MichaelRehberg,项目名称:gluezilla,代码行数:22,代码来源:BrowsePage.java


示例4: onInitialize

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
    protected void onInitialize() {
    	super.onInitialize();
    	final Component sidebar = createSidebar("sidebar");
        super.add(sidebar);
        content.add(new AttributeModifier("class", new AbstractReadOnlyModel() {
            @Override
            public Object getObject() {
                return sidebar.isVisible() ? "col-sm-10" : "col-sm-12";
            }
        }));
        Navbar navbar = new Navbar("navbar");
        navbar.setInverted(true);
        navbar.setPosition(Position.TOP);
        navbar.brandName(Model.of("Gluezilla"));
//		navbar.setBrandImage(Resources.IMAGE_LOGO, Model.of("Gluezilla"));
        createNavbarContents(navbar);
        super.add(navbar);



    }
 
开发者ID:MichaelRehberg,项目名称:gluezilla,代码行数:23,代码来源:BrandedPage.java


示例5: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected Navbar newNavbar(final String id) {

    final Navbar navbar = super.newNavbar(id);
    navbar.setBrandName(Model.of(TITLE));
    navbar.setBrandImage(LOGO, Model.of("logo"));

    addDocumentationNav(navbar, ComponentPosition.LEFT);
    addWicketExamplesNav(navbar, ComponentPosition.LEFT);
    addMvpExamplesNav(navbar, ComponentPosition.LEFT);
    addSourceCodeNav(navbar, ComponentPosition.RIGHT);
    addThemesNav(navbar, ComponentPosition.RIGHT);

    return navbar;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:16,代码来源:AExampleWebPage.java


示例6: addSourceCodeNav

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
private void addSourceCodeNav(final Navbar navbar, final ComponentPosition position) {
    navbar.addComponents(NavbarComponents.transform(position, new NavbarExternalLink(Model.of(
            "https://github.com/subes/invesdwin-nowicket/tree/master/invesdwin-nowicket-parent/invesdwin-nowicket-examples/invesdwin-nowicket-examples-guide/src/main/java/de/invesdwin/nowicket/examples/guide/page")) {

        @Override
        protected Component newLabel(final String markupId) {
            final Label label = (Label) super.newLabel(markupId);
            label.setEscapeModelStrings(false);
            return label;
        }

    }.setTarget(Target.blank).setLabel(new ResourceModel("menu.source.code"))));
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:14,代码来源:AExampleWebPage.java


示例7: addMvpExamplesNav

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
private void addMvpExamplesNav(final Navbar navbar, final ComponentPosition position) {
    navbar.addComponents(
            NavbarComponents.transform(position, new NavbarDropDownButton(new ResourceModel("menu.mvp.examples")) {

                @Override
                protected List<AbstractLink> newSubMenuButtons(final String buttonMarkupId) {
                    final List<AbstractLink> subMenu = new ArrayList<AbstractLink>();

                    subMenu.add(new IconMenuBookmarkablePageLink<Void>(RedirectToMvpBsgcoachPage.class,
                            new ResourceModel("menu.bsgcoach").wrapOnAssignment(navbar),
                            RedirectToMvpBsgcoachPage.ICON));

                    subMenu.add(new IconMenuBookmarkablePageLink<Void>(RedirectToMvpEvaPage.class,
                            new ResourceModel("menu.eva").wrapOnAssignment(navbar), RedirectToMvpEvaPage.ICON));

                    return subMenu;
                }

                @Override
                protected Component newButtonLabel(final String markupId, final IModel<?> labelModel) {
                    final Label label = (Label) super.newButtonLabel(markupId, labelModel);
                    label.setEscapeModelStrings(false);
                    return label;
                }

            }));
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:28,代码来源:AExampleWebPage.java


示例8: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected Navbar newNavbar(final String id) {
    final Navbar navbar = super.newNavbar(id);
    navbar.setBrandName(null);
    navbar.setBrandImage(LOGO, Model.of("EVA"));

    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(RedirectToGuidePage.class, Model.of("Home")).setIconType(GlyphIconType.home)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(ABaseWebApplication.get().getHomePage(), Model.of("Decision"))
                    .setIconType(GlyphIconType.home)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(PleaseWaitPage.class, Model.of("Ask EVA"))
                    .setIconType(FontAwesomeIconType.question_circle)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(FeedbackPage.class, Model.of("Feedback"))
                    .setIconType(FontAwesomeIconType.exclamation_circle)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(DashboardPage.class, Model.of("Dashboard"))
                    .setIconType(FontAwesomeIconType.tachometer)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
            new NavbarButton<Void>(DetailsPage.class, Model.of("Details"))
                    .setIconType(FontAwesomeIconType.search)));
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.RIGHT,
            new NavbarExternalLink(Model.of("mailto:[email protected]")).setLabel(Model.of(""))
                    .setIconType(GlyphIconType.envelope)));

    return navbar;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:30,代码来源:AEvaWebPage.java


示例9: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected Navbar newNavbar(final String id) {
    final Navbar navbar = super.newNavbar(id);
    navbar.setBrandName(Model.of("RemoteList"));
    navbar.setBrandImage(new PackageResourceReference(ARemotelistPage.class, "logo.png"), null);

    if (Roles.get().hasRole(Roles.USER)) {
        navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
                new NavbarButton<Void>(ShowCategoriesPage.class, Model.of("Categories "))));
        navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
                new NavbarButton<Void>(ShowServersPage.class, Model.of("Servers"))));
    }
    return navbar;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:15,代码来源:ARemotelistPage.java


示例10: addSignInOrSignOutPageToNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
protected void addSignInOrSignOutPageToNavbar(final Navbar navbar) {
    final ABaseWebApplication webApplication = ABaseWebApplication.get();
    if (webApplication.getDelegate().getAuthenticationService() != null) {
        if (AWebSession.get().isSignedIn()) {
            addSignOutNavbarComponent(navbar, webApplication.getSignOutPage());
        } else {
            addSignInNavbarComponent(navbar, webApplication.getSignInPage());
        }
    }
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:11,代码来源:AWebPage.java


示例11: createNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
protected Navbar createNavbar() {
	Navbar navbar = new Navbar("navbar");
	navbar.setPosition(Navbar.Position.TOP);
	navbar.brandName(Model.of("Sample"));
	addHomePageButton(navbar);
	addLogoutButton(navbar);

	navbar.setVisible(!headless);
	return navbar;
}
 
开发者ID:mpostelnicu,项目名称:wicket-spring-jpa-bootstrap-boilerplate,代码行数:11,代码来源:HeaderFooter.java


示例12: createNavbarContents

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected void createNavbarContents(Navbar navbar) {
    super.createNavbarContents(navbar);
    NavbarButton<Page> create = new NavbarButton<>(EditProductPage.class, Model.of("Create"));
    create.setIconType(GlyphIconType.plus);
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT, create));

    NavbarButton<Page> admin = new NavbarButton<>(NotFinishedPage.class, Model.of("Admin"));
    admin.setIconType(GlyphIconType.wrench);
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.RIGHT, admin));
}
 
开发者ID:MichaelRehberg,项目名称:gluezilla,代码行数:12,代码来源:ChooseProductPage.java


示例13: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
protected Navbar newNavbar(String markupId) {
	Navbar navbar = new Navbar(markupId);

	navbar.setPosition(Navbar.Position.TOP);

	// show brand name
	navbar.brandName(Model.of("matetracker.de"));
	navbar.addComponents(NavbarComponents.transform(
			Navbar.ComponentPosition.LEFT, new NavbarButton<Homepage>(
					Homepage.class, Model.of("Home"))
					.setIconType(IconType.home)

	));

	if (getUser().getObject().getRole() == Role.Admin) {
		navbar.addComponents(NavbarComponents.transform(
				Navbar.ComponentPosition.RIGHT,
				new NavbarButton<UserPage>(UserPage.class, Model.of(_(
						"menu.user").getString()))
						.setIconType(IconType.user)));

		navbar.addComponents(NavbarComponents.transform(
				Navbar.ComponentPosition.RIGHT,
				new NavbarButton<AdminPage>(AdminPage.class, Model.of(_(
						"menu.admin").getString()))
						.setIconType(IconType.warningsign)));

	}
	navbar.addComponents(new ImmutableNavbarComponent(
			new NavbarButton<LogoutPage>(LogoutPage.class, Model
					.of("Logout")).setIconType(IconType.off),
			Navbar.ComponentPosition.RIGHT));

	return navbar;
}
 
开发者ID:atomfrede,项目名称:freezing-octo-bear,代码行数:36,代码来源:BasePage.java


示例14: addThemesNav

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
private void addThemesNav(final Navbar navbar, final ComponentPosition position) {
    final DropDownButton dropdown = new NavbarDropDownButton(Model.of(" Themes")) {

        @Override
        public boolean isActive(final Component item) {
            return false;
        }

        @Override
        protected List<AbstractLink> newSubMenuButtons(final String buttonMarkupId) {
            final List<AbstractLink> subMenu = new ArrayList<AbstractLink>();
            final IBootstrapSettings settings = Bootstrap.getSettings(getApplication());
            final List<ITheme> themes = settings.getThemeProvider().available();

            for (final ITheme theme : themes) {
                final PageParameters params = new PageParameters();
                final String themeName = theme.name();
                params.set(PAGE_PARAM_THEME, themeName);

                final IModel<String> labelModel = new AbstractReadOnlyModel<String>() {
                    @Override
                    public String getObject() {
                        final String activeThemeName = Bootstrap.getSettings(getApplication())
                                .getActiveThemeProvider()
                                .getActiveTheme()
                                .name();
                        String themeLabel = themeName.toLowerCase();
                        if (themeName.equals(activeThemeName)) {
                            themeLabel = "<b>" + themeLabel + "</b>";
                        }
                        return themeLabel;
                    }
                };

                subMenu.add(new MenuBookmarkablePageLink<Void>(getPageClass(), params, labelModel) {

                    @Override
                    protected Component newLabel(final String markupId) {
                        final Label label = (Label) super.newLabel(markupId);
                        label.setEscapeModelStrings(false);
                        return label;
                    }

                });
            }

            return subMenu;
        }
    }.setIconType(GlyphIconType.book);
    navbar.addComponents(new ImmutableNavbarComponent(dropdown, position));
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:52,代码来源:AExampleWebPage.java


示例15: addWicketExamplesNav

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
private void addWicketExamplesNav(final Navbar navbar, final ComponentPosition position) {
    navbar.addComponents(NavbarComponents.transform(position,
            new NavbarDropDownButton(new ResourceModel("menu.wicket.examples")) {

                @Override
                protected List<AbstractLink> newSubMenuButtons(final String buttonMarkupId) {
                    final List<AbstractLink> subMenu = new ArrayList<AbstractLink>();

                    subMenu.add(new MenuBookmarkablePageLink<Void>(HelloWorldPage.class,
                            new ResourceModel("menu.helloworld").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.comment));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(FormInputPage.class,
                            new ResourceModel("menu.forminput").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.listalt));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(AjaxChoicePage.class,
                            new ResourceModel("menu.ajaxchoice").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.alignjustify));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(AjaxDataTablePage.class,
                            new ResourceModel("menu.ajaxdatatable").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.th));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(ModalWindowStartPage.class,
                            new ResourceModel("menu.modal").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.newwindow));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(WizardStartPage.class,
                            new ResourceModel("menu.wizard").wrapOnAssignment(navbar))
                                    .setIconType(FontAwesomeIconType.magic));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(TabbedPanelPage.class,
                            new ResourceModel("menu.tabbedpanel").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.creditcard));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(FileUploadPage.class,
                            new ResourceModel("menu.fileupload").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.upload));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(DynamicEditorFieldsPage.class,
                            new ResourceModel("menu.dynamiceditorfields").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.edit));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(GuestbookExamplePage.class,
                            new ResourceModel("menu.guestbook").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.book));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(WicketSecurePage.class,
                            new ResourceModel("menu.wicketsecure").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.lock));
                    subMenu.add(new MenuBookmarkablePageLink<Void>(SpringSecurePage.class,
                            new ResourceModel("menu.springsecure").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.lock));

                    if (Roles.isAuthenticated()) {
                        subMenu.add(new MenuBookmarkablePageLink<Void>(ABaseWebApplication.get().getSignOutPage(),
                                new ResourceModel("menu.sign.out").wrapOnAssignment(navbar))
                                        .setIconType(GlyphIconType.logout));
                    } else {
                        subMenu.add(new MenuBookmarkablePageLink<Void>(ABaseWebApplication.get().getSignInPage(),
                                new ResourceModel("menu.sign.in").wrapOnAssignment(navbar))
                                        .setIconType(GlyphIconType.login));
                    }

                    return subMenu;
                }

                @Override
                protected Component newButtonLabel(final String markupId, final IModel<?> labelModel) {
                    final Label label = (Label) super.newButtonLabel(markupId, labelModel);
                    label.setEscapeModelStrings(false);
                    return label;
                }

            }));
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:68,代码来源:AExampleWebPage.java


示例16: addDocumentationNav

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
private void addDocumentationNav(final Navbar navbar, final ComponentPosition position) {
    navbar.addComponents(
            NavbarComponents.transform(position, new NavbarDropDownButton(new ResourceModel("menu.documentation")) {

                @Override
                protected List<AbstractLink> newSubMenuButtons(final String buttonMarkupId) {
                    final List<AbstractLink> subMenu = new ArrayList<AbstractLink>();

                    subMenu.add(new MenuBookmarkablePageLink<Void>(IntroductionPage.class,
                            new ResourceModel("menu.introduction").wrapOnAssignment(navbar))
                                    .setIconType(GlyphIconType.home));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(ConceptPage.class,
                            new ResourceModel("menu.concept").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(WicketIntegrationPage.class,
                            new ResourceModel("menu.wicketintegration").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(FrameworkHistoryPage.class,
                            new ResourceModel("menu.frameworkhistory").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(InstallationPage.class,
                            new ResourceModel("menu.installation").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(TutorialStartPage.class,
                            new ResourceModel("menu.tutorialstart").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(DataTypesPage.class,
                            new ResourceModel("menu.datatypes").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(ValidationPage.class,
                            new ResourceModel("menu.validation").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(UserInterfaceFlowPage.class,
                            new ResourceModel("menu.userinterfaceflow").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(DynamicComponentsPage.class,
                            new ResourceModel("menu.dynamiccomponents").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(TagTransformationsPage.class,
                            new ResourceModel("menu.tagtransformations").wrapOnAssignment(navbar)));

                    subMenu.add(new MenuBookmarkablePageLink<Void>(ClosingWordsPage.class,
                            new ResourceModel("menu.closingwords").wrapOnAssignment(navbar))
                                    .setIconType(FontAwesomeIconType.microphone));

                    return subMenu;
                }

                @Override
                protected Component newButtonLabel(final String markupId, final IModel<?> labelModel) {
                    final Label label = (Label) super.newButtonLabel(markupId, labelModel);
                    label.setEscapeModelStrings(false);
                    return label;
                }

            }));
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:59,代码来源:AExampleWebPage.java


示例17: addSignInOrSignOutPageToNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected void addSignInOrSignOutPageToNavbar(final Navbar navbar) {
    //do not add the button
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:AExampleWebPage.java


示例18: newNavbar

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
@Override
protected Navbar newNavbar(final String id) {
    return null;
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:AExampleIFrameWebPage.java


示例19: AWebPage

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的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


示例20: addSignInNavbarComponent

import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar; //导入依赖的package包/类
protected void addSignInNavbarComponent(final Navbar navbar, final Class<? extends WebPage> signInPage) {
    navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.RIGHT,
            new NavbarButton<Void>(signInPage, new ResourceModel("menu.sign.in"))
                    .setIconType(FontAwesomeIconType.sign_in)));
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:6,代码来源:AWebPage.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IOTools类代码示例发布时间:2022-05-22
下一篇:
Java PublisherAdRequest类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap