Examples of LabelDecorator


Examples of org.eclipse.jface.viewers.LabelDecorator

        Image image = provider.getColumnImage( element, columnIndex );
        if ( decorator != null )
        {
            if ( decorator instanceof LabelDecorator )
            {
                LabelDecorator ld2 = ( LabelDecorator ) decorator;
                Image decorated = ld2.decorateImage( image, element, getDecorationContext() );
                if ( decorated != null )
                {
                    return decorated;
                }
            }
View Full Code Here

Examples of org.eclipse.jface.viewers.LabelDecorator

        String text = provider.getColumnText( element, columnIndex );
        if ( decorator != null )
        {
            if ( decorator instanceof LabelDecorator )
            {
                LabelDecorator ld2 = ( LabelDecorator ) decorator;
                String decorated = ld2.decorateText( text, element, getDecorationContext() );
                if ( decorated != null )
                {
                    return decorated;
                }
            }
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

        builder.setPreferenceKey(new PreferencesKey(ImportJitterPackUi.class, "Destination"));
        builder.setTitle(Strings.getJitterPackString("Import.Destination"));
        builder.setDefaultFolder(suggestedDestinationFolder);
        FileSelectorPanel panel = builder.buildPanel(window);
        panel.setBrowseButtonText(Strings.get("Import.Destination.Browse"));
        LabelDecorator d = TextStyles.DefaultText.asLabelDecorator(ApplicationResources.ICONS.getIcon("FolderClosed.16"));
        panel.decorateTitle(d);
        return panel;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

    }


    private void createProgressPanel() {
        progressPanel = new ProgressListenerPanel(false);
        LabelDecorator decorator = TextStyles.DefaultText.asLabelDecorator(null);
        progressPanel.decorateLabel(decorator);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

            @Override
            public void inputChanged(InputChangeEvent e) {
                updateStartStopActionEnabledState();
            }
        });
        LabelDecorator titleDecorator = TextStyles.DefaultText.asLabelDecorator(
                        ApplicationResources.ICONS.getIcon("FolderClosed.16"));
        rootSelector.decorateTitle(titleDecorator);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

        RecentFileStore recentFiles = getRecentFileStore();
        FileSelectorPanelFactory factory = FileSelectorFactory.getFactory();
        FileSelectorPanel selector = factory.singleFilePanel(fc, FileSelectorPanel.SAVE,
                        Strings.getJitterPackString("Export.FileSelector.Title"), recentFiles);
        selector.setFileFilter(JitterPackerUi.FILE_FILTER);
        LabelDecorator d = TextStyles.InputLabelText.asLabelDecorator(JitterpackResources.EXPORT_16);
        selector.decorateTitle(d);
        selector.displayLastFile();
        selector.addActionListener(new ActionListener() {

            @Override
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

    private SourceAndTargetList createClassLists() {
        SourceAndTargetList lists = new SourceAndTargetList(ComponentFactories.newKongaListFactory(),
                        ComponentFactories.newKongaListFactory());
        lists.setTransferPolicy(new ClassListTransferPolicy());
        lists.setTitles(PackageResources.Wizard.ClassSelector.AVAILABLE, PackageResources.Wizard.ClassSelector.SELECTED);
        lists.setTitleDecorator(new LabelDecorator() {

            @Override
            public void decorate(Label label) {
                label.setBackgroundColor(StyleSheet.ComponentTableHeader.getBackground());
                label.setTextColor(TextStyles.ComponentTableHeaderText.getColor());
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

    }
   
    private PopupWindow createPopupWindow(JComponent source) {
        PopupWindow w = PopupWindow.newWindow(source, displayer, null);
        w.setResizable(true);
        LabelDecorator title = createTitle();
        w.setTitle(title, true);
        return w;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

            }
        };
    }

    private DottedTextLabel createShortStatusLabel() {
        LabelDecorator decorator = TextStyles.DefaultTextSmall.asLabelDecorator(null);
        return new DottedTextLabel(decorator);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.LabelDecorator

        customizeComboBox(selector);
        return selector;
    }

    private void customizeTitleAndButton(AbstractFileSelectorPanel selector) {
        LabelDecorator d = TextStyles.InputLabelText.asLabelDecorator(null);
        selector.decorateTitle(d);
        selector.decorateBrowseButton(LabelDecorators.BROWSE_BUTTON);
    }
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.