コード例 #1
0
    public ExtractorToolTip(ExtractionExtension extractionExtension) {

        super(new TooltipPanel("ins 0,wrap 2", "[grow,fill]", "[grow,fill]"));
        this.extractionExtension = extractionExtension;
        color = new Color(LookAndFeelController.getInstance().getLAFOptions().getTooltipForegroundColor());
        empty = new JLabel(T._.tooltip_empty());
        empty.setForeground(color);
        panel.add(empty, "hidemode 3");
        table = new ExtractionJobTable(model = new ExtractionJobTableModel(new Color(LookAndFeelController.getInstance().getLAFOptions().getTooltipForegroundColor())));

        panel.add(table, "hidemode 3");
    }
コード例 #2
0
    public void actionPerformed(ActionEvent e) {
        JPopupMenu popup = new JPopupMenu();
        AddLinksAction ala = new AddLinksAction((SelectionInfo<CrawledPackage, CrawledLink>) null);
        ala.putValue(AbstractAction.NAME, _GUI._.AddOptionsAction_actionPerformed_addlinks());
        popup.add(new JMenuItem(ala));
        popup.add(new JMenuItem(new AddContainerAction((SelectionInfo<CrawledPackage, CrawledLink>) null)));
        int[] insets = LookAndFeelController.getInstance().getLAFOptions().getPopupBorderInsets();

        Dimension pref = popup.getPreferredSize();
        // pref.width = positionComp.getWidth() + ((Component)
        // e.getSource()).getWidth() + insets[1] + insets[3];
        popup.setPreferredSize(pref);

        popup.show(positionComp, -insets[1] - 1, -popup.getPreferredSize().height + insets[2]);
    }
コード例 #3
0
    public SearchField() {
        super();

        img = NewTheme.I().getImage("search", SIZE);
        LAFOptions lafo = LookAndFeelController.getInstance().getLAFOptions();
        bgColor = new Color(lafo.getPanelHeaderColor());
        setHelpText(_GUI._.pluginsettings_search_helptext());
        setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
        popIcon = NewTheme.I().getImage("popupButton", -1);
        delayedFilter = new DelayedRunnable(IOEQ.TIMINGQUEUE, 150l, 2000l) {

            @Override
            public void delayedrun() {
                updateFilter();
            }

        };
        orgBorder = getBorder();
        setBorder(BorderFactory.createCompoundBorder(orgBorder, BorderFactory.createEmptyBorder(0, 28, 0, 0)));
        addMouseMotionListener(this);
        addMouseListener(this);
    }