/** * Gets the value of this progress bar. The value is a <code>float</code> * between 0 and 1 where 0 represents no progress at all and 1 represents * fully completed. * * @return the current progress value */ @Override public Float getValue() { return super.getValue(); }
@Override public V getValue() { //noinspection unchecked return (V) component.getValue(); }
/** * Get the current value of a filter field * * @param propertyId * Property id from which to get the value * @return Current value */ public Object getFilterFieldValue(Object propertyId) { Component field = getColumnIdToFilterMap().get(propertyId); if (field != null) { return ((AbstractField<?>) field).getValue(); } else { return null; } }
/** * Get the current value of a filter field * * @param propertyId * Property id from which to get the value * @return Current value */ public Object getFilterFieldValue(Object propertyId) { Component field = getColumnIdToFilterMap().get(propertyId); if (field != null) { return ((AbstractField<?>) field).getValue(); } else { return null; } }
/** * Gets the selected item id or in multiselect mode a set of selected ids. * * @see AbstractField#getValue() */ @Override public Object getValue() { final Object retValue = super.getValue(); if (isMultiSelect()) { // If the return value is not a set if (retValue == null) { return new HashSet<Object>(); } if (retValue instanceof Set) { return Collections.unmodifiableSet((Set<?>) retValue); } else if (retValue instanceof Collection) { return new HashSet<Object>((Collection<?>) retValue); } else { final Set<Object> s = new HashSet<Object>(); if (items.containsId(retValue)) { s.add(retValue); } return s; } } else { return retValue; } }
/** * Returns the {@link String} representation of this restriction. * * @return the restriction */ public String getRestriction() { CriteriaRestriction criteriaRestriction = CriteriaRestriction.valueOf(String.valueOf(m_restrictionSelect.getValue())); String criteria = criteriaRestriction.name() + "("; boolean first = true; for (AbstractField<?> abstractField : m_componentList) { if (!first) { criteria += ","; } criteria += CriteriaBuilderHelper.encode(abstractField.getValue().toString()); first = false; } criteria += ")"; return criteria; } }