@Override public List<?> getItemIds() { if(isFiltered()) { return m_filteredItems; }else { return m_container.getItemIds(); } }
@Override public String createHistory(String userId, GraphContainer graphContainer) { SavedHistory history = new SavedHistory(graphContainer, m_operations); saveHistory(userId, history); return history.getFragment(); }
@Override public void applyHistory(String userId, String fragment, GraphContainer container) { SavedHistory hist = getHistory(userId, fragment); if (hist != null) { hist.apply(container, m_operations); } }
private void addFilteredChildrenRecursively(Object parentItemId, Set<Object> includedItems) { Collection<?> childList = m_container.getChildren(parentItemId); if (childList == null) { return; } for (Object childItemId : childList) { if (includedItems.contains(childItemId)) { addFilteredChild(parentItemId, childItemId); addFilteredChildrenRecursively(childItemId, includedItems); } } }
public FilterableHierarchicalContainer(HierarchicalBeanContainer<?,?> container) { super(); m_container = container; m_container.addItemSetChangeListener(this); m_container.addPropertySetChangeListener(new PropertySetChangeListener() { @Override public void containerPropertySetChange(PropertySetChangeEvent event) { event.getContainer(); } }); }
public class Main { public static void main(String args[]) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { InfoWindow infoWindow = new InfoWindow(); infoWindow.setVisible(true); infoWindow.refresh("a", "b"); } }); } }
/** * TODO: Is this correct? */ @Override public List<Vertex> getRootGroup() { return getVertices(); }
@Override public boolean isRoot(Object itemId) { if(m_filteredRoots != null) { } return m_container.isRoot(itemId); }
/** * This is a naive implementation of this method that just checks to see if * {@link #getParent(Object)} returns null. */ @Override public boolean isRoot(Object key) { return (getParent(key) == null); }
@Override protected BeanItem<?> getUnfilteredItem(Object itemId) { return m_container.getItem(itemId); }
public int getMaxSemanticZoomLevel(Criteria... criteria) { for (Criteria criterium : criteria) { // See if there is a SemanticZoomLevelCriteria set and if so, use it // to restrict the number of times we iterate over the graph try { SemanticZoomLevelCriteria szlCriteria = (SemanticZoomLevelCriteria)criterium; return szlCriteria.getSemanticZoomLevel(); } catch (ClassCastException e) {} } return 100; }
@Override public List<?> getItemIds() { if(isFiltered()) { return m_filteredItems; }else { return m_container.getItemIds(); } }
public FilterableHierarchicalContainer(HierarchicalBeanContainer<?,?> container) { super(); m_container = container; m_container.addItemSetChangeListener(this); m_container.addPropertySetChangeListener(new PropertySetChangeListener() { @Override public void containerPropertySetChange(PropertySetChangeEvent event) { event.getContainer(); } }); }
/** * TODO: Is this correct? */ @Override public List<Vertex> getRootGroup() { return getVertices(); }
@Override public boolean isRoot(Object itemId) { if(m_filteredRoots != null) { } return m_container.isRoot(itemId); }
/** * This is a naive implementation of this method that just checks to see if * {@link #getParent(Object)} returns null. */ @Override public boolean isRoot(Object key) { return (getParent(key) == null); }
@Override public List<?> getItemIds() { if(isFiltered()) { return m_filteredItems; }else { return m_container.getItemIds(); } }
public FilterableHierarchicalContainer(HierarchicalBeanContainer<?,?> container) { super(); m_container = container; m_container.addItemSetChangeListener(this); m_container.addPropertySetChangeListener(new PropertySetChangeListener() { @Override public void containerPropertySetChange(PropertySetChangeEvent event) { event.getContainer(); } }); }
/** * TODO: Is this correct? */ @Override public List<Vertex> getRootGroup() { return getVertices(); }
@Override public boolean isRoot(Object itemId) { if(m_filteredRoots != null) { } return m_container.isRoot(itemId); }