home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import javax.swing.event.ListSelectionEvent;
- import javax.swing.event.ListSelectionListener;
-
- public class BasicListUI$ListSelectionHandler implements ListSelectionListener {
- // $FF: synthetic field
- private final BasicListUI this$0;
-
- public BasicListUI$ListSelectionHandler(BasicListUI var1) {
- this.this$0 = var1;
- }
-
- public void valueChanged(ListSelectionEvent var1) {
- this.this$0.maybeUpdateLayoutState();
- int var2 = this.this$0.convertRowToY(var1.getFirstIndex());
- int var3 = this.this$0.convertRowToY(var1.getLastIndex());
- if (var2 != -1 && var3 != -1) {
- var3 += this.this$0.getRowHeight(var1.getLastIndex());
- this.this$0.list.repaint(0, var2, this.this$0.list.getWidth(), var3 - var2);
- } else {
- this.this$0.list.repaint(0, 0, this.this$0.list.getWidth(), this.this$0.list.getHeight());
- }
-
- }
- }
-