public void onChanged(ChangedEvent event) { boolean val = publicGeodesk.getValueAsBoolean(); if (geodesk.getBlueprint().isLimitToCreatorTerritory()) { limitToCreatorTerritory.setDisabled(true); } else { limitToCreatorTerritory.setDisabled(!val); } if (geodesk.getBlueprint().isLimitToUserTerritory()) { limitToUserTerritory.setDisabled(true); } else { limitToUserTerritory.setDisabled(val); } } });
private ListGridRecord toGridRecord(BlueprintDto blueprint) { ListGridRecord record = new ListGridRecord(); record.setAttribute(FLD_ID, blueprint.getId()); record.setAttribute(FLD_NAME, blueprint.getName()); record.setAttribute(FLD_LIMIT_TO_TERRITORY, blueprint.isLimitToCreatorTerritory()); record.setAttribute(FLD_PUBLIC, blueprint.isPublic()); record.setAttribute(FLD_ACTIVE, blueprint.isActive()); record.setAttribute(FLD_GEODESKSACTIVE, blueprint.isGeodesksActive()); return record; }
public void setBlueprint(BlueprintDto blueprint) { form.clearValues(); this.blueprint = blueprint; if (blueprint != null) { blueprintName.setValue(blueprint.getName()); clientApplicationName.setValue(blueprint.getUserApplicationKey()); lastEditBy.setValue(blueprint.getLastEditBy()); lastEditDate.setValue(DATE_FORMATTER.format(blueprint.getLastEditDate())); active.setValue(blueprint.isActive()); geodesksActive.setValue(blueprint.isGeodesksActive()); publiek.setValue(blueprint.isPublic()); limitToLoketTerritory.setValue(blueprint.isLimitToCreatorTerritory()); limitToUserTerritory.setValue(blueprint.isLimitToUserTerritory()); limitToLoketTerritory.setDisabled(!blueprint.isPublic()); limitToUserTerritory.setDisabled(blueprint.isPublic()); } fireChangedHandler(); }
bp.setLastEditBy(dto.getLastEditBy()); bp.setLastEditDate(dto.getLastEditDate()); bp.setLimitToCreatorTerritory(dto.isLimitToCreatorTerritory()); bp.setLimitToUserTerritory(dto.isLimitToUserTerritory()); bp.setGeodesksActive(dto.isGeodesksActive());
bp.setLastEditBy(dto.getLastEditBy()); bp.setLastEditDate(dto.getLastEditDate()); bp.setLimitToCreatorTerritory(dto.isLimitToCreatorTerritory()); bp.setLimitToUserTerritory(dto.isLimitToUserTerritory()); bp.setGeodesksActive(dto.isGeodesksActive());
limitToCreatorTerritory.setDisabled(loket.getBlueprint().isLimitToCreatorTerritory());