Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
46,000 | PropertyRenderer<String> () { return myRenderer; } | getRenderer |
46,001 | PropertyEditor<String> () { return myEditor; } | getEditor |
46,002 | boolean (final List<RadComponent> selection) { return selection.size() == 1; } | appliesToSelection |
46,003 | PropertyRenderer<String> () { return myRenderer; } | getRenderer |
46,004 | PropertyEditor<String> () { if (myEditor == null) { myEditor = new ComponentEditor(null, null) { @Override protected RadComponent[] collectFilteredComponents(RadComponent component) { RadContainer container = (RadContainer)component; RadComponent[] result = new RadComponent[container.getComponentCount() + 1]; for (int ... | getEditor |
46,005 | RadComponent[] (RadComponent component) { RadContainer container = (RadContainer)component; RadComponent[] result = new RadComponent[container.getComponentCount() + 1]; for (int i = 1; i < result.length; i++) { result[i] = container.getComponent(i - 1); } return result; } | collectFilteredComponents |
46,006 | String (RadContainer component) { return (String)component.getDelegee().getClientProperty(NAME); } | getValue |
46,007 | boolean (List<RadComponent> selection) { return selection.size() == 1; } | appliesToSelection |
46,008 | RadComponent (ModuleProvider module, Class aClass, String id) { return new RadToolBar(module, aClass, id); } | newInstance |
46,009 | RadComponent (final Class componentClass, final String id, final Palette palette) { return new RadToolBar(componentClass, id, palette); } | newInstance |
46,010 | RadLayoutManager () { return new RadToolBarLayoutManager(); } | createInitialLayoutManager |
46,011 | void (final XmlWriter writer) { writer.startElement(UIFormXmlConstants.ELEMENT_TOOLBAR); try { writeNoLayout(writer, JToolBar.class.getName()); } finally { writer.endElement(); } } | write |
46,012 | ComponentDropLocation (RadContainer container, @Nullable final Point location) { return new FlowDropLocation(RadToolBar.this, location, FlowLayout.LEFT, 0, 0); } | getDropLocation |
46,013 | RadComponent (ModuleProvider module, Class aClass, String id) { return new RadSplitPane(module, aClass, id); } | newInstance |
46,014 | RadComponent (final Class componentClass, final String id, final Palette palette) { return new RadSplitPane(componentClass, id, palette); } | newInstance |
46,015 | boolean (final Component component) { return component == null || ((JComponent)component).getClientProperty(CLIENT_PROP_RAD_COMPONENT) == null; } | isEmptySplitComponent |
46,016 | boolean (Point pnt) { if (getSplitPane().getOrientation() == JSplitPane.VERTICAL_SPLIT) { return pnt.y < getDividerPos(); } else { return pnt.x < getDividerPos(); } } | isLeft |
46,017 | int () { final JSplitPane splitPane = getSplitPane(); int size = splitPane.getOrientation() == JSplitPane.VERTICAL_SPLIT ? splitPane.getHeight() : splitPane.getWidth(); if (splitPane.getDividerLocation() > splitPane.getDividerSize() && splitPane.getDividerLocation() < size - splitPane.getDividerSize()) { return splitPa... | getDividerPos |
46,018 | JSplitPane () { return (JSplitPane)getDelegee(); } | getSplitPane |
46,019 | EventProcessor (final MouseEvent event) { final JSplitPane splitPane = getSplitPane(); Point pnt = SwingUtilities.convertPoint(event.getComponent(), event.getPoint(), splitPane); int pos = (splitPane.getOrientation() == JSplitPane.VERTICAL_SPLIT) ? pnt.y : pnt.x; if (event.getID() == MouseEvent.MOUSE_PRESSED && pos >= ... | getEventProcessor |
46,020 | void (final XmlWriter writer) { writer.startElement(UIFormXmlConstants.ELEMENT_SPLITPANE); try { writeId(writer); writeClassIfDifferent(writer, JSplitPane.class.getName()); writeBinding(writer); // Constraints and properties writeConstraints(writer); writeProperties(writer); // Margin and border writeBorder(writer); wr... | write |
46,021 | void (final XmlWriter writer, final RadComponent child) { writer.startElement("splitpane"); try { final String position = (String)child.getCustomLayoutConstraints(); if (!LwSplitPane.POSITION_LEFT.equals(position) && !LwSplitPane.POSITION_RIGHT.equals(position)) { throw new IllegalStateException("invalid position: " + ... | writeChildConstraints |
46,022 | void (final RadContainer container, final RadComponent component, final int index) { final JSplitPane splitPane = (JSplitPane) container.getDelegee(); final JComponent delegee = component.getDelegee(); if (LwSplitPane.POSITION_LEFT.equals(component.getCustomLayoutConstraints())) { splitPane.setLeftComponent(delegee); }... | addComponentToContainer |
46,023 | ComponentDropLocation (RadContainer container, @Nullable final Point location) { if (location == null) { return new MyDropLocation(isEmptySplitComponent(getSplitPane().getLeftComponent())); } return new MyDropLocation(isLeft(location)); } | getDropLocation |
46,024 | RadContainer () { return RadSplitPane.this; } | getContainer |
46,025 | boolean (ComponentDragObject dragObject) { /* TODO[yole]: support multi-drop (is it necessary?) if (componentCount == 2) { return isEmptySplitComponent(getSplitPane().getLeftComponent()) && isEmptySplitComponent(getSplitPane().getRightComponent()); } */ return dragObject.getComponentCount() == 1 && isEmptySplitComponen... | canDrop |
46,026 | void (FeedbackLayer feedbackLayer, ComponentDragObject dragObject) { final JSplitPane splitPane = getSplitPane(); int dividerPos = getDividerPos(); int dividerStartPos = dividerPos - splitPane.getDividerSize()/2; int dividerEndPos = dividerPos + splitPane.getDividerSize() - splitPane.getDividerSize()/2; Rectangle rc; i... | placeFeedback |
46,027 | String () { String pos; if (getSplitPane().getOrientation() == JSplitPane.VERTICAL_SPLIT) { pos = myLeft ? UIDesignerBundle.message("insert.feedback.top") : UIDesignerBundle.message("insert.feedback.bottom"); } else { pos = myLeft ? UIDesignerBundle.message("insert.feedback.left") : UIDesignerBundle.message("insert.fee... | getInsertFeedbackTooltip |
46,028 | void (GuiEditor editor, RadComponent[] components, GridConstraints[] constraintsToAdjust, ComponentDragObject dragObject) { components[0].setCustomLayoutConstraints(myLeft ? LwSplitPane.POSITION_LEFT : LwSplitPane.POSITION_RIGHT); addComponent(components[0]); } | processDrop |
46,029 | ComponentDropLocation (Direction direction) { return null; } | getAdjacentLocation |
46,030 | void (KeyEvent e) { } | processKeyEvent |
46,031 | void (MouseEvent event) { JSplitPane splitPane = getSplitPane(); Point pnt = SwingUtilities.convertPoint(event.getComponent(), event.getPoint(), splitPane); splitPane.dispatchEvent(new MouseEvent(splitPane, event.getID(), event.getWhen(), event.getModifiers(), pnt.x, pnt.y, event.getClickCount(), event.isPopupTrigger()... | processMouseEvent |
46,032 | boolean () { return false; } | cancelOperation |
46,033 | RadErrorComponent ( final ModuleProvider module, final String id, final String componentClassName, final Element properties, @NotNull final @Nls String errorDescription ) { return new RadErrorComponent(module, id, componentClassName, properties, errorDescription); } | create |
46,034 | String () { return myComponentClassName; } | getComponentClassName |
46,035 | void (final XmlWriter writer) { writer.startElement("component"); try { writeId(writer); // write class writer.addAttribute("class", myComponentClassName); writeBinding(writer); writeConstraints(writer); // write properties (if any) if (myProperties != null) { writer.writeElement(myProperties); } } finally { writer.end... | write |
46,036 | void (final Graphics g) { g.setColor(Color.red); g.fillRect(0, 0, getWidth(), getHeight()); } | paint |
46,037 | boolean () { return false; } | hasIntrospectedProperties |
46,038 | String () { return UIFormXmlConstants.LAYOUT_BORDER; } | getName |
46,039 | LayoutManager () { return new BorderLayout(); } | createLayout |
46,040 | void (final XmlWriter writer, final RadContainer radContainer) { BorderLayout layout = (BorderLayout) radContainer.getLayout(); writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_HGAP, layout.getHgap()); writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_VGAP, layout.getVgap()); } | writeLayout |
46,041 | void (final RadContainer container, final RadComponent component, final int index) { if (component.getCustomLayoutConstraints() == null) { if (container.getDelegee().getComponentCount() == 0) { component.setCustomLayoutConstraints(BorderLayout.CENTER); } else { throw new RuntimeException("can't add component without co... | addComponentToContainer |
46,042 | void (final XmlWriter writer, final RadComponent child) { writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_BORDER_CONSTRAINT, (String) child.getCustomLayoutConstraints()); } | writeChildConstraints |
46,043 | ComponentDropLocation (RadContainer container, final Point location) { return new MyDropLocation(container, getQuadrantAt(container, location)); } | getDropLocation |
46,044 | String (final RadContainer container, final Point location) { if (location == null) { return BorderLayout.CENTER; } Dimension size = container.getDelegee().getSize(); if (location.x < size.width / 3) { return BorderLayout.WEST; } if (location.y < size.height / 3) { return BorderLayout.NORTH; } if (location.x > size.wid... | getQuadrantAt |
46,045 | void (final RadContainer container, final ArrayList<? super RadComponent> componentsInBorder, boolean isRow) { int cell = 0; while(cell < container.getGridCellCount(!isRow)) { RadComponent c = container.getComponentAtGrid(isRow, 0, cell); if (c == null) cell++; else { if (!(c instanceof RadHSpacer) && !(c instanceof Ra... | copyGridLine |
46,046 | Property[] (final Project project, final RadComponent component) { return new Property[] { BorderSideProperty.INSTANCE }; } | getComponentProperties |
46,047 | boolean (final RadComponent c, final int rowDelta, final int colDelta, final int rowSpanDelta, final int colSpanDelta) { if (rowSpanDelta != 0 || colSpanDelta != 0) { return false; } String side = (String) c.getCustomLayoutConstraints(); String adjSide = getAdjacentSide(side, rowDelta, colDelta); return adjSide != null... | canMoveComponent |
46,048 | void (final RadComponent c, final int rowDelta, final int colDelta, final int rowSpanDelta, final int colSpanDelta) { String side = (String) c.getCustomLayoutConstraints(); String adjSide = getAdjacentSide(side, rowDelta, colDelta); if (adjSide != null) { c.changeCustomLayoutConstraints(adjSide); } } | moveComponent |
46,049 | String (final String side, final int rowDelta, final int colDelta) { if (rowDelta == -1 && colDelta == 0) { return getAdjacentSide(side, BorderLayout.NORTH, BorderLayout.SOUTH); } if (rowDelta == 1 && colDelta == 0) { return getAdjacentSide(side, BorderLayout.SOUTH, BorderLayout.NORTH); } if (rowDelta == 0 && colDelta ... | getAdjacentSide |
46,050 | String (final String side, final String toEdge, final String fromEdge) { if (side.equals(toEdge)) { return null; } if (side.equals(fromEdge)) { return BorderLayout.CENTER; } return toEdge; } | getAdjacentSide |
46,051 | RadContainer () { return myContainer; } | getContainer |
46,052 | boolean (ComponentDragObject dragObject) { return dragObject.getComponentCount() == 1 && ((BorderLayout) myContainer.getLayout()).getLayoutComponent(myQuadrant) == null; } | canDrop |
46,053 | void (FeedbackLayer feedbackLayer, ComponentDragObject dragObject) { Dimension initialSize = dragObject.getInitialSize(myContainer); feedbackLayer.putFeedback(myContainer.getDelegee(), getFeedbackRect(myQuadrant, initialSize), myContainer.getDisplayName() + " (" + StringUtil.toLowerCase(myQuadrant) + ")"); } | placeFeedback |
46,054 | Rectangle (final String quadrant, final Dimension initialSize) { Dimension size = myContainer.getDelegee().getSize(); int initialWidth = (initialSize.width > 0 && initialSize.width < size.width) ? initialSize.width : size.width/3; int initialHeight = (initialSize.height > 0 && initialSize.height < size.height) ? initia... | getFeedbackRect |
46,055 | int (final String constraint) { BorderLayout layout = (BorderLayout) myContainer.getLayout(); Component c = layout.getLayoutComponent(myContainer.getDelegee(), constraint); if (c == null) { return 0; } return c.getBounds().height; } | getHeightAtConstraint |
46,056 | void (GuiEditor editor, RadComponent[] components, GridConstraints[] constraintsToAdjust, ComponentDragObject dragObject) { components [0].setCustomLayoutConstraints(myQuadrant); myContainer.addComponent(components [0]); } | processDrop |
46,057 | ComponentDropLocation (Direction direction) { String side = switch (direction) { case LEFT -> getAdjacentSide(myQuadrant, 0, -1); case UP -> getAdjacentSide(myQuadrant, -1, 0); case RIGHT -> getAdjacentSide(myQuadrant, 0, 1); case DOWN -> getAdjacentSide(myQuadrant, 1, 0); }; if (side != null) { return new MyDropLocati... | getAdjacentLocation |
46,058 | String (RadComponent component) { return (String) component.getCustomLayoutConstraints(); } | getValue |
46,059 | PropertyRenderer<String> () { if (myRenderer == null) { myRenderer = new LabelPropertyRenderer<>(); } return myRenderer; } | getRenderer |
46,060 | PropertyEditor<String> () { if (myEditor == null) { myEditor = new BorderSideEditor(); } return myEditor; } | getEditor |
46,061 | JComponent (RadComponent component, @NlsSafe String value, InplaceContext inplaceContext) { myCbx.setSelectedItem(value); return myCbx; } | getComponent |
46,062 | Module () { return myModule == null ? null : myModule.getModule(); } | getModule |
46,063 | Project () { return myModule == null ? null : myModule.getProject(); } | getProject |
46,064 | boolean () { return myLoadingProperties; } | isLoadingProperties |
46,065 | Palette () { if (myPalette == null) { return Palette.getInstance(getProject()); } return myPalette; } | getPalette |
46,066 | void (final Palette palette) { myPalette = palette; } | setPalette |
46,067 | void (final GuiEditor editor, @NotNull final ComponentItem item) { initDefaultProperties(item); } | init |
46,068 | void (@NotNull final ComponentItem item) { final IntrospectedProperty[] properties = getPalette().getIntrospectedProperties(this); for (final IntrospectedProperty property : properties) { final Object initialValue = item.getInitialValue(property); if (initialValue != null) { try { //noinspection unchecked property.setV... | initDefaultProperties |
46,069 | String () { return myId; } | getId |
46,070 | void (final String binding) { //TODO[anton,vova]: check that binding is a valid java identifier!!! myBinding = binding; } | setBinding |
46,071 | boolean () { return myCustomCreate; } | isCustomCreate |
46,072 | void (final boolean customCreate) { myCustomCreate = customCreate; } | setCustomCreate |
46,073 | boolean () { return !getDelegee().getClass().equals(getComponentClass()); } | isCustomCreateRequired |
46,074 | JComponent () { return myDelegee; } | getDelegee |
46,075 | Property (final int x, final int y) { return getDefaultInplaceProperty(); } | getInplaceProperty |
46,076 | Property () { return getPalette().getInplaceProperty(this); } | getDefaultInplaceProperty |
46,077 | Rectangle () { return null; } | getDefaultInplaceEditorBounds |
46,078 | Rectangle (@NotNull final Property property, final int x, final int y) { return null; } | getInplaceEditorBounds |
46,079 | Class () { return myClass; } | getComponentClass |
46,080 | Object () { return myCustomLayoutConstraints; } | getCustomLayoutConstraints |
46,081 | void (final Object customConstraints) { myCustomLayoutConstraints = customConstraints; } | setCustomLayoutConstraints |
46,082 | void (final Object constraints) { setCustomLayoutConstraints(constraints); // update constraints in CardLayout final JComponent parent = getParent().getDelegee(); for (int i = 0; i < parent.getComponentCount(); i++) { if (parent.getComponent(i) == getDelegee()) { parent.remove(i); parent.add(getDelegee(), constraints, ... | changeCustomLayoutConstraints |
46,083 | boolean () { return myHasDragger; } | hasDragger |
46,084 | void (final boolean hasDragger) { myHasDragger = hasDragger; } | setDragger |
46,085 | boolean () { return myResizing; } | isResizing |
46,086 | void (final boolean resizing) { myResizing = resizing; } | setResizing |
46,087 | boolean () { return myDragging; } | isDragging |
46,088 | void (final boolean dragging) { myDragging = dragging; RadContainer parent = getParent(); if (parent != null) { parent.getLayoutManager().setChildDragging(this, dragging); } } | setDragging |
46,089 | void (final boolean dragging) { myDragging = dragging; myDragBorder = dragging; } | setDragBorder |
46,090 | boolean () { return myDragBorder; } | isDragBorder |
46,091 | boolean () { return myDefaultBinding; } | isDefaultBinding |
46,092 | void (final boolean defaultBinding) { myDefaultBinding = defaultBinding; } | setDefaultBinding |
46,093 | void (final PropertyChangeListener l) { final PropertyChangeListener[] propertyChangeListeners = myChangeSupport.getPropertyChangeListeners(); for (PropertyChangeListener listener : propertyChangeListeners) { assert listener != l; } myChangeSupport.addPropertyChangeListener(l); } | addPropertyChangeListener |
46,094 | void (final PropertyChangeListener l) { myChangeSupport.removePropertyChangeListener(l); } | removePropertyChangeListener |
46,095 | void ( @NotNull final String propertyName, final Object oldValue, final Object newValue ) { myChangeSupport.firePropertyChange(propertyName, oldValue, newValue); } | firePropertyChanged |
46,096 | GridConstraints () { return myConstraints; } | getConstraints |
46,097 | RadContainer () { return myParent; } | getParent |
46,098 | void (final RadContainer parent) { myParent = parent; } | setParent |
46,099 | boolean () { return mySelected; } | isSelected |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.