Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
46,200 | int (RadContainer container, int y) { return getGridCellAt(container, y, true); } | getGridRowAt |
46,201 | int (RadContainer container, int x) { return getGridCellAt(container, x, false); } | getGridColumnAt |
46,202 | int (final RadContainer container, final int coord, final boolean isRow) { int[] coords = getGridCellCoords(container, isRow); int[] sizes = getGridCellSizes(container, isRow); for (int i = 0; i < coords.length; i++) { if (coords[i] <= coord && coord <= coords[i] + sizes[i]) { return i; } } return -1; } | getGridCellAt |
46,203 | CustomPropertiesPanel (RadContainer container, boolean isRow, int[] selectedIndices) { return null; } | getRowColumnPropertiesPanel |
46,204 | RadComponent (RadContainer container, final int row, final int column) { // If the target cell is not empty does not allow drop. for(int i=0; i<container.getComponentCount(); i++){ final RadComponent component = container.getComponent(i); if (component.isDragging()) { continue; } final GridConstraints constraints=compo... | getComponentAtGrid |
46,205 | int (RadContainer container, boolean isRow, Point pnt, int epsilon) { int coord = isRow ? pnt.y : pnt.x; int[] gridLines = isRow ? getHorizontalGridLines(container) : getVerticalGridLines(container); for(int col = 1; col <gridLines.length; col++) { if (coord < gridLines [col]) { if (coord - gridLines [col-1] < epsilon)... | getGridLineNear |
46,206 | Rectangle (RadContainer container, int startRow, int startCol, int endRow, int endCol) { int[] xs = getGridCellCoords(container, false); int[] ys = getGridCellCoords(container, true); int[] widths = getGridCellSizes(container, false); int[] heights = getGridCellSizes(container, true); return new Rectangle(xs[startCol],... | getGridCellRangeRect |
46,207 | boolean (RadContainer container, boolean isRow, int i) { return false; } | canCellGrow |
46,208 | ActionGroup () { return null; } | getCaptionActions |
46,209 | void (final RadContainer container, final boolean isRow, final int i, final Graphics2D g, final Rectangle rc) { if (canCellGrow(container, isRow, i)) { drawGrowMarker(isRow, g, rc); } } | paintCaptionDecoration |
46,210 | int (final RadContainer grid, final int cellIndex, final boolean isRow, final boolean isBefore, final boolean grow) { GridChangeUtil.insertRowOrColumn(grid, cellIndex, isRow, isBefore); return 1; } | insertGridCells |
46,211 | void (RadContainer source, final RadContainer destination, final boolean isRow, int cellIndex, int cellCount, int targetIndex) { for(int i=0; i< cellCount; i++) { insertGridCells(destination, cellIndex, isRow, false, false); } } | copyGridCells |
46,212 | int (final RadContainer grid, final int cellIndex, final boolean isRow) { GridChangeUtil.deleteCell(grid, cellIndex, isRow); return 1; } | deleteGridCells |
46,213 | void (final RadContainer container, final boolean isRow, final int[] cells, final int targetCell) { GridChangeUtil.moveCells(container, isRow, cells, targetCell); } | processCellsMoved |
46,214 | int () { return 0; } | getGapCellCount |
46,215 | int (final RadContainer container, boolean isRow) { return 0; } | getGapCellSize |
46,216 | boolean (RadContainer grid, boolean isRow, int cellIndex) { return false; } | isGapCell |
46,217 | int () { return 0; } | getCellIndexBase |
46,218 | boolean () { return true; } | canSpanningAllowed |
46,219 | boolean () { return true; } | canResizeCells |
46,220 | String (RadContainer container, boolean isRow, int cell, int newSize) { return null; } | getCellResizeTooltip |
46,221 | void (RadContainer container, final boolean isRow, final int cell, final int newSize) { } | processCellResized |
46,222 | LayoutManager (LayoutManager layout, int rowDelta, int columnDelta) { return layout; } | copyLayout |
46,223 | boolean () { return false; } | isGridDefinedByComponents |
46,224 | void (final XmlWriter writer, final RadComponent child) { // Constraints in Grid layout writer.startElement("grid"); try { final GridConstraints constraints = child.getConstraints(); writer.addAttribute("row",constraints.getRow()); writer.addAttribute("column",constraints.getColumn()); writer.addAttribute("row-span",co... | writeGridConstraints |
46,225 | ComponentDropLocation (RadContainer container, @Nullable final Point location) { if (container.getGridRowCount() == 1 && container.getGridColumnCount() == 1 && getComponentAtGrid(container, 0, 0) == null) { final Rectangle rc = getGridCellRangeRect(container, 0, 0, 0, 0); if (location == null) { return new FirstCompone... | getDropLocation |
46,226 | int (final RadContainer container) { int lastRow = getGridRowCount(container)-1; for(int col=0; col<getGridColumnCount(container); col++) { RadComponent c = getComponentAtGrid(container, lastRow, col); if (c != null && !(c instanceof RadHSpacer) && !(c instanceof RadVSpacer)) { return lastRow; } } return lastRow-1; } | getLastNonSpacerRow |
46,227 | void (final boolean isRow, final Graphics2D g2d, final Rectangle rc) { g2d.setColor(Color.BLACK); if (!isRow) { int maxX = (int) rc.getMaxX(); int midY = (int) rc.getCenterY()+3; final int xStart = Math.max(maxX - 10, rc.x + 2); final int xEnd = maxX - 2; g2d.drawLine(xStart, midY, xEnd, midY); g2d.drawLine(xStart, mid... | drawGrowMarker |
46,228 | void (final RadContainer container, final List<RadComponent> contents, final List<Boolean> canRowsGrow, final List<Boolean> canColumnsGrow) { container.setLayoutManager(this); } | changeLayoutFromGrid |
46,229 | void (final RadContainer container, final List<RadComponent> components) { container.setLayoutManager(this); } | changeLayoutFromIndexed |
46,230 | List<Boolean> (final RadAbstractGridLayoutManager grid, final RadContainer container, final boolean isRow) { List<Boolean> result = new ArrayList<>(); for(int i=0; i<grid.getGridCellCount(container, isRow); i++) { if (!grid.isGapCell(container, isRow, i)) { result.add(grid.canCellGrow(container, isRow, i)); } } return ... | collectCanCellsGrow |
46,231 | List<RadComponent> (final RadContainer container) { List<RadComponent> contents = new ArrayList<>(); for(int i=container.getComponentCount()-1; i >= 0; i--) { final RadComponent component = container.getComponent(i); if (!(component instanceof RadHSpacer) && !(component instanceof RadVSpacer)) { contents.add(0, compone... | collectComponents |
46,232 | boolean (RadComponent c, int rowDelta, int colDelta, final int rowSpanDelta, final int colSpanDelta) { final int newRow = getNewRow(c, rowDelta); final int newCol = getNewColumn(c, colDelta); final int newRowSpan = getNewRowSpan(c, rowSpanDelta); final int newColSpan = getNewColSpan(c, colSpanDelta); if (newRow < 0 || ... | canMoveComponent |
46,233 | int (final RadComponent c, final int rowDelta) { return FormEditingUtil.adjustForGap(c.getParent(), c.getConstraints().getRow() + rowDelta, true, rowDelta); } | getNewRow |
46,234 | int (final RadComponent c, final int colDelta) { return FormEditingUtil.adjustForGap(c.getParent(), c.getConstraints().getColumn() + colDelta, false, colDelta); } | getNewColumn |
46,235 | int (final RadComponent c, final int rowSpanDelta) { int gapCount = c.getParent().getGridLayoutManager().getGapCellCount(); return c.getConstraints().getRowSpan() + rowSpanDelta * (gapCount+1); } | getNewRowSpan |
46,236 | int (final RadComponent c, final int colSpanDelta) { int gapCount = c.getParent().getGridLayoutManager().getGapCellCount(); return c.getConstraints().getColSpan() + colSpanDelta * (gapCount+1); } | getNewColSpan |
46,237 | void (RadComponent c, int rowDelta, int colDelta, final int rowSpanDelta, final int colSpanDelta) { GridConstraints constraints = c.getConstraints(); GridConstraints oldConstraints = (GridConstraints)constraints.clone(); constraints.setRow(getNewRow(c, rowDelta)); constraints.setColumn(getNewColumn(c, colDelta)); const... | moveComponent |
46,238 | int () { return 1; } | getMinCellCount |
46,239 | void (RadContainer container, RadComponent component, int index) { MyPropertyChangeListener listener = new MyPropertyChangeListener(component); myListenerMap.put(component, listener); component.addPropertyChangeListener(listener); } | addComponentToContainer |
46,240 | void (final RadContainer container, final RadComponent component) { final MyPropertyChangeListener listener = myListenerMap.get(component); if (listener != null) { component.removePropertyChangeListener(listener); myListenerMap.remove(component); } super.removeComponentFromContainer(container, component); } | removeComponentFromContainer |
46,241 | void (RadComponent component) { component.getParent().revalidate(); } | updateConstraints |
46,242 | void (PropertyChangeEvent evt) { if (evt.getPropertyName().equals(RadComponent.PROP_CONSTRAINTS)) { updateConstraints(myComponent); } } | propertyChange |
46,243 | RadComponent (ModuleProvider module, Class aClass, String id) { return new RadTabbedPane(module, aClass, id); } | newInstance |
46,244 | RadComponent (final Class componentClass, final String id, final Palette palette) { return new RadTabbedPane(componentClass, id, palette); } | newInstance |
46,245 | RadComponent (final int i) { RadComponent c = null; final Component component = getTabbedPane().getComponentAt(i); if (component instanceof JComponent jc) { c = (RadComponent) jc.getClientProperty(RadComponent.CLIENT_PROP_RAD_COMPONENT); } return c; } | getRadComponent |
46,246 | JTabbedPane () { return (JTabbedPane)getDelegee(); } | getTabbedPane |
46,247 | String (final StringDescriptor titleDescriptor) { if (titleDescriptor == null) { return UIDesignerBundle.message("tab.untitled"); } return getDescriptorText(titleDescriptor); } | calcTabName |
46,248 | String (@Nullable final StringDescriptor titleDescriptor) { if (titleDescriptor == null) return null; final String value = titleDescriptor.getValue(); if (value == null) { // from res bundle final String resolvedValue = StringDescriptorManager.getInstance(getModule()).resolve(this, titleDescriptor); titleDescriptor.set... | getDescriptorText |
46,249 | Property (final int x, final int y) { final JTabbedPane tabbedPane = getTabbedPane(); final TabbedPaneUI ui = tabbedPane.getUI(); LOG.assertTrue(ui != null); final int index = ui.tabForCoordinate(tabbedPane, x, y); return index != -1 ? new MyTitleProperty(null, index) : null; } | getInplaceProperty |
46,250 | Property () { final int index = getTabbedPane().getSelectedIndex(); if (index >= 0) { return new MyTitleProperty(null, index); } return null; } | getDefaultInplaceProperty |
46,251 | Rectangle (final Property property, final int x, final int y) { final JTabbedPane tabbedPane = getTabbedPane(); final TabbedPaneUI ui = tabbedPane.getUI(); LOG.assertTrue(ui != null); final int index = ui.tabForCoordinate(tabbedPane, x, y); LOG.assertTrue(index != -1); return ui.getTabBounds(tabbedPane, index); } | getInplaceEditorBounds |
46,252 | Rectangle () { final JTabbedPane tabbedPane = getTabbedPane(); final int index = tabbedPane.getSelectedIndex(); if (index >= 0) { return tabbedPane.getUI().getTabBounds(tabbedPane, index); } return null; } | getDefaultInplaceEditorBounds |
46,253 | StringDescriptor (RadComponent component) { final HashMap<String, LwTabbedPane.Constraints> id2Constraints = getId2Constraints(this); final LwTabbedPane.Constraints constraints = id2Constraints.get(component.getId()); return constraints == null ? null : constraints.myTitle; } | getChildTitle |
46,254 | void (final MouseEvent event) { event.getComponent().dispatchEvent(event); } | processMouseEvent |
46,255 | void (final XmlWriter writer) { writer.startElement(UIFormXmlConstants.ELEMENT_TABBEDPANE); try{ writeId(writer); writeClassIfDifferent(writer, JTabbedPane.class.getName()); writeBinding(writer); // Constraints and properties writeConstraints(writer); writeProperties(writer); writeBorder(writer); writeChildren(writer);... | write |
46,256 | RadComponent () { int index = getTabbedPane().getSelectedIndex(); return index < 0 ? null : getComponent(index); } | getSelectedTab |
46,257 | void (final RadComponent component) { final JTabbedPane tabbedPane = getTabbedPane(); int index = tabbedPane.indexOfComponent(component.getDelegee()); if (index >= 0) { tabbedPane.setSelectedIndex(index); } } | selectTab |
46,258 | StringDescriptor (IComponent component, final String propName) { final HashMap<String, LwTabbedPane.Constraints> id2Constraints = getId2Constraints(this); final LwTabbedPane.Constraints constraints = id2Constraints.get(component.getId()); return constraints == null ? null : constraints.getProperty(propName); } | getTabProperty |
46,259 | boolean (final RadComponent radComponent) { StringDescriptor childTitle = getChildTitle(radComponent); if (childTitle == null) return false; String oldTitle = childTitle.getResolvedValue(); childTitle.setResolvedValue(null); try { setTabProperty(radComponent, ITabbedPane.TAB_TITLE_PROPERTY, childTitle); } catch (Except... | refreshChildTitle |
46,260 | PropertyRenderer () { return myRenderer; } | getRenderer |
46,261 | StringDescriptor (final RadComponent component) { final RadComponent tabComponent = getRadComponent(myIndex); // 1. resource bundle final LwTabbedPane.Constraints constraints = getId2Constraints(RadTabbedPane.this).get(tabComponent.getId()); final StringDescriptor descriptor = constraints == null ? null : getValueFromC... | getValue |
46,262 | String () { return getTabbedPane().getTitleAt(myIndex); } | getValueFromTabbedPane |
46,263 | StringDescriptor (final LwTabbedPane.Constraints constraints) { return constraints.myTitle; } | getValueFromConstraints |
46,264 | void (final @NlsSafe String text) { getTabbedPane().setTitleAt(myIndex, text); } | putValueToTabbedPane |
46,265 | void (final StringDescriptor value, final LwTabbedPane.Constraints constraints) { constraints.myTitle = value; } | putValueToConstraints |
46,266 | PropertyRenderer<StringDescriptor> () { return myRenderer; } | getRenderer |
46,267 | PropertyEditor<StringDescriptor> () { return myEditor; } | getEditor |
46,268 | IconDescriptor (final RadComponent component) { LwTabbedPane.Constraints constraints = getConstraintsForComponent(component); return myDisabledIcon ? constraints.myDisabledIcon : constraints.myIcon; } | getValue |
46,269 | PropertyRenderer<IconDescriptor> () { return myRenderer; } | getRenderer |
46,270 | PropertyEditor<IconDescriptor> () { return myEditor; } | getEditor |
46,271 | Boolean (final RadComponent component) { LwTabbedPane.Constraints constraints = getConstraintsForComponent(component); return constraints.myEnabled; } | getValue |
46,272 | ComponentDropLocation (RadContainer container, @Nullable final Point location) { final JTabbedPane tabbedPane = getTabbedPane(); final TabbedPaneUI ui = tabbedPane.getUI(); if (location != null && tabbedPane.getTabCount() > 0) { for(int i=0; i<tabbedPane.getTabCount(); i++) { Rectangle rc = ui.getTabBounds(tabbedPane, ... | getDropLocation |
46,273 | void (final XmlWriter writer, final RadComponent child) { writer.startElement(UIFormXmlConstants.ELEMENT_TABBEDPANE); try{ final JComponent delegee = child.getDelegee(); final JTabbedPane tabbedPane = getTabbedPane(); final int i = tabbedPane.indexOfComponent(delegee); if (i == -1) { throw new IllegalArgumentException(... | writeChildConstraints |
46,274 | void (final RadContainer container, final RadComponent component, final int index) { final JTabbedPane tabbedPane = getTabbedPane(); LwTabbedPane.Constraints constraints = null; if (component.getCustomLayoutConstraints() instanceof LwTabbedPane.Constraints) { constraints = ((LwTabbedPane.Constraints)component.getCustom... | addComponentToContainer |
46,275 | boolean (RadContainer container, RadComponent child) { return child == getSelectedTab(); } | isSwitchedToChild |
46,276 | boolean (RadContainer container, RadComponent child) { RadTabbedPane.this.selectTab(child); return true; } | switchContainerToChild |
46,277 | boolean () { return true; } | areChildrenExclusive |
46,278 | RadContainer () { return RadTabbedPane.this; } | getContainer |
46,279 | boolean (ComponentDragObject dragObject) { return dragObject.getComponentCount() == 1; } | canDrop |
46,280 | void (FeedbackLayer feedbackLayer, ComponentDragObject dragObject) { final String tooltipText = UIDesignerBundle.message("insert.feedback.add.tab", getDisplayName(), myInsertIndex); if (myInsertIndex < getTabbedPane().getTabCount()) { feedbackLayer.putFeedback(getDelegee(), myFeedbackRect, VertInsertFeedbackPainter.INS... | placeFeedback |
46,281 | void (GuiEditor editor, RadComponent[] components, GridConstraints[] constraintsToAdjust, ComponentDragObject dragObject) { if (myInsertBeforeId != null) { for(int i=0; i<getTabbedPane().getTabCount(); i++) { if (getRadComponent(i).getId().equals(myInsertBeforeId)) { myInsertIndex = i; break; } } } if (myInsertIndex > ... | processDrop |
46,282 | ComponentDropLocation (Direction direction) { return null; } | getAdjacentLocation |
46,283 | String () { return UIFormXmlConstants.LAYOUT_FLOW; } | getName |
46,284 | LayoutManager () { return new FlowLayout(); } | createLayout |
46,285 | void (final XmlWriter writer, final RadContainer radContainer) { FlowLayout layout = (FlowLayout) radContainer.getLayout(); writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_HGAP, layout.getHgap()); writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_VGAP, layout.getVgap()); writer.addAttribute(UIFormXmlConstants.ATTRIBUTE... | writeLayout |
46,286 | ComponentDropLocation (RadContainer container, final Point location) { FlowLayout flowLayout = (FlowLayout) container.getLayout(); return new FlowDropLocation(container, location, flowLayout.getAlignment(), (flowLayout.getHgap()+1)/2, (flowLayout.getVgap()+1)/2); } | getDropLocation |
46,287 | void () { if (myPairs == null) { myPairs = new IntEnumEditor.Pair[] { new IntEnumEditor.Pair(FlowLayout.CENTER, UIDesignerBundle.message("property.center")), new IntEnumEditor.Pair(FlowLayout.LEFT, UIDesignerBundle.message("property.left")), new IntEnumEditor.Pair(FlowLayout.RIGHT, UIDesignerBundle.message("property.ri... | initPairs |
46,288 | Integer (final RadContainer component) { final LayoutManager layout = component.getLayout(); if (!(layout instanceof FlowLayout flowLayout)) return null; return flowLayout.getAlignment(); } | getValue |
46,289 | PropertyRenderer<Integer> () { if (myRenderer == null) { initPairs(); myRenderer = new IntEnumRenderer(myPairs); } return myRenderer; } | getRenderer |
46,290 | PropertyEditor<Integer> () { if (myEditor == null) { initPairs(); myEditor = new IntEnumEditor(myPairs); } return myEditor; } | getEditor |
46,291 | LayoutManager () { return new XYLayoutManagerImpl(); } | createLayout |
46,292 | void (final XmlWriter writer, final RadContainer radContainer) { final AbstractLayout layout = (AbstractLayout)radContainer.getLayout(); // It has sense to save hpap and vgap even for XY layout. The reason is // that XY was previously GRID with non default gaps, so when the user // compose XY into the grid again then h... | writeLayout |
46,293 | void (final XmlWriter writer, final RadComponent child) { // Constraints of XY layout writer.startElement("xy"); try{ writer.addAttribute("x", child.getX()); writer.addAttribute("y", child.getY()); writer.addAttribute("width", child.getWidth()); writer.addAttribute("height", child.getHeight()); }finally{ writer.endElem... | writeChildConstraints |
46,294 | ComponentDropLocation (RadContainer container, @Nullable final Point location) { return new MyDropLocation(container, location != null ? location : new Point(5, 5)); } | getDropLocation |
46,295 | void (final RadContainer container, final RadComponent component, final int index) { container.getDelegee().add(component.getDelegee(), component.getConstraints()); } | addComponentToContainer |
46,296 | RadContainer () { return myContainer; } | getContainer |
46,297 | boolean (ComponentDragObject dragObject) { if (dragObject.getComponentCount() != 1) { return false; } for(RadComponent component: myContainer.getComponents()) { if (!component.isDragging()) { return false; } } return true; } | canDrop |
46,298 | void (FeedbackLayer feedbackLayer, ComponentDragObject dragObject) { } | placeFeedback |
46,299 | void (GuiEditor editor, RadComponent[] components, GridConstraints[] constraintsToAdjust, ComponentDragObject dragObject) { int patchX = 0; int patchY = 0; for (int i = 0; i < components.length; i++) { final RadComponent c = components[i]; final Point p = new Point(myLocation); Point delta = dragObject.getDelta(i); if ... | processDrop |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.