@Override public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { if ((flags & (FRAMEBITS | ALLBITS)) != 0) { Rectangle rect = this.tree.getPathBounds(this.path); if (rect != null) { this.tree.repaint(rect); } } return (flags & (ALLBITS | ABORT)) == 0; }
@Override public void focusLost(FocusEvent e) { AbstractNodeModel nodeModel = (AbstractNodeModel) currentNode.getUserObject(); nodeModel.setIsEdited(false); tree.revalidate(); tree.repaint(); }
@Override public void keyPressed(KeyEvent e) { AbstractNodeModel nodeModel = (AbstractNodeModel) currentNode.getUserObject(); if (e.getKeyCode() == KeyEvent.VK_F2 && !nodeModel.isRunning()) { nodeModel.setIsEdited(true); PanelNode.this.label.setVisible(false); PanelNode.this.textFieldEditable.setVisible(true); PanelNode.this.textFieldEditable.requestFocusInWindow(); tree.revalidate(); tree.repaint(); } }
tree.repaint(); });
public void cutSelected() { _pathsToPaste = _tree.getSelectionPaths(); _pasteMode = PasteMode.CUT; _tree.repaint(); }
public DeploymentPackageWithContext createDeploymentPackageWithContext(String id){ DeploymentPackageWithContext object=new DeploymentPackageWithContext(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); DeploymentPackageWithContextNode.insert(nn, DeploymentPackageWithContextNode.getChildCount()); nn.setParent(DeploymentPackageWithContextNode); this.reload(); arbolObjetos.repaint(); return object; }
public JoinNode createJoinNode(String id){ JoinNode object=new JoinNode(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); JoinNodeNode.insert(nn, JoinNodeNode.getChildCount()); nn.setParent(JoinNodeNode); this.reload(); arbolObjetos.repaint(); return object; }
public OrganizationGroup createOrganizationGroup(String id){ OrganizationGroup object=new OrganizationGroup(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); OrganizationGroupNode.insert(nn, OrganizationGroupNode.getChildCount()); nn.setParent(OrganizationGroupNode); this.reload(); arbolObjetos.repaint(); return object; }
public IUIterate createIUIterate(String id){ IUIterate object=new IUIterate(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); IUIterateNode.insert(nn, IUIterateNode.getChildCount()); nn.setParent(IUIterateNode); this.reload(); arbolObjetos.repaint(); return object; }
public AUMLAlternativeRow createAUMLAlternativeRow(String id){ AUMLAlternativeRow object=new AUMLAlternativeRow(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); AUMLAlternativeRowNode.insert(nn, AUMLAlternativeRowNode.getChildCount()); nn.setParent(AUMLAlternativeRowNode); this.reload(); arbolObjetos.repaint(); return object; }
public ConcreteAgent createConcreteAgent(String id){ ConcreteAgent object=new ConcreteAgent(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); ConcreteAgentNode.insert(nn, ConcreteAgentNode.getChildCount()); nn.setParent(ConcreteAgentNode); this.reload(); arbolObjetos.repaint(); return object; }
public AgentDescription createAgentDescription(String id){ AgentDescription object=new AgentDescription(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); AgentDescriptionNode.insert(nn, AgentDescriptionNode.getChildCount()); nn.setParent(AgentDescriptionNode); this.reload(); arbolObjetos.repaint(); return object; }
public InteractionUnit createInteractionUnit(String id){ InteractionUnit object=new InteractionUnit(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); InteractionUnitNode.insert(nn, InteractionUnitNode.getChildCount()); nn.setParent(InteractionUnitNode); this.reload(); arbolObjetos.repaint(); return object; }
public GRASIASpecification createGRASIASpecification(String id){ GRASIASpecification object=new GRASIASpecification(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); GRASIASpecificationNode.insert(nn, GRASIASpecificationNode.getChildCount()); nn.setParent(GRASIASpecificationNode); this.reload(); arbolObjetos.repaint(); return object; }
public PROLOGAgentDescription createPROLOGAgentDescription(String id){ PROLOGAgentDescription object=new PROLOGAgentDescription(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); PROLOGAgentDescriptionNode.insert(nn, PROLOGAgentDescriptionNode.getChildCount()); nn.setParent(PROLOGAgentDescriptionNode); this.reload(); arbolObjetos.repaint(); return object; }
public Specification createSpecification(String id){ Specification object=new Specification(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); SpecificationNode.insert(nn, SpecificationNode.getChildCount()); nn.setParent(SpecificationNode); this.reload(); arbolObjetos.repaint(); return object; }
public MentalStateManager createMentalStateManager(String id){ MentalStateManager object=new MentalStateManager(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); MentalStateManagerNode.insert(nn, MentalStateManagerNode.getChildCount()); nn.setParent(MentalStateManagerNode); this.reload(); arbolObjetos.repaint(); return object; }
public SimulationPackage createSimulationPackage(String id){ SimulationPackage object=new SimulationPackage(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); SimulationPackageNode.insert(nn, SimulationPackageNode.getChildCount()); nn.setParent(SimulationPackageNode); this.reload(); arbolObjetos.repaint(); return object; }
public MentalEntityInstanceAccess createMentalEntityInstanceAccess(String id){ MentalEntityInstanceAccess object=new MentalEntityInstanceAccess(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); MentalEntityInstanceAccessNode.insert(nn, MentalEntityInstanceAccessNode.getChildCount()); nn.setParent(MentalEntityInstanceAccessNode); this.reload(); arbolObjetos.repaint(); return object; }
public TaskInputDefinition createTaskInputDefinition(String id){ TaskInputDefinition object=new TaskInputDefinition(id); DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object); TaskInputDefinitionNode.insert(nn, TaskInputDefinitionNode.getChildCount()); nn.setParent(TaskInputDefinitionNode); this.reload(); arbolObjetos.repaint(); return object; }