Package org.jitterbit.util.html

Examples of org.jitterbit.util.html.HtmlListGenerator


        if (v.status() == ValidationStatus.VALID) {
            return "This " + EntityType.Operation.toString() + " is valid.";
        } else {
            StringBuilder s = new StringBuilder("<html>");
            s.append("<b>Validation Problems:</b><br>");
            HtmlListGenerator list = HtmlListGenerator.unordered();
            for (ValidationMessage m : v.allMessages()) {
                list.newItem().escapeAndAdd(m.message());
            }
            return s.append(list.toHtml()).append("</html>").toString();
        }
    }
View Full Code Here


        private JLabel getCaption() {
            StringBuilder html = new StringBuilder("<html><table width=400px>");
            html.append("Most fields in the Source and Target pages provide auto-completion based on " +
                "previous values for those fields. There are two modes of auto-completion to choose between:");
            html.append("<br>");
            HtmlListGenerator list = HtmlListGenerator.unordered();
            list.add("<code>" + AutoCompletionMode.AUTOMATIC.toString() + "</code>: ", HtmlStyleTag.BOLD);
            list.add("When typing in a field, a list of matching values is automatically displayed " +
                "under the field. You can navigate through the list using the arrow keys on your keyboard. " +
                "Use <code>Enter</code> or <code>Tab</code> to select a value from the list.");
            list.newItem();
            list.add("<code>" + AutoCompletionMode.CODE_EDITOR.toString() + "</code>: ", HtmlStyleTag.BOLD);
            list.add("Auto-completion is triggered by hitting <code>CTRL-SPACE</code> in the field (same as in " +
                "the Formula Builder).");
            html.append(list.toHtml());
            html.append(HtmlStyleTag.BOLD.wrap("Note: "));
            html.append("Changes in this preference will not take effect in pages that are alredy open.");
            html.append("</table></html>");
            return TextStyles.InfoText.makeLabel(html.toString());
        }
View Full Code Here

   
    private static JComponent getCaption() {
        StringBuilder html = new StringBuilder("<html><table width=500px>Everytime a project is deployed to a " +
            "Jitterbit server, a backup Jitterpak is uploaded to the server. A project backup is also stored " +
            "locally on the client. There are two types of backups:<br><br>");
        HtmlListGenerator list = HtmlListGenerator.unordered();
        list.escapeAndAdd("Reference backups: ", HtmlStyleTag.BOLD);
        list.escapeAndAdd("These backups are considered to be permanent; a permanent backup will never be " +
            "deleted by the system. They provide snapshots of the project at a regular time interval, " +
            "e.g. once a week.");
        list.newItem();
        list.escapeAndAdd("Intermediate backups: ", HtmlStyleTag.BOLD);
        list.escapeAndAdd("These backups are considered to be transient; they provide snapshots of the ongoing " +
            "work on a project, typically within a single client session.");
        html.append(list.toHtml()).append("<br>");
        html.append("The backup policy is defined by two parameters:<br><br>");
        list = HtmlListGenerator.unordered();
        list.escapeAndAdd("Reference frequency (in days): ", HtmlStyleTag.BOLD);
        list.escapeAndAdd("When a new backup is made, the system checks how long time ago the last reference backup " +
            "was made. If the last reference backup is older than the number of days defined by this property, " +
            "the new backup is flagged as a reference backup. Otherwise the new backup is flagged as an " +
            "intermediate backup. If this value is <= 0, all backups will be regarded as intermediate.");
        list.newItem();
        list.escapeAndAdd("Max number of intermediate backups: ", HtmlStyleTag.BOLD);
        list.escapeAndAdd("This property defines the maximum number of intermediate (non-reference) backups to keep on " +
            "the client. Once this limit is exceeded, the oldest intermediate backups will be deleted. If this " +
            "value is <= 0, no intermediate backups will be made.");
        html.append(list.toHtml()).append("<br>");
        html.append("By setting both these parameters to 0, no backups will be created.");
        html.append("<br><br>");
        html.append(HtmlStyleTag.BOLD.escapeAndWrap("NOTE: "));
        html.append("These parameters control the policy of the local backups that are stored on the client. " +
            "Each Jitterbit server has its own backup policy (in the current version controlled by " +
View Full Code Here

TOP

Related Classes of org.jitterbit.util.html.HtmlListGenerator

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.