m_EditorComponent.updateChildPropertySheet();
m_EditorComponent.updateChildPropertySheet();
if (m_Object != null) { updateObjectNames(); updateChildPropertySheet();
if (m_Object != null) { updateObjectNames(); updateChildPropertySheet();
/** * Sets the current Object. * * @param c a value of type 'Object' */ protected void setObject(Object c) { // This should really call equals() for comparison. boolean trueChange; if (getValue() != null) { trueChange = (!c.equals(getValue())); } else { trueChange = true; } m_Backup = m_Object; m_Object = c; if (m_EditorComponent != null) { m_EditorComponent.updateChildPropertySheet(); } if (trueChange) { m_Support.firePropertyChange("", null, null); } }
/** * Sets the current Object. * * @param c a value of type 'Object' */ protected void setObject(Object c) { // This should really call equals() for comparison. boolean trueChange; if (getValue() != null) { trueChange = (!c.equals(getValue())); } else { trueChange = true; } m_Backup = m_Object; m_Object = c; if (m_EditorComponent != null) { m_EditorComponent.updateChildPropertySheet(); } if (trueChange) { m_Support.firePropertyChange("", null, null); } }
@Override public void actionPerformed(ActionEvent e) { m_ChildPropertySheet.closingCancel(); m_CancelWasPressed = true; if (m_Backup != null) { m_Object = copyObject(m_Backup); // To fire property change m_Support.firePropertyChange("", null, null); m_ObjectNames = getClassesFromProperties(); updateObjectNames(); updateChildPropertySheet(); } if ((getTopLevelAncestor() != null) && (getTopLevelAncestor() instanceof Window)) { Window w = (Window) getTopLevelAncestor(); w.dispose(); } } });
@Override public void actionPerformed(ActionEvent e) { m_ChildPropertySheet.closingCancel(); m_CancelWasPressed = true; if (m_Backup != null) { m_Object = copyObject(m_Backup); // To fire property change m_Support.firePropertyChange("", null, null); m_ObjectNames = getClassesFromProperties(); updateObjectNames(); updateChildPropertySheet(); } if ((getTopLevelAncestor() != null) && (getTopLevelAncestor() instanceof Window)) { Window w = (Window) getTopLevelAncestor(); w.dispose(); } } });