use of org.openide.nodes.Sheet.Set in project ACS by ACS-Community.
the class GPBeanNode method createSheet.
//
// -- PROTECTED METHODS -----------------------------------------------
//
/**
* Initialize a default
* property sheet; commonly overridden. If {@link #getSheet}
* is called and there is not yet a sheet,
* this method is called to allow a subclass
* to specify its properties.
* <P>
* <em>Warning:</em> Do not call <code>getSheet</code> in this method.
* <P>
* The default implementation returns an empty sheet.
*
* @return the sheet with initialized values (never <code>null</code>)
*/
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
// Make sure there is a "Properties" set:
// get by name, not display name
Set props = sheet.get(Sheet.PROPERTIES);
if (props == null) {
props = Sheet.createPropertiesSet();
sheet.put(props);
}
//props.put(new MyProp(someParams));
return sheet;
}