本文整理汇总了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;
}
示例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;
}
示例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 ();
}
}
});
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
示例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);
}
}
示例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 );
}
示例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));
}
});
}
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}