protected List<Node> contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List<Node>) contentShadow; } else { List<Node> list = createContentList(); if (contentShadow != null) { list.add((Node) contentShadow); } this.content = list; return list; } }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; list.add(node); } else { List<Node> list = createContentList(); list.add((Node) contentShadow); list.add(node); this.content = list; } } childAdded(node); }
public void setContent(List<Node> content) { contentRemoved(); if (content instanceof ContentListFacade) { content = ((ContentListFacade<Node>) content).getBackingList(); } if (content == null) { this.content = null; } else { int size = content.size(); List<Node> newContent = createContentList(size); for (Node node : content) { Element parent = node.getParent(); if ((parent != null) && (parent != this)) { node = (Node) node.clone(); } newContent.add(node); childAdded(node); } this.content = newContent; } }
protected List contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List) contentShadow; } else { List list = createContentList(); if (contentShadow != null) { list.add(contentShadow); } this.content = list; return list; } }
protected List<Node> contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List<Node>) contentShadow; } else { List<Node> list = createContentList(); if (contentShadow != null) { list.add((Node) contentShadow); } this.content = list; return list; } }
protected List contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List) contentShadow; } else { List list = createContentList(); if (contentShadow != null) { list.add(contentShadow); } this.content = list; return list; } }
protected List contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List) contentShadow; } else { List list = createContentList(); if (contentShadow != null) { list.add(contentShadow); } this.content = list; return list; } }
protected List contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List) contentShadow; } else { List list = createContentList(); if (contentShadow != null) { list.add(contentShadow); } this.content = list; return list; } }
protected List contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List) contentShadow; } else { List list = createContentList(); if (contentShadow != null) { list.add(contentShadow); } this.content = list; return list; } }
protected List contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List) contentShadow; } else { List list = createContentList(); if (contentShadow != null) { list.add(contentShadow); } this.content = list; return list; } }
protected List<Node> contentList() { final Object contentShadow = content; if (contentShadow instanceof List) { return (List<Node>) contentShadow; } else { List<Node> list = createContentList(); if (contentShadow != null) { list.add((Node) contentShadow); } this.content = list; return list; } }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; list.add(node); } else { List<Node> list = createContentList(); list.add((Node) contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List list = (List) contentShadow; list.add(node); } else { List list = createContentList(); list.add(contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List list = (List) contentShadow; list.add(node); } else { List list = createContentList(); list.add(contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; list.add(node); } else { List<Node> list = createContentList(); list.add((Node) contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List list = (List) contentShadow; list.add(node); } else { List list = createContentList(); list.add(contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List list = (List) contentShadow; list.add(node); } else { List list = createContentList(); list.add(contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List list = (List) contentShadow; list.add(node); } else { List list = createContentList(); list.add(contentShadow); list.add(node); this.content = list; } } childAdded(node); }
protected void addNewNode(Node node) { final Object contentShadow = content; if (contentShadow == null) { this.content = node; } else { if (contentShadow instanceof List) { List list = (List) contentShadow; list.add(node); } else { List list = createContentList(); list.add(contentShadow); list.add(node); this.content = list; } } childAdded(node); }
public void setContent(List<Node> content) { contentRemoved(); if (content instanceof ContentListFacade) { content = ((ContentListFacade<Node>) content).getBackingList(); } if (content == null) { this.content = null; } else { int size = content.size(); List<Node> newContent = createContentList(size); for (Node node : content) { Element parent = node.getParent(); if ((parent != null) && (parent != this)) { node = (Node) node.clone(); } newContent.add(node); childAdded(node); } this.content = newContent; } }