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

Java IconType类代码示例

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

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



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

示例1: ModelButton

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
public ModelButton(final SubmitButtonHtmlElement element) {
    //menu button does not get any css classes, thus keeping the values set in markup
    super(element.getWicketId(), element.getTitleModel(), null, Type.Menu);
    this.element = element;
    final String iconCssClass = element.getIconCssClassModel().getObject();
    if (Strings.isNotBlank(iconCssClass)) {
        setIconType(new IconType(iconCssClass) {
            @Override
            public String cssClassName() {
                return getCssClassName();
            }
        });
    }
    //allow styled properties for label
    final Label label = Reflections.field("label").ofType(Label.class).in(this).get();
    label.setEscapeModelStrings(false);
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:18,代码来源:ModelButton.java


示例2: IconOrderByBorder

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
public IconOrderByBorder(final DataTable<?, ?> dataTable, final String id, final S property,
        final ISortStateLocator<S> stateLocator) {
    super(id);
    this.property = property;
    this.stateLocator = stateLocator;
    final AjaxFallbackOrderByBorder<S> orderByBorder = new AjaxFallbackOrderByBorder<S>("orderByBorder", property,
            stateLocator) {
        @Override
        protected void onAjaxClick(final AjaxRequestTarget target) {
            target.add(dataTable);
        }
    };
    addToBorder(orderByBorder);
    this.icon = new Icon("icon", (IconType) null);
    orderByBorder.add(icon);
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:17,代码来源:IconOrderByBorder.java


示例3: onConfigure

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
@Override
protected void onConfigure() {
    super.onConfigure();
    final SortOrder sortOrder = stateLocator.getSortState().getPropertySortOrder(property);
    final IconType iconType;
    switch (sortOrder) {
    case NONE:
        iconType = FontAwesomeIconType.sort;
        break;
    case ASCENDING:
        iconType = FontAwesomeIconType.sort_asc;
        break;
    case DESCENDING:
        iconType = FontAwesomeIconType.sort_desc;
        break;
    default:
        throw UnknownArgumentException.newInstance(SortOrder.class, sortOrder);
    }
    icon.setType(iconType);
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:21,代码来源:IconOrderByBorder.java


示例4: getResetDashboardLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
/**
 * Resets the dashboard (removes all the widgets)
 * @return
 */
private BootstrapAjaxLink<String> getResetDashboardLink() {

	BootstrapAjaxLink<String> link = new BootstrapAjaxLink<String>(
			"link.dashboard.reset", 
			new StringResourceModel("button.dashboard.reset", 
					this, null), Buttons.Type.Danger) {

		private static final long serialVersionUID = -3058511727860549437L;

		@Override
		public void onClick(final AjaxRequestTarget target) {			
			// confirmation
			if(!dashboard.getWidgets().isEmpty()){
				resetConfirmationModal.appendShowDialogJavaScript(target);
			}

		}
	};
	link.setOutputMarkupId(true);
	link.setIconType(IconType.removesign);
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:27,代码来源:DashboardViewPage.java


示例5: getUpdateDashboardLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
/**
 * 
 * @return
 */
private BootstrapAjaxLink<String> getUpdateDashboardLink() {
	BootstrapAjaxLink<String> link = new BootstrapAjaxLink<String>(
			"link.dashboard.update", 
			new StringResourceModel("button.dashboard.update", 
					this, null), Buttons.Type.Primary) {

		private static final long serialVersionUID = -2851834962189387988L;

		@Override
		public void onClick(final AjaxRequestTarget target) {	
			target.add(dashboardPanel);
		}
	};
	link.setOutputMarkupId(true);
	link.setIconType(IconType.refresh);
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:22,代码来源:DashboardViewPage.java


示例6: getDeleteDashboardLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
/**
 * 
 * @return
 */
private BootstrapAjaxLink<String> getDeleteDashboardLink() {
	BootstrapAjaxLink<String> link = new BootstrapAjaxLink<String>(
			"link.dashboard.delete", 
			new StringResourceModel("button.dashboard.delete", 
					this, null), Buttons.Type.Danger) {

		/**
		 * 
		 */
		private static final long serialVersionUID = 1106818355620419798L;

		@Override
		public void onClick(final AjaxRequestTarget target) {
			deleteConfirmationModal.appendShowDialogJavaScript(target);
		}
		
		@Override
		protected void onConfigure() {
			super.onConfigure();
		}
	};
	link.setOutputMarkupId(true);
	link.setIconType(IconType.remove);
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:30,代码来源:DashboardViewPage.java


示例7: getRegistrationStatusIcon

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
private Icon getRegistrationStatusIcon(final User user) {
	final RegistrationStatus status = user.getRegistrationStatus();
	String typeString;
	switch (status) {
		case CANCELLED:
			typeString = "ban-circle";
			break;
		case PENDING:
			typeString = "time";
			break;
		default:
			typeString = "check-sign";
	}
	IconType type = new IconType(typeString);
	Icon icon = new Icon("td.status", type);
	icon.add(new AttributeModifier("title", Model.of(user.getRegistrationStatus())));
	return icon;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:19,代码来源:UserListPage.java


示例8: getNewDeleteLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
private BootstrapAjaxLink<String> getNewDeleteLink() {
	BootstrapAjaxLink<String> link = new BootstrapAjaxLink<String>(
			"link.tree.node.delete", Buttons.Type.Danger) {
		private static final long serialVersionUID = -3316027169473825950L;

		@Override
		public void onClick(final AjaxRequestTarget target) {
			TreePanel.this.onDeleteClicked(target, tree.getSelectedNode());
		}
	};
	TooltipBehavior behavior = 
			new TooltipBehavior(
					new StringResourceModel("tooltip.tree.node.delete", 
							this, null));
	link.add(behavior);
	link.setIconType(IconType.trash);
	link.setOutputMarkupId(true);
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:20,代码来源:TreePanel.java


示例9: getLocaleChangeLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
private AbstractLink getLocaleChangeLink(final Language language) {
	Locale locale = language.getLocale();
	PageParameters params = new PageParameters(
			containingPage.getPageParameters());
	params.remove("lang");
	params.add("lang", language.getLocale().getLanguage());
	BootstrapBookmarkablePageLink<Page> link = new MenuBookmarkablePageLink<Page>(
               containingPage.getPageClass(), params, Model.of(locale
               .getDisplayLanguage(locale))).setIconType(new IconType(
							"please-ignore-me"));
	link.add(new CssClassNameAppender("language ", locale.getLanguage()));
	if (Language.fromSession().equals(language)) {
		link.add(new CssClassNameAppender("active"));
	}
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:17,代码来源:LanguageSubMenu.java


示例10: DashboardSharedNotificationLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
public DashboardSharedNotificationLink(String id, PageParameters parameters, IModel<DashboardSharedNotification> model) {

		super(id, DashboardViewPage.class, parameters.add("id", model.getObject().getDashboard().getId()), model);
		

		//get user who shared dashboard		
		add(new Label("dashboard.user", model.getObject().getDashboard().getSharedBy()));	

		//set containers 
		setIcon(new IconType("dashboard"));
		get("notification.container").add(new AttributeModifier("style","width:95%;"));
		get("notification.container").add(new AttributeModifier("class","notification project green"));	
		
		add(new AjaxEventBehavior("onclick") {
			private static final long serialVersionUID = -4295786924073241665L;
			@Override
			protected void onEvent(AjaxRequestTarget target) {				
				getModelObject().getDashboard().setSharedBy(null);
				setResponsePage(DashboardViewPage.class, getPageParameters().add("id", getModelObject().getDashboard().getId()));
			}
		});
	}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:23,代码来源:DashboardSharedNotificationLink.java


示例11: getNewDeleteLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
private BootstrapAjaxLink<String> getNewDeleteLink() {
	BootstrapAjaxLink<String> link = new BootstrapAjaxLink<String>(
			"link.tree.node.delete", Buttons.Type.Danger) {

		/**
		 * 
		 */
		private static final long serialVersionUID = 2176346425710969753L;

		@Override
		public void onClick(final AjaxRequestTarget target) {
			QMTreePanel.this.onDeleteClicked(target, tree.getSelectedNode());
		}
	};
	link.setIconType(IconType.trash);
	link.setOutputMarkupId(true);
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:19,代码来源:QMTreePanel.java


示例12: initClearAllDataButton

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
@SuppressWarnings("serial")
protected void initClearAllDataButton() {
	BootstrapLink<Void> resetBtn = new BootstrapLink<Void>("btn-reset",
			Buttons.Type.Danger) {

		@Override
		public void onClick() {
			maybeResetData();
		}
	};

	resetBtn.setIconType(IconType.bancircle).setSize(Buttons.Size.Large);
	resetBtn.setLabel(Model.of("Alle Daten zurücksetzen")).setInverted(
			false);

	add(resetBtn);
}
 
开发者ID:atomfrede,项目名称:freezing-octo-bear,代码行数:18,代码来源:ClearAllDataPanel.java


示例13: initUserButton

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
@SuppressWarnings("serial")
protected void initUserButton() {
	BootstrapLink<Void> userAdminBtn = new BootstrapLink<Void>(
			"btn-user-admin", Buttons.Type.Default) {

		@Override
		public void onClick() {
			setResponsePage(MyAccountPage.class);

		}
	};

	userAdminBtn.setIconType(IconType.user).setSize(Buttons.Size.Large)
			.setLabel(Model.of("Mein Konto")).setInverted(false);

	add(userAdminBtn);
}
 
开发者ID:atomfrede,项目名称:freezing-octo-bear,代码行数:18,代码来源:BasePage.java


示例14: initCrateButton

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
@SuppressWarnings("serial")
protected void initCrateButton() {
	BootstrapLink<Void> createBtn = new BootstrapLink<Void>("btn-crate",
			Buttons.Type.Default) {

		@Override
		public void onClick() {
			reallyPutCrate();
		}
	};

	createBtn.setIconType(IconType.gift).setSize(Buttons.Size.Large);
	createBtn.setLabel(Model.of("Versorgung")).setInverted(false);

	add(createBtn);
}
 
开发者ID:atomfrede,项目名称:freezing-octo-bear,代码行数:17,代码来源:BasePage.java


示例15: initConsumeButton

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
@SuppressWarnings("serial")
protected void initConsumeButton() {

	bottleBtn = new BootstrapLink<Void>("btn-get-bottle",
			Buttons.Type.Primary) {

		@Override
		public void onClick() {
			if (bottleService.getNumberOfNotConsumedBottles() > 0) {
				consumeClicked();
			}
		}
	};

	bottleBtn.setIconType(IconType.shoppingcart);
	bottleBtn.setSize(Buttons.Size.Large);
	bottleBtn.setLabel(Model.of("Erfrischung"));

	add(bottleBtn);

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


示例16: setIconCssClass

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
protected void setIconCssClass(final BootstrapAjaxFallbackButton button) {
    final String iconCssClass = element.getIconCssClassModel().getObject();
    if (Strings.isNotBlank(iconCssClass)) {
        button.setIconType(new IconType(iconCssClass) {
            @Override
            public String cssClassName() {
                return getCssClassName();
            }
        });
    }
}
 
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:12,代码来源:ModelSubmitButtonColumn.java


示例17: getShareDashboardLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
/**
 * Enables sharing the dashboard (create a new copy) with the selected 
 * users.
 * @return
 */
private BootstrapAjaxLink<String> getShareDashboardLink() {
	BootstrapAjaxLink<String> link = new BootstrapAjaxLink<String>(
			"link.dashboard.share", 
			new StringResourceModel("button.dashboard.share", 
					this, null), Buttons.Type.Info) {


		/**
		 * 
		 */
		private static final long serialVersionUID = 2945536479877680702L;

		@Override
		public void onClick(final AjaxRequestTarget target) {	

			PageParameters params = new PageParameters();
			DbDashboard dbdb = (DbDashboard) dashboard;
			params.add("id", dbdb.getId());
			setResponsePage(DashboardSharePage.class, params);
		}

		@Override
		protected void onConfigure() {
			super.onConfigure();
		}
	};
	link.setOutputMarkupId(true);
	link.setIconType(IconType.share);
	return link;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:36,代码来源:DashboardViewPage.java


示例18: MetaDataInUseIndicatorPanel

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
public MetaDataInUseIndicatorPanel(final String id, boolean inUse, final IModel<String> objectName) {
    super(id);
    final String determine = inUse ? "yes" : "no";
    add(new Icon("icon", new IconType(inUse ? "check-sign" : "remove-sign")));
    Label label = new Label("text", new StringResourceModel("label."+ determine, this, null));
    label.add(new CssClassNameAppender(inUse ? "error" : "success"));
    add(label);
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:9,代码来源:MetaDataInUseIndicatorPanel.java


示例19: newTakeTourLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
private MenuBookmarkablePageLink<ProfilePage> newTakeTourLink(){
	 MenuBookmarkablePageLink<ProfilePage> tourLink = new MenuBookmarkablePageLink<>(
			 ProfilePage.class, new StringResourceModel("menu.tour.take.text", this, null));
	 tourLink.add(new AttributeModifier("id", "takeTour"));
	 // disable, since the link is not used, only javascript uses this 'label' in order to start the tour
	 tourLink.setEnabled(false);
	 tourLink.setIconType(IconType.infosign);
	 return tourLink;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:10,代码来源:UserSubMenu.java


示例20: newProfileLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; //导入依赖的package包/类
private MenuBookmarkablePageLink<ProfilePage> newProfileLink() {
	MenuBookmarkablePageLink<ProfilePage> logoutLink = new MenuBookmarkablePageLink<>(
			ProfilePage.class, new StringResourceModel(
					"menu.profile.link.text", this, null));
	logoutLink.setIconType(IconType.user);
	return logoutLink;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:8,代码来源:UserSubMenu.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java CXFBusFactory类代码示例发布时间:2022-05-22
下一篇:
Java AbstractStoreConfiguration类代码示例发布时间: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