public String getFilterName() { return filterName.getValue(); } }
public void addLogger() { String loggerName = newLoggerTextField.getValue(); if (StringUtils.isNotBlank(loggerName) && !fieldMap.containsKey(loggerName)) { addLogger(loggerName, Level.INFO); } }
public void filterLogger() { fillLoggerGrid(newLoggerTextField.getValue()); } }
public void search() { String filterValue = treeFilter.getValue(); _search(filterValue); }
public void search() { fillDatasource(nameFilterField.getValue()); }
@Override public boolean test(BasicPermissionTarget target) { if (target != null) { String filterTerm = screenFilter.getValue(); if (filterTerm == null || filterTerm.isEmpty()) { return true; } return target.getCaption().toLowerCase() .contains(filterTerm.toLowerCase()); } return false; } }
protected List<String> getValuesFromArrayLayout(BoxLayout layout) { List<String> values = new ArrayList<>(layout.getComponents().size() - 1); for (Component component : layout.getComponents()) { if (component instanceof TextField) { values.add((String) ((TextField) component).getValue()); } } return values; } }
protected String generateOutputFileName(String fileExtension) { if (StringUtils.isBlank(reportName.getValue())) { if (entity.getValue() != null) { return formatMessage("downloadOutputFileNamePattern", messageTools.getEntityCaption(entity.getValue()), fileExtension); } else { return ""; } } else { return reportName.getValue() + "." + fileExtension; } }
@Override public boolean commit() { if (!super.commit()) return false; condition.setCaption(caption.getValue()); return true; } }
@Override public boolean commit() { if (!super.commit()) return false; condition.setCaption(caption.getValue()); return true; } }
protected String generateTemplateFileName(String fileExtension) { if (entity.getValue() == null) { return ""; } return formatMessage("downloadTemplateFileNamePattern", reportName.getValue(), fileExtension); }
public void commit() { if (Strings.isNullOrEmpty(filterName.getValue())) { showNotification(messages.getMainMessage("filter.saveFilter.fillName"), NotificationType.WARNING); return; } if (existingNames != null && existingNames.contains(filterName.getValue())) { showNotification(messages.getMainMessage("filter.saveFilter.suchNameAlreadyExists"), NotificationType.WARNING); return; } close(Window.COMMIT_ACTION_ID); }
public void applyFilter() { attributeTargetsDs.refresh(); if (attributeTargetsDs.getItemIds().isEmpty()) { String message; Object value = entityFilter.getValue(); if (Boolean.TRUE.equals(assignedOnlyCheckBox.getValue())) { message = String.format(getMessage("noAssignedItemsForFilter"), value != null ? value : " "); } else { message = String.format(getMessage("noItemsForFilter"), value != null ? value : " "); } showNotification(message, NotificationType.HUMANIZED); } }
public void addEnumValue() { Object value = valueField.getValue(); if (value != null) { if (!valueExists(value)) { valueField.setValue(null); addValueToDatasource(value, null); valuesMap.put(value, ListEditorHelper.getValueCaption(value, ListEditor.ItemType.STRING, null)); } } }
@Override public void beforeShowFrame() { initSaveAction(); initDownloadAction(); if (StringUtils.isEmpty(wizard.outputFileName.getValue())) { Object value = wizard.templateFileFormat.getValue(); wizard.outputFileName.setValue(wizard.generateOutputFileName(value.toString().toLowerCase())); } wizard.setCorrectReportOutputType(); initChartPreview(); }
public void addLogger() { if (StringUtils.isNotBlank(loggerNameField.getValue())) { if (logLevelField.getValue() != null) { this.selectedLoggerName = loggerNameField.getValue(); this.selectedLevel = logLevelField.getValue(); close(COMMIT_ACTION_ID); } else showNotification(getMessage("logger.notSelectedLevel"), NotificationType.HUMANIZED); } else { loggerNameField.setValue(null); showNotification(getMessage("logger.notSelected"), NotificationType.HUMANIZED); } }
public void addUiPermission() { String screen = screenFilter.getValue(); String component = componentTextField.getValue(); if (StringUtils.isNotBlank(screen) && StringUtils.isNotBlank(component)) { UiPermissionTarget target = new UiPermissionTarget("ui:" + screen + ":" + component, screen + ":" + component, screen + ":" + component, UiPermissionVariant.NOTSET); target.setScreen(screen); target.setComponent(component); uiPermissionTargetsDs.addItem(target); uiPermissionsTable.expandPath(target); uiPermissionsTable.setSelected(target); } }
public void execute() { Integer limit = entityLimitField.getValue(); if (limit != null && limit <= 0) { showNotification(getMessage("entityLimitWarning"), WARNING); return; } executeProgressBar.setIndeterminate(true); connectionTaskWrapper.restart(); }
@Override public void postInit() { typesInfo = widgetRepository.getWidgetTypesInfo(); setWidgetType(); initParametersFrame(); widgetCaption.addValueChangeListener(v -> { if (StringUtils.isEmpty(widgetId.getValue())) { widgetId.setValue(v.getValue()); } }); ((AbstractDatasource) widgetDs).setModified(false); }