use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.
the class DebuggerTab method panelDoClose.
public void panelDoClose(DetachablePanel panel) {
XJRotableToggleButton button = components2toggle.get(panel);
button.setSelected(false);
}
use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.
the class DebuggerTab method createToggleButton.
public XJRotableToggleButton createToggleButton(String title, final int tag, Component c) {
XJRotableToggleButton b = new XJRotableToggleButton(title);
b.setFocusable(false);
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
performToggleButtonAction(tag);
}
});
components2toggle.put(c, b);
return b;
}
use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.
the class DebuggerTab method close.
public void close() {
closing = true;
debuggerStop(true);
splitPanel.close();
controlPanel.close();
inputPanel.close();
outputPanel.close();
parseTreePanel.close();
astPanel.close();
stackPanel.close();
eventsPanel.close();
local.close();
recorder.close();
player.close();
parseTreeModel.close();
astModel.close();
for (XJRotableToggleButton b : components2toggle.values()) {
b.removeAllActionListeners();
}
delegate = null;
}
use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.
the class DebuggerTab method setComponentVisible.
public void setComponentVisible(Component c, boolean flag) {
c.setVisible(flag);
XJRotableToggleButton b = components2toggle.get(c);
b.setSelected(flag);
}
use of org.antlr.xjlib.appkit.swing.XJRotableToggleButton in project antlrworks by antlr.
the class DebuggerTab method panelDoAttach.
public void panelDoAttach(DetachablePanel panel) {
Component c = splitPanel.getComponentAtIndex(panel.getTag());
if (c != null) {
c.setVisible(false);
splitPanel.setComponent(null, panel.getTag());
XJRotableToggleButton button = components2toggle.get(c);
button.setSelected(false);
}
splitPanel.setComponent(panel, panel.getTag());
}
Aggregations