/** Getter for the state of the property editor. The editor can be in * not valid states just if it implements the <link>ExPropertyEditor</link> * and changes state by the <code>setState</code> method of the <link>PropertyEnv</link> * environment. * <P> * @return <code>PropertyEnv.STATE_VALID</code> if the editor is not the <code>ExPropertyEditor</code> * one or other constant from <code>PropertyEnv.STATE_*</code> that was assigned to <code>PropertyEnv</code> * @since 2.20 */ public final Object getState() { if ((displayer != null) && displayer instanceof PropertyDisplayer_Editable) { return ((PropertyDisplayer_Editable) displayer).getPropertyEnv().getState(); } else { PropertyEditor ed = propertyEditor(); if (ed instanceof ExPropertyEditor) { //XXX until we kill ReusablePropertyModel, anyway ReusablePropertyEnv env = reusableEnv; reusableModel.setProperty(prop); ((ExPropertyEditor) ed).attachEnv(env); return env.getState(); } } return PropertyEnv.STATE_VALID; }
/** Getter for the state of the property editor. The editor can be in * not valid states just if it implements the <link>ExPropertyEditor</link> * and changes state by the <code>setState</code> method of the <link>PropertyEnv</link> * environment. * <P> * @return <code>PropertyEnv.STATE_VALID</code> if the editor is not the <code>ExPropertyEditor</code> * one or other constant from <code>PropertyEnv.STATE_*</code> that was assigned to <code>PropertyEnv</code> * @since 2.20 */ public final Object getState () { if (displayer != null && displayer instanceof PropertyDisplayer_Editable) { return ((PropertyDisplayer_Editable) displayer).getPropertyEnv().getState(); } else { PropertyEditor ed = propertyEditor(); if (ed instanceof ExPropertyEditor) { //XXX until we kill ReusablePropertyModel, anyway ReusablePropertyEnv env = reusableEnv; reusableModel.setProperty(prop); ((ExPropertyEditor) ed).attachEnv(env); return env.getState(); } } return PropertyEnv.STATE_VALID; }
/** Getter for the state of the property editor. The editor can be in * not valid states just if it implements the <link>ExPropertyEditor</link> * and changes state by the <code>setState</code> method of the <link>PropertyEnv</link> * environment. * <P> * @return <code>PropertyEnv.STATE_VALID</code> if the editor is not the <code>ExPropertyEditor</code> * one or other constant from <code>PropertyEnv.STATE_*</code> that was assigned to <code>PropertyEnv</code> * @since 2.20 */ public final Object getState () { if (displayer != null && displayer instanceof PropertyDisplayer_Editable) { return ((PropertyDisplayer_Editable) displayer).getPropertyEnv().getState(); } else { PropertyEditor ed = propertyEditor(); if (ed instanceof ExPropertyEditor) { //XXX until we kill ReusablePropertyModel, anyway ReusablePropertyEnv env = reusableEnv; reusableModel.setProperty(prop); ((ExPropertyEditor) ed).attachEnv(env); return env.getState(); } } return PropertyEnv.STATE_VALID; }
((env.getState() == env.STATE_INVALID) || (prop.getValue("valueIcon") != null))
prop.getValue("suppressCustomEditor")); //NOI18N if (!(result instanceof JLabel) && (env.getState() == env.STATE_INVALID || prop.getValue("valueIcon") != null)) {//NOI18N result = prepareIconPanel(editor, env, (InplaceEditor) result);
prop.getValue("suppressCustomEditor")); //NOI18N if (!(result instanceof JLabel) && (env.getState() == env.STATE_INVALID || prop.getValue("valueIcon") != null)) {//NOI18N result = prepareIconPanel(editor, env, (InplaceEditor) result);