/** Mainly a hack to avoid gratuitous calls to fetch property editors. * @since 1.123.2.1 - branch propsheet_issue_29447 */ public PropertyEditor getPropertyEditor() { return PropUtils.getPropertyEditor(prop); }
/** Mainly a hack to avoid gratuitous calls to fetch property editors. * @since 1.123.2.1 - branch propsheet_issue_29447 */ public PropertyEditor getPropertyEditor() { return PropUtils.getPropertyEditor(prop); }
/** * Call getPropertyEditor(Node.Property, boolean) method with * <code>updateEditor</code> as true. * * @see #getPropertyEditor(org.openide.nodes.Node.Property, boolean) */ static PropertyEditor getPropertyEditor(Property p) { return getPropertyEditor(p, true); }
/** Mainly a hack to avoid gratuitous calls to fetch property editors. * @since 1.123.2.1 - branch propsheet_issue_29447 */ public PropertyEditor getPropertyEditor() { return PropUtils.getPropertyEditor(prop); }
public PropertyEditor getPropertyEditor () { return PropUtils.getPropertyEditor (getProperty()); }
public PropertyEditor getPropertyEditor () { return PropUtils.getPropertyEditor (getProperty()); }
@Override public void actionPerformed(ActionEvent ae) { int i = getSelectedRow(); if (i != -1) { FeatureDescriptor fd = getPropertySetModel().getFeatureDescriptor(i); if (fd instanceof Property) { java.beans.PropertyEditor ped = PropUtils.getPropertyEditor((Property) fd); System.err.println(ped.getClass().getName()); } else { System.err.println("PropertySets - no editor"); //NOI18N } } else { System.err.println("No selection"); //NOI18N } }
PropertyEditor getPropertyEditor() { //Package private for unit tests if (editor == null) { setPropertyEditor(PropUtils.getPropertyEditor(getProperty())); } return editor; }
public PropertyEditor getPropertyEditor() { Node.Property p = getProperty(); // #52179: PropUtils.isExternallyEdited(p) - don't affect just // externally edited properties or their current changes will be lost // due to the firing PropertyChangeEvents to theirs UI counterpart return PropUtils.getPropertyEditor(p, !PropUtils.isExternallyEdited(p)); }
PropertyEditor getPropertyEditor() { //Package private for unit tests if (editor == null) { setPropertyEditor(PropUtils.getPropertyEditor(getProperty())); } return editor; }
PropertyEditor getPropertyEditor() { //Package private for unit tests if (editor == null) { setPropertyEditor(PropUtils.getPropertyEditor(getProperty())); } return editor; }
public void actionPerformed (ActionEvent ae) { int i = getSelectedRow(); if (i != -1) { FeatureDescriptor fd = getPropertySetModel().getFeatureDescriptor (i); if (fd instanceof Property) { java.beans.PropertyEditor ped = PropUtils.getPropertyEditor((Property) fd); System.err.println(ped.getClass().getName()); } else { System.err.println("PropertySets - no editor"); //NOI18N } } else { System.err.println("No selection"); //NOI18N } } public boolean isEnabled () {
public void actionPerformed (ActionEvent ae) { int i = getSelectedRow(); if (i != -1) { FeatureDescriptor fd = getPropertySetModel().getFeatureDescriptor (i); if (fd instanceof Property) { java.beans.PropertyEditor ped = PropUtils.getPropertyEditor((Property) fd); System.err.println(ped.getClass().getName()); } else { System.err.println("PropertySets - no editor"); //NOI18N } } else { System.err.println("No selection"); //NOI18N } } public boolean isEnabled () {
/** Internal implementation of getPropertyEditor(). */ private PropertyEditor propertyEditor() { PropertyEditor result = null; if (displayer != null) { //Use the package private methods to fetch the same editor //being used by the displayer, so the state will be appropriate if (displayer instanceof CustomEditorDisplayer) { result = ((CustomEditorDisplayer) displayer).getPropertyEditor(); } else if (displayer instanceof EditablePropertyDisplayer) { result = ((EditablePropertyDisplayer) displayer).getPropertyEditor(); } } if (result == null) { //Fetch the property editor using the utility method (which will //handle no-property editor and multiple selection states //appropriately) result = PropUtils.getPropertyEditor(getProperty()); } 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; }
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; }
@Override protected Transferable createTransferable(JComponent c) { if (c instanceof SheetTable) { SheetTable table = (SheetTable) c; FeatureDescriptor fd = table.getSelection(); if (fd == null) { return null; } String res = fd.getDisplayName(); if (fd instanceof Node.Property) { Node.Property prop = (Node.Property) fd; res += ("\t" + PropUtils.getPropertyEditor(prop).getAsText()); } return new SheetTableTransferable(res); } return null; }
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; }