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


Java Icon类代码示例

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


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

示例1: IconOrderByBorder

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

示例2: getRegistrationStatusIcon

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

示例3: MetaDataInUseIndicatorPanel

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

示例4: drawTreeElement

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
/**
 * @param markupId
 * @param item
 * @return Returns a WebMarkContainer with the item details of an element of the tree
 */
private WebMarkupContainer drawTreeElement(String markupId, ListItem<QMTreeNode> item){
	QMTreeNode node = item.getModelObject();
	WebMarkupContainer container = new WebMarkupContainer(markupId);

	container.add(new Label("name", new PropertyModel<String>(node, "name")));
	container.add(new Icon("icon", node.getIconType()));

	Check<QMTreeNode> check = new Check<>("nodeCheck", item.getModel(),
			dataGroup);
	container.add(check);

	// Adds tags and Checks for elements of the QM
	if (node instanceof QMBaseIndicator) {

		// Marks as Checked if the item has tags coincidences
		for (MetaData tag : projectTags) {
			for (QModelTagData tagModel : ((QMBaseIndicator) node)
					.getQModelTagData()) {
				if (tagModel.getName().equals(tag.getName())) {
					check.add(new AttributeModifier("checked", "checked"));
				}
			}
		}

		// Adds the tags of every element
		WebMarkupContainer tags = new WebMarkupContainer("tags");
		tags.add(newLabelInWMC("tag", new PropertyModel<QModelTagData>(
				node, "qModelTagData"), tags));
		tags.add(new AttributeModifier("style", "margin-left:50px"));
		container.add(tags);
	}
       
       return container;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:40,代码来源:SubsetProposalPanel.java

示例5: NotificationBookmarkablePageLink

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
protected NotificationBookmarkablePageLink(final String id, final Class<C> pageClass, final PageParameters parameters, IModel<T> model) {
	
	super(id, model);
	this.parameters = parameters;

	if (pageClass == null) {
		throw new IllegalArgumentException(
				"Page class for bookmarkable link cannot be null");
	} else if (!Page.class.isAssignableFrom(pageClass)) {
		throw new IllegalArgumentException(
				"Page class must be derived from " + Page.class.getName());
	}
	pageClassName = pageClass.getName();

	final String className = (model != null) && (model.getObject() != null) ? model
			.getObject().getClass().getSimpleName()
			: this.getClass().getSimpleName();

	add(new CssClassNameAppender("notification", className));
	TransparentWebMarkupContainer notificationContainer = new TransparentWebMarkupContainer(
			"notification.container");
	add(notificationContainer);
	DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, UQasar
			.getSession().getLocale());

	
	// Add a check whether the creation date is null
	Date creationDate = new Date();
	if (model.getObject().getCreationDate() == null) {
		creationDate = model.getObject().getCreationDate();
	}
	
	gotoContainer = new WebMarkupContainer("notification.goto.container");
	gotoContainer.add(notificationDate = new Label("notification.date", df
			.format(creationDate)));
	notificationContainer.add(icon = new Icon("notification.icon",
			new IconType("group")));
	notificationContainer.add(gotoContainer);
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:40,代码来源:NotificationBookmarkablePageLink.java

示例6: getIcon

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
protected Icon getIcon(final String iconid) {
    return new Icon(iconid, FontAwesomeIconTypeBuilder.on(FontAwesomeGraphic.flag_o).build());
}
 
开发者ID:apache,项目名称:syncope,代码行数:4,代码来源:AlertWidget.java

示例7: getIcon

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
@Override
protected Icon getIcon(final String iconid) {
    return new Icon(
            iconid, FontAwesomeIconTypeBuilder.on(FontAwesomeIconTypeBuilder.FontAwesomeGraphic.repeat).build());
}
 
开发者ID:apache,项目名称:syncope,代码行数:6,代码来源:JEXLTransformerWidget.java

示例8: getIcon

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
@Override
protected Icon getIcon(final String iconid) {
    return new Icon(
            iconid, FontAwesomeIconTypeBuilder.on(FontAwesomeIconTypeBuilder.FontAwesomeGraphic.magic).build());
}
 
开发者ID:apache,项目名称:syncope,代码行数:6,代码来源:ItemTransformerWidget.java

示例9: addIconToBaseButton

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
/**
 * adds an icon to the base button
 * 
 * @param icon
 *            The icon to add
 */
   private void addIconToBaseButton(final Icon icon) {
	baseButton.add(icon);
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:10,代码来源:DropDownButton.java

示例10: newButtonIcon

import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; //导入依赖的package包/类
/**
 * creates a new icon component with given {@link IconType}.
 * 
 * @param markupId
 *            The component' id
 * @param iconTypeModel
 *            The icon type as model
 * @return new icon component
 */
   private Icon newButtonIcon(final String markupId,
                              final IModel<IconType> iconTypeModel) {
	return new Icon(markupId, iconTypeModel);
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:14,代码来源:DropDownButton.java


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