ItsNatFreeComboBox freeCombo = (ItsNatFreeComboBox)compMgr.findItsNatComponentById("freeComboBoxId");
check(freeCombo);
((MutableComboBoxModel)freeCombo.getComboBoxModel()).addElement("Option 1");
((MutableComboBoxModel)freeCombo.getComboBoxModel()).addElement("Option 2");
ItsNatFreeListMultSel freeList = (ItsNatFreeListMultSel)compMgr.findItsNatComponentById("freeListId");
check(freeList);
((DefaultListModel)freeList.getListModel()).addElement("Option 1");
((DefaultListModel)freeList.getListModel()).addElement("Option 2");
// Tables
ItsNatHTMLTable table = (ItsNatHTMLTable)compMgr.findItsNatComponentById("tableId");
check(table);
((DefaultTableModel)table.getTableModel()).addColumn("Col 1");
((DefaultTableModel)table.getTableModel()).addColumn("Col 2");
((DefaultTableModel)table.getTableModel()).addRow(new String[]{"Item 1,1","Item 1,2"});
((DefaultTableModel)table.getTableModel()).addRow(new String[]{"Item 2,1","Item 2,2"});
ItsNatFreeTable freeTable = (ItsNatFreeTable)compMgr.findItsNatComponentById("freeTableId");
check(freeTable);
((DefaultTableModel)freeTable.getTableModel()).addColumn("Col 1");
((DefaultTableModel)freeTable.getTableModel()).addColumn("Col 2");
((DefaultTableModel)freeTable.getTableModel()).addRow(new String[]{"Item 1,1","Item 1,2"});
((DefaultTableModel)freeTable.getTableModel()).addRow(new String[]{"Item 2,1","Item 2,2"});
// Trees
ItsNatFreeTree freeTree = (ItsNatFreeTree)compMgr.findItsNatComponentById("freeTreeId");
check(freeTree);
((DefaultTreeModel)freeTree.getTreeModel()).setRoot(new DefaultMutableTreeNode("Free Tree"));
ItsNatFreeTree freeTreeRootless = (ItsNatFreeTree)compMgr.findItsNatComponentById("freeTreeRootlessId");
check(freeTreeRootless);
DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root (hidden)");
root.add(new DefaultMutableTreeNode("Free Tree Rootless"));
((DefaultTreeModel)freeTreeRootless.getTreeModel()).setRoot(root);
ItsNatFreeTree freeTreeTable = (ItsNatFreeTree)compMgr.findItsNatComponentById("freeTreeTableId");
check(freeTreeTable);
((DefaultTreeModel)freeTreeTable.getTreeModel()).setRoot(new DefaultMutableTreeNode("Free Tree Table"));
ItsNatHTMLForm form = (ItsNatHTMLForm)compMgr.findItsNatComponentById("formId");
check(form);
ItsNatFreeInclude freeInclude = (ItsNatFreeInclude)compMgr.findItsNatComponentById("freeIncludeId");
check(freeInclude);
LoginComponent customComp = (LoginComponent)compMgr.findItsNatComponentById("customCompId");
check(customComp);
ItsNatFreeListMultSel listCustomStruc = (ItsNatFreeListMultSel)compMgr.findItsNatComponentById("listCustomStructureId");
check(listCustomStruc);
check(listCustomStruc.getItsNatListStructure() instanceof CityListCustomStructure);
((DefaultListModel)listCustomStruc.getListModel()).addElement("Madrid");
((DefaultListModel)listCustomStruc.getListModel()).addElement("Barcelona");
compMgr.removeItsNatComponents(parentElem,true);// Disables/destroys all
if (adaptor != null) adaptor.setModeAuto(false);
}