mapInfo, true, "Ajouter vision"));
JButton btnRemoveElementToView = new JButton(
new AddRemoveElementToView(mapInfo, false, "Enlever vision"));
final CharacterMapFilter filter = CampaignClient.getInstance().getBean(
mapInfo.getMap().getFilter());
JLabel lblVision = new JLabel("Vision max:");
final JSpinner spinnerVision = new JSpinner(new SpinnerNumberModel(
filter.getMaxVision().intValue(), 1, Integer.MAX_VALUE, 1));
spinnerVision.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(ChangeEvent arg0) {
Integer val = (Integer) spinnerVision.getValue();
filter.setMaxVision(val);
}
});
JButton btnLoadFilter = new JButton(new ChooseFilterAction(mapInfo));