Package org.zanata.webtrans.client.view

Examples of org.zanata.webtrans.client.view.TargetContentsDisplay.refresh()


        if (contentsDisplayOptional.isPresent()) {
            TargetContentsDisplay contentsDisplay =
                    contentsDisplayOptional.get();
            contentsDisplay.setValueAndCreateNewEditors(updatedTransUnit);
            contentsDisplay.setState(TargetContentsDisplay.EditingState.SAVED);
            contentsDisplay.refresh();
            if (equal(updatedTransUnit.getId(), currentTransUnitId)) {
                editorTranslators.updateTranslator(display, currentTransUnitId);
            }
        }
    }
View Full Code Here


                    contentsDisplayOptional.get();
            if (contentsDisplay.getEditingState() == TargetContentsDisplay.EditingState.SAVED) {
                // If current display is in saved state, we update both in
                // editor and cached value
                contentsDisplay.setValueAndCreateNewEditors(updatedTU);
                contentsDisplay.refresh();
            } else {
                // editor is in saving state or unsaved state, we don't want to
                // update value in editor, just the cached value.
                contentsDisplay.updateCachedTargetsAndVersion(
                        updatedTU.getTargets(), updatedTU.getVerNum(),
View Full Code Here

        List<SourceContentsDisplay> sourceContentsDisplays =
                sourceContentsPresenter.getDisplays();
        for (int i = 0; i < targetContentsDisplays.size(); i++) {
            TargetContentsDisplay targetDisplay = targetContentsDisplays.get(i);
            SourceContentsDisplay sourceDisplay = sourceContentsDisplays.get(i);
            targetDisplay.refresh();
            sourceDisplay.refresh();
            if (!Strings.isNullOrEmpty(findMessage)) {
                targetDisplay.highlightSearch(findMessage);
                sourceDisplay.highlightSearch(findMessage);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.