@Override public void attach() { super.attach(); // Update icon for ConnectorResource updateSelectedItemIcon(getValue()); }
/** * Gets the selected OU.<p< * * @return the selected OU */ public String getValue() { return (String)m_ouSelect.getValue(); }
@Override public Locale selectedLocale() { String selectedId = (String) combo.getValue(); return Locale.forLanguageTag(selectedId); }
/** * Get the timezone for maintenance window. * * @return {@link String}. */ public String getMaintenanceTimeZone() { return timeZone.getValue().toString(); }
/** * Get the timezone for maintenance window. * * @return {@link String}. */ public String getMaintenanceTimeZone() { return timeZone.getValue().toString(); }
/** * Set the edit mode. * @param mode the edit mode to set. */ public void setEditMode(final EditMode mode) { if (!m_modeSelect.getValue().equals(mode)) { m_modeSelect.setValue(mode); } }
/** * Sets the currently edited locale. * @param locale the locale to set. */ void setLanguage(final Locale locale) { if (!m_languageSelect.getValue().equals(locale)) { m_languageSelect.setValue(locale); } }
private boolean isNoOfGroupsOrTargetFilterEmpty() { return !StringUtils.hasText(noOfGroups.getValue()) || (!StringUtils.hasText((String) targetFilterQueryCombo.getValue()) && !StringUtils.hasText(targetFilterQuery.getValue())); } }
private boolean isNoOfGroupsOrTargetFilterEmpty() { return !StringUtils.hasText(noOfGroups.getValue()) || (!StringUtils.hasText((String) targetFilterQueryCombo.getValue()) && !StringUtils.hasText(targetFilterQuery.getValue())); } }
private String getTargetFilterQuery() { if (!StringUtils.hasText((String) targetFilterQueryCombo.getValue())) { return null; } final Item filterItem = targetFilterQueryCombo.getContainerDataSource() .getItem(targetFilterQueryCombo.getValue()); return (String) filterItem.getItemProperty("query").getValue(); }
/** * Method that is called when combobox event is performed. */ private void selectDistributionSetValue() { selectedDefaultDisSetType = (Long) combobox.getValue(); if (!selectedDefaultDisSetType.equals(currentDefaultDisSetType)) { changeIcon.setVisible(true); notifyConfigurationChanged(); } else { changeIcon.setVisible(false); } }
/** * Method that is called when combobox event is performed. */ private void selectDistributionSetValue() { selectedDefaultDisSetType = (Long) combobox.getValue(); if (!selectedDefaultDisSetType.equals(currentDefaultDisSetType)) { changeIcon.setVisible(true); notifyConfigurationChanged(); } else { changeIcon.setVisible(false); } }
@Override protected StorageStrategy getInternalValue() { StorageStrategy strategy = new StorageStrategy(); if (combo.getValue() != null) { strategy.setClazz((String) combo.getValue()); } for (Object itemId: container.getItemIds()) { strategy.addParameter(container.getItem(itemId).getBean()); } return strategy; }
protected void setValueToField(Object arg) { value = arg; ComboBox editor = (ComboBox)field; if (!editor.containsId(arg)) editor.unselect(editor.getValue()); else editor.select(arg); }
@Override protected PersistenceSelectorStrategy getInternalValue() { PersistenceSelectorStrategy strategy = new PersistenceSelectorStrategy(); if (combo.getValue() != null) { strategy.setClazz((String) combo.getValue()); } for (Object itemId: container.getItemIds()) { strategy.addParameter(container.getItem(itemId).getBean()); } return strategy; }
public String getSelectedUserRole(String userId) { if (!multiSelect) { throw new ActivitiException("Only use getSelectedUserIds in multiselect mode"); } return (String) ((ComboBox) selectedUsersTable.getItem(userId).getItemProperty("role").getValue()).getValue(); }
protected void onStartOfUpload() { final TargetBulkUpload targetBulkUpload = managementUIState.getTargetTableFilters().getBulkUpload(); targetBulkUpload.setDsNameAndVersion((Long) dsNamecomboBox.getValue()); targetBulkUpload.setDescription(descTextArea.getValue()); targetBulkUpload.setProgressBarCurrentValue(0F); targetBulkUpload.setFailedUploadCount(0); targetBulkUpload.setSucessfulUploadCount(0); closeButton.setEnabled(false); minimizeButton.setEnabled(true); }
/** The dialog mode. */ public static enum DialogMode { /** Allow copy only. */ copy, /** Allow copy and move. */ copy_and_move, /** Allow move only. */ move }