home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.ivb.jface.basic;
-
- import com.ibm.ivb.jface.parts.WorkbookPage;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.util.EventObject;
-
- class BasicWorkbookUI$ButtonHandler implements ActionListener {
- // $FF: synthetic field
- private final BasicWorkbookUI this$0;
-
- public void actionPerformed(ActionEvent var1) {
- Object var2 = ((EventObject)var1).getSource();
- if (var2 == this.this$0.right) {
- int var3 = this.this$0.wb.getPageCount();
- if (this.this$0.firstPage + 1 < var3) {
- ++this.this$0.firstPage;
- if (this.this$0.visiblePage != null && this.this$0.wb.getCurrentPageNumber() >= this.this$0.firstPage && this.this$0.wb.getCurrentPageNumber() <= this.this$0.lastPage) {
- this.this$0.wb.invalidate();
- this.this$0.wb.validate();
- this.this$0.wb.repaint();
- return;
- }
-
- WorkbookPage var4 = this.this$0.wb.getPageAt(this.this$0.firstPage);
- this.this$0.wb.showPage(var4);
- return;
- }
- } else if (var2 == this.this$0.left && this.this$0.firstPage > 0) {
- --this.this$0.firstPage;
- if (this.this$0.visiblePage != null && this.this$0.wb.getCurrentPageNumber() >= this.this$0.firstPage && this.this$0.wb.getCurrentPageNumber() <= this.this$0.lastPage) {
- this.this$0.wb.invalidate();
- this.this$0.wb.validate();
- this.this$0.wb.repaint();
- return;
- }
-
- WorkbookPage var5 = this.this$0.wb.getPageAt(this.this$0.firstPage);
- this.this$0.wb.showPage(var5);
- }
-
- }
-
- BasicWorkbookUI$ButtonHandler(BasicWorkbookUI var1) {
- this.this$0 = var1;
- this.this$0 = var1;
- }
- }
-