home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.AbstractButton;
- import com.sun.java.swing.JButton;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.ItemEvent;
- import java.awt.event.ItemListener;
- import java.util.EventObject;
-
- class DebugGraphicsPanel$DebugGraphicsListener implements ItemListener, ActionListener {
- // $FF: synthetic field
- private final DebugGraphicsPanel this$0;
- boolean repaintButton;
- boolean repaintRadio;
- boolean repaintCheck;
- boolean repaintSlider;
- boolean repaintScrollBar;
-
- public void actionPerformed(ActionEvent var1) {
- if (((EventObject)var1).getSource() instanceof JButton) {
- if (this.repaintButton) {
- this.this$0.button.repaint();
- }
-
- if (this.repaintRadio) {
- this.this$0.radio.repaint();
- }
-
- if (this.repaintCheck) {
- this.this$0.check.repaint();
- }
-
- if (this.repaintSlider) {
- this.this$0.slider.repaint();
- }
-
- if (this.repaintScrollBar) {
- this.this$0.scrollbar.repaint();
- }
- }
-
- }
-
- public void itemStateChanged(ItemEvent var1) {
- AbstractButton var2 = (AbstractButton)((EventObject)var1).getSource();
- String var3 = var2.getText();
- if (var3.equals("Button")) {
- if (var2.isSelected()) {
- this.this$0.button.setDebugGraphicsOptions(2);
- this.repaintButton = true;
- } else {
- this.this$0.button.setDebugGraphicsOptions(-1);
- this.repaintButton = false;
- }
- } else if (var3.equals("RadioButton")) {
- if (var2.isSelected()) {
- this.this$0.radio.setDebugGraphicsOptions(2);
- this.repaintRadio = true;
- } else {
- this.this$0.radio.setDebugGraphicsOptions(-1);
- this.repaintRadio = false;
- }
- } else if (var3.equals("Checkbox")) {
- if (var2.isSelected()) {
- this.this$0.check.setDebugGraphicsOptions(2);
- this.repaintCheck = true;
- } else {
- this.this$0.check.setDebugGraphicsOptions(-1);
- this.repaintCheck = false;
- }
- } else if (var3.equals("Slider")) {
- if (var2.isSelected()) {
- this.this$0.slider.setDebugGraphicsOptions(2);
- this.repaintSlider = true;
- } else {
- this.this$0.slider.setDebugGraphicsOptions(-1);
- this.repaintSlider = false;
- }
- } else {
- if (var3.equals("ScrollBar")) {
- if (var2.isSelected()) {
- this.this$0.scrollbar.setDebugGraphicsOptions(2);
- this.repaintScrollBar = true;
- return;
- }
-
- this.this$0.scrollbar.setDebugGraphicsOptions(-1);
- this.repaintScrollBar = false;
- }
-
- }
- }
-
- DebugGraphicsPanel$DebugGraphicsListener(DebugGraphicsPanel var1) {
- this.this$0 = var1;
- this.this$0 = var1;
- this.repaintButton = false;
- this.repaintRadio = false;
- this.repaintCheck = false;
- this.repaintSlider = false;
- this.repaintScrollBar = false;
- }
- }
-