@Test(expected = IllegalArgumentException.class) public void testGetIndexOfChild_ParentNull() { this.model.getIndexOfChild(null, null); }
@Override public int getIndexOfChild(final Object parentNode, final Object childNode) { if (parentNode == this.getRoot()) { return CollectionUtil.indexOfInstance(this.languageModels.keySet(), childNode); } throw new IllegalArgumentException(); }
LanguageTreeModel extends AbstractTreeTableModel { @Override public int getIndexOfChild(final Object parentNode, final Object childNode) { if (parentNode == this.getRoot()) { return CollectionUtil.indexOfInstance(this.languageModels.keySet(), childNode); } throw new IllegalArgumentException(); } }
LanguageTreeModel extends AbstractTreeTableModel { @Override public int getIndexOfChild(final Object parentNode, final Object childNode) { if (parentNode == this.getRoot()) { return CollectionUtil.indexOfInstance(this.languageModels.keySet(), childNode); } throw new IllegalArgumentException(); } LanguageTreeModel(final ILanguageOptionHandler options); }
LanguageTreeModel extends AbstractTreeTableModel { @Override public int getIndexOfChild(final Object parentNode, final Object childNode) { if (parentNode == this.getRoot()) { return CollectionUtil.indexOfInstance(this.languageModels.keySet(), childNode); } throw new IllegalArgumentException(); } LanguageTreeModel(final ILanguageOptionHandler options); @Override int getColumnCount(); @Override UUID getChild(final Object parentNode, final int index); @Override int getChildCount(final Object parentNode); @Override int getIndexOfChild(final Object parentNode, final Object childNode); @Override boolean isCellEditable(final Object node, final int columnIndex); @Override Object getValueAt(final Object node, final int columnIndex); }
LanguageTreeModel extends AbstractTreeTableModel { @Override public int getIndexOfChild(final Object parentNode, final Object childNode) { if (parentNode == this.getRoot()) { return CollectionUtil.indexOfInstance(this.languageModels.keySet(), childNode); } throw new IllegalArgumentException(); } LanguageTreeModel(final ILanguageOptionHandler options); @Override int getColumnCount(); @Override UUID getChild(final Object parentNode, final int index); @Override int getChildCount(final Object parentNode); @Override int getIndexOfChild(final Object parentNode, final Object childNode); @Override boolean isCellEditable(final Object node, final int columnIndex); @Override Object getValueAt(final Object node, final int columnIndex);  }