Package org.jitterbit.ui.style

Examples of org.jitterbit.ui.style.TextStyle


    private void layoutDialog(KongaDialog dlg) {
        dlg.standardLayout(createContent(), KongaDialog.YES_NO);
    }

    private JComponent createContent() {
        TextStyle labelStyle = TextStyles.InfoText;
        BorderLayoutBuilder p = new BorderLayoutBuilder(0, 5);
        p.north(labelStyle.makeLabel(PackageResources.DirtyDelegates.Messages.TOP));
        p.center(entityList);
        p.south(labelStyle.makeLabel(PackageResources.DirtyDelegates.Messages.BOTTOM));
        return p.container();
    }
View Full Code Here


            public void setSelected(boolean selected) {
                this.selected = selected;
                if (selected) {
                    highlighted = false;
                }
                TextStyle style = selected ? SELECTED_STYLE : UNSELECTED_STYLE;
                style.makeOver(this);
                setBorder(selected ? SELECTED_BORDER : UNSELECTED_BORDER);
                repaint();
            }
View Full Code Here

        });
        return check;
    }

    private JComponent createGettingStartedHelpBlurb() {
        TextStyle captionStyle = TextStyle.adjustSize(WizardStyleSheet.SECTION_STYLE, 2);
        KongaLabel caption = captionStyle.makeLabel("Getting Started Help");
        caption.setAntiAliasingEnabled(true);
        caption.setBorder(Empty.border(0, 0, 10, 0));
        TextStyle textStyle = TextStyle.adjustSize(TextStyles.DefaultText, 1);
        JLabel text = textStyle.makeLabel("<html>First time using Jitterbit? Need a<br>" +
            "refresher? Use these tools to get<br>" +
            "started with your first integration.</html>");
        OneColumnPanel left = new OneColumnPanel();
        left.setWeightX(1.0);
        left.addAll(caption, text);
View Full Code Here

        }
        return browserFactory;
    }

    private JComponent createDontForgetArea() {
        TextStyle style = TextStyle.adjustSize(
                        TextStyle.newColor(TextStyles.DefaultBoldLarger, Colors.NEUTRAL_BACKGROUND), 1);
        JLabel first = style.makeLabel("Don't forget! If you're a Jitterbit customer");
        JLabel second = style.makeLabel("you can reach us by email or phone per your");
        JLabel third = style.makeLabel("support contract.");
        Grid col = Grid.oneColumn(5);
        col.addAll(first, second, third);
        col.setBackground(Colors.JITTERBIT_BLUE).setBorder(Empty.border(8, 16, 8, 16));
        return InvisiblePanel.newPanel(col.get());
    }
View Full Code Here

            this.text = (entity.getType() == EntityType.Project) ? "Project: " + entity.getName() : entity.getName();
        }

        public static Node create(KongaTreeNode parent, DeployedEntityDescriptor entity) {
            boolean allowsChildren = false;
            TextStyle style = TextStyles.TreeLeafText;
            switch (entity.getType()) {
            case Project:
                allowsChildren = true;
                style = TextStyles.TreeRootText;
                break;
View Full Code Here

    private final JLabel label;

    public EntityNodeUi(IntegrationEntity entity, boolean big) {
        this.entity = entity;
        TextStyle style = big ? TextStyles.DefaultBoldLarger : TextStyles.DefaultText;
        label = style.makeLabel("");
        RendererUtils.decorateRenderer(label, entity, false);
        setSelected(false);
    }
View Full Code Here

            return ToolTipStringFactory.getToolTip(project);
        }

        public void update() {
            String text;
            TextStyle style;
            if (project == null) {
                text = "No project open";
                style = TextStyles.DefaultItalic;
            } else {
                text = "Project: " + project.getName();
                style = TextStyles.DefaultText;
            }
            setText(text);
            style.makeOver(this);
        }
View Full Code Here

*/
public final class EntitySelectorDialog<T extends IntegrationEntity> {

    public static <E extends IntegrationEntity> E selectOne(EntitySelector<E> selector, Window owner, String title,
                    String message) {
        TextStyle labelStyle = TextStyles.InfoText;
        JLabel north = (message != null) ? labelStyle.makeLabel(message) : null;
        return selectOne(selector, owner, title, north);
    }
View Full Code Here

    private static TextStyle getTitleStyle() {
        Object o = UIManager.get("konga.dropdownpanel.title-style");
        if (o instanceof TextStyle) {
            return (TextStyle) o;
        }
        return new TextStyle(new JLabel());
    }
View Full Code Here

        public TreeLikeUi() {
            Icon expanded = UIManager2.getIcon("Tree.expandedIcon",
                            UiResourceBundle.getIcon("DropDownExpanded.16"));
            Icon collapsed = UIManager2.getIcon("Tree.collapsedIcon",
                            UiResourceBundle.getIcon("DropDownCollapsedRight.16"));
            TextStyle catStyle = getCategoryStyle();
            ui = new OneColumnPanel();
            ui.setInsets(0, 0, 10, 0);
            ui.setWeightX(1.0);
            for (Category cat : categories.values()) {
                ui.add(createCategoryUi(cat, expanded, collapsed, catStyle).getDisplayer());
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.style.TextStyle

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.