Java Code Examples for org.openide.nodes.Sheet#createPropertiesSet()
The following examples show how to use
org.openide.nodes.Sheet#createPropertiesSet() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TableTupleNode.java From Llunatic with GNU General Public License v3.0 | 6 votes |
@Override protected Sheet createSheet() { logger.trace("Create tuple data: " + getName()); Sheet sheet = Sheet.createDefault(); Sheet.Set set = Sheet.createPropertiesSet(); sheet.put(set); List<Cell> tupleCells = tuple.getCells(); for (final Cell cell : tupleCells) { StringProperty property = new StringProperty(cell.getAttribute()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return cell.getValue().toString(); } //TODO: implement inplace editor @Override public boolean canWrite() { return true; } }; set.put(property); } return sheet; }
Example 2
Source File: PropertyPanelInDialogTest.java From netbeans with Apache License 2.0 | 6 votes |
protected Sheet createSheet() { sheet = super.createSheet(); // Make sure there is a "Properties" set: props = sheet.get(Sheet.PROPERTIES); if (props == null) { props = Sheet.createPropertiesSet(); sheet.put(props); } props.put(basicProp); props.put(tags1); props.put(tags2); props.put(tags3); props.put(booleanProp); props.put(customProp); return sheet; }
Example 3
Source File: OrderingAttributeNode.java From Llunatic with GNU General Public License v3.0 | 6 votes |
@Override protected Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set set = Sheet.createPropertiesSet(); sheet.put(set); set.put(new StringProperty(ASSOCIATED_ATTRINUTE, Bundle.COL_AssociatedAttribute()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return attrib.getAssociatedAttribute().toString(); } }); set.put(new StringProperty(SORT, Bundle.COL_Sort()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return attrib.getValueComparator().getSort(); } }); return sheet; }
Example 4
Source File: JmeAnimControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
@Override protected Sheet createSheet() { //TODO: multithreading.. Sheet sheet = Sheet.createDefault(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("AnimControl"); set.setName(AnimControl.class.getName()); if (animControl == null) { return sheet; } set.put(new AnimationProperty(animControl)); sheet.put(set); return sheet; }
Example 5
Source File: SheetTableTest.java From netbeans with Apache License 2.0 | 6 votes |
protected Sheet createSheet() { sheet = super.createSheet(); // Make sure there is a "Properties" set: props = sheet.get(Sheet.PROPERTIES); if (props == null) { props = Sheet.createPropertiesSet(); sheet.put(props); } props.put(tp); props.put(tp1); props.put(tp2); props.put(tp3); props.put(tp4); // props.put(tp5); return sheet; }
Example 6
Source File: EditableDisplayerTest.java From netbeans with Apache License 2.0 | 6 votes |
protected Sheet createSheet() { sheet = super.createSheet(); // Make sure there is a "Properties" set: props = sheet.get(Sheet.PROPERTIES); if (props == null) { props = Sheet.createPropertiesSet(); sheet.put(props); } props.put(basicProp); props.put(tags1); props.put(tags2); props.put(tags3); props.put(booleanProp); props.put(customProp); return sheet; }
Example 7
Source File: JmePicture.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
@Override protected Sheet createSheet() { //TODO: multithreading.. Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("Picture"); set.setName(Picture.class.getName()); Picture obj = geom;//getLookup().lookup(Spatial.class); if (obj == null) { return sheet; } // set.put(makeProperty(obj, String.class, "getText", "setText", "text")); sheet.put(set); return sheet; }
Example 8
Source File: JmeFXAAFilter.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
@Override protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("FXAA"); set.setName("FXAA"); FXAAFilter obj = (FXAAFilter) filter; if (obj == null) { return sheet; } createFields(FXAAFilter.class, set, obj); sheet.put(set); return sheet; }
Example 9
Source File: JmePointLight.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
@Override protected Sheet createSheet() { //TODO: multithreading.. Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("PointLight"); set.setName(PointLight.class.getName()); PointLight obj = pointLight;//getLookup().lookup(Spatial.class); if (obj == null) { return sheet; } set.put(makeProperty(obj, Vector3f.class, "getPosition", "setPosition", "Position")); set.put(makeProperty(obj, float.class, "getRadius", "setRadius", "Radius")); sheet.put(set); return sheet; }
Example 10
Source File: AbstractFilterNode.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("Filter"); set.setName("Filter"); Filter obj = filter; if (obj == null) { return sheet; } createFields(Filter.class, set, obj); sheet.put(set); return sheet; }
Example 11
Source File: MetadataElementInnerNode.java From snap-desktop with GNU General Public License v3.0 | 5 votes |
@Override protected final Sheet createSheet() { Sheet sheet = Sheet.createDefault(); Sheet.Set set = Sheet.createPropertiesSet(); sheet.put(set); return sheet; }
Example 12
Source File: PropertiesDataNode.java From netbeans with Apache License 2.0 | 5 votes |
@Override protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = new Sheet.Set(); set.setName("encoding"); //NOI18N set.setDisplayName(NbBundle.getMessage(PropertiesDataNode.class, "ENCODING_SET_Name")); if (set == null) { set = Sheet.createPropertiesSet(); sheet.put(set); } set.put(new ProjectEncodingProperty()); sheet.put(set); return sheet; }
Example 13
Source File: FindHelpTest.java From netbeans with Apache License 2.0 | 5 votes |
protected Sheet createSheet() { Sheet s = super.createSheet(); Sheet.Set ss = Sheet.createPropertiesSet(); ss.put(new WithHelpProperty("prop1", "row-help-1")); ss.put(new WithHelpProperty("prop2", "row-help-2")); ss.put(new WithHelpProperty("prop3", null)); s.put(ss); ss = Sheet.createExpertSet(); ss.put(new WithHelpProperty("prop4", "row-help-4")); ss.put(new WithHelpProperty("prop5", null)); s.put(ss); return s; }
Example 14
Source File: ProjectsView.java From netbeans with Apache License 2.0 | 5 votes |
private void setProperties () { Sheet sheet = Sheet.createDefault(); Sheet.Set ps = Sheet.createPropertiesSet(); ps.put(new LocalPathProperty()); sheet.put(ps); setSheet(sheet); }
Example 15
Source File: PropertiesSheet.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void initializeSheet(final Properties properties, Sheet s) { Sheet.Set set1 = Sheet.createPropertiesSet(); set1.setDisplayName("Properties"); for (final Property p : properties) { Node.Property<String> prop = new Node.Property<String>(String.class) { @Override public boolean canRead() { return true; } @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return p.getValue(); } @Override public boolean canWrite() { return false; } @Override public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { properties.setProperty(p.getName(), arg0); } }; prop.setName(p.getName()); set1.put(prop); } s.put(set1); }
Example 16
Source File: RevisionNode.java From netbeans with Apache License 2.0 | 5 votes |
private void initProperties() { Sheet sheet = Sheet.createDefault(); Sheet.Set ps = Sheet.createPropertiesSet(); ps.put(new RevisionProperty()); // XXX show only if VCS available ps.put(new UserProperty()); ps.put(entry.canEdit() ? new EditableMessageProperty() : new MessageProperty()); sheet.put(ps); setSheet(sheet); }
Example 17
Source File: ChaseTreeRoot.java From Llunatic with GNU General Public License v3.0 | 5 votes |
private Sheet.Set createSheetSet(final DeltaChaseStep step) { Sheet.Set set = Sheet.createPropertiesSet(); set.put(new StringProperty(Bundle.PROP_AllNodes()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return step.getNumberOfNodes() + ""; } }); set.put(new StringProperty(Bundle.PROP_AllLeaves()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return step.getNumberOfLeaves() + ""; } }); set.put(new StringProperty(Bundle.PROP_Solutions()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return chaseTreeSize.getSolutions(step) + ""; } }); set.put(new StringProperty(Bundle.PROP_GroundSolutions()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return chaseTreeSize.getGroundSolutions(step) + ""; } }); set.put(new StringProperty(Bundle.PROP_Duplicates()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return chaseTreeSize.getDuplicates(step) + ""; } }); set.put(new StringProperty(Bundle.PROP_Invalid()) { @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return chaseTreeSize.getInvalids(step) + ""; } }); return set; }
Example 18
Source File: PropertyMarkingTest.java From netbeans with Apache License 2.0 | 5 votes |
protected Sheet createSheet() { sheet = super.createSheet(); // Make sure there is a "Properties" set: props = sheet.get(Sheet.PROPERTIES); if (props == null) { props = Sheet.createPropertiesSet(); sheet.put(props); } props.put(tp); props.put(tp1); props.put(tp2); props.put(tp3); props.put(tp4); return sheet; }
Example 19
Source File: ComboTest.java From netbeans with Apache License 2.0 | 5 votes |
protected Sheet createSheet() { sheet = super.createSheet(); // Make sure there is a "Properties" set: props = sheet.get(Sheet.PROPERTIES); if (props == null) { props = Sheet.createPropertiesSet(); sheet.put(props); } props.put(tp); props.put(tp1); return sheet; }
Example 20
Source File: TagsAndEditorsTest.java From netbeans with Apache License 2.0 | 5 votes |
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); } for (int i=0; i < ed.length; i++) { props.put(new TProperty(this, ed[i], true)); } return sheet; }