| 1 | |
package br.mia.test.view.graph; |
| 2 | |
|
| 3 | |
import org.jgraph.graph.CellViewRenderer; |
| 4 | |
import org.jgraph.graph.VertexView; |
| 5 | |
|
| 6 | |
public class BotaoView extends VertexView { |
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
private static final long serialVersionUID = 1L; |
| 12 | |
|
| 13 | |
private String nome; |
| 14 | |
|
| 15 | |
public BotaoView(Object cell,String nome) { |
| 16 | 0 | super(cell); |
| 17 | 0 | this.nome=nome; |
| 18 | 0 | } |
| 19 | |
|
| 20 | |
@Override |
| 21 | |
public CellViewRenderer getRenderer() { |
| 22 | |
|
| 23 | 0 | BotaoRenderer botao=new BotaoRenderer(); |
| 24 | 0 | botao.setNome(nome); |
| 25 | 0 | return botao; |
| 26 | |
} |
| 27 | |
|
| 28 | |
} |