- add global name and enabled parameters for filters

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent b1ef1e92c7
commit 83ba0ac987
  1. 17
      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.AbstractNode;
import org.openide.nodes.Children; import org.openide.nodes.Children;
import org.openide.nodes.Node; import org.openide.nodes.Node;
import org.openide.nodes.Sheet;
import org.openide.util.Exceptions; import org.openide.util.Exceptions;
import org.openide.util.actions.SystemAction; import org.openide.util.actions.SystemAction;
@ -106,6 +107,22 @@ public abstract class AbstractFilterNode extends AbstractNode implements FilterN
return null; 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 * @param saveCookie the saveCookie to set
*/ */

Loading…
Cancel
Save