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


Java Sheet.createExpertSet方法代码示例

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


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

示例1: replaceSets

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
public void replaceSets() {
    Sheet sheet = new Sheet();
    Sheet.Set props = sheet.get(Sheet.PROPERTIES);
    if (props == null) {
        props = Sheet.createPropertiesSet();
    }
    props.put(new TProperty("after - first", true));
    sheet.put(props);
    props = sheet.get(Sheet.EXPERT);
    if (props == null) {
        props = Sheet.createExpertSet();
    }
    props.put(new TProperty("after - second", true));
    sheet.put(props);
    setSheet(sheet);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:17,代码来源:PropertiesFlushTest.java

示例2: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected Sheet createSheet() {
    Sheet s = super.createSheet();
    Sheet.Set ss = Sheet.createPropertiesSet();
    ss.put(new WithoutHelpProperty("prop1"));
    ss.put(new WithoutHelpProperty("prop2"));
    ss.put(new WithoutHelpProperty("prop3"));
    ss.setValue("tabName", "Tab 1");
    ss.setValue("helpID", "set-help-id");
    s.put(ss);
    ss = Sheet.createExpertSet();
    ss.put(new WithoutHelpProperty("prop4"));
    ss.put(new WithoutHelpProperty("prop5"));
    ss.setValue("tabName", "Tab 2");
    s.put(ss);
    return s;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:17,代码来源:FindHelpTest.java

示例3: addExpertEventSet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
void addExpertEventSet ( Sheet sheet ) {
    Sheet.Set ps = Sheet.createExpertSet();

    ps.put( BiNode.createProperty ( (BiFeature.EventSet)biFeature, Boolean.TYPE,
                                    PROP_UNICAST, 
                                    GenerateBeanInfoAction.getString ("PROP_Bi_" + PROP_UNICAST ),
                                    GenerateBeanInfoAction.getString ("HINT_Bi_" + PROP_UNICAST ),
                                    "isUnicast", null )); // NOI18N

    ps.put( BiNode.createProperty ( (BiFeature.EventSet)biFeature, Boolean.TYPE,
                                    PROP_IN_DEFAULT_EVENTSET, 
                                    GenerateBeanInfoAction.getString ("PROP_Bi_" + PROP_IN_DEFAULT_EVENTSET ),
                                    GenerateBeanInfoAction.getString ("HINT_Bi_" + PROP_IN_DEFAULT_EVENTSET ),
                                    "isInDefaultEventSet", "setInDefaultEventSet" )); // NOI18N

    sheet.put( ps );

}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:BiFeatureNode.java

示例4: SubNode

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
SubNode ( BiAnalyser biAnalyser, Class<?>[] keys, String titleKey, String iconBase,
          Node.Property[] properties, Node.Property[] expert ) {
    super ( new BiChildren (  biAnalyser, keys ) );
    setDisplayName (NbBundle.getBundle(BiNode.class).
                    getString (titleKey));
    setIconBaseWithExtension ( iconBase );
        
    this.biAnalyser = biAnalyser;
    this.key = keys[0];
    
    Sheet sheet = Sheet.createDefault();
    Sheet.Set ps = sheet.get(Sheet.PROPERTIES);

    for ( int i = 0; i < properties.length; i++ ) {
        ps.put( properties[i] );
    }
    
    if( expert != null ){                
        Sheet.Set eps = Sheet.createExpertSet();

        for ( int i = 0; i < expert.length; i++ ) {
            eps.put( expert[i] );
        }
        sheet.put(eps);
    }
    
    setSheet(sheet);

    getCookieSet().add ( this );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:31,代码来源:BiNode.java

示例5: addCustomizerProperty

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected void addCustomizerProperty( Sheet sheet ) {
    Sheet.Set ps = Sheet.createExpertSet();

      ps.put(new CodePropertySupportRW<String>(//PropertySupport.ReadWrite (
      //ps.put(new PropertySupport.ReadWrite (
           PROP_DISPLAY_NAME,
               String.class,
               GenerateBeanInfoAction.getString ("PROP_Bi_" + PROP_CUSTOMIZER ),
               GenerateBeanInfoAction.getString ("HINT_Bi_" + PROP_CUSTOMIZER )
           ) {
               public String getValue () {
                   String toRet = ((BiFeature.Descriptor)biFeature).getCustomizer() != null ? ((BiFeature.Descriptor)biFeature).getCustomizer() : "null"; // NOI18N
                   return toRet;
               }
               public void setValue (String val) throws
                   IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                   try {
                       if( "null".equals(val) ) // NOI18N
                            val = null;
                       ((BiFeature.Descriptor)biFeature).setCustomizer( val );
                   } catch (ClassCastException e) {
                       throw new IllegalArgumentException ();
                   }
               }
           });
    sheet.put( ps );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:28,代码来源:BiFeatureNode.java

示例6: createExpertSet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
private Sheet.Set createExpertSet(BeanNode.Descriptor descr, BeanDescriptor bd) {
    Sheet.Set p = Sheet.createExpertSet();
    convertProps (p, descr.expert, this);
    if (bd != null) {
        Object helpID = bd.getValue("expertHelpID"); // NOI18N
        if (helpID != null && helpID instanceof String) {
            p.setValue("helpID", helpID); // NOI18N
        }
    }
    return p;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:SerialDataNode.java


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