/** * Creates a PropertyEnv instance for given feature descriptor (property) * and beans (nodes). To be used for initializing property editors not * managed by the property sheet classes. * @param fd Feature descritor that describes the property. * @param beans Objects that the edited property belongs to (typically its node). * @return the created PropertyEnv instance * @since 6.39 */ public static PropertyEnv create(FeatureDescriptor fd, Object... beans) { PropertyEnv env = new PropertyEnv(); env.setFeatureDescriptor(fd); env.setBeans(beans); return env; }
/** Factory method that returns an appropriate inplace * editor for an object. Special handling is provided for * instances of Node.Property which can provide hints or * even their own legacy inplace editor implementation. * <P>The returned instance will be connected to the * object (the component provided by getComponent() will * render the property object correctly with no additional * intervention needed. If <code>newInstance</code> is * true, will create a new instance of the inplace editor * component (for use with PropertyPanel and other cases * where multiple inplace esditors can be displayed at the * same time); otherwise a shared instance will be configured * and returned.<P> Note that for the case of unknown object * types (non Node.Property objects), the returned InplaceEditor * will have no way of knowing how to update the object with * a new value, and client code must listen for actions on * the InplaceEditor and do this manually - the update method * of the InplaceEditor will do nothing. */ public InplaceEditor getInplaceEditor(Property p, boolean newInstance) { PropertyEnv env = new PropertyEnv(); env.setBeans(reusableEnv.getBeans()); return getInplaceEditor(p, env, newInstance); }
/** Factory method that returns an appropriate inplace * editor for an object. Special handling is provided for * instances of Node.Property which can provide hints or * even their own legacy inplace editor implementation. * <P>The returned instance will be connected to the * object (the component provided by getComponent() will * render the property object correctly with no additional * intervention needed. If <code>newInstance</code> is * true, will create a new instance of the inplace editor * component (for use with PropertyPanel and other cases * where multiple inplace esditors can be displayed at the * same time); otherwise a shared instance will be configured * and returned.<P> Note that for the case of unknown object * types (non Node.Property objects), the returned InplaceEditor * will have no way of knowing how to update the object with * a new value, and client code must listen for actions on * the InplaceEditor and do this manually - the update method * of the InplaceEditor will do nothing. */ public InplaceEditor getInplaceEditor (Property p, boolean newInstance) { PropertyEnv env = new PropertyEnv(); env.setBeans (reusableEnv.getBeans()); return getInplaceEditor(p, env, newInstance); }
/** Factory method that returns an appropriate inplace * editor for an object. Special handling is provided for * instances of Node.Property which can provide hints or * even their own legacy inplace editor implementation. * <P>The returned instance will be connected to the * object (the component provided by getComponent() will * render the property object correctly with no additional * intervention needed. If <code>newInstance</code> is * true, will create a new instance of the inplace editor * component (for use with PropertyPanel and other cases * where multiple inplace esditors can be displayed at the * same time); otherwise a shared instance will be configured * and returned.<P> Note that for the case of unknown object * types (non Node.Property objects), the returned InplaceEditor * will have no way of knowing how to update the object with * a new value, and client code must listen for actions on * the InplaceEditor and do this manually - the update method * of the InplaceEditor will do nothing. */ public InplaceEditor getInplaceEditor (Property p, boolean newInstance) { PropertyEnv env = new PropertyEnv(); env.setBeans (reusableEnv.getBeans()); return getInplaceEditor(p, env, newInstance); }
PropertyEnv env = new PropertyEnv();
PropertyEnv env = new PropertyEnv();
PropertyEnv env = new PropertyEnv();
env = new PropertyEnv(); env.setFeatureDescriptor(findFeatureDescriptor(this)); ((ExPropertyEditor) editor).attachEnv(env);
detachFromEnv(myEnv); env = new PropertyEnv(); env.setFeatureDescriptor(findFeatureDescriptor(this)); ((ExPropertyEditor)editor).attachEnv(env);
"ExPropertyEditor, attaching a PropertyEnv"); //NOI18N env = new PropertyEnv(); env.setFeatureDescriptor(fd); if (invoker instanceof SheetTable) {
detachFromEnv(myEnv); env = new PropertyEnv(); env.setFeatureDescriptor(findFeatureDescriptor(this)); ((ExPropertyEditor)editor).attachEnv(env);
"ExPropertyEditor, attaching a PropertyEnv"); //NOI18N env = new PropertyEnv(); env.setFeatureDescriptor(fd); if (invoker instanceof SheetTable) {
env = new PropertyEnv(); env.setFeatureDescriptor(fd);
private InplaceEditor createInplaceEditor () { PropertyEnv env = new PropertyEnv(); env.setFeatureDescriptor(findFeatureDescriptor(this));
private InplaceEditor createInplaceEditor () { PropertyEnv env = new PropertyEnv(); env.setFeatureDescriptor(findFeatureDescriptor(this));
private InplaceEditor createInplaceEditor() { PropertyEnv env = new PropertyEnv(); env.setFeatureDescriptor(findFeatureDescriptor(this));
tempEnv = new PropertyEnv(); detachFromEnv(env);
if (env != null) { tempEnv = new PropertyEnv(); detachFromEnv(env);
if (env != null) { tempEnv = new PropertyEnv(); detachFromEnv(env);