pclistener.detach();
public void removeNotify() { Node lastSel = null; if (pclistener != null) { //Save the last selection - if we're being transiently removed, //i.e. because of drag and drop, we'll want to reset it on the //next addNotify if it hasn't disappeared lastSel = pclistener.detach(); } doSetNodes(null); if (lastSel != null) { //Save the selected node in case we're re-added to a container storedNode = new WeakReference(lastSel); } super.removeNotify(); table.getReusablePropertyEnv().setBeans(null); table.getReusablePropertyEnv().setNode(null); table.getReusablePropertyModel().setProperty(null); }
@Override public void removeNotify() { Node lastSel = null; if (pclistener != null) { //Save the last selection - if we're being transiently removed, //i.e. because of drag and drop, we'll want to reset it on the //next addNotify if it hasn't disappeared lastSel = pclistener.detach(); } doSetNodes(null); if (lastSel != null) { //Save the selected node in case we're re-added to a container storedNode = new WeakReference<Node>(lastSel); } super.removeNotify(); table.getReusablePropertyEnv().setBeans(null); table.getReusablePropertyEnv().setNode(null); table.getReusablePropertyModel().setProperty(null); }
/** Attach to a node, detaching from the last one if non-null. */ public void attach(Node n) { if (currNode != n) { if (currNode != null) { detach(); } if (n != null) { n.addPropertyChangeListener(inner); n.addNodeListener(this); if (PropUtils.isLoggable(PropertySheet.class)) { PropUtils.log (PropertySheet.class, "Now listening for changes on " + n); } } currNode = n; } }
/** Attach to a node, detaching from the last one if non-null. */ public void attach(Node n) { if (currNode != n) { if (currNode != null) { detach(); } if (n != null) { n.addPropertyChangeListener(inner); n.addNodeListener(this); if (PropUtils.isLoggable(PropertySheet.class)) { PropUtils.log (PropertySheet.class, "Now listening for changes on " + n); } } currNode = n; } }
public void removeNotify() { Node lastSel = null; if (pclistener != null) { //Save the last selection - if we're being transiently removed, //i.e. because of drag and drop, we'll want to reset it on the //next addNotify if it hasn't disappeared lastSel = pclistener.detach(); } doSetNodes(null); if (lastSel != null) { //Save the selected node in case we're re-added to a container storedNode = new WeakReference(lastSel); } super.removeNotify(); table.getReusablePropertyEnv().setBeans(null); table.getReusablePropertyEnv().setNode(null); table.getReusablePropertyModel().setProperty(null); }
/** Attach to a node, detaching from the last one if non-null. */ public void attach(Node n) { if (currNode != n) { if (currNode != null) { detach(); } if (n != null) { n.addPropertyChangeListener(inner); n.addNodeListener(this); if (PropUtils.isLoggable(PropertySheet.class)) { PropUtils.log(PropertySheet.class, "Now listening for changes on " + n); } } currNode = n; } }
@Override public void nodeDestroyed(final org.openide.nodes.NodeEvent ev) { if (ev.getNode() == currNode) { detach(); Mutex.EVENT.readAccess( new Runnable() { public void run() { if (currNode == null) { doSetNodes(null); } } }); } }
public void nodeDestroyed(org.openide.nodes.NodeEvent ev) { detach(); Mutex.EVENT.readAccess(new Runnable() { public void run() { doSetNodes(null); } }); }
public void nodeDestroyed(org.openide.nodes.NodeEvent ev) { detach(); Mutex.EVENT.readAccess(new Runnable() { public void run() { doSetNodes(null); } }); }