Package org.jabusuite.webclient.controls.language

Examples of org.jabusuite.webclient.controls.language.JbsLangStrings


            this.setDunningTexts(this.txDunningText.getLangStrings());
        }
    }
   
    protected JbsLangStrings getDunningTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getDunning().getDunningText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
        }
View Full Code Here


            this.setLongTexts(this.txLongText.getLangStrings());
        }
    }
   
    protected JbsLangStrings getLongTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getEmployeeNewsEntry().getLongText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving long-texts.", e);
        }
View Full Code Here

            }
        }
    }
   
    protected JbsLangStrings getHeadlines() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getEmployeeNewsEntry().getHeadline(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving long-texts.", e);
        }
View Full Code Here

            e.printStackTrace();
        }
    }

    protected JbsLangStrings getTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getAccountEntry().getShortText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
            e.printStackTrace();
        }
View Full Code Here

        }
        this.getArticle().setPrices(prices);
    }

    protected JbsLangStrings getArticleNames() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getArticle().getShortText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
            e.printStackTrace();
        }
View Full Code Here

            }
        }
    }

    protected JbsLangStrings getArticleLongTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getArticle().getLongText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
            e.printStackTrace();
        }
View Full Code Here

    /**
     * Gets the langStirngs-List for the field from the names.
     * @return
     */
    protected JbsLangStrings getNames() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getQtyUnit().getName(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving name.", e);
            e.printStackTrace();
        }
View Full Code Here

     /**
     * Gets the langStirngs-List for the field from the names.
     * @return
     */
    protected JbsLangStrings getShortNames() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(this.getQtyUnit().getShortName(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving name.", e);
            e.printStackTrace();
        }
View Full Code Here

        this.add(grdMain);
    }

    protected void setTextsBeforeFromTransaction(BusinessTransaction transaction) {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
                langString.setText(transaction.getTextBefore(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving transaction-texts.", e);
            e.printStackTrace();
        }
View Full Code Here

        //return langStrings;
        this.txTextBefore.setLangStrings(langStrings);
    }

    protected void setTransactionTextsBefore(BusinessTransaction transaction) {
        JbsLangStrings langStrings = this.txTextBefore.getLangStrings();
        if (langStrings != null) {
            Iterator<JbsLangString> it = langStrings.iterator();
            while (it.hasNext()) {
                JbsLangString langString = it.next();
                transaction.setTextBefore(langString.getLanguage(), langString.getText());
            }
        }
View Full Code Here

TOP

Related Classes of org.jabusuite.webclient.controls.language.JbsLangStrings

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.