InfoLine* InfoPage::createLine(String text) { InfoLine* el = new InfoLine(text, 1); el->setParent(this); el->setDisplay(&*display); addElemenet(el); return el; }
void InfoPage::print() { display->clearDisplay(); display->setCursor(0,0); for(int i=0; i< mChildren.size(); i++){ InfoLine* child = mChildren.get(i); child->print(); } }
Vector<paramStruct*> InfoPage::getAllParamsForId(String id) { Vector<paramStruct*> ret; for (int i = 0; i < mChildren.size(); ++i) { InfoLine* l = mChildren.elementAt(i); paramStruct* p = l->getParamById(id); if ( p != NULL) { ret.add(p); } } return ret; }
void InfoPage::print() { display->clearDisplay(); // debugf("print,3.2 "); display->setCursor(0,0); for(int i=0; i< mChildren.size(); i++){ // debugf("print,3.3 - %i ", i); InfoLine* child = mChildren.get(i); child->print(); // debugf("print,3.4 - %i ", i); } // debugf("print,3.6 "); }