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


Java Link.setId方法代码示例

本文整理汇总了Java中com.vaadin.ui.Link.setId方法的典型用法代码示例。如果您正苦于以下问题:Java Link.setId方法的具体用法?Java Link.setId怎么用?Java Link.setId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.Link的用法示例。


在下文中一共展示了Link.setId方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createMainViewPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createMainViewPageLink() {
	final Link pageLink = new Link(MAIN_VIEW_LINK_TEXT, new ExternalResource(
			LINK_SEPARATOR + CommonsViews.MAIN_VIEW_NAME));
	pageLink.setId(ViewAction.VISIT_MAIN_VIEW.name());
	pageLink.setIcon(VaadinIcons.STAR);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:9,代码来源:PageLinkFactoryImpl.java

示例2: createRegisterPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createRegisterPageLink() {
	final Link pageLink = new Link("Register", new ExternalResource(
			LINK_SEPARATOR + CommonsViews.MAIN_VIEW_NAME + PAGE_SEPARATOR + ApplicationPageMode.REGISTER));
	pageLink.setId(ViewAction.VISIT_REGISTER.name());
	pageLink.setIcon(VaadinIcons.RANDOM);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:9,代码来源:PageLinkFactoryImpl.java

示例3: createLoginPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createLoginPageLink() {
	final Link pageLink = new Link("Login", new ExternalResource(
			LINK_SEPARATOR + CommonsViews.MAIN_VIEW_NAME + PAGE_SEPARATOR + ApplicationPageMode.LOGIN));
	pageLink.setId(ViewAction.VISIT_LOGIN.name());
	pageLink.setIcon(VaadinIcons.SIGN_IN);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:9,代码来源:PageLinkFactoryImpl.java

示例4: addCommitteePageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link addCommitteePageLink(final ViewRiksdagenCommittee data) {
	final Link pageLink = new Link(COMMITTEE
			+ data.getEmbeddedId().getDetail(), new ExternalResource(PAGE_PREFIX
					+ UserViews.COMMITTEE_VIEW_NAME + PAGE_SEPARATOR + data.getEmbeddedId().getOrgCode()));
	pageLink.setId(ViewAction.VISIT_COMMITTEE_VIEW.name() + PAGE_SEPARATOR
			+ data.getEmbeddedId().getOrgCode());
	pageLink.setIcon(VaadinIcons.GROUP);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:11,代码来源:PageLinkFactoryImpl.java

示例5: addMinistryPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link addMinistryPageLink(final ViewRiksdagenMinistry data) {
	final Link pageLink = new Link(MINISTRY + data.getNameId(),
			new ExternalResource(PAGE_PREFIX + UserViews.MINISTRY_VIEW_NAME + PAGE_SEPARATOR
					+ data.getNameId()));
	pageLink.setId(ViewAction.VISIT_MINISTRY_VIEW.name() + PAGE_SEPARATOR
			+ data.getNameId());
	pageLink.setIcon(VaadinIcons.GROUP);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:11,代码来源:PageLinkFactoryImpl.java

示例6: addPartyPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link addPartyPageLink(final ViewRiksdagenParty data) {
	final Link pageLink = new Link(PARTY + data.getPartyName(),
			new ExternalResource(PAGE_PREFIX + UserViews.PARTY_VIEW_NAME + PAGE_SEPARATOR
					+ data.getPartyId()));
	pageLink.setId(ViewAction.VISIT_PARTY_VIEW.name() + PAGE_SEPARATOR
			+ data.getPartyId());
	pageLink.setIcon(VaadinIcons.GROUP);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:11,代码来源:PageLinkFactoryImpl.java

示例7: createPoliticianPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createPoliticianPageLink(final PersonData personData) {
	final Link pageLink = new Link(POLITICIAN
			+ personData.getFirstName() + ' '
			+ personData.getLastName(), new ExternalResource(PAGE_PREFIX
					+ UserViews.POLITICIAN_VIEW_NAME + PAGE_SEPARATOR + personData.getId()));
	pageLink.setId(ViewAction.VISIT_POLITICIAN_VIEW.name() + PAGE_SEPARATOR
			+ personData.getId());
	pageLink.setIcon(VaadinIcons.BUG);
	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:12,代码来源:PageLinkFactoryImpl.java

示例8: createSearchDocumentViewPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createSearchDocumentViewPageLink() {
	final Link pageLink = new Link(SEARCH, new ExternalResource(PAGE_PREFIX
					+ UserViews.SEARCH_DOCUMENT_VIEW_NAME));
	pageLink.setId(ViewAction.VISIT_DOCUMENT_VIEW.name());
	pageLink.setIcon(VaadinIcons.SEARCH);

	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:10,代码来源:PageLinkFactoryImpl.java

示例9: createAdminPagingLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createAdminPagingLink(final String label,final String page, final String pageId, final String pageNr) {
	final Link pageLink = new Link(label,
			new ExternalResource(PAGE_PREFIX + page + PAGE_SEPARATOR
					+ "[" + pageNr + "]"));
	pageLink.setId(page +"ShowPage" + PAGE_SEPARATOR
			+ pageNr);
	pageLink.setIcon(VaadinIcons.SERVER);

	return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:12,代码来源:PageLinkFactoryImpl.java

示例10: createUserHomeViewPageLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
@Override
public Link createUserHomeViewPageLink() {
	final Link pageLink = new Link("User account:" + UserContextUtil.getUserNameFromSecurityContext(), new ExternalResource(PAGE_PREFIX
			+ UserViews.USERHOME_VIEW_NAME));
		pageLink.setId(ViewAction.VISIT_USER_HOME_VIEW.name());
		pageLink.setIcon(VaadinIcons.USER);
		return pageLink;
}
 
开发者ID:Hack23,项目名称:cia,代码行数:9,代码来源:PageLinkFactoryImpl.java

示例11: getLink

import com.vaadin.ui.Link; //导入方法依赖的package包/类
/**
 * Method to create a link.
 *
 * @param id
 *            of the link
 * @param name
 *            of the link
 * @param resource
 *            path of the link
 * @param icon
 *            of the link
 * @param targetOpen
 *            specify how the link should be open (f. e. new windows =
 *            _blank)
 * @param style
 *            chosen style of the link. Might be {@code null} if no style
 *            should be used
 * @return a link UI component
 */
public static Link getLink(final String id, final String name, final String resource, final FontAwesome icon,
        final String targetOpen, final String style) {

    final Link link = new Link(name, new ExternalResource(resource));
    link.setId(id);
    link.setIcon(icon);
    link.setDescription(name);

    link.setTargetName(targetOpen);
    if (style != null) {
        link.setStyleName(style);
    }

    return link;

}
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:36,代码来源:SPUIComponentProvider.java


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