Package org.jabusuite.webclient.controls.language

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


            }
        }
    }

    protected void setTextsAfterFromTransaction(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.getTextAfter(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving transaction-texts.", e);
            e.printStackTrace();
        }
View Full Code Here


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

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

        this.txHeadline = new JbsLangTextField(ClientGlobals.getMainDbLanguage());
        this.txLongText = new JbsLangTextArea(ClientGlobals.getMainDbLanguage());
    }
   
    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.getCmsNewsEntry().getLongText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving long-texts.", e);
        }
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.getJobGroup().getName(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving name.", e);
            e.printStackTrace();
        }
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.getCmsNewsEntry().getHeadline(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving long-texts.", e);
        }
View Full Code Here

        this.txDiscount4 = new JbsDoubleField();
        this.txText = new JbsLangTextArea(ClientGlobals.getMainDbLanguage());
    }

    protected JbsLangStrings getPtLongTexts() {
        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.getPaymentTerm().getText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
        }
View Full Code Here

        txShortText = new JbsLangTextField(ClientGlobals.getMainDbLanguage());
        txLongText = new JbsLangTextArea(ClientGlobals.getMainDbLanguage());
    }

    protected JbsLangStrings getPositionShortTexts() {
        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.getTrPosition().getShortText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
            e.printStackTrace();
        }
View Full Code Here

            }
        }
    }

    protected JbsLangStrings getPositionLongTexts() {
        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.getTrPosition().getLongText(language));
                langStrings.add(langString);
            }
        } catch (Exception e) {
            logger.error("Error retrieving article-texts.", e);
            e.printStackTrace();
        }
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.