Package org.jitterbit.ui.style

Examples of org.jitterbit.ui.style.TextStyle


    private void createComponents(long start, long end) {
        JLabel startLabel = createLabel("JobConsole.InfoDisplayer.Label.Started");
        JLabel endLabel = createLabel("JobConsole.InfoDisplayer.Label.Ended");
        JLabel durationLabel = createLabel("JobConsole.InfoDisplayer.Label.Duration");

        TextStyle style = TextStyles.DefaultTextSmall;
        JLabel startValue = style.makeLabel(getTime(start));
        JLabel endValue = style.makeLabel(getTime(end));
        JLabel durationValue = style.makeLabel(getDuration(start, end));

        displayer = new JPanel(new DialogLayout());
        displayer.add(startLabel);
        displayer.add(startValue);
        displayer.add(endLabel);
View Full Code Here


    public static final TextStyle DefaultText = getDefaultText();
   
    private static TextStyle getDefaultText() {
        if (LookAndFeelCustomizer.isSystemLookAndFeel()) {
            return new TextStyle(new JLabel("abc"));
        }
        else if (SystemUtils.IS_OS_WINDOWS) {
            return WindowsText;
        }
        else {
            return new TextStyle(FONT_FAMILIES, 12, Font.PLAIN, Color.BLACK);
        }
    }
View Full Code Here

        cardNames = Maps.newIdentityHashMap();
        tabs = Lists.newArrayList();
        tabObjects = Lists.newArrayList();
        tabContents = Lists.newArrayList();
        tabDistance = 8;
        TextStyle style = TextStyles.DefaultBoldLarger;
        activeTabStyle = style;
        inactiveTabStyle = style;
        selectedIndex = -1;
        hoverDelay = -1;
        tabInputHandler = new TabInputHandler();
View Full Code Here

        int minHeight = 0;
        for (int n = 0; n < tabs.size(); ++n) {
            boolean active = (selectedIndex == n);
            TabLabel tab = tabs.get(n);
            tab.setActive(active);
            TextStyle style = active ? activeTabStyle : inactiveTabStyle;
            style.makeOver(tab);
            Dimension pref = tab.getUnadjustedPreferredSize();
            if (pref.height > minHeight) {
                minHeight = pref.height;
            }
        }
View Full Code Here

        return popup;
    }
   
    private void addPopupWindowTitle(PopupWindow w) {
        String text = getString("Validator.Title");
        TextStyle style = TextStyles.DefaultErrorText;
        LabelDecorator title = StyleSheet.createPopupWindowTitle(text, style);
        w.setTitle(title, true);
    }
View Full Code Here

        UiUtils.setOpaqueRecursively(getUi(), false);
    }

    private InputField getDateTimeDisplayerAsInputField() {
        String name = getString("Label.CurrentTimeInSelectedTimeZone");
        TextStyle style = TextStyles.InputLabelText;
        JLabel lbl = style.makeLabel(name);
        dateTimeDisplayer.setAppearance(style.asLabelDecorator(null));
        return new InputField(name, BorderLayoutBuilder.fillWith(dateTimeDisplayer), lbl) {

            @Override
            public void makeReadOnly() {
                dateTimeDisplayer.setEditable(false);
View Full Code Here

                        boolean leaf, int row, boolean hasFocus) {
            super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
            if (value instanceof FileNode) {
                FileNode node = (FileNode) value;
                setIcon(node.getNodeIcon(expanded ? NodeStatus.OPENED : NodeStatus.CLOSED));
                TextStyle style = (node.getUserObject() == mainFile) ? mainFileStyle : nodeStyle;
                setFont(style.getFont());
            }
            return this;
        }
View Full Code Here

    }

    @Override
    public void decorate(UiCanvas canvas) {
        DialogLayoutBuilder layout = new DialogLayoutBuilder(5, 10);
        TextStyle labelStyle = TextStyles.DefaultBold;
        layout.addRow(labelStyle.makeLabel("Test:"), title);
        layout.addRow(labelStyle.makeLabel("Tested item:"), item);
        if (targetNode != null) {
            layout.addRow(labelStyle.makeLabel("Target node:"), targetNode);
        }
        layout.setBorder(StyleSheet.getDefaultTitleBorder("Details:"));
        layout.decorate(canvas);
    }
View Full Code Here

    private void addActionsPanelToTabPane(JTabbedPane tabs) {
        tabs.addTab(getString("ControlPanel.Actions.Title"), createActionsPanel());
    }

    private static JTabbedPane createTabbedPane() {
        TextStyle titleStyle = TextStyles.BigAdminHintBold;
        JTabbedPane tp = new JTabbedPane();
        tp.setFont(titleStyle.getFont());
        tp.setForeground(titleStyle.getColor());
        tp.setBackground(Colors.LIGHT_BLUE_BACKGROUND);
        tp.setOpaque(true);
        tp.setBorder(Empty.border(5, 0, 0, 0));
        return tp;
    }
View Full Code Here

    private final TextStyle captionStyle;

    public AbstractLaunchOption(String name, Icon icon) {
        this.name = name;
        this.icon = icon;
        TextStyle template = WizardStyleSheet.CAPTION_STYLE;
        captionStyle = TextStyle.adjustSize(template, 2);
    }
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.