public void propertyChange(PropertyChangeEvent pce) { if (updating) { return; } updating = true; try { boolean success = PropUtils.updateProp(mdl, editor, title); if (success) { invoker.valueChanged(editor); } else if( !pdm.wasCancelled() ) { //don't bother if custom editor was cancelled invoker.failed(); } } finally { updating = false; } } });
public void windowClosed(WindowEvent e) { if (pdm.getComponent() instanceof EnhancedCustomPropertyEditor) { if (!pdm.wasCancelled() && !closedOption && pdm.wasOK() && !pdm.wasReset()) { try { invoker.valueChanged(pdm.getEditor()); } catch (Exception ex) { //do nothing } } } invoker.editorClosed(); w.removeWindowListener(this); if (pcl != null) { editor.removePropertyChangeListener(pcl); } // customEditing=false; }
public void windowClosed(WindowEvent e) { if (pdm.getComponent() instanceof EnhancedCustomPropertyEditor) { if (!pdm.wasCancelled() && !closedOption && !pdm.wasOK() && !pdm.wasReset()) { try { //Enhanced custom property editors don't trigger property changes, so try to force it pdm.getEditor().setValue(((EnhancedCustomPropertyEditor) pdm.getComponent()).getPropertyValue()); invoker.valueChanged(pdm.getEditor()); } catch (Exception ex) { //do nothing } } } invoker.editorClosed(); w.removeWindowListener (this); if (pcl != null) { editor.removePropertyChangeListener(pcl); } // customEditing=false; } public void windowOpened(WindowEvent e) {
public void windowClosed(WindowEvent e) { if (pdm.getComponent() instanceof EnhancedCustomPropertyEditor) { if (!pdm.wasCancelled() && !closedOption && !pdm.wasOK() && !pdm.wasReset()) { try { //Enhanced custom property editors don't trigger property changes, so try to force it pdm.getEditor().setValue(((EnhancedCustomPropertyEditor) pdm.getComponent()).getPropertyValue()); invoker.valueChanged(pdm.getEditor()); } catch (Exception ex) { //do nothing } } } invoker.editorClosed(); w.removeWindowListener (this); if (pcl != null) { editor.removePropertyChangeListener(pcl); } // customEditing=false; } public void windowOpened(WindowEvent e) {