/** 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); }