Package fr.soleil.bean.samplesbean.model

Examples of fr.soleil.bean.samplesbean.model.SubCell


                Collections.sort(orderedPositions);

                for (Iterator<CellPosition> iterator2 = orderedPositions.iterator(); iterator2
                        .hasNext();) {
                    CellPosition position = iterator2.next();
                    SubCell subCell = positionChildrenMap.get(position);
                    currentNode.add(new DefaultMutableTreeTableNode(subCell));
                }
            }
        }
        treeTableModel = new RackTreeTableModel(model, aRoot);
View Full Code Here


        cell.initSample();
        treeTableModel.firePathChanged(treePath);
      }
    }
    if (userObject instanceof SubCell) {
      SubCell subCell = (SubCell) userObject;
      if (subCell != null) {
        // Cell cell = subCell.getParent();
        // CellPosition cellPosition = subCell.getPosition();
        // cell.removeChildrenForDelete(cellPosition);
        // treeTableModel.firePathChanged(treePath);
        subCell.initSample();
        treeTableModel.firePathChanged(treePath);
      }
    }
  }
View Full Code Here

      if (cell.hasChildren() || cell.getSample().getSampleName() == null) {
        result = false;
      }
    }
    if (userObject instanceof SubCell) {
      SubCell subCell = (SubCell) userObject;
      if (subCell != null) {
        if (subCell.getSample().getSampleName() == null
            && subCell.getSample().getCellPosition() == null) {
          result = false;
        } else
          result = true;
      }
    }
View Full Code Here

  @Override
  public void actionPerformed(ActionEvent e) {
    super.actionPerformed(e);
    if (userObject instanceof SubCell) {
      SubCell subCell = (SubCell) userObject;
      if (subCell != null) {
        CellPosition oldPosition = subCell.getPosition();
        Sample sample = subCell.getSample();
        Cell parent = subCell.getParent();
        parent.removeChildrenForMove(oldPosition);
        parent.addChildren(cellPosition, sample);
      }
    } else if (userObject instanceof Cell) {
      Cell cell = (Cell) userObject;
View Full Code Here

  @Override
  public boolean isEnabled() {
    super.isEnabled();
    result = true;
    if (userObject instanceof SubCell) {
      SubCell subCell = (SubCell) userObject;
      if (subCell != null) {
        Cell cell = subCell.getParent();
        result = !cell.hasChildrenAt(cellPosition);
      }
    } else if (userObject instanceof Cell) {
      Cell cell = (Cell) userObject;
      if (cell != null) {
View Full Code Here

        Collections.sort(orderedPositions);

        for (Iterator<CellPosition> iterator2 = orderedPositions
            .iterator(); iterator2.hasNext();) {
          CellPosition position = iterator2.next();
          SubCell subCell = positionChildrenMap.get(position);
          currentNode.add(new DefaultMutableTreeTableNode(subCell));
        }
      }
    }
    treeTableModel = new RackTreeTableModel(model, aRoot);
View Full Code Here

TOP

Related Classes of fr.soleil.bean.samplesbean.model.SubCell

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.