001package csheets.ext.share.controller; 002 003import java.util.Observer; 004 005import csheets.core.Cell; 006import csheets.ext.share.core.Server; 007 008/** 009 * Controller of the send action 010 * 011 * @author Andre 012 * 013 */ 014public class SendController { 015 /** 016 * Method that will create a new server and will start the connection 017 * 018 * @param port 019 * connection port of the cells 020 * @param cells 021 * value that will be shared throw network 022 * @param password 023 * the connection password 024 * @param observer 025 * the observer class 026 */ 027 public void startServer(int port, Cell[][] cells, String password, 028 String properties, Observer observer) { 029 Server svr = Server.getInstance(); 030 svr.startServer(port, cells, password, properties, observer); 031 } 032 033}