public ReportOutputType getOutputType() { return outputTypeField.getValue(); } }
public ProcDefinition getProcDefinition() { return (ProcDefinition) processLookup.getValue(); } }
protected String checkCondition() { if (categoryLookup.getValue() == null) { return "filter.dynamicAttributesConditionFrame.selectCategory"; } if (attributeLookup.getValue() == null) { return "filter.dynamicAttributesConditionFrame.selectAttribute"; } if (operationLookup.getValue() == null) { return "filter.dynamicAttributesConditionFrame.selectOperator"; } return null; }
private void showEntities() { selectedMeta = entitiesLookup.getValue(); if (selectedMeta != null) { createEntitiesTable(selectedMeta); //TODO: set tab caption //EntityInspectorBrowse.this.setCaption(selectedMeta.getName()); } }
@Override public ParameterValue getValue() { Class value = enumClassLookup.getValue(); return new EnumParameterValue(value == null ? null : value.getName()); }
protected void saveLocaleSettings() { String userLocale = appLangField.getValue(); userManagementService.saveOwnLocale(userLocale); }
@Override public ParameterValue getValue() { EntityParameterValue value = new EntityParameterValue(); MetaClass metaClass = metaClassLookup.getValue(); if (metaClass != null) { value.setMetaClassName(metaClass.getName()); Entity entity = entitiesLookup.getValue(); value.setEntityId(entity == null ? null : entity.getId().toString()); String viewName = viewLookup.getValue(); value.setViewName(viewName); } return value; }
protected String generateTemplateFileName(String fileExtension) { if (entity.getValue() == null) { return ""; } return formatMessage("downloadTemplateFileNamePattern", reportName.getValue(), fileExtension); }
protected void setEntityViewsLookup() { List<String> views = new LinkedList<>(); views.add(View.MINIMAL); views.add(View.LOCAL); views.addAll(metadata.getViewRepository().getViewNames((MetaClass) entitiesMetaClasses.getValue())); entityViews.setOptionsList(views); entityViews.setValue(View.LOCAL); } }
protected void updateOutputType() { if (outputType.getValue() == null) { String extension = FilenameUtils.getExtension(templateUploadField.getFileDescriptor().getName()).toUpperCase(); ReportOutputType reportOutputType = ReportOutputType.getTypeFromExtension(extension); if (reportOutputType != null) { outputType.setValue(reportOutputType); } } }
@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); } }
protected void refreshLogFileNames(JmxRemoteLoggingAPI.LoggingHostInfo hostInfo) { // try to keep previously selected file name String selectedFileName = logFileNameField.getValue(); List<String> logFiles = hostInfo.getLogFileNames(); logFileNameField.setValue(null); logFileNameField.setOptionsList(logFiles); autoRefreshCheck.setValue(false); if (selectedFileName != null && logFiles.contains(selectedFileName)) { logFileNameField.setValue(selectedFileName); } logTailLabel.setValue(""); }
public void changeComponentsTreeVisibility() { if (componentsTreeBox.isVisible()) { componentsTreeBox.setVisible(false); componentsTreeBtn.setDescription(getMessage("componentsTree.show")); } else if (StringUtils.isNotBlank(screenFilter.getValue())) { componentsTreeBox.setVisible(true); componentsTreeBtn.setDescription(getMessage("componentsTree.hide")); } }
@Override public void accept(HasValue.ValueChangeEvent e) { if (active) { Locale selectedLocale = localesSelect.getValue(); String localeCode = messages.getTools().localeToString(selectedLocale); updateValues(getItem(), localeCode, (String) e.getValue()); } }
public void downloadTail() { LogDataProvider logDataProvider; if (remoteContextBox.isVisibleRecursive()) { logDataProvider = new LogDataProvider(connection, logFileName, remoteContextField.getValue(), false); } else { logDataProvider = new LogDataProvider(connection, logFileName, false); } logDataProvider.obtainUrl(); exportFile(logDataProvider, logFileName); close(CLOSE_ACTION_ID); }
public void downloadFull() { LogDataProvider logDataProvider; if (remoteContextBox.isVisibleRecursive()) { logDataProvider = new LogDataProvider(connection, logFileName, remoteContextField.getValue(), true); } else { logDataProvider = new LogDataProvider(connection, logFileName, true); } logDataProvider.obtainUrl(); exportFile(logDataProvider, logFileName); close(CLOSE_ACTION_ID); }
@Override public void saveSettings() { String lastFileName = logFileNameField.getValue(); getSettings().get().addAttribute(LAST_SELECTED_LOG_FILE_NAME, lastFileName); if (!getSelectedConnection().equals(localJmxInstance)) { String lastJmxConnectionId = String.valueOf(getSelectedConnection().getId()); getSettings().get().addAttribute(LAST_SELECTED_JMX_CONNECTION_ID, lastJmxConnectionId); } else { getSettings().get().addAttribute(LAST_SELECTED_JMX_CONNECTION_ID, null); } super.saveSettings(); } }