public java.beans.FeatureDescriptor getSelection() { return getProperty(); }
editor.setValue(getProperty().getValue()); } catch (Exception e) { result = PropUtils.findLocalizedMessage(exception, getEnteredValue(), getProperty().getDisplayName()); } else if (PropertyEnv.STATE_INVALID.equals(envState)) { EditablePropertyDisplayer.class, "FMT_CannotUpdateProperty", newValue,getProperty().getDisplayName()); //NOI18N
editor.setValue (getProperty().getValue()); } catch (Exception e) { getProperty().getDisplayName()); EditablePropertyDisplayer.class, "FMT_CannotUpdateProperty"), new Object[] {newValue, getProperty().getDisplayName()}); //NOI18N
public java.beans.FeatureDescriptor getSelection() { return getProperty(); }
public java.beans.FeatureDescriptor getSelection() { return getProperty(); }
public String toString() { StringBuffer sb = new StringBuffer("Inline editor for property "); //NOI18N sb.append(getProperty().getDisplayName()); sb.append(" = "); //NOI18N sb.append(getProperty()); sb.append(" inplace editor="); //NOI18N sb.append(getInplaceEditor()); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer("Inline editor for property "); //NOI18N sb.append(getProperty().getDisplayName()); sb.append(" = "); //NOI18N sb.append(getProperty()); sb.append(" inplace editor="); //NOI18N sb.append(getInplaceEditor()); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer("Inline editor for property "); //NOI18N sb.append(getProperty().getDisplayName()); sb.append(" = "); //NOI18N sb.append(getProperty()); sb.append(" inplace editor="); //NOI18N sb.append(getInplaceEditor()); return sb.toString(); }
public String getBeanName() { if (modelRef != null) { PropertyModel pm = modelRef.get(); if (pm instanceof NodePropertyModel) { return ((NodePropertyModel) pm).getBeanName(); } } if (getProperty() instanceof ModelProperty.DPMWrapper) { return ((ModelProperty.DPMWrapper) getProperty()).getBeanName(); } return findFeatureDescriptor(EditablePropertyDisplayer.this).getDisplayName(); }
public String getBeanName() { if (modelRef != null) { PropertyModel pm = (PropertyModel)modelRef.get(); if (pm instanceof NodePropertyModel) { return ((NodePropertyModel)pm).getBeanName(); } } if (getProperty() instanceof ModelProperty.DPMWrapper) { return ((ModelProperty.DPMWrapper) getProperty()).getBeanName(); } return findFeatureDescriptor(EditablePropertyDisplayer.this).getDisplayName(); }
public String getBeanName() { if (modelRef != null) { PropertyModel pm = (PropertyModel)modelRef.get(); if (pm instanceof NodePropertyModel) { return ((NodePropertyModel)pm).getBeanName(); } } if (getProperty() instanceof ModelProperty.DPMWrapper) { return ((ModelProperty.DPMWrapper) getProperty()).getBeanName(); } return findFeatureDescriptor(EditablePropertyDisplayer.this).getDisplayName(); }
public void valueChanged(PropertyEditor editor) { failed = false; try { // System.err.println("ValueChanged - new value " + editor.getValue()); if (getInplaceEditor() != null) { setEnteredValue(getProperty().getValue()); } else { //Handle case where our parent PropertyPanel is no longer showing, but //the custom editor we invoked still is. Issue 38004 PropertyModel mdl = (modelRef != null) ? modelRef.get() : null; if (mdl != null) { FeatureDescriptor fd = null; if (mdl instanceof ExPropertyModel) { fd = ((ExPropertyModel) mdl).getFeatureDescriptor(); } String title = null; if (fd != null) { title = fd.getDisplayName(); } failed = PropUtils.updateProp(mdl, editor, title); //XXX } } } catch (Exception e) { throw (IllegalStateException) new IllegalStateException("Problem setting entered value from custom editor").initCause(e); } }
PropertyEditor getPropertyEditor() { //package private for unit tests PropertyEditor result; if (editor != null) { return editor; } if (getInplaceEditor() != null) { result = getInplaceEditor().getPropertyEditor(); } else { result = PropUtils.getPropertyEditor(getProperty()); } editor = result; return result; }
PropertyEditor getPropertyEditor() { //package private for unit tests PropertyEditor result; if (editor != null) { return editor; } if (getInplaceEditor() != null) { result = getInplaceEditor().getPropertyEditor(); } else { result = PropUtils.getPropertyEditor(getProperty()); } editor = result; return result; }
PropertyEditor getPropertyEditor() { //package private for unit tests PropertyEditor result; if (editor != null) { return editor; } if (getInplaceEditor() != null) { result = getInplaceEditor().getPropertyEditor(); } else { result = PropUtils.getPropertyEditor(getProperty()); } editor = result; return result; }
public Object getEnteredValue() { Object result; if (getInplaceEditor() != null) { result = getInplaceEditor().getValue(); } else { if (cachedInitialValue != NO_VALUE) { result = cachedInitialValue; } else { PropertyEditor ed = PropUtils.getPropertyEditor(getProperty()); try { result = ed.getAsText(); } catch (ProxyNode.DifferentValuesException dve) { result = null; } } } return result; }
public Object getEnteredValue() { Object result; if (getInplaceEditor() != null) { result = getInplaceEditor().getValue(); } else { if (cachedInitialValue != NO_VALUE) { result = cachedInitialValue; } else { PropertyEditor ed = PropUtils.getPropertyEditor(getProperty()); try { result = ed.getAsText(); } catch (ProxyNode.DifferentValuesException dve) { result = null; } } } return result; }
public Object getEnteredValue() { Object result; if (getInplaceEditor() != null) { result = getInplaceEditor().getValue(); } else { if (cachedInitialValue != NO_VALUE) { result = cachedInitialValue; } else { PropertyEditor ed = PropUtils.getPropertyEditor(getProperty()); try { result = ed.getAsText(); } catch (ProxyNode.DifferentValuesException dve) { result = null; } } } return result; }
public void valueChanged(PropertyEditor editor) { failed = false; try { // System.err.println("ValueChanged - new value " + editor.getValue()); if (getInplaceEditor() != null) { setEnteredValue(getProperty().getValue()); } else { //Handle case where our parent PropertyPanel is no longer showing, but //the custom editor we invoked still is. Issue 38004 PropertyModel mdl = modelRef != null ? (PropertyModel)modelRef.get() : null; if (mdl != null) { FeatureDescriptor fd = null; if (mdl instanceof ExPropertyModel) { fd = ((ExPropertyModel)mdl).getFeatureDescriptor(); } String title = null; if (fd != null) { title = fd.getDisplayName(); } failed = PropUtils.updateProp(mdl, editor, title); //XXX } } } catch (Exception e) { IllegalStateException ise = new IllegalStateException("Problem setting entered value from custom editor"); ErrorManager.getDefault().annotate (ise, e); throw ise; } }
public void valueChanged(PropertyEditor editor) { failed = false; try { // System.err.println("ValueChanged - new value " + editor.getValue()); if (getInplaceEditor() != null) { setEnteredValue(getProperty().getValue()); } else { //Handle case where our parent PropertyPanel is no longer showing, but //the custom editor we invoked still is. Issue 38004 PropertyModel mdl = modelRef != null ? (PropertyModel)modelRef.get() : null; if (mdl != null) { FeatureDescriptor fd = null; if (mdl instanceof ExPropertyModel) { fd = ((ExPropertyModel)mdl).getFeatureDescriptor(); } String title = null; if (fd != null) { title = fd.getDisplayName(); } failed = PropUtils.updateProp(mdl, editor, title); //XXX } } } catch (Exception e) { IllegalStateException ise = new IllegalStateException("Problem setting entered value from custom editor"); ErrorManager.getDefault().annotate (ise, e); throw ise; } }