From 9c08ab0009a5b20df5bdcb9d965d84ad0582fb75 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 8 Jan 2008 12:19:25 +0000 Subject: [PATCH] added get/set config for event listener plugin: (must register new observers as well) --- tools/cooja/java/se/sics/cooja/plugins/EventListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/EventListener.java b/tools/cooja/java/se/sics/cooja/plugins/EventListener.java index 91124e67c..b4922fc3a 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/EventListener.java +++ b/tools/cooja/java/se/sics/cooja/plugins/EventListener.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: EventListener.java,v 1.5 2008/01/08 12:12:15 fros4943 Exp $ + * $Id: EventListener.java,v 1.6 2008/01/08 12:19:25 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -347,6 +347,7 @@ public class EventListener extends VisPlugin { JCheckBox checkBox = (JCheckBox) comp; if (checkBox.getText().equals(element.getText())) { checkBox.setSelected(true); + generalCheckBoxListener.actionPerformed(new ActionEvent(checkBox, ActionEvent.ACTION_PERFORMED, "")); } } } @@ -359,6 +360,7 @@ public class EventListener extends VisPlugin { JCheckBox checkBox = (JCheckBox) comp; if (checkBox.getText().equals(element.getText())) { checkBox.setSelected(true); + interfaceCheckBoxListener.actionPerformed(new ActionEvent(checkBox, ActionEvent.ACTION_PERFORMED, "")); } } }