Boolean isFilterAvailableForAll = (Boolean) e.getValue(); globalDefaultCb.setEnabled(isFilterAvailableForAll); if (!isFilterAvailableForAll) {
protected void componentValueChanged(boolean isUserOriginated) { if (isUserOriginated) { V value; try { value = constructModelValue(); if (!checkRange(value)) { return; } LocalDateTime presentationValue = convertToPresentation(value); setValueToPresentation(presentationValue); } catch (ConversionException ce) { LoggerFactory.getLogger(WebDateField.class) .trace("Unable to convert presentation value to model", ce); setValidationError(ce.getLocalizedMessage()); return; } V oldValue = internalValue; internalValue = value; if (!fieldValueEquals(value, oldValue)) { ValueChangeEvent<V> event = new ValueChangeEvent<>(this, oldValue, value, isUserOriginated); publish(ValueChangeEvent.class, event); } } }
defaultEntityField.setCaption(messages.getMessage(CategoryAttribute.class, "CategoryAttribute.defaultEntityId")); defaultEntityField.addValueChangeListener(e -> { Entity entity = e.getValue(); if (entity != null) { attribute.setObjectDefaultEntityId(referenceToEntitySupport.getReferenceId(entity)); enumerationListEditor.setRequiredMessage(getMessage("enumRequired")); enumerationListEditor.addValueChangeListener(e -> { List<?> list = e.getValue() != null ? e.getValue() : Collections.emptyList(); attribute.setEnumeration(Joiner.on(",").join(list)); });
if (e.getValue() == null) { methodNameField.setOptionsList(Collections.emptyList()); } else { availableMethods = availableBeans.get(e.getValue()); if (initialValueSet) return; methodArgsDs.clear(); MethodInfo methodInfo = (MethodInfo) e.getValue(); if (methodInfo != null) { stencilDs.getItem().setMethodName(methodInfo.getName());
fillAttributes((String) e.getValue(), null, true); }); if (e.getValue() != null) { instancePicker.setEnabled(true); MetaClass metaClass = metadata.getSession().getClassNN(e.getValue().toString()); instancePicker.setMetaClass(metaClass); } else { selectAllCheckBox.addValueChangeListener(e -> enableAllCheckBoxes((boolean) e.getValue()));
ParamType paramType = (ParamType) e.getValue(); if ((isEntity || isEnum) && (entitySelect.getValue() == null)) { defaultValueLayout.remove(defaultValueComponent); condition.getParam().setInExpr(BooleanUtils.isTrue((Boolean) e.getValue())); if (defaultValueComponent instanceof DateField) { DateField dateField = (DateField) defaultValueComponent; if (Boolean.TRUE.equals(e.getValue())) { UserSession userSession = userSessionSource.getUserSession(); if (userSession.getTimeZone() != null) { return; if (e.getValue() == null) { defaultValueLayout.remove(defaultValueComponent); return; Class paramJavaClass = e.getValue() instanceof Class ? (Class) e.getValue() : ((MetaClass) e.getValue()).getJavaClass(); param.setJavaClass(paramJavaClass); param.setDefaultValue(null);
jmxConnectionField.setRequired(true); jmxConnectionField.addValueChangeListener(e -> { JmxInstance jmxInstance = (JmxInstance) e.getValue(); try { mbeanDs.setJmxInstance(jmxInstance);
jmxConnectionField.setRequired(true); jmxConnectionField.addValueChangeListener(e -> { JmxInstance jmxInstance = (JmxInstance) e.getValue(); try { refreshHostInfo(); if (Boolean.TRUE.equals(e.getValue())) { updateLogTailTimer.start(); } else { if (e.getValue() != null && e.getValue().equals(currentLoggers.get(0))) { openAddLoggerDialog();
@Override public void init(Map<String, Object> params) { schedulingTypeField.setOptionsList(Arrays.asList(SchedulingType.values())); schedulingTypeField.addValueChangeListener(e -> setSchedulingTypeField((SchedulingType) e.getValue())); if (ScheduledTaskDefinedBy.BEAN == e.getValue()) { clear(classNameField, scriptNameField); hideAll(); show(beanNameField, beanNameLabel, methodNameField, methodNameLabel, methodNameHbox); } else if (ScheduledTaskDefinedBy.CLASS == e.getValue()) { clear(beanNameField, methodNameField, scriptNameField); hideAll(); show(classNameField, classNameLabel); } else if (ScheduledTaskDefinedBy.SCRIPT == e.getValue()) { clear(beanNameField, methodNameField, classNameField); hideAll(); methodNameField.setValue(null); hide(methodParamsBox); if (e.getValue() == null) { methodNameField.setOptionsList(Collections.emptyList()); } else { availableMethods = availableBeans.get(e.getValue()); if (e.getValue() != null) { createMethodParamsGrid(e.getValue()); if (methodParamsBox.getComponents().size() > 1) { show(methodParamsBox); String methodName = (e.getValue() != null) ? e.getValue().getName() : null;
Entity selectedEntity = (Entity) e.getValue(); if (selectedEntity != null && !valueExists(selectedEntity)) { this.addValueToLayout(selectedEntity, ListEditorHelper.getValueCaption(selectedEntity, itemType,
_setValue(e.getValue(), valueProperty));
_setValue(e.getValue(), valueProperty); });
nameTypeOptionsGroup.setOptionsEnum(LockDescriptorNameType.class); nameTypeOptionsGroup.addValueChangeListener(e -> { if (LockDescriptorNameType.ENTITY.equals(e.getValue())) { nameField.setVisible(false); entityNameLookupField.setVisible(true);
String strValue = e.getValue(); if (strValue == null) { _setValue(null, valueProperty);
PermissionUiHelper.getCheckBoxVariant(e.getValue(), activeVariant)); } else { EntityOperationControl checkerControl = getOperationControl(checkBox);