private void changeSheet(Sheet orig, InstanceDataObject 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); } } private static Children getChildren (Object bean, InstanceDataObject task) {
@Override public void addExtraProperties(DataNode node, Sheet sheet) { DataObject dao = node.getDataObject(); CompileExecSupport ces = dao.getLookup().lookup(CompileExecSupport.class); if (ces != null) { Sheet.Set set = sheet.get(Sheet.PROPERTIES); ces.addProperties(set); } } }
/** Create the properties sheet for the node */ @Override protected Sheet createSheet() { // Just add properties to default property tab (they used to be in a special 'Building Tab') Sheet defaultSheet = super.createSheet(); Sheet.Set defaultSet = defaultSheet.get(Sheet.PROPERTIES); getSupport().addProperties(defaultSet); return defaultSheet; } }
/** Create the properties sheet for the node */ @Override protected Sheet createSheet() { // Just add properties to default property tab (they used to be in a special 'Building Tab') Sheet defaultSheet = super.createSheet(); Sheet.Set defaultSet = defaultSheet.get(Sheet.PROPERTIES); getSupport().addProperties(defaultSet); return defaultSheet; } }
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 static Set addSetIntoSheet(Sheet sheet, String name, String displayName) { Sheet.Set set = sheet.get(name); if (set == null) { set = new Sheet.Set(); set.setName(name); set.setDisplayName(displayName); // //ss.setExpert(); // // would like to set default expanded state too... // if (descr != null) { // ss.setShortDescription(descr); // } sheet.put(set); } return set; }
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; }
/** 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; }
sheet.get(designerPropertyDescriptor.getPropertyCategory()).put(property);
/** * */ protected Set getSheetSet(Sheet sheet, String name, String descr) { Set ss = sheet.get(name); if (ss == null) { ss = new Sheet.Set(); ss.setName(name); ss.setDisplayName(name); //ss.setExpert(); // would like to set default expanded state too... if (descr != null) ss.setShortDescription(descr); sheet.put(ss); } return ss; }
@Override protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = sheet.get(BinaryExecSupport.PROP_EXECUTION); if (set == null) { set = new Sheet.Set(); set.setName(BinaryExecSupport.PROP_EXECUTION); set.setDisplayName(NbBundle.getBundle(ExeNode.class). getString("displayNameForExeElfNodeExecSheet")); // NOI18N set.setShortDescription(NbBundle.getBundle(ExeNode.class). getString("hintForExeElfNodeExecSheet")); // NOI18N BinaryExecSupport es = (getCookie(BinaryExecSupport.class)); if (es != null) { es.addProperties(set); } sheet.put(set); } return sheet; } }
@Override protected Sheet createSheet() { Sheet s = Sheet.createDefault(); Set ss = s.get("general"); // NOI18N if (ss == null) { ss = new Sheet.Set(); ss.setName("general"); // NOI18N ss.setDisplayName(NbBundle.getMessage(Pin.class, "General")); // NOI18N ss.setShortDescription(NbBundle.getMessage(Pin.class, "GeneralHint")); // NOI18N s.put(ss); } Set gs = ss; try { PropertySupport.Reflection p = new Reflection<String>(pageContentItem, String.class, "getName", "setName"); // NOI18N p.setName("fromView"); // NOI18N p.setDisplayName(NbBundle.getMessage(Pin.class, "FromView")); // NOI18N p.setShortDescription(NbBundle.getMessage(Pin.class, "FromViewHint")); // NOI18N ss.put(p); p = new Reflection<String>(pageContentItem, String.class, "getFromOutcome", "setFromOutcome"); // NOI18N p.setName("fromOutcome"); // NOI18N p.setDisplayName(NbBundle.getMessage(Pin.class, "Outcome")); // NOI18N p.setShortDescription(NbBundle.getMessage(Pin.class, "OutcomeHint")); // NOI18N ss.put(p); } catch (NoSuchMethodException nsme) { ErrorManager.getDefault().notify(nsme); } return s; } }
protected Sheet createSheet () { Sheet orig; if (getDataObject ().getPrimaryFile ().hasExt ("ser") || // NOI18N getDataObject ().getPrimaryFile ().hasExt (XML_EXT)) { orig = new Sheet(); changeSheet (orig); } else { // just instance file, change here orig = super.createSheet (); Sheet.Set props = orig.get (Sheet.PROPERTIES); final InstanceCookie ic = ic(); if (ic == null) { props.put (new PropertySupport.ReadOnly ( "className", String.class, // NOI18N NbBundle.getMessage (InstanceDataObject.class, "PROP_instance_class"), // NOI18N NbBundle.getMessage (InstanceDataObject.class, "HINT_instance_class") // NOI18N ) { public Object getValue () { return ic.instanceName (); } }); } } isSheetCreated = true; return orig; }
@Override protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = sheet.get(BinaryExecSupport.PROP_EXECUTION); if (set == null) { set = new Sheet.Set(); set.setName(BinaryExecSupport.PROP_EXECUTION); set.setDisplayName(NbBundle.getBundle(CoreElfNode.class). getString("displayNameForExeElfNodeExecSheet")); // NOI18N set.setShortDescription(NbBundle.getBundle(CoreElfNode.class). getString("hintForExeElfNodeExecSheet")); // NOI18N BinaryExecSupport es = (getCookie(BinaryExecSupport.class)); if (es != null) { es.addProperties(set); } // Trick from org/apache/tools/ant/module/nodes/AntProjectNode.java // Get rid of Arguments property and the Execution property; // corefiles can only be debugged. set.remove(ExecutionSupport.PROP_FILE_PARAMS); set.remove(ExecutionSupport.PROP_EXECUTION); sheet.put(set); } return sheet; } }
@Override protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set basicProps = sheet.get(Sheet.PROPERTIES); try { PropertySupport.Reflection artifactId = new PropertySupport.Reflection<String>(art, String.class, "getArtifactId", null); //NOI18N
public Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set properties = sheet.get(Sheet.PROPERTIES); try { properties.put(new MachineProperty(String.class, PROP_NAME, "Name")); properties.put(new MachineProperty(String.class, PROP_YEAR, "Year")); properties.put(new MachineProperty(String.class, PROP_TYPE, "Type")); properties.put(new MachineProperty(String.class, PROP_STATUS, "Status")); properties.put(new MachineProperty(Double.class, PROP_LONGITUDE, "Longitude")); properties.put(new MachineProperty(Double.class, PROP_LATITUDE, "Latitude")); } catch (NoSuchMethodException ex) { Exceptions.printStackTrace(ex); } return sheet; }
protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Set set = sheet.get(Sheet.PROPERTIES); set.put(createProperty(PROP_NAME, String.class, this, "getHtmlDisplayName", null)); if (canSelect()) { set.put(createProperty(PROP_SELECTED, Boolean.TYPE, this, "isSelected", "setSelected")); Node.Property prop = createProperty(PROP_PREFIX, String.class, this, "getPrefix", "setPrefix"); // Suppress the [...] button because it is not needed. prop.setValue("suppressCustomEditor", Boolean.TRUE); set.put(prop); } else { // Do not include this property so the checkbox is not shown. //set.put(createProperty(PROP_SELECTED, Boolean.TYPE, this, // "isSelected", null)); Node.Property prop = createProperty(PROP_PREFIX, String.class, this, "getPrefix", null); // Suppress the [...] button because it is not needed. prop.setValue("suppressCustomEditor", Boolean.TRUE); set.put(prop); } return sheet; }
protected Sheet createSheet () { Sheet s = Sheet.createDefault (); Sheet.Set ss = s.get (Sheet.PROPERTIES); Node.Property p; p = createNameProperty (obj); ss.put (p); FileObject fo = getDataObject().getPrimaryFile(); if (couldBeTemplate(fo) && !fo.isReadOnly()) { try { p = new PropertySupport.Reflection(obj, Boolean.TYPE, "isTemplate", "setTemplate"); // NOI18N p.setName(DataObject.PROP_TEMPLATE); p.setDisplayName(DataObject.getString("PROP_template")); p.setShortDescription(DataObject.getString("HINT_template")); ss.put(p); } catch (Exception ex) { throw new InternalError(); } } if (fo.isData()) { ss.put(new AllFilesProperty()); ss.put(new SizeProperty()); ss.put(new LastModifiedProperty()); } return s; }
private void changeSheet (Sheet orig) { Sheet.Set props = orig.get (Sheet.PROPERTIES);