private void endElement() { qName = pullParser.getName(); this.elementStack.pop(); if (ELEMENT_NAME_RULE.equals(qName)) { this.ruleStack.pop(); if (this.ruleStack.empty()) { if (isVisible(this.currentRule)) { this.renderTheme.addRule(this.currentRule); } } else { this.currentRule = this.ruleStack.peek(); } } else if ("stylemenu".equals(qName)) { // when we are finished parsing the menu part of the file, we can get the // categories to render from the initiator. This allows the creating action // to select which of the menu options to choose if (null != this.xmlRenderTheme.getMenuCallback()) { // if there is no callback, there is no menu, so the categories will be null this.categories = this.xmlRenderTheme.getMenuCallback().getCategories(this.renderThemeStyleMenu); } return; } }
private void endElement() { qName = pullParser.getName(); this.elementStack.pop(); if (ELEMENT_NAME_RULE.equals(qName)) { this.ruleStack.pop(); if (this.ruleStack.empty()) { if (isVisible(this.currentRule)) { this.renderTheme.addRule(this.currentRule); } } else { this.currentRule = this.ruleStack.peek(); } } else if ("stylemenu".equals(qName)) { // when we are finished parsing the menu part of the file, we can get the // categories to render from the initiator. This allows the creating action // to select which of the menu options to choose if (null != this.xmlRenderTheme.getMenuCallback()) { // if there is no callback, there is no menu, so the categories will be null this.categories = this.xmlRenderTheme.getMenuCallback().getCategories(this.renderThemeStyleMenu); } return; } }