boolean res = adjusted;
oObj.removeAdjustmentListener(listener);
adjusted = false;
adjustScrollBar();
res &= !adjusted;
tRes.tested("addAdjustmentListener()", res);
}
publicvoid _removeAdjustmentListener() { //this method is checked in addAdjustmentListener //so that method is required here and if it works //this method is given OK too
requiredMethod("addAdjustmentListener()");
tRes.tested("removeAdjustmentListener()", true);
}
publicvoid _setSpinIncrement() {
oObj.setSpinIncrement(15);
oObj.setSpinIncrement(5); int bi = oObj.getSpinIncrement();
tRes.tested("setSpinIncrement()",bi==5);
}
publicvoid _getSpinIncrement() { //this method is checked in the corresponding set method //so that method is required here and if it works //this method is given OK too
requiredMethod("setSpinIncrement()");
tRes.tested("getSpinIncrement()", true);
}
publicvoid _setMaximum() {
oObj.setMaximum(490);
oObj.setMaximum(480); int max = oObj.getMaximum();
tRes.tested("setMaximum()",max==480);
}
publicvoid _getMaximum() { //this method is checked in the corresponding set method //so that method is required here and if it works //this method is given OK too
requiredMethod("setMaximum()");
tRes.tested("getMaximum()", true);
}
publicvoid _setMinimum() {
oObj.setMinimum(90);
oObj.setMinimum(80); int max = oObj.getMinimum();
tRes.tested("setMinimum()",max==80);
}
publicvoid _getMinimum() { //this method is checked in the corresponding set method //so that method is required here and if it works //this method is given OK too
requiredMethod("setMinimum()");
tRes.tested("getMinimum()", true);
}
publicvoid _setOrientation() { boolean res = true; try {
oObj.setOrientation(ScrollBarOrientation.HORIZONTAL);
oObj.setOrientation(ScrollBarOrientation.VERTICAL);
} catch (com.sun.star.lang.NoSupportException e) {
log.println("Couldn't set Orientation");
} int ori = oObj.getOrientation();
res &= (ori==ScrollBarOrientation.VERTICAL);
tRes.tested("setOrientation()",res );
}
publicvoid _getOrientation() { //this method is checked in the corresponding set method //so that method is required here and if it works //this method is given OK too
requiredMethod("setOrientation()");
tRes.tested("getOrientation()", true);
}
publicvoid _setValue() {
oObj.setMaximum(600);
oObj.setValue(480);
oObj.setValue(520); int val = oObj.getValue();
tRes.tested("setValue()",val==520);
}
publicvoid _getValue() { //this method is checked in the corresponding set method //so that method is required here and if it works //this method is given OK too
requiredMethod("setValue()");
tRes.tested("getValue()", true);
}
publicvoid _setValues() {
oObj.setValues(80, 200, 180);
oObj.setValues(70, 210, 200); int val = oObj.getValue(); int min = oObj.getMinimum(); int max = oObj.getMaximum();
tRes.tested("setValues()",((min==70) && (max==210) && (val==200)));
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.