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

Java Anchor类代码示例

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

本文整理汇总了Java中org.gwtbootstrap3.client.ui.Anchor的典型用法代码示例。如果您正苦于以下问题:Java Anchor类的具体用法?Java Anchor怎么用?Java Anchor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Anchor类属于org.gwtbootstrap3.client.ui包,在下文中一共展示了Anchor类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getPanelHeader

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
private PanelHeader getPanelHeader() {
  PanelHeader header = new PanelHeader();
  header.addStyleName("small-header");
  header.setDataTarget("#" + this.target);
  header.setDataToggle(Toggle.COLLAPSE);
  header.setDataParent("#" + this.parentid);
  
  anchor = new Anchor();
  anchor.setIcon(IconType.FILTER);
  anchor.setText(facetId); 
  anchor.setIconSize(IconSize.LARGE);
  anchor.setDataToggle(Toggle.COLLAPSE);
  anchor.setDataTarget("#" + this.target);
  anchor.setDataParent("#" + this.parentid);
  
  header.add(anchor);
  return header;
}
 
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:19,代码来源:FacetSelector.java


示例2: createPanelHeader

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
static PanelHeader createPanelHeader(final PropertyEditorCategory category,
                                     final PanelGroup propertyMenu,
                                     PanelCollapse panelCollapse) {

    final Heading heading = new Heading(HeadingSize.H4);
    final Anchor anchor = GWT.create(Anchor.class);
    anchor.setText(category.getName());
    anchor.setDataToggle(Toggle.COLLAPSE);
    anchor.setDataParent(propertyMenu.getId());
    anchor.setDataTargetWidget(panelCollapse);
    anchor.addStyleName("collapsed");
    heading.add(anchor);

    final PanelHeader header = GWT.create(PanelHeader.class);
    header.add(heading);
    return header;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:PropertyEditorHelper.java


示例3: addContextGroupMenuItem

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
@Override
public void addContextGroupMenuItem(final String menuItemId,
                                    final String id,
                                    final String label,
                                    final MenuPosition position) {
    final ListDropDown listDropDown = GWT.create(ListDropDown.class);
    listDropDown.setStyleName("dropdown-submenu");
    final Anchor anchor = GWT.create(Anchor.class);
    anchor.addStyleName(Styles.DROPDOWN_TOGGLE);
    anchor.setDataToggle(Toggle.DROPDOWN);
    anchor.setText(label);
    final DropDownMenu dropDownMenu = GWT.create(DropDownMenu.class);
    listDropDown.add(anchor);
    listDropDown.add(dropDownMenu);
    positionMenuItem(listDropDown,
                     position);

    ComplexPanel contextContainer = getMenuItemContextWidgetMap().get(menuItemId);
    if (contextContainer == null) {
        contextContainer = getContextContainer(menuItemId);
    }
    contextContainer.add(listDropDown);

    getMenuItemContextWidgetMap().put(id,
                                      dropDownMenu);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:27,代码来源:WorkbenchMenuStandardNavBarView.java


示例4: createUpFolder

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
private void createUpFolder( final FolderItem item ) {
    int col = 0;
    navigator.setText( 0, col, "" );
    navigator.setText( 0, ++col, "" );

    final Anchor anchor = new Anchor();
    anchor.setIcon( IconType.LEVEL_UP );
    anchor.setIconSize( IconSize.LARGE );
    anchor.addClickHandler( new ClickHandler() {
        @Override
        public void onClick( ClickEvent event ) {
            presenter.onActiveFolderItemSelected( item );
        }
    } );
    navigator.setWidget( 0, ++col, anchor );

    navigator.setText( 0, ++col, "" );

    if ( options.showItemAge() ) {
        navigator.setText( 0, ++col, "" );
    }
    if ( options.showItemMessage() ) {
        navigator.setText( 0, ++col, "" );
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:26,代码来源:BreadcrumbNavigator.java


示例5: getPanelHeader

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
private PanelHeader getPanelHeader() {
    final PluginNotification me = this;
    PanelHeader header = new PanelHeader();
    header.addStyleName("small-header");
    header.setDataTarget("#" + this.target);
    header.setDataToggle(Toggle.COLLAPSE);
    header.setDataParent("#" + this.parentid);
    
    Anchor anchor = new Anchor();
    Plugin plugin = response.getPlugin();
    
//    int numsug = response.getSuggestedMetadata().keySet().size();
//    String summary = (numsug > 0 ) ? numsug + " suggestions" :
//      ( response.getMessage() != null ? "a message" : " some data");
    
    anchor.setIcon(IconType.fromStyleName(plugin.getIcon()));
    anchor.setColor("white");
    anchor.setText("Found some information from "+plugin.getName()); 
    anchor.setIconSize(IconSize.LARGE);
    anchor.setDataToggle(Toggle.COLLAPSE);
    anchor.setDataTarget("#" + this.target);
    anchor.setDataParent("#" + this.parentid);
    
    Anchor delanchor = new Anchor();
    delanchor.setIcon(IconType.REMOVE);
    delanchor.setPull(Pull.RIGHT);
    delanchor.setColor("white");
    delanchor.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        me.removeFromParent();
      }
    });
    
    header.add(anchor);
    header.add(delanchor);
    return header;
  }
 
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:39,代码来源:PluginNotification.java


示例6: createLink

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
private Widget createLink(final SimpleItemWidgetModel model) {
    final Anchor link = new Anchor();
    link.setText(model.getLinkText());
    link.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            model.getLinkCommand().execute(new LinkCommandParams(model.getEventType(),
                                                                 model.getLinkURI(),
                                                                 model.getLinkType())
                                                   .withLinkParams(model.getLinkParams()));
        }
    });
    return link;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:15,代码来源:SimpleItemWidget.java


示例7: createLink

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
private void createLink(final SocialItemExpandedWidgetModel model) {
    final UpdateItem updateItem = model.getUpdateItems().get(0);
    final Anchor link = new Anchor();
    link.setText(updateItem.getEvent().getLinkLabel());
    link.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            model.getModel().getLinkCommand().execute(new LinkCommandParams(updateItem.getEvent().getType(),
                                                                            updateItem.getEvent().getLinkTarget(),
                                                                            updateItem.getEvent().getLinkType())
                                                              .withLinkParams(updateItem.getEvent().getLinkParams()));
        }
    });
    desc.add(link);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:16,代码来源:SocialItemExpandedWidget.java


示例8: AbstractAnchorListItem

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
/**
 * Constructor.
 */
protected AbstractAnchorListItem() {
    anchor = new Anchor();
    anchor.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            delegateEvent(AbstractAnchorListItem.this, event);
        }
    });
    add(anchor, (Element) getElement());
}
 
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:14,代码来源:AbstractAnchorListItem.java


示例9: setValue

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
@Override
public void setValue(DocumentData value,
                     boolean fireEvents) {
    if (this.value == value) {
        return;
    }
    if (value == null || value.getStatus().equals(DocumentStatus.NEW) || !value.equals(this.value)) {

        this.value = value;

        linkContainer.clear();
        if (this.value != null) {

            Anchor link = new Anchor();
            link.setText(value.getFileName() + " (" + calculateSize() + ")");

            if (value.getLink() == null) {
                link.setEnabled(false);
                link.setHref("#");
                link.addClickHandler(event -> {
                    return;
                });
            } else {
                link.setHref(value.getLink());
                link.setTarget("_blank");
            }
            linkContainer.add(link);
        }

        if (fireEvents) {
            ValueChangeEvent.fire(this,
                                  this.value);
        }
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:36,代码来源:DocumentFieldRendererViewImpl.java


示例10: setupRootGallery

import org.gwtbootstrap3.client.ui.Anchor; //导入依赖的package包/类
private void setupRootGallery() {
    galleryRoot = new Div();
    galleryRoot.getElement().setId("blueimp-gallery");
    galleryRoot.getElement().setClassName("blueimp-gallery");
    galleryRoot.getElement().setAttribute("data-use-bootstrap-modal", "false");

    Div slides = new Div();
    slides.getElement().setClassName("slides");
    galleryRoot.add(slides);

    title = new Heading(HeadingSize.H3);
    title.getElement().setClassName("title");
    galleryRoot.add(title);

    prev = new Anchor("");
    prev.getElement().setClassName("prev");
    prev.setIcon(IconType.CARET_LEFT);
    galleryRoot.add(prev);

    next = new Anchor("");
    next.getElement().setClassName("next");
    next.setIcon(IconType.CARET_RIGHT);
    galleryRoot.add(next);

    close = new Anchor("");
    close.getElement().setClassName("close");
    close.setIcon(IconType.CLOSE);
    galleryRoot.add(close);

    indicator = new OrderedList();
    indicator.getElement().setClassName("indicator");
    galleryRoot.add(indicator);
}
 
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3-extras,代码行数:34,代码来源:Gallery.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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