1 14 package org.wings; 15 16 import org.wings.plaf.ScrollBarCG; 17 18 22 public class SScrollBar 23 extends SAbstractAdjustable 24 { 25 boolean marginVisisble; 26 boolean stepVisisble; 27 boolean blockVisisble; 28 29 47 public SScrollBar(int orientation, int value, int extent, int min, int max) { 48 super(value, extent, min, max); 49 setOrientation(orientation); 50 } 51 52 62 public SScrollBar(int orientation) { 63 this(orientation, 0, 10, 0, 100); 64 } 65 66 67 76 public SScrollBar() { 77 this(SConstants.VERTICAL); 78 } 79 80 public boolean isMarginVisisble() { 81 return marginVisisble; 82 } 83 84 public void setMarginVisisble(boolean marginVisisble) { 85 this.marginVisisble = marginVisisble; 86 } 87 88 public boolean isStepVisisble() { 89 return stepVisisble; 90 } 91 92 public void setStepVisisble(boolean stepVisisble) { 93 this.stepVisisble = stepVisisble; 94 } 95 96 public boolean isBlockVisisble() { 97 return blockVisisble; 98 } 99 100 public void setBlockVisisble(boolean blockVisisble) { 101 this.blockVisisble = blockVisisble; 102 } 103 104 public void setCG(ScrollBarCG cg) { 105 super.setCG(cg); 106 } 107 108 public String toString() { 109 return "SScrollBar[orientation=" + ((orientation == SConstants.HORIZONTAL) ? "horizontal" : "vertical") + "]"; 110 } 111 } 112 | Popular Tags |