Package org.zeroexchange.model.i18n

Examples of org.zeroexchange.model.i18n.LocalizedValue


        return iterateLocalizations(persistentString, new LocalizationCallback<Collection<LocalizedValue>>() {
            private Collection<LocalizedValue> localizedValues = new ArrayList<LocalizedValue>();

            @Override
            public boolean onValue(String value, String language) {
                LocalizedValue localizedValue = new LocalizedValue(value, language);
                localizedValues.add(localizedValue);
                return true;
            }

            @Override
View Full Code Here


                private static final long serialVersionUID = 1L;

                @Override
                public void onClick(AjaxRequestTarget target) {
                    inputControls.clear();
                    singleInputsRepeater.getModelObject().add(new LocalizedValue(null, null));
                    if(target != null) {
                        target.add(singleInputsRepeater.getParent());
                    }
                }
            };
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    protected void convertInput() {
        String language = localeService.getCurrentLanguage();
        LocalizedValue localizedValue = new LocalizedValue(
                valueInput.getConvertedInput(),
                language);
        setConvertedInput(Collections.singletonList(localizedValue));
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    protected void onBeforeRender() {
        //Obtain the 'default' title
        LocalizedValue singleLocalizedValue = findTitle(
                getModelObject(), localeService.getCurrentLanguage());
        if(singleLocalizedValue == null) {
            singleLocalizedValue = findTitle(
                    getModelObject(), localeService.getDefaultLanguage());
        }
        valueInput.setModelObject(singleLocalizedValue == null ? null : singleLocalizedValue.getValue());
        super.onBeforeRender();
    }
View Full Code Here

TOP

Related Classes of org.zeroexchange.model.i18n.LocalizedValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.