public void setData(DynamicLayerConfiguration layerConfig) { this.layerConfig = layerConfig; this.extraLayerInfo = (DeskmanagerClientLayerInfo) layerConfig.getClientLayerInfo().getUserData(); name.setValue(layerConfig.getClientLayerInfo().getLabel()); publicLayer.setValue(extraLayerInfo.isPublic()); active.setValue(extraLayerInfo.isActive()); visible.setValue(layerConfig.getClientLayerInfo().isVisible()); }
public DynamicLayerConfiguration getData() { layerConfig.getClientLayerInfo().setLabel(name.getValueAsString()); layerConfig.getClientLayerInfo().setVisible(visible.getValueAsBoolean()); extraLayerInfo.setPublic(publicLayer.getValueAsBoolean()); extraLayerInfo.setActive(active.getValueAsBoolean()); return layerConfig; }