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


Java Sheet.Set方法代码示例

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


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

示例1: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
@Override
    protected Sheet createSheet() {
        Sheet sheet = super.createSheet();
        Sheet.Set props = new Sheet.Set();
        props.setDisplayName("Agent configuration");
        props.setName("AgentConfig");
        sheet.put(props);
/* TODO show props
        BoolBotParam[] vals = BoolBotParam.values();

        Property[] propArr = new Property[vals.length];
        for (int i = 0; i < vals.length; i++) {
            propArr[i] = new ConfigProp(vals[i]);
        }

        updatableProps.addAll(Arrays.asList(propArr));
        props.put(propArr);
*/
        return sheet;
    }
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:21,代码来源:UnrealAgentNode.java

示例2: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
/**
 * Update to this class
 * @return
 */
@Override
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    Sheet.Set props = sheet.get(Sheet.PROPERTIES);

    if (props == null) {
        props = Sheet.createPropertiesSet();
        sheet.put(props);
    }

    for (TLProperty property : folder.getProperties()) {
        TLProperyAdapter adapter = new TLProperyAdapter(property);
        props.put(adapter);
        propertyAdapters.add(adapter);
    }

    return sheet;
}
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:23,代码来源:TLFolderNode.java

示例3: addIncludedProperty

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected void addIncludedProperty( Sheet.Set ps ) {    
    ps.put(new PropertySupport.ReadWrite<Boolean> (
               PROP_INCLUDED,
               Boolean.TYPE,
               GenerateBeanInfoAction.getString ("PROP_Bi_" + PROP_INCLUDED ),
               GenerateBeanInfoAction.getString ("HINT_Bi_" + PROP_INCLUDED )
           ) {
               public Boolean getValue () {
                   return biFeature.isIncluded ();
               }
               public void setValue (Boolean val) throws
                   IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                   try {
                       biFeature.setIncluded ( val );
                       setIconBaseWithExtension( biFeature.getIconBase(false) + ".gif" );
                   } catch (ClassCastException e) {
                       throw new IllegalArgumentException ();
                   }
               }
           });
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:BiFeatureNode.java

示例4: createPropSet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected Sheet.Set createPropSet() {
    Sheet.Set propset = Sheet.createPropertiesSet();
    propset.setName("UnrealProps");
    propset.setDisplayName("Unreal Properties");

    // server map property
    // TODO how to dynamicaly update unrealProps sheet?

    propset.put(new MapProperty());

    return propset;
}
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:13,代码来源:UnrealServerNode.java

示例5: modifySheetSet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
/** Modifies the sheet set to contain name of property and name of
* original object.
*/
private void modifySheetSet (Sheet.Set ss) {
    Property p = ss.remove (DataObject.PROP_NAME);
    if (p != null) {
        p = new PropertySupport.Name (this);
        ss.put (p);

        p = new Name ();
        ss.put (p);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:BrokenDataShadow.java

示例6: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    // Make sure there is a "Properties" set:
    Sheet.Set props = sheet.get(Sheet.PROPERTIES);
    if (props == null) {
        props = Sheet.createPropertiesSet();
        sheet.put(props);
    }
    props.put(tp);
    return sheet;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:PropertySheetTest.java

示例7: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
@Override
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    Sheet.Set props = sheet.get(Sheet.PROPERTIES);
    if (props == null) {
        props = Sheet.createPropertiesSet();
        sheet.put(getLogRecordsSource().getPropSet());
    }
    return sheet;
}
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:11,代码来源:LogNode.java

示例8: changeSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
private void changeSheet(Sheet orig, SerialDataNode task) {
    Sheet.Set props = orig.get (Sheet.PROPERTIES);
    if (props != null) {
        convertProps (props, props.getProperties(), task);
    }

    props = orig.get(Sheet.EXPERT);
    if (props != null) {
        convertProps (props, props.getProperties(), task);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:SerialDataNode.java

示例9: 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

示例10: addEmulatorControls

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
private void addEmulatorControls(Sheet.Set defset) {
    if (!device.isEmulator()) {
        return;
    }

    for (final EmulatorControlSupport.Control ctrl : EmulatorControlSupport.Control.values()) {
        defset.put(new PropertySupport.ReadWrite<String>(
                ctrl.name(),
                String.class,
                ctrl.getDisplayName(),
                ctrl.getDescription()) {

            @Override
            public String getValue() throws IllegalAccessException, InvocationTargetException {
                return emulatorControl.getData(ctrl);
            }

            @Override
            public void setValue(String val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
                emulatorControl.setData(ctrl, val);
            }

            @Override
            public PropertyEditor getPropertyEditor() {
                return PropertyUtils.stringPropertyEditorWithTags(emulatorControl.getTags(ctrl));
            }
        });
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:30,代码来源:EmulatorDeviceNode.java

示例11: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    // Make sure there is a "Properties" set:
    Sheet.Set props = sheet.get(Sheet.PROPERTIES);
    if (props == null) {
        props = Sheet.createPropertiesSet();
        sheet.put(props);
    }
    TProperty tp = new TProperty("property", true);
    props.put(tp);
    return sheet;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:NodeDeletionTest.java

示例12: initProperties

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

    ps.put(nameProperty);
    ps.put(pathProperty);
    ps.put(new GitStatusProperty(this));

    sheet.put(ps);
    setSheet(sheet);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:GitStatusNode.java

示例13: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
protected Sheet createSheet() {
    Sheet sheet = super.createSheet();
    // Make sure there is a "Properties" set:
    Sheet.Set props = sheet.get(Sheet.PROPERTIES);
    if (props == null) {
        props = Sheet.createPropertiesSet();
        sheet.put(props);
    }
    props.put(new TProperty("before", true));
    return sheet;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:PropertiesFlushTest.java

示例14: createSheet

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
@Override
protected Sheet createSheet() {
    Sheet sheet = Sheet.createDefault();
    Sheet.Set ps = Sheet.createPropertiesSet ();
    int i, k = columns.length;
    for (i = 0; i < k; i++)
        ps.put (new MyProperty (columns [i], treeModelRoot));
    sheet.put (ps);
    return sheet;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:TreeModelNode.java

示例15: initProperties

import org.openide.nodes.Sheet; //导入方法依赖的package包/类
private void initProperties() {
    Sheet sheet = Sheet.createDefault();
    Sheet.Set ps = Sheet.createPropertiesSet();
    
    ps.put(new NameProperty());
    ps.put(new LocationProperty());
    ps.put(new StatusProperty());
    if (setup.getPropertyName() != null) {
        ps.put(new PropertyNameProperty());
    }
    
    sheet.put(ps);
    setSheet(sheet);        
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:DiffNode.java


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