org.openide.nodes.AbstractNode.createSheet()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(23)

本文整理了Java中org.openide.nodes.AbstractNode.createSheet()方法的一些代码示例,展示了AbstractNode.createSheet()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractNode.createSheet()方法的具体详情如下:
包路径:org.openide.nodes.AbstractNode
类名称:AbstractNode
方法名:createSheet

AbstractNode.createSheet介绍

[英]Initialize a default property sheet; commonly overridden. If #getSheetis called and there is not yet a sheet, this method is called to allow a subclass to specify its properties.

Warning: Do not call getSheet in this method.

The default implementation returns an empty sheet.
[中]初始化默认属性表;通常被覆盖。如果调用了#GetSheets,但还没有工作表,则调用此方法以允许子类指定其属性。
*警告:*不要在此方法中调用getSheet
默认实现返回一个空工作表。

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-nodes

/** Get the current property sheet. If the sheet has been
 * previously set by a call to {@link #setSheet}, that sheet
 * is returned. Otherwise {@link #createSheet} is called.
 *
 * @return the sheet (never <code>null</code>)
 */
protected final synchronized Sheet getSheet() {
  if (sheet != null) {
    return sheet;
  }
  Sheet s = createSheet();
  if (s == null) {
    // #150503
    throw new IllegalStateException("createSheet returns null in " + this.getClass().getName()); // NOI18N
  }
  setSheetImpl(s);
  return s;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Get the current property sheet. If the sheet has been
 * previously set by a call to {@link #setSheet}, that sheet
 * is returned. Otherwise {@link #createSheet} is called.
 *
 * @return the sheet (never <code>null</code>)
 */
protected final synchronized Sheet getSheet () {
  if (sheet != null)
    return sheet;
  setSheetImpl(createSheet());
  return sheet;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Get the current property sheet. If the sheet has been
 * previously set by a call to {@link #setSheet}, that sheet
 * is returned. Otherwise {@link #createSheet} is called.
 *
 * @return the sheet (never <code>null</code>)
 */
protected final synchronized Sheet getSheet () {
  if (sheet != null)
    return sheet;
  setSheetImpl(createSheet());
  return sheet;
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-vmd-properties

@Override
public Sheet createSheet() {
  if (component.get() == null || view.get() == null) {
    return super.createSheet();
  }
  Sheet sheet =  PropertiesNodesManager.getInstance(view.get()).getSheet(component.get());
  if (sheet == null) {
    sheet = super.createSheet();
  }
  return sheet;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

protected Sheet createSheet () {
Sheet sheet = super.createSheet ();
  Sheet.Set[] computedSet = computePropertySets();
  for (int i = 0; i < computedSet.length; i++) {
    sheet.put(computedSet[i]);
  }
  return sheet;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

protected Sheet createSheet () {
Sheet sheet = super.createSheet ();
  Sheet.Set[] computedSet = computePropertySets();
  for (int i = 0; i < computedSet.length; i++) {
    sheet.put(computedSet[i]);
  }
  return sheet;
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

protected Sheet createSheet() {
  Sheet sheet = super.createSheet();
  Sheet.Set[] computedSet = computePropertySets();
  for (int i = 0; i < computedSet.length; i++) {
    sheet.put(computedSet[i]);
  }
  return sheet;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-dataconnectivity

protected Sheet createSheet() {
  Sheet result = super.createSheet();
  Sheet.Set set = result.createPropertiesSet();
  set.put(new DataSourceURLProperty());
  result.put(set);
  return result;
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

protected Sheet createSheet() {
  Sheet sheet = super.createSheet();
  Sheet.Set props = sheet.get(Sheet.PROPERTIES);
  if (props == null) {
    props = Sheet.createPropertiesSet();
    sheet.put(props);
  }
  props.put(new ValueProp());
  return sheet;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-jboss4

public Sheet createSheet(){
  Sheet sheet = super.createSheet();
  Sheet.Set properties = sheet.get(Sheet.PROPERTIES);
  if (properties == null) {

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

protected Sheet createSheet () {
  Sheet sheet = super.createSheet ();
  Sheet.Set props = sheet.get (Sheet.PROPERTIES);
  if (props == null) {
    props = Sheet.createPropertiesSet ();
    sheet.put (props);
  }
  props.put (new ValueProp());
  return sheet;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

protected Sheet createSheet () {
  Sheet sheet = super.createSheet ();
  Sheet.Set props = sheet.get (Sheet.PROPERTIES);
  if (props == null) {
    props = Sheet.createPropertiesSet ();
    sheet.put (props);
  }
  props.put (new ValueProp());
  return sheet;
}

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = Sheet.createPropertiesSet();
  Property name = new PropertySupport.ReadOnly<String>("Name", String.class, "Name", "Name of the description") {
    @Override
    public String getValue() throws IllegalAccessException, InvocationTargetException {
      return description.getName();
    }
  };
  Property baudrate = new PropertySupport.ReadOnly<Integer>("Baudrate", Integer.class, "Baudrate", "Predefined baudrate on the bus") {
    @Override
    public Integer getValue() throws IllegalAccessException, InvocationTargetException {
      return description.getBaudrate();
    }
  };
  set.put(name);
  set.put(baudrate);
  s.put(set);
  return s;
}

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = s.createPropertiesSet();

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = s.createPropertiesSet();

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = s.createPropertiesSet();

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = s.createPropertiesSet();

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = Sheet.createPropertiesSet();

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = Sheet.createPropertiesSet();

代码示例来源:origin: dschanoeh/Kayak

@Override
protected Sheet createSheet() {
  Sheet s = super.createSheet();
  Sheet.Set set = s.createPropertiesSet();

相关文章

最新文章

更多