Package fr.soleil.bean.samplesbean.model

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


    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) {
        if (cell.getSample().getSampleName() == null) {
          result = false;
        } else {
          result = !cell.hasChildren();
        }
      }
    }
    return result;
  }
View Full Code Here


    List<Cell> cellList = rack.getCellList();

    DefaultMutableTreeTableNode aRoot = new DefaultMutableTreeTableNode(
        new Sample());
    for (Iterator<Cell> iterator = cellList.iterator(); iterator.hasNext();) {
      Cell cell = iterator.next();
      cell.addObserver(this);
      if (!cell.hasChildren()) {
        aRoot.add(new DefaultMutableTreeTableNode(cell));
      } else {
        DefaultMutableTreeTableNode currentNode = new DefaultMutableTreeTableNode(
            cell);
        aRoot.add(currentNode);

        Map<CellPosition, SubCell> positionChildrenMap = cell
            .getChildrenMap();
        Set<CellPosition> positions = positionChildrenMap.keySet();
        List<CellPosition> orderedPositions = new ArrayList<CellPosition>(
            positions);
        Collections.sort(orderedPositions);
View Full Code Here

  @Override
  public void actionPerformed(ActionEvent e) {
    super.actionPerformed(e);
    if (userObject instanceof Cell) {
      Cell cell = (Cell) userObject;
      if (cell.hasChildren()) {
        cell.removeChildrenForDelete(cellPosition);
      }
    }
  }
View Full Code Here

    super.isEnabled();
    result = true;
    if (userObject instanceof SubCell) {
      result = false;
    } else if (userObject instanceof Cell) {
      Cell cell = (Cell) userObject;
      if (cell != null && cell.hasChildren()) {
        result = cell.hasChildrenAt(cellPosition);
      } else {
        result = false;
      }
    }
    return result;
View Full Code Here

TOP

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

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.