17 package com.generalrobotix.ui.view.tdview;
19 import java.awt.event.ActionListener;
20 import java.awt.event.ActionEvent;
26 @SuppressWarnings(
"serial")
36 hidden_ =
new JToggleButton();
37 hidden_.setVisible(
false);
44 hidden_.addActionListener(listener);
48 hidden_.removeActionListener(listener);
52 hidden_.setSelected(
true);
57 public void add(AbstractButton button) {
58 button.addActionListener(
this);
62 public void remove(AbstractButton button) {
63 button.removeActionListener(
this);
70 if (evt.getSource() == prevButton_) {
72 SwingUtilities.invokeLater(
76 prevButton_ = hidden_;
81 prevButton_ = (AbstractButton)evt.getSource();