/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package socius.telas.util;
import java.rmi.RemoteException;
import java.util.logging.Level;
import java.util.logging.Logger;
import socius.dispositivos.ComputadorRemoto;
/**
*
* @author lucas
*/
public class ItemListaComputadores {
private ComputadorRemoto computador;
public ItemListaComputadores(ComputadorRemoto computador) {
this.computador = computador;
}
@Override
public String toString() {
try {
return computador.getUsuario().getNome();
} catch (RemoteException ex) {
Logger.getLogger(ItemListaComputadores.class.getName()).log(Level.SEVERE, null, ex);
}
return "erro";
}
public ComputadorRemoto getComputador() {
return computador;
}
}