home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import java.beans.PropertyVetoException;
- import javax.swing.AbstractAction;
- import javax.swing.JComponent;
- import javax.swing.JInternalFrame;
-
- class BasicDesktopPaneUI$PreviousAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicDesktopPaneUI this$0;
-
- private BasicDesktopPaneUI$PreviousAction(BasicDesktopPaneUI var1) {
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- BasicDesktopPaneUI.access$100(this.this$0);
- BasicDesktopPaneUI.access$210();
- if (BasicDesktopPaneUI.access$200() < 0) {
- BasicDesktopPaneUI.access$202(BasicDesktopPaneUI.access$300().size() - 1);
- }
-
- JComponent var2 = (JComponent)BasicDesktopPaneUI.access$300().elementAt(BasicDesktopPaneUI.access$200());
- if (var2 instanceof JInternalFrame) {
- JInternalFrame var3 = (JInternalFrame)var2;
-
- try {
- var3.setSelected(true);
- this.this$0.desktopManager.activateFrame(var3);
- } catch (PropertyVetoException var7) {
- }
- } else if (var2 instanceof JInternalFrame.JDesktopIcon) {
- JInternalFrame.JDesktopIcon var8 = (JInternalFrame.JDesktopIcon)var2;
- JInternalFrame var4 = var8.getInternalFrame();
-
- try {
- var4.setSelected(true);
- this.this$0.desktopManager.activateFrame(var4);
- } catch (PropertyVetoException var6) {
- }
- }
-
- }
-
- public boolean isEnabled() {
- return true;
- }
-
- // $FF: synthetic method
- BasicDesktopPaneUI$PreviousAction(BasicDesktopPaneUI var1, BasicDesktopPaneUI.1 var2) {
- this(var1);
- }
- }
-