public void itemStateChanged(ItemEvent e) { ((ISwingTreeNode)treemodel.getRoot()).refresh(true); } });
public void customResultAvailable(Object result) { IService service = (IService)result; Map props = service.getPropertyMap(); boolean vis = props!=null && props.get(IAbstractViewerPanel.PROPERTY_VIEWERCLASS)!=null; viewables.put(sid, vis? Boolean.TRUE: Boolean.FALSE); // System.out.println("isVis first res: "+viewables.get(sid)); node.refresh(false); } });
/** * Called when the action is performed. */ public void actionPerformed(ActionEvent e) { TreePath[] paths = tree.getSelectionPaths(); for(int i=0; paths!=null && i<paths.length; i++) { ((ISwingTreeNode)paths[i].getLastPathComponent()).refresh(true); } }
/** * Called when the action is performed. */ public void actionPerformed(ActionEvent e) { TreePath[] paths = tree.getSelectionPaths(); for(int i=0; paths!=null && i<paths.length; i++) { ((ISwingTreeNode)paths[i].getLastPathComponent()).refresh(false); } }
public void actionPerformed(ActionEvent e) { TreePath[] paths = tree.getSelectionPaths(); for(int i=0; paths!=null && i<paths.length; i++) { ((ISwingTreeNode)paths[i].getLastPathComponent()).refresh(false); } } };
public void actionPerformed(ActionEvent e) { TreePath[] paths = tree.getSelectionPaths(); for(int i=0; paths!=null && i<paths.length; i++) { ((ISwingTreeNode)paths[i].getLastPathComponent()).refresh(true); } } };
public void customResultAvailable(Object result) { IService service = (IService)result; Map<String, Object> props = service.getPropertyMap(); boolean vis = props!=null && props.get(IAbstractViewerPanel.PROPERTY_VIEWERCLASS)!=null; fut.setResult(vis? Boolean.TRUE: Boolean.FALSE); node.refresh(false); } });
public void keyReleased(KeyEvent e) { if(KeyEvent.VK_F5==e.getKeyCode()) ((ISwingTreeNode)getModel().getRoot()).refresh(true); }
public void actionPerformed(ActionEvent e) { for(int i=2; i<menu.getItemCount(); i++) { JMenuItem item = (JMenuItem)menu.getItem(i); if(item!=null) item.setEnabled(!isAll()); } ((ISwingTreeNode)treemodel.getRoot()).refresh(true); } });
public void actionPerformed(ActionEvent e) { for(int i=2; i<menu.getItemCount(); i++) { JMenuItem item = (JMenuItem)menu.getItem(i); if(item!=null) item.setEnabled(!isAll()); } ((ISwingTreeNode)treemodel.getRoot()).refresh(true); } });
/** * Add a root node to the tree panel. */ protected void addNode(ISwingTreeNode node) { final RootNode root = (RootNode)getModel().getRoot(); root.addChild(node); node.refresh(true); for(int i=0; i<root.getChildCount(); i++) model.fireNodeChanged((ISwingTreeNode) root.getCachedChildren().get(i)); tree.scrollPathToVisible(new TreePath(new Object[]{root, node})); }