public void scrollToMaximum(final ComponentOperator oper, int orientation) {
((JSliderOperator)oper).setValue(((JSliderOperator)oper).getMaximum());
}
protected void step(ComponentOperator oper, ScrollAdjuster adj) {
JSliderOperator scroll = (JSliderOperator)oper;
int newValue = -1;
if(adj.getScrollDirection() == adj.DECREASE_SCROLL_DIRECTION) {
newValue = (scroll.getValue() > scroll.getMinimum() +
getUnitIncrement(scroll)) ?
scroll.getValue() - getUnitIncrement(scroll) :
scroll.getMinimum();
} else if(adj.getScrollDirection() == adj.INCREASE_SCROLL_DIRECTION) {
newValue = (scroll.getValue() < scroll.getMaximum() -
getUnitIncrement(scroll)) ?
scroll.getValue() + getUnitIncrement(scroll) :
scroll.getMaximum();
}
setValue(oper, newValue);
}