/** Convenience method to create new sheet with only one empty set, named {@link #PROPERTIES}. * Display name and hint are settable via the appropriate bundle. * * @return a new sheet with default property set */ public static Sheet createDefault() { Sheet newSheet = new Sheet(); // create default property set newSheet.put(createPropertiesSet()); return newSheet; }
/** Prepare node properties based on the bean, storing them into the current property sheet. * Called when the bean info is ready. * This implementation always creates a set for standard properties * and may create a set for expert ones if there are any. * @see #computeProperties * @param bean bean to compute properties for * @param info information about the bean */ protected void createProperties(T bean, BeanInfo info) { Descriptor d = computeProperties(bean, info); Sheet sets = getSheet(); Sheet.Set pset = Sheet.createPropertiesSet(); pset.put(d.property); BeanDescriptor bd = info.getBeanDescriptor(); if ((bd != null) && (bd.getValue("propertiesHelpID") != null)) { // NOI18N pset.setValue("helpID", bd.getValue("propertiesHelpID")); // NOI18N } sets.put(pset); if (d.expert.length != 0) { Sheet.Set eset = Sheet.createExpertSet(); eset.put(d.expert); if ((bd != null) && (bd.getValue("expertHelpID") != null)) { // NOI18N eset.setValue("helpID", bd.getValue("expertHelpID")); // NOI18N } sets.put(eset); } }
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; }
@Override protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set[] sets = getPropertySheetSets(); for(Sheet.Set set : sets){ sheet.put(set); } return sheet; }
@Override protected final Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set set = Sheet.createPropertiesSet(); sheet.put(set); return sheet; }
@Override protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set[] sets = getPropertySheetSets(); for(Sheet.Set set : sets){ sheet.put(set); } return sheet; }
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; }
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; }
@Override protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set[] sets = getPropertySheetSets(); for(Sheet.Set set : sets){ sheet.put(set); } return sheet; }
protected Sheet createSheet() { Sheet result = super.createSheet(); Sheet.Set set = result.createPropertiesSet(); set.put(new DataSourceURLProperty()); result.put(set); return result; }
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; }
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; }
private void setProperties () { Sheet sheet = Sheet.createDefault(); Sheet.Set ps = Sheet.createPropertiesSet(); ps.put(new LocalPathProperty()); sheet.put(ps); setSheet(sheet); }
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; }
/** Creates property sheet. Ovrrides superclass method. */ protected Sheet createSheet() { Sheet s = super.createSheet(); Sheet.Set ss = s.get(Sheet.PROPERTIES); if (ss == null) { ss = Sheet.createPropertiesSet(); s.put(ss); } ss.put(new ThumbnailProperty(getDataObject())); return s; }
@Override protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set set = Sheet.createPropertiesSet(); set.put(new IdProp()); set.put(new StateProp()); set.put(new ValidProp()); sheet.put(set); return sheet; }
private void initProperties() { if (node.getFile().isDirectory()) setIconBaseWithExtension("org/openide/loaders/defaultFolder.gif"); // NOI18N Sheet sheet = Sheet.createDefault(); Sheet.Set ps = Sheet.createPropertiesSet(); ps.put(new NameProperty()); ps.put(new PathProperty()); ps.put(new StatusProperty()); ps.put(new BranchProperty()); sheet.put(ps); setSheet(sheet); }
private void initProperties() { Sheet sheet = Sheet.createDefault(); Sheet.Set ps = Sheet.createPropertiesSet(); ps.put(new NameProperty()); ps.put(new LocationProperty()); ps.put(new StatusProperty()); sheet.put(ps); setSheet(sheet); }
public Sheet getRequiredProjectsSheet(Project project, MakeConfiguration conf) { Sheet sheet = new Sheet(); String[] texts = new String[]{getString("ProjectsTxt1"), getString("ProjectsHint"), getString("ProjectsTxt2"), getString("AllOptionsTxt2")}; Sheet.Set set2 = new Sheet.Set(); set2.setName("Projects"); // NOI18N set2.setDisplayName(getString("ProjectsTxt1")); set2.setShortDescription(getString("ProjectsHint")); set2.put(new RequiredProjectsNodeProp(getRequiredProjectsConfiguration(), project, conf, getBaseFSPath(), texts)); sheet.put(set2); return sheet; }
public Sheet getSheet() { Sheet sheet = new Sheet(); Sheet.Set set = new Sheet.Set(); set.setName("Compile"); // NOI18N set.setDisplayName(getString("CompileTxt")); // NOI18N set.setShortDescription(getString("CompileHint")); // NOI18N set.put(new ComboStringNodeProp(getCompileCommandWorkingDir(), true, getString("CompileWorkingDirectory_LBL"), getString("CompileWorkingDirectory_TT"))); // NOI18N set.put(new ComboStringNodeProp(getCompileCommand(), true, getString("CompileCommandLine_LBL"), getString("CompileCommandLine_TT"))); // NOI18N sheet.put(set); return sheet; }