예제 #1
0
  /** Deletes all Items on the Board */
  public void clear() {

    ItemComponent[] items = board.getItems();
    DeleteCommand del = new DeleteCommand(items);
    ArrayList<Command> actCommands = new ArrayList<Command>();
    actCommands.add(del);
    tbe.addCommands(actCommands);
    board.removeItem(items);
  }
예제 #2
0
 /** Selects all Items of the Board */
 public void selectAllItems() {
   board.setSelectionCells(board.getItems());
 }