Changeset 6084 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTreeModel.java
- Timestamp:
- 2013-07-26T13:38:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTreeModel.java
r5835 r6084 189 189 /* interface TreeModel */ 190 190 /* ----------------------------------------------------------------------- */ 191 @Override 191 192 public Object getChild(Object parent, int index) { 192 193 return getRelationChildByIdx((Relation)parent, index); 193 194 } 194 195 196 @Override 195 197 public int getChildCount(Object parent) { 196 198 return getNumRelationChildren((Relation)parent); 197 199 } 198 200 201 @Override 199 202 public int getIndexOfChild(Object parent, Object child) { 200 203 return getIndexForRelationChild((Relation)parent, (Relation)child); 201 204 } 202 205 206 @Override 203 207 public Object getRoot() { 204 208 return root; 205 209 } 206 210 211 @Override 207 212 public boolean isLeaf(Object node) { 208 213 Relation r = (Relation)node; … … 211 216 } 212 217 218 @Override 213 219 public void addTreeModelListener(TreeModelListener l) { 214 220 if (l != null) { … … 217 223 } 218 224 225 @Override 219 226 public void removeTreeModelListener(TreeModelListener l) { 220 227 listeners.remove(l); 221 228 } 222 229 230 @Override 223 231 public void valueForPathChanged(TreePath path, Object newValue) { 224 232 // do nothing
Note:
See TracChangeset
for help on using the changeset viewer.