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

Java Set类代码示例

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

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



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

示例1: getPropertySets

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
public PropertySet[] getPropertySets() {
    if (sheet != null) {
        return sheet.toArray();
    }
    try {
        sheet = Sheet.createDefault();
        Set ss = sheet.get(Sheet.PROPERTIES);
        final Reflection<String> cnb = new PropertySupport.Reflection<String>(this, String.class, "getCodeName", null); // NOI18N
        cnb.setDisplayName(NbBundle.getMessage(ClusterizeInfo.class, "MSG_ClusterizeCodeNameBase"));
        cnb.setName("cnb"); // NOI18N
        ss.put(cnb); // NOI18N
        final Reflection<ClusterizeAction> act = new PropertySupport.Reflection<ClusterizeAction>(this, ClusterizeAction.class, "action"); // NOI18N
        act.setDisplayName(NbBundle.getMessage(ClusterizeInfo.class, "MSG_ClusterizeActivateAs"));
        act.setName("action"); // NOI18N
        ss.put(act); // NOI18N
        final Reflection<Integer> count = new PropertySupport.Reflection<Integer>(this, Integer.class, "getSelectedFilesCount", null); // NOI18N
        count.setDisplayName(NbBundle.getMessage(ClusterizeInfo.class, "MSG_ClusterizeNumberOfModules"));
        count.setName("selectedFilesCount"); // NOI18N
        ss.put(act); // NOI18N
        return sheet.toArray();
    } catch (NoSuchMethodException ex) {
        throw new IllegalStateException(ex);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:26,代码来源:ClusterizeInfo.java


示例2: createSheet

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
protected Sheet createSheet() {
    Sheet sheet = Sheet.createDefault();
    Set set = sheet.get(Sheet.PROPERTIES);
    set.put(createProperty(PROP_NAME, String.class, this,
            "getHtmlDisplayName", null));
    if (canSelect()) {
        set.put(createProperty(PROP_SELECTED, Boolean.TYPE, this,
                "isSelected", "setSelected"));
   //     Node.Property prop = createProperty(PROP_PREFIX, String.class,
       //         this, "getPrefix", "setPrefix");
        // Suppress the [...] button because it is not needed.
    //    prop.setValue("suppressCustomEditor", Boolean.TRUE);
    //    set.put(prop);
    } /*else {
        // Do not include this property so the checkbox is not shown.
        //set.put(createProperty(PROP_SELECTED, Boolean.TYPE, this,
        //        "isSelected", null));
        Node.Property prop = createProperty(PROP_PREFIX, String.class,
                this, "getPrefix", null);
        // Suppress the [...] button because it is not needed.
        prop.setValue("suppressCustomEditor", Boolean.TRUE);
        set.put(prop);
    }*/
    return sheet;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:26,代码来源:ExternalReferenceDataNode.java


示例3: createSheet

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
    protected Sheet createSheet() {
        Sheet sheet = super.createSheet();
        Set set = Sheet.createPropertiesSet();
        set.put(new ElementAttributeProperty(project, item, "name"));
        set.put(new ElementNodeTextProperty(project, item, "description"));
        set.put(new ElementAttributeProperty(project, item, "categories"));
        set.put(new ElementAttributeProperty(project, item, "tags"));
        Element elem = XmlHelper.findChildElement(item, "license");
        if ((project.getLookup().lookup(AssetPackLibrary.class) != null) && (elem == null || elem.getTextContent().trim().length() <= 0)) {
            set.put(new ElementNodeTextProperty(project, (Element) item.getParentNode().getParentNode(), "license"));
        } else {
            set.put(new ElementNodeTextProperty(project, item, "license"));
        }
        set.put(new ElementAttributeProperty(project, item, "type", ASSET_TYPES));
//        set.put(new ElementAttributeProperty(project, item, "format", ASSET_FORMATS));
        sheet.put(set);
        return sheet;
    }
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:20,代码来源:AssetPackBrowserItem.java


示例4: createSheet

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
/**
 *  This is the function to create the sheet...
 * 
 */
@Override
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    
    Set set = sheet.get(Sheet.PROPERTIES);
    Property[] props = set.getProperties();
    
    // Remove all the properties...
    for (int i=0; i<props.length; ++i)
    {
        set.remove(props[i].getName());
    }
    // Add the missing properties...
    set.put(new ConditionExpressionProperty( getConditionalStyle(), jd));
    
    for (int i=0; i<props.length; ++i)
    {
        set.put(props[i]);
    }
    
    return sheet;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:ConditionalStyleNode.java


示例5: createSheet

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
/**
 *  This is the function to create the sheet...
 * 
 */
@Override
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    
    Set set = sheet.get(Sheet.PROPERTIES);
    Property[] props = set.getProperties();
    
    // Remove all the properties...
    for (int i=0; i<props.length; ++i)
    {
        set.remove(props[i].getName());
    }
    // Add the missing properties...
    set.put(new NameProperty( getDesignStyle(), jd));
    set.put(new DefaultStyleProperty( getDesignStyle(), jd));
    set.put(new ParentStyleProperty( getDesignStyle(), jd));
    
    for (int i=0; i<props.length; ++i)
    {
        set.put(props[i]);
    }
    
    return sheet;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:29,代码来源:StyleNode.java


示例6: createSheet

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    
    PropertySet[] sets = sheet.toArray();
    for (int i=0; i<sets.length; ++i)
    {
        sheet.remove(sets[i].getName());
    }


    Sheet.Set propertySet = Sheet.createPropertiesSet();
    propertySet.setName("AXIS_PROPERTIES");
    propertySet.setDisplayName(I18n.getString("Global.AxisProperties"));
    
    propertySet.put(new AxisPositionTypeProperty( chartAxis ));

    sheet.put(propertySet);

    for (int i=0; i<sets.length; ++i)
    {
        sheet.put((Set)sets[i]);
    }

    return sheet;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:AxisChartNode.java


示例7: categorize

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
void categorize(java.util.Set<String> autoload, java.util.Set<String> eager, java.util.Set<String> enabled) {
    if (Children.LEAF == getChildren()) {
        switch (state) {
            case ENABLED: enabled.add(path); return;
            case AUTOLOAD: autoload.add(path); return;
            case EAGER: eager.add(path); return;
        }
    } else {
        for (Node n : getChildren().getNodes()) {
            ClusterizeInfo ci = (ClusterizeInfo) n;
            ci.categorize(autoload, eager, enabled);
        }
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:ClusterizeInfo.java


示例8: createSheet

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    
    List<Set> cellPropertiesSets = CrosstabCellPropertiesFactory.getCrosstabCellPropertySets(cellContents, jd);
    
    for (Set s : cellPropertiesSets)
    {
        sheet.put(s);
    }
    
    return sheet;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:14,代码来源:CellNode.java


示例9: ParameterProperty

import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
public ParameterProperty(FormalParameters.Parameter parameter, Set set) {
    super(parameter.getName(), FormalParameters.Parameter.class, parameter.getName(), "Default value of parameter " + parameter.getName());

    this.parameter = parameter;
    this.set = set;
}
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:7,代码来源:ParameterProperty.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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