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


Java IconType类代码示例

本文整理汇总了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类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


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