/** * {@inheritDoc} */ @Override public String getDescription() { return descriptor.getDescription(); }
/** * {@inheritDoc} */ @Override public String getName() { return descriptor.getName(); }
/** * Constructs a new <code>StaticWizardStepDescriptor</code> instance. */ public StaticWizardStepDescriptor() { descriptor = new DefaultDescriptor(); }
DefaultDescriptor valueComponent = new DefaultDescriptor(); valueComponent.setName(enumerationValue); if (enumerationValue != null && propertyDescriptor.isTranslated()) { if ("".equals(enumerationValue)) { valueComponent.setDescription(" "); } else { valueComponent.setDescription(propertyDescriptor.getI18nValue(enumerationValue, actionHandler, locale)); valueComponent.setDescription(" "); } else { valueComponent.setDescription(enumerationValue);
/** * @param name * the name to set. * @see org.jspresso.framework.util.descriptor.DefaultDescriptor#setName(java.lang.String) */ public void setName(String name) { descriptor.setName(name); }
/** * Sets the description. * @param description * the description to set. * @see org.jspresso.framework.util.descriptor.DefaultDescriptor#setDescription(java.lang.String) */ public void setDescription(String description) { descriptor.setDescription(description); }
/** * Gets the lastUpdated. * * @return the lastUpdated. */ @Override public long getLastUpdated() { return descriptor.getLastUpdated(); }
/** * Sets the lastUpdated. * * @param lastUpdated * the lastUpdated to set. * @internal */ public void setLastUpdated(long lastUpdated) { descriptor.setLastUpdated(lastUpdated); } }
/** * {@inheritDoc} */ @Override public DefaultIconDescriptor clone() { return (DefaultIconDescriptor) super.clone(); }
dest.setHorizontalAlignment(source.getHorizontalAlignment()); if (source instanceof DefaultDescriptor) { dest.setI18nNameKey(((DefaultDescriptor) source).getI18nNameKey());
/** * Sets the name. * @param name * the name to set. * @see org.jspresso.framework.util.descriptor.DefaultDescriptor#setName(java.lang.String) */ public void setName(String name) { descriptor.setName(name); }
/** * @param description * the description to set. * @see org.jspresso.framework.util.descriptor.DefaultDescriptor#setDescription(java.lang.String) */ public void setDescription(String description) { descriptor.setDescription(description); }
/** * {@inheritDoc} */ public String getName() { return descriptor.getName(); }
/** * {@inheritDoc} */ public String getDescription() { return descriptor.getDescription(); }
.setName(ACTION_MODEL_NAME); IView<E> collectionView = getViewFactory(context).createView( viewDescriptor, actionHandler, getLocale(context));
/** * Constructs a new {@code StaticWizardStepDescriptor} instance. */ public StaticWizardStepDescriptor() { descriptor = new DefaultDescriptor(); }
/** * {@inheritDoc} */ public String getI18nName(ITranslationProvider translationProvider, Locale locale) { if (i18nNameKey != null) { return translationProvider.getTranslation(i18nNameKey, locale); } return translationProvider.getTranslation(getName(), locale); }
/** * {@inheritDoc} */ public String getI18nDescription(ITranslationProvider translationProvider, Locale locale) { return translationProvider.getTranslation(getDescription(), locale); }
@Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { DefaultDescriptor selectedEnumerationComponent = getActionParameter(context); if (selectedEnumerationComponent != null) { getViewConnector(context).setConnectorValue(null); getViewConnector(context).setConnectorValue(selectedEnumerationComponent.getName()); } else { getViewConnector(context).setConnectorValue(null); } return super.execute(actionHandler, context); } });