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) {
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; }