Package org.jitterbit.ui.style

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()


    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);
    }

    public void setIcon(Icon icon) {
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);
    }

    public static <E extends IntegrationEntity> E selectOne(EntitySelector<E> selector, Window owner, String title,
                    JComponent north) {
View Full Code Here

    private JLabel createCaption(String title) {
        if (title == null) {
            return null;
        }
        TextStyle captionStyle = getTitleStyle();
        JLabel caption = captionStyle.makeLabel(title);
        caption.setIcon(titleIcon);
        caption.setForeground(getForegroundColor());
        caption.setFont(caption.getFont().deriveFont(Font.BOLD));
        return caption;
    }
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.