Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
280,800 | ValidatingTableCellRendererWrapper (@NotNull Supplier<? extends Dimension> editorSizeSupplier) { this.editorSizeSupplier = editorSizeSupplier; return this; } | bindToEditorSize |
280,801 | ValidatingTableCellRendererWrapper (@NotNull TableCellValidator cellValidator) { this.cellValidator = cellValidator; return this; } | withCellValidator |
280,802 | Dimension () { Dimension size = super.getPreferredSize(); size.height = Math.max(size.height, editorSizeSupplier.get().height); return size; } | getPreferredSize |
280,803 | Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { JComponent delegateRenderer = (JComponent)delegate.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (cellValidator != null) { ValidationInfo result = cellValidator.validate(value, row, column); iconLabel.setIcon(result == null ? null : result.warning ? AllIcons.General.BalloonWarning : AllIcons.General.BalloonError); iconLabel.setBorder(result == null ? null: iconBorder()); putClientProperty(CELL_VALIDATION_PROPERTY, result); } add(delegateRenderer, BorderLayout.CENTER); setToolTipText(delegateRenderer.getToolTipText()); setBorder(delegateRenderer.getBorder()); delegateRenderer.setBorder(null); setBackground(delegateRenderer.getBackground()); return this; } | getTableCellRendererComponent |
280,804 | Border () { return JBUI.Borders.emptyRight(UIUtil.isUnderWin10LookAndFeel() ? 4 : 3); } | iconBorder |
280,805 | void (Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } | paintComponent |
280,806 | C () { return owner; } | getOwner |
280,807 | CellComponentProvider<JTable> (JTable table) { return new TableProvider(table); } | forTable |
280,808 | Rectangle (@NotNull MouseEvent e) { Point p = e.getPoint(); return owner.getCellRect(owner.rowAtPoint(p), owner.columnAtPoint(p), false); } | getCellRect |
280,809 | boolean (@NotNull MouseEvent e) { Point p = e.getPoint(); return owner.rowAtPoint(p) == owner.getEditingRow() && owner.columnAtPoint(p) == owner.getEditingColumn(); } | isEditing |
280,810 | boolean (@NotNull PropertyChangeEvent e) { return "tableCellEditor".equals(e.getPropertyName()) && e.getNewValue() != null; } | isEditingStarted |
280,811 | void (@NotNull ExtendableTextComponent editor, @NotNull ExtendableTextComponent.Extension extension, boolean set) { if (set) { editor.addExtension(extension); } else { editor.removeExtension(extension); } } | setExtension |
280,812 | void (@NotNull ExtendableTextComponent editor, @Nullable ValidationInfo vi) { if (vi == null) { editor.removeExtension(ERROR_EXTENSION); editor.removeExtension(WARNING_EXTENSION); } else if (vi.warning) { editor.addExtension(WARNING_EXTENSION); } else { editor.addExtension(ERROR_EXTENSION); } } | setExtension |
280,813 | CellTooltipManager (@NotNull CellComponentProvider cellComponentProvider) { this.cellComponentProvider = cellComponentProvider; return this; } | withCellComponentProvider |
280,814 | CellTooltipManager (@NotNull HyperlinkListener hyperlinkListener) { this.hyperlinkListener = hyperlinkListener; return this; } | withHyperlinkListener |
280,815 | void (@NotNull JComponent component) { MouseAdapter mouseListener = new ValidationMouseListener(); PropertyChangeListener propertyChangeListener = e -> { if (cellComponentProvider != null && cellComponentProvider.isEditingStarted(e)) { hidePopup(true, null); } }; component.addMouseListener(mouseListener); component.addMouseMotionListener(mouseListener); component.addPropertyChangeListener(propertyChangeListener); Disposer.register(parentDisposable, () -> { hidePopup(true, null); component.removeMouseListener(mouseListener); component.removeMouseMotionListener(mouseListener); component.removePropertyChangeListener(propertyChangeListener); cellComponentProvider = null; validationInfo = null; popupBuilder = null; }); } | installOn |
280,816 | void (MouseEvent e) { if (cellComponentProvider != null) { JComponent cellRenderer = cellComponentProvider.getCellRendererComponent(e); ValidationInfo info = cellRenderer != null ? (ValidationInfo)cellRenderer.getClientProperty(ValidatingTableCellRendererWrapper.CELL_VALIDATION_PROPERTY) : null; if (info==null && cellRenderer instanceof ExpandedItemRendererComponentWrapper wrapper) { Component unwrapped = ExpandedItemRendererComponentWrapper.unwrap(wrapper); if (unwrapped instanceof JComponent unwrappedCellRenderer) { info = (ValidationInfo)unwrappedCellRenderer.getClientProperty(ValidatingTableCellRendererWrapper.CELL_VALIDATION_PROPERTY); } } if (info != null) { if (!info.equals(validationInfo)) { validationInfo = info; closeWithDelay = hasATag(validationInfo.message); popupBuilder = ComponentValidator.createPopupBuilder(validationInfo, tipComponent -> { if (closeWithDelay) { tipComponent.addHyperlinkListener(hyperlinkListener); tipComponent.addMouseListener(new TipComponentMouseListener()); } popupSize = tipComponent.getPreferredSize(); }).setCancelOnMouseOutCallback(me -> me.getID() == MouseEvent.MOUSE_PRESSED && !ComponentValidator.withinComponent(validationInfo, me) && (cellRect == null || !cellRect.contains(me.getPoint()))); hidePopup(false, () -> showPopup(e)); } else if (!isShowing()) { showPopup(e); } else if (!isClosing) { // Move popup to new location Rectangle cellRect = cellComponentProvider.getCellRect(e); if (!cellRect.equals(this.cellRect)) { this.cellRect = cellRect; Point point = new Point(this.cellRect.x + JBUIScale.scale(40), this.cellRect.y - JBUIScale.scale(6) - popupSize.height); SwingUtilities.convertPointToScreen(point, cellComponentProvider.getOwner()); cellPopup.setLocation(point); } } } else { validationInfo = null; hidePopup(false, null); } } } | handleMouseEvent |
280,817 | boolean (@NotNull String string) { return HTML_A_TAG_PATTERN.matcher(string).find(); } | hasATag |
280,818 | void (MouseEvent e) { if (!cellComponentProvider.isEditing(e)) { cellPopup = popupBuilder.createPopup(); cellRect = cellComponentProvider.getCellRect(e); JComponent c = cellComponentProvider.getCellRendererComponent(e); Insets i = c != null ? c.getInsets() : JBInsets.emptyInsets(); Point point = new Point(cellRect.x + JBUIScale.scale(40), cellRect.y + i.top - JBUIScale.scale(6) - popupSize.height); cellPopup.show(new RelativePoint(cellComponentProvider.getOwner(), point)); } } | showPopup |
280,819 | void (boolean now, @Nullable Runnable onHidden) { if (isShowing()) { if (now || hyperlinkListener == null || !closeWithDelay) { cellPopup.cancel(); cellPopup = null; cellRect = null; if (onHidden != null) { onHidden.run(); } } else if (!isClosing) { isClosing = true; popupAlarm.addRequest(() -> { isClosing = false; if (!isOverPopup) { hidePopup(true, onHidden); } }, Registry.intValue("ide.tooltip.initialDelay.highlighter")); } } else if (onHidden != null) { onHidden.run(); } } | hidePopup |
280,820 | boolean () { return cellPopup != null && cellPopup.isVisible(); } | isShowing |
280,821 | void (MouseEvent e) { handleMouseEvent(e); } | mouseEntered |
280,822 | void (MouseEvent e) { hidePopup(false, null); } | mouseExited |
280,823 | void (MouseEvent e) { handleMouseEvent(e); } | mouseMoved |
280,824 | void (MouseEvent e) { isOverPopup = true; } | mouseEntered |
280,825 | void (MouseEvent e) { isOverPopup = false; hidePopup(true, null); } | mouseExited |
280,826 | void (@NotNull DocumentEvent e) { editorComponent.putClientProperty(CELL_VALIDATION_PROPERTY, null); ComponentValidator.getInstance(editorComponent).ifPresent(ComponentValidator::revalidate); } | textChanged |
280,827 | StatefulValidatingCellEditor (@NotNull Consumer<? super ValidationInfo> stateUpdater) { this.stateUpdater = stateUpdater; return this; } | withStateUpdater |
280,828 | Component (JTable table, Object value, boolean isSelected, int row, int column) { JComponent editor = (JComponent)super.getTableCellEditorComponent(table, value, isSelected, row, column); JComponent renderer = (JComponent)table.getCellRenderer(row, column).getTableCellRendererComponent(table, value, isSelected, true, row, column); ValidationInfo cellInfo = renderer != null ? (ValidationInfo)renderer.getClientProperty(CELL_VALIDATION_PROPERTY) : null; if (cellInfo != null) { editor.putClientProperty(CELL_VALIDATION_PROPERTY, cellInfo.forComponent(editor)); ComponentValidator.getInstance(editor).ifPresent(ComponentValidator::revalidate); } return editor; } | getTableCellEditorComponent |
280,829 | boolean () { editorComponent.putClientProperty(CELL_VALIDATION_PROPERTY, null); ComponentValidator.getInstance(editorComponent).ifPresent(ComponentValidator::revalidate); return super.stopCellEditing(); } | stopCellEditing |
280,830 | void () { editorComponent.putClientProperty(CELL_VALIDATION_PROPERTY, null); ComponentValidator.getInstance(editorComponent).ifPresent(ComponentValidator::revalidate); super.cancelCellEditing(); } | cancelCellEditing |
280,831 | ValidationInfo () { ValidationInfo info = (ValidationInfo)editorComponent.getClientProperty(CELL_VALIDATION_PROPERTY); stateUpdater.accept(info); return info; } | get |
280,832 | void (final @Nullable Icon regular, final @Nullable Icon inactive) { myRegular = regular != null ? regular : EmptyIcon.ICON_0; myInactive = inactive != null ? inactive : myRegular; } | setIcons |
280,833 | Icon () { return myRegular; } | getRegular |
280,834 | Icon () { return myInactive; } | getInactive |
280,835 | Icon () { return myActive ? getRegular() : getInactive(); } | getIcon |
280,836 | void (final boolean active) { myActive = active; } | setActive |
280,837 | ActiveIcon (@NotNull IconReplacer replacer) { Icon regular = replacer.replaceIcon(myRegular); ActiveIcon icon = new ActiveIcon(regular, myRegular == myInactive ? regular : replacer.replaceIcon(myInactive)); icon.myActive = myActive; return icon; } | replaceBy |
280,838 | void (final Component c, final Graphics g, final int x, final int y) { getIcon().paintIcon(c, g, x, y); } | paintIcon |
280,839 | int () { return getIcon().getIconWidth(); } | getIconWidth |
280,840 | int () { return getIcon().getIconHeight(); } | getIconHeight |
280,841 | void (final Icon hovered) { myHovered = hovered != null ? hovered : getRegular(); } | setHovered |
280,842 | void (final @Nullable Icon regular, final @Nullable Icon inactive, final @Nullable Icon hovered) { setIcons(regular, inactive); setHovered(hovered); } | setIcons |
280,843 | Icon () { return myHovered; } | getHovered |
280,844 | IconButton (@NotNull IconReplacer replacer) { return new IconButton(myTooltip, super.replaceBy(replacer), replacer.replaceIcon(myHovered)); } | replaceBy |
280,845 | JBPopupFactory () { return ApplicationManager.getApplication().getService(JBPopupFactory.class); } | getInstance |
280,846 | PopupChooserBuilder (@NotNull JTable table) { return new PopupChooserBuilder(table); } | createPopupChooserBuilder |
280,847 | ListPopupStep (@NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, boolean showNumbers, boolean showDisabledActions, @PopupTitle String title, Component component, boolean honorActionMnemonics) { return createActionsStep(actionGroup, dataContext, null, showNumbers, showDisabledActions, title, component, honorActionMnemonics, 0, false); } | createActionsStep |
280,848 | ListPopupStep (@NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, boolean showNumbers, boolean showDisabledActions, @PopupTitle String title, Component component, boolean honorActionMnemonics, int defaultOptionIndex, boolean autoSelectionEnabled) { return createActionsStep(actionGroup, dataContext, null, showNumbers, showDisabledActions, title, component, honorActionMnemonics, defaultOptionIndex, autoSelectionEnabled); } | createActionsStep |
280,849 | boolean (@Nullable Component parent) { return getChildFocusedPopup(parent) != null; } | isChildPopupFocused |
280,850 | JBPopup (@Nullable Component parent) { if (parent == null) return null; List<JBPopup> popups = getChildPopups(parent); for (JBPopup each : popups) { if (each.isFocused()) return each; if (each.isDisposed()) continue; JBPopup childFocusedPopup = getChildFocusedPopup(each.getContent()); if (childFocusedPopup != null) { return childFocusedPopup; } } return null; } | getChildFocusedPopup |
280,851 | ListPopup (@Nullable @PopupTitle String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, ActionSelectionAid selectionAidMethod, boolean showDisabledActions) { return createActionGroupPopup(title, actionGroup, dataContext, selectionAidMethod, showDisabledActions, null, -1, null, null); } | createActionGroupPopup |
280,852 | ListPopup (@PopupTitle String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, ActionSelectionAid selectionAidMethod, boolean showDisabledActions, @Nullable String actionPlace) { return createActionGroupPopup(title, actionGroup, dataContext, selectionAidMethod, showDisabledActions, null, -1, null, actionPlace); } | createActionGroupPopup |
280,853 | ListPopup (@PopupTitle String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, ActionSelectionAid selectionAidMethod, boolean showDisabledActions, Runnable disposeCallback, int maxRowCount) { return createActionGroupPopup(title, actionGroup, dataContext, selectionAidMethod, showDisabledActions, disposeCallback, maxRowCount, null, null); } | createActionGroupPopup |
280,854 | ListPopup (@PopupTitle String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, boolean showDisabledActions, @Nullable Runnable disposeCallback, int maxRowCount) { return createActionGroupPopup(title, actionGroup, dataContext, JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, showDisabledActions, disposeCallback, maxRowCount); } | createActionGroupPopup |
280,855 | BalloonBuilder (@NotNull @NlsContexts.PopupContent String htmlContent, @Nullable Icon icon, Color fillColor, @Nullable HyperlinkListener listener) { return createHtmlTextBalloonBuilder(htmlContent, icon, null, fillColor, listener); } | createHtmlTextBalloonBuilder |
280,856 | StackingPopupDispatcher () { return ApplicationManager.getApplication().getService(StackingPopupDispatcher.class); } | getInstance |
280,857 | PopupChooserBuilder<T> (boolean cancelOnClickOutside) { myCancelOnClickOutside = cancelOnClickOutside; return this; } | setCancelOnClickOutside |
280,858 | JScrollPane () { return myScrollPane; } | getScrollPane |
280,859 | PopupChooserBuilder<T> (@NotNull @PopupTitle String title) { myTitle = title; return this; } | setTitle |
280,860 | PopupChooserBuilder<T> (@Nullable KeyStroke keyStroke) { if (keyStroke != null) { myAdditionalKeystrokes.add(keyStroke); } return this; } | addAdditionalChooseKeystroke |
280,861 | IPopupChooserBuilder<T> (ListCellRenderer<? super T> renderer) { myChooserComponent.setRenderer(renderer); return this; } | setRenderer |
280,862 | JComponent () { return myChooserComponent.getComponent(); } | getChooserComponent |
280,863 | IPopupChooserBuilder<T> (@NotNull Consumer<? super T> callback) { myChooserComponent.setItemChosenCallback(callback); return this; } | setItemChosenCallback |
280,864 | IPopupChooserBuilder<T> (@NotNull Consumer<? super Set<? extends T>> callback) { myChooserComponent.setItemsChosenCallback(callback); return this; } | setItemsChosenCallback |
280,865 | PopupChooserBuilder<T> (@NotNull Runnable runnable) { return setItemChosenCallback(runnable); } | setItemChoosenCallback |
280,866 | PopupChooserBuilder<T> (@NotNull Runnable runnable) { myItemChosenRunnable = () -> { try (AccessToken ignore = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { runnable.run(); } }; return this; } | setItemChosenCallback |
280,867 | PopupChooserBuilder<T> (@NotNull JComponent cmp) { myNorthComponent = cmp; return this; } | setNorthComponent |
280,868 | PopupChooserBuilder<T> (@NotNull JComponent cmp) { mySouthComponent = cmp; return this; } | setSouthComponent |
280,869 | PopupChooserBuilder<T> (@NotNull JBSplitter splitter) { myContentSplitter = splitter; return this; } | setContentSplitter |
280,870 | PopupChooserBuilder<T> (@Nullable Processor<? super JBPopup> callback) { myCouldPin = callback; return this; } | setCouldPin |
280,871 | PopupChooserBuilder<T> (@NotNull JComponent cmp) { myEastComponent = cmp; return this; } | setEastComponent |
280,872 | PopupChooserBuilder<T> (final boolean requestFocus) { myRequestFocus = requestFocus; return this; } | setRequestFocus |
280,873 | PopupChooserBuilder<T> (final boolean forceResizable) { myForceResizable = forceResizable; return this; } | setResizable |
280,874 | PopupChooserBuilder<T> (final boolean forceMovable) { myForceMovable = forceMovable; return this; } | setMovable |
280,875 | PopupChooserBuilder<T> (@NonNls String key) { myDimensionServiceKey = key; return this; } | setDimensionServiceKey |
280,876 | PopupChooserBuilder<T> (boolean use) { myUseForXYLocation = use; return this; } | setUseDimensionServiceForXYLocation |
280,877 | PopupChooserBuilder<T> (Computable<Boolean> callback) { addCancelCallback(callback); return this; } | setCancelCallback |
280,878 | PopupChooserBuilder<T> (@NotNull ActiveComponent commandButton) { myCommandButton = commandButton; return this; } | setCommandButton |
280,879 | PopupChooserBuilder<T> (final float alpha) { myAlpha = alpha; return this; } | setAlpha |
280,880 | PopupChooserBuilder<T> (final boolean doAutoSelect) { myAutoselectOnMouseMove = doAutoSelect; return this; } | setAutoselectOnMouseMove |
280,881 | boolean () { return myAutoselectOnMouseMove; } | isAutoselectOnMouseMove |
280,882 | PopupChooserBuilder<T> (Function<Object, String> namer) { myItemsNamer = namer; return this; } | setFilteringEnabled |
280,883 | PopupChooserBuilder<T> (boolean state) { myFilterAlwaysVisible = state; return this; } | setFilterAlwaysVisible |
280,884 | boolean () { return myFilterAlwaysVisible; } | isFilterAlwaysVisible |
280,885 | PopupChooserBuilder<T> (Function<? super T, String> namer) { myItemsNamer = namer; return this; } | setNamerForFiltering |
280,886 | IPopupChooserBuilder<T> (boolean autoPackHeightOnFiltering) { myAutoPackHeightOnFiltering = autoPackHeightOnFiltering; return this; } | setAutoPackHeightOnFiltering |
280,887 | boolean () { return myAutoPackHeightOnFiltering; } | isAutoPackHeightOnFiltering |
280,888 | PopupChooserBuilder<T> (boolean modalContext) { myModalContext = modalContext; return this; } | setModalContext |
280,889 | JComponent () { return myPreferableFocusComponent; } | getPreferableFocusComponent |
280,890 | JBPopup () { JPanel contentPane = new JPanel(new BorderLayout()); if (myAutoselect) { myChooserComponent.autoSelect(); } if (myCloseOnEnter || myItemChosenRunnable != null) { myChooserComponent.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(MouseEvent e) { if (UIUtil.isActionClick(e, MouseEvent.MOUSE_RELEASED) && !UIUtil.isSelectionButtonDown(e) && !e.isConsumed()) { if (myCloseOnEnter) { closePopup(e, true); } else { myItemChosenRunnable.run(); } } } }); } registerClosePopupKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), false); if (myCloseOnEnter) { registerClosePopupKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), true); } else if (myItemChosenRunnable != null) { registerKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), __ -> myItemChosenRunnable.run()); } for (KeyStroke keystroke : myAdditionalKeystrokes) { registerClosePopupKeyboardAction(keystroke, true); } myPreferableFocusComponent = myChooserComponent.buildFinalComponent(); myScrollPane = myChooserComponent.createScrollPane(); myScrollPane.getViewport().setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); Insets viewportPadding = UIUtil.getListViewportPadding(StringUtil.isNotEmpty(myAd)); ((JComponent)myScrollPane.getViewport().getView()).setBorder( BorderFactory.createEmptyBorder(viewportPadding.top, viewportPadding.left, viewportPadding.bottom, viewportPadding.right)); JComponent contentComponent = myChooserComponent.hasOwnScrollPane() ? myPreferableFocusComponent : myScrollPane; if (myContentSplitter != null) { myContentSplitter.setFirstComponent(contentComponent); addCenterComponentToContentPane(contentPane, myContentSplitter); } else { addCenterComponentToContentPane(contentPane, contentComponent); } if (myNorthComponent != null) { addNorthComponentToContentPane(contentPane, myNorthComponent); } if (mySouthComponent != null) { addSouthComponentToContentPane(contentPane, mySouthComponent); } if (myEastComponent != null) { addEastComponentToContentPane(contentPane, myEastComponent); } if (ExperimentalUI.isNewUI()) { applyInsets(contentComponent); } ComponentPopupBuilder builder = JBPopupFactory.getInstance().createComponentPopupBuilder(contentPane, myPreferableFocusComponent); for (JBPopupListener each : myListeners) { builder.addListener(each); } builder .setDimensionServiceKey(null, myDimensionServiceKey, myUseForXYLocation) .setRequestFocus(myRequestFocus) .setResizable(myForceResizable) .setMovable(myForceMovable) .setTitle(myTitle) .setAlpha(myAlpha) .setFocusOwners(myFocusOwners) .setCancelKeyEnabled(myCancelKeyEnabled) .setAdText(myAd, myAdAlignment) .setAdvertiser(myAdvertiser) .setKeyboardActions(myKeyboardActions) .setMayBeParent(myMayBeParent) .setLocateWithinScreenBounds(true) .setCancelOnOtherWindowOpen(myCancelOnOtherWindowOpen) .setModalContext(myModalContext) .setCancelOnWindowDeactivation(myCancelOnWindowDeactivation) .setCancelOnClickOutside(myCancelOnClickOutside) .setCouldPin(myCouldPin) .setOkHandler(myItemChosenRunnable); if (myCancelCallback != null) { builder.setCancelCallback(myCancelCallback); } Predicate<KeyEvent> keyEventHandler = myChooserComponent.getKeyEventHandler(); if (keyEventHandler != null) { builder.setKeyEventHandler(keyEventHandler::test); } if (myCommandButton != null) { builder.setCommandButton(myCommandButton); } if (myMinSize != null) { builder.setMinSize(myMinSize); } if (mySettingsButtons != null) { builder.setSettingButtons(mySettingsButtons); } myPopup = builder.createPopup(); return myPopup; } | createPopup |
280,891 | void (MouseEvent e) { if (UIUtil.isActionClick(e, MouseEvent.MOUSE_RELEASED) && !UIUtil.isSelectionButtonDown(e) && !e.isConsumed()) { if (myCloseOnEnter) { closePopup(e, true); } else { myItemChosenRunnable.run(); } } } | mouseReleased |
280,892 | void (JPanel contentPane, JComponent component) { contentPane.add(component, BorderLayout.EAST); } | addEastComponentToContentPane |
280,893 | void (JPanel contentPane, JComponent component) { contentPane.add(component, BorderLayout.NORTH); } | addNorthComponentToContentPane |
280,894 | void (JPanel contentPane, JComponent component) { contentPane.add(component, BorderLayout.SOUTH); } | addSouthComponentToContentPane |
280,895 | void (JPanel contentPane, JComponent component) { contentPane.add(component, BorderLayout.CENTER); } | addCenterComponentToContentPane |
280,896 | PopupChooserBuilder<T> (final Dimension dimension) { myMinSize = dimension; return this; } | setMinSize |
280,897 | PopupChooserBuilder<T> (KeyStroke keyStroke, ActionListener actionListener) { myKeyboardActions.add(Pair.create(actionListener, keyStroke)); return this; } | registerKeyboardAction |
280,898 | void (final KeyStroke keyStroke, final boolean shouldPerformAction) { registerPopupKeyboardAction(keyStroke, new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { if (!shouldPerformAction && myChooserComponent.checkResetFilter()) return; closePopup(null, shouldPerformAction); } }); } | registerClosePopupKeyboardAction |
280,899 | void (ActionEvent e) { if (!shouldPerformAction && myChooserComponent.checkResetFilter()) return; closePopup(null, shouldPerformAction); } | actionPerformed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.