}
}
};
itsNatDoc.addEventListener(global); // Comment this sentence to show errors in technical form
ItsNatComponentManager compMgr = itsNatDoc.getItsNatComponentManager();
compMgr.setSelectionOnComponentsUsesKeyboard(!BrowserUtil.isMobileBrowser(request));
Document doc = itsNatDoc.getDocument();
this.titleElement = doc.getElementById("titleId");
this.featureTitleElement = doc.getElementById("featureTitleId");
this.joystickModeCheck = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("mainTreeJoystickModeId");
joystickModeCheck.setSelected(joystickModePreferred);
joystickModeCheck.getToggleButtonModel().addItemListener(this);
Element tabsParent = doc.getElementById("tabsParentId");
this.tabsCombo = compMgr.createItsNatFreeComboBox(tabsParent, null, null);
tabsCombo.setJoystickMode(joystickModeCheck.isSelected());
DefaultComboBoxModel tabsModel = (DefaultComboBoxModel)tabsCombo.getComboBoxModel();
tabsModel.addElement(new NameValue("Example ",new Integer(FeatureTreeNode.EXAMPLE_PANEL)));
tabsModel.addElement(new NameValue("Source Code ",new Integer(FeatureTreeNode.CODE_PANEL)));
tabsModel.addElement(new NameValue("Explanation ",new Integer(FeatureTreeNode.DOC_PANEL)));
ItsNatListUI tabsComboUI = tabsCombo.getItsNatListUI();
this.exampleTab = tabsComboUI.getElementAt(0);
this.codeTab = tabsComboUI.getElementAt(1);
this.docTab = tabsComboUI.getElementAt(2);
this.exampleTabLink = (HTMLAnchorElement)ItsNatTreeWalker.getFirstChildElement(exampleTab);
this.codeTabLink = (HTMLAnchorElement)ItsNatTreeWalker.getFirstChildElement(codeTab);
this.docTabLink = (HTMLAnchorElement)ItsNatTreeWalker.getFirstChildElement(docTab);
Element treeElem = doc.getElementById("examplesTreeId");
this.tree = compMgr.createItsNatFreeTree(treeElem,null);
tree.setJoystickMode(joystickModeCheck.isSelected());
this.include = compMgr.createItsNatFreeInclude(doc.getElementById("featureBoxId"),null);
buildMainTree();
SelectFeatureFromURL.selectFeatureNode(this,request);