/** *Createsanentrytosearchfor,ifthecurrentobjectdoesnotprovide *one.Inthiscase,theenvironmentisdisposedafterthetest,since *theinsertedobjectmayinfluencefollowingtests. *
*/
@Override protectedvoid before() {
Object o = tEnv.getObjRelation("SEARCHSTRING"); if (o != null) {
mSearchString = (String)o;
} // use object relation for XSearchable
o = tEnv.getObjRelation("XSearchable.MAKEENTRYINCELL"); if (o != null) {
XCell[] cells = new XCell[0]; if (o instanceof XCell) {
cells = new XCell[]{(XCell)o};
} elseif (o instanceof XCell[]) {
cells = (XCell[])o;
} else {
log.println("Needed object relation 'XSearchable.MAKEENTRYINCELL' is there, but is of type '"
+ o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead.");
} for (int i=0; i<cells.length; i++) {
cells[i].setFormula(mSearchString);
}
mDispose = true;
}
}
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.