From 83ba0ac987a5635b42e7ad06736ff0dd2d0c4160 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 26 Jun 2011 12:24:32 +0000 Subject: [PATCH] - add global name and enabled parameters for filters git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../gde/core/filters/AbstractFilterNode.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/AbstractFilterNode.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/AbstractFilterNode.java index 055155e31..cbf874520 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/AbstractFilterNode.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/filters/AbstractFilterNode.java @@ -41,6 +41,7 @@ import org.openide.loaders.DataObject; import org.openide.nodes.AbstractNode; import org.openide.nodes.Children; import org.openide.nodes.Node; +import org.openide.nodes.Sheet; import org.openide.util.Exceptions; import org.openide.util.actions.SystemAction; @@ -106,6 +107,22 @@ public abstract class AbstractFilterNode extends AbstractNode implements FilterN return null; } + @Override + protected Sheet createSheet() { + Sheet sheet = super.createSheet(); + Sheet.Set set = Sheet.createPropertiesSet(); + set.setDisplayName("Filter"); + set.setName(Node.class.getName()); + Filter obj = filter; + if (obj == null) { + return sheet; + } + set.put(makeProperty(obj, float.class, "getName", "setName", "Name")); + set.put(makeProperty(obj, boolean.class, "setEnabled", "isEnabled", "Enabled")); + sheet.put(set); + return sheet; + + } /** * @param saveCookie the saveCookie to set */