Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
45,700 | void (@NonNls final String elementName, final String namespace) { if (!myElementNames.isEmpty()) { if(!myElementHasBody.peek()){ myBuffer.append(">\n"); } myElementHasBody.pop(); myElementHasBody.push(true); } writeSpaces(myElementNames.size()*INDENT); myBuffer.append("<").append(elementName); if (namespace != null) { ... | startElement |
45,701 | void () { final String elementName = myElementNames.peek(); final boolean hasBody = myElementHasBody.peek(); myElementNames.pop(); myElementHasBody.pop(); if (hasBody) { writeSpaces(myElementNames.size()*INDENT); myBuffer.append("</").append(elementName).append(">\n"); } else { myBuffer.append("/>\n"); } } | endElement |
45,702 | void (final String name,final String value) { myBuffer.append(' ').append(name).append("=\"").append(value).append('"'); } | addAttributeImpl |
45,703 | void (@NonNls final String name, final String value) { addAttributeImpl(name, StringUtil.convertLineSeparators(XmlStringUtil.escapeString(value, true, false))); } | addAttribute |
45,704 | void (@NonNls final String name, final int value) { addAttributeImpl(name, Integer.toString(value)); } | addAttribute |
45,705 | void (@NonNls final String name, final boolean value) { addAttributeImpl(name, Boolean.toString(value)); } | addAttribute |
45,706 | void (@NonNls final String name, final Double value) { addAttributeImpl(name, Double.toString(value)); } | addAttribute |
45,707 | void (final Element element) { startElement(element.getName()); try { for (final Attribute attribute : element.getAttributes()) { addAttribute(attribute.getName(), attribute.getValue()); } for (final Element child : element.getChildren()) { writeElement(child); } } finally { endElement(); } } | writeElement |
45,708 | void (final int count) { myBuffer.append(" ".repeat(count)); } | writeSpaces |
45,709 | void (final StringDescriptor descriptor, final String valueAttr, final String bundleAttr, final String keyAttr) { if(descriptor.getValue() != null){ // direct value addAttribute(valueAttr, descriptor.getValue()); if (descriptor.isNoI18n()) { addAttribute(UIFormXmlConstants.ATTRIBUTE_NOI18N, Boolean.TRUE.toString()); } ... | writeStringDescriptor |
45,710 | void (final ColorDescriptor value) { Color color = value.getColor(); if (color != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_COLOR, color.getRGB()); } else if (value.getSwingColor() != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_SWING_COLOR, value.getSwingColor()); } else if (value.getSystemColor() != null... | writeColorDescriptor |
45,711 | void (final FontDescriptor value) { if (value.getSwingFont() != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_SWING_FONT, value.getSwingFont()); } else { if (value.getFontName() != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_NAME, value.getFontName()); } if (value.getFontSize() >= 0) { addAttribute(UIFormXmlC... | writeFontDescriptor |
45,712 | void (final Insets value) { addAttribute(UIFormXmlConstants.ATTRIBUTE_TOP, value.top); addAttribute(UIFormXmlConstants.ATTRIBUTE_LEFT, value.left); addAttribute(UIFormXmlConstants.ATTRIBUTE_BOTTOM, value.bottom); addAttribute(UIFormXmlConstants.ATTRIBUTE_RIGHT, value.right); } | writeInsets |
45,713 | boolean (PsiFile file) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { String extension = virtualFile.getExtension(); return extension != null && myExtensions.contains(StringUtil.toLowerCase(extension)) && (myModuleScope == null || myModuleScope.contains(virtualFile)); } return false... | accept |
45,714 | boolean (final GuiEditor editor) { final ArrayList<RadComponent> selection = getSelectedComponents(editor); if (selection.isEmpty()) return false; final RadRootContainer rootContainer = editor.getRootContainer(); if (rootContainer.getComponentCount() > 0 && selection.contains(rootContainer.getComponent(0))) { return fa... | canDeleteSelection |
45,715 | void (final GuiEditor editor) { final List<RadComponent> selection = getSelectedComponents(editor); deleteComponents(selection, true); editor.refreshAndSave(true); } | deleteSelection |
45,716 | void (final Collection<? extends RadComponent> selection, boolean deleteEmptyCells) { if (selection.size() == 0) { return; } final RadRootContainer rootContainer = (RadRootContainer)getRoot(selection.iterator().next()); final Set<String> deletedComponentIds = new HashSet<>(); for (final RadComponent component : selecti... | deleteComponents |
45,717 | boolean (final IComponent c) { RadComponent rc = (RadComponent)c; BindingProperty.checkRemoveUnusedField(rootContainer, rc.getBinding(), null); deletedComponentIds.add(rc.getId()); return true; } | visit |
45,718 | boolean (final IComponent component) { RadComponent rc = (RadComponent)component; for (IProperty p : component.getModifiedProperties()) { if (p instanceof IntroComponentProperty icp) { final String value = icp.getValue(rc); if (deletedComponentIds.contains(value)) { try { icp.resetValue(rc); } catch (Exception e) { // ... | visit |
45,719 | void (final RadContainer parent, final GridConstraints delConstraints) { deleteEmptyGridCells(parent, delConstraints, true); deleteEmptyGridCells(parent, delConstraints, false); } | deleteEmptyGridCells |
45,720 | void (final RadContainer parent, final GridConstraints delConstraints, final boolean isRow) { final RadAbstractGridLayoutManager layoutManager = parent.getGridLayoutManager(); for (int cell = delConstraints.getCell(isRow) + delConstraints.getSpan(isRow) - 1; cell >= delConstraints.getCell(isRow); cell--) { if (cell < p... | deleteEmptyGridCells |
45,721 | Component (JComponent parent, Point location) { int size = parent.getComponentCount(); for (int i = 0; i < size; i++) { Component child = parent.getComponent(i); if (child.isShowing()) { if (child.getWidth() < EMPTY_COMPONENT_SIZE || child.getHeight() < EMPTY_COMPONENT_SIZE) { Point childLocation = child.getLocationOnS... | getDeepestEmptyComponentAt |
45,722 | RadComponent (final RadRootContainer rootContainer, final int x, final int y) { Point location = new Point(x, y); SwingUtilities.convertPointToScreen(location, rootContainer.getDelegee()); Component c = getDeepestEmptyComponentAt(rootContainer.getDelegee(), location); if (c == null) { c = SwingUtilities.getDeepestCompo... | getRadComponentAt |
45,723 | RadComponent (@NotNull final GuiEditor editor) { final Ref<RadComponent> result = new Ref<>(); iterate( editor.getRootContainer(), new ComponentVisitor<RadComponent>() { @Override public boolean visit(final RadComponent component) { if (component.hasDragger()) { result.set(component); return false; } return true; } } )... | getDraggerHost |
45,724 | boolean (final RadComponent component) { if (component.hasDragger()) { result.set(component); return false; } return true; } | visit |
45,725 | Cursor () { try { return Cursor.getSystemCustomCursor("MoveDrop.32x32"); } catch (Exception ex) { return Cursor.getDefaultCursor(); } } | getMoveDropCursor |
45,726 | Cursor () { try { return Cursor.getSystemCustomCursor("MoveNoDrop.32x32"); } catch (Exception ex) { return Cursor.getDefaultCursor(); } } | getMoveNoDropCursor |
45,727 | Cursor () { try { return Cursor.getSystemCustomCursor("CopyDrop.32x32"); } catch (Exception ex) { return Cursor.getDefaultCursor(); } } | getCopyDropCursor |
45,728 | ArrayList<RadComponent> (@NotNull final GuiEditor editor) { final ArrayList<RadComponent> result = new ArrayList<>(); calcSelectedComponentsImpl(result, editor.getRootContainer()); return result; } | getSelectedComponents |
45,729 | void (final ArrayList<? super RadComponent> result, final RadContainer container) { if (container.isSelected()) { if (container.getParent() != null) { // ignore RadRootContainer result.add(container); return; } } for (int i = 0; i < container.getComponentCount(); i++) { final RadComponent component = container.getCompo... | calcSelectedComponentsImpl |
45,730 | ArrayList<RadComponent> (@NotNull final GuiEditor editor) { final ArrayList<RadComponent> result = new ArrayList<>(); iterate( editor.getRootContainer(), new ComponentVisitor<RadComponent>() { @Override public boolean visit(final RadComponent component) { if (component.isSelected()) { result.add(component); } return tr... | getAllSelectedComponents |
45,731 | boolean (final RadComponent component) { if (component.isSelected()) { result.add(component); } return true; } | visit |
45,732 | String (Throwable ex) { if (ex instanceof RuntimeException) { final Throwable cause = ex.getCause(); if (cause != null && cause != ex) { return getExceptionMessage(cause); } } else if (ex instanceof InvocationTargetException) { final Throwable target = ((InvocationTargetException)ex).getTargetException(); if (target !=... | getExceptionMessage |
45,733 | IComponent (IComponent component, final String binding) { return findComponentWithBinding(component, binding, null); } | findComponentWithBinding |
45,734 | IComponent (IComponent component, final String binding, @Nullable final IComponent exceptComponent) { // Check that binding is unique final Ref<IComponent> boundComponent = new Ref<>(); iterate( component, new ComponentVisitor() { @Override public boolean visit(final IComponent component) { if (component != exceptCompo... | findComponentWithBinding |
45,735 | boolean (final IComponent component) { if (component != exceptComponent && binding.equals(component.getBinding())) { boundComponent.set(component); return false; } return true; } | visit |
45,736 | RadContainer (final RadRootContainer rootContainer, final int x, final int y, int epsilon) { RadComponent component = getRadComponentAt(rootContainer, x, y); if (isNullOrRoot(component) && epsilon > 0) { // try to find component near specified location component = getRadComponentAt(rootContainer, x - epsilon, y - epsil... | getRadContainerAt |
45,737 | boolean (final RadComponent component) { return component == null || component instanceof RadRootContainer; } | isNullOrRoot |
45,738 | GridConstraints (final RadComponent component) { final Palette palette = Palette.getInstance(component.getProject()); final ComponentItem item = palette.getItem(component.getComponentClassName()); if (item != null) { return item.getDefaultConstraints(); } return new GridConstraints(); } | getDefaultConstraints |
45,739 | IRootContainer (IComponent component) { while (component != null) { if (component.getParentContainer() instanceof IRootContainer) { return (IRootContainer)component.getParentContainer(); } component = component.getParentContainer(); } return null; } | getRoot |
45,740 | void (final IComponent component, final ComponentVisitor visitor) { iterateImpl(component, visitor); } | iterate |
45,741 | boolean (final IComponent component, final ComponentVisitor visitor) { final boolean shouldContinue; try { shouldContinue = visitor.visit(component); } catch (ProcessCanceledException ex) { return false; } if (!shouldContinue) { return false; } if (!(component instanceof IContainer container)) { return true; } for (int... | iterateImpl |
45,742 | Set<String> (final IRootContainer rootContainer) { final Set<String> bundleNames = new HashSet<>(); iterateStringDescriptors(rootContainer, new StringDescriptorVisitor<>() { @Override public boolean visit(final IComponent component, final StringDescriptor descriptor) { if (descriptor.getBundleName() != null) { bundleNa... | collectUsedBundleNames |
45,743 | boolean (final IComponent component, final StringDescriptor descriptor) { if (descriptor.getBundleName() != null) { bundleNames.add(descriptor.getBundleName()); } return true; } | visit |
45,744 | Locale[] (final Module module, final IRootContainer rootContainer) { final Set<Locale> locales = new HashSet<>(); final PropertiesReferenceManager propManager = PropertiesReferenceManager.getInstance(module.getProject()); for (String bundleName : collectUsedBundleNames(rootContainer)) { List<PropertiesFile> propFiles =... | collectUsedLocales |
45,745 | void (final GuiEditor editor, final RadContainer container, final int[] cellsToDelete, final boolean isRow) { Arrays.sort(cellsToDelete); final int[] cells = ArrayUtil.reverseArray(cellsToDelete); if (!editor.ensureEditable()) { return; } Runnable runnable = () -> { if (!GridChangeUtil.canDeleteCells(container, cells, ... | deleteRowOrColumn |
45,746 | String (final RadRootContainer rootContainer) { while (true) { final String id = Integer.toString((int)(Math.random() * 1024 * 1024), 16); if (findComponent(rootContainer, id) == null) { return id; } } } | generateId |
45,747 | GuiEditor (@NotNull final DataContext context) { final FileEditor editor = PlatformCoreDataKeys.FILE_EDITOR.getData(context); if (editor instanceof UIFormEditor) { return ((UIFormEditor)editor).getEditor(); } else { return GuiEditor.DATA_KEY.getData(context); } } | getEditorFromContext |
45,748 | boolean ( final IComponent componentToAssignBinding, final String binding, final IComponent component ) { return findComponentWithBinding(component, binding, componentToAssignBinding) == null; } | isBindingUnique |
45,749 | String (final PsiFile file) { PsiDirectory directory = file.getContainingDirectory(); if (directory != null) { PsiPackage pkg = JavaDirectoryService.getInstance().getPackage(directory); String packageName = pkg != null ? pkg.getQualifiedName() : ""; if (packageName.length() == 0) { return file.getName(); } return packa... | buildResourceName |
45,750 | RadContainer (final List<? extends RadComponent> selection) { RadContainer parent = null; for (RadComponent c : selection) { if (parent == null) { parent = c.getParent(); } else if (parent != c.getParent()) { parent = null; break; } } return parent; } | getSelectionParent |
45,751 | Rectangle (List<? extends RadComponent> selection) { int minRow = Integer.MAX_VALUE; int minCol = Integer.MAX_VALUE; int maxRow = 0; int maxCol = 0; for (RadComponent c : selection) { minRow = Math.min(minRow, c.getConstraints().getRow()); minCol = Math.min(minCol, c.getConstraints().getColumn()); maxRow = Math.max(max... | getSelectionBounds |
45,752 | boolean (@NotNull RadComponent component) { while (component.getParent() != null) { if (!component.getParent().getLayoutManager().isSwitchedToChild(component.getParent(), component)) { return false; } component = component.getParent(); } return true; } | isComponentSwitchedInView |
45,753 | boolean (final GuiEditor editor, @NotNull final RadComponent component) { boolean hasTab = false; RadComponent parent = component; while (parent.getParent() != null) { if (parent.getParent().getLayoutManager().switchContainerToChild(parent.getParent(), parent)) { hasTab = true; } parent = parent.getParent(); } componen... | selectComponent |
45,754 | void (final GuiEditor editor, final RadComponent component) { final RadContainer root = (RadContainer)getRoot(component); if (root == null) return; ComponentTreeBuilder builder = DesignerToolWindowManager.getInstance(editor).getComponentTreeBuilder(); // this can return null if the click to select the control also requ... | selectSingleComponent |
45,755 | void (final GuiEditor editor, List<? extends RadComponent> components) { if (components.size() > 0) { RadComponent component = components.get(0); ComponentTreeBuilder builder = DesignerToolWindowManager.getInstance(editor).getComponentTreeBuilder(); if (builder == null) { // race condition when handling event? return; ... | selectComponents |
45,756 | boolean (final DraggedComponentList draggedComponentList, final ComponentDropLocation location) { if (location.getContainer() == null) { return false; } for (RadComponent component : draggedComponentList.getComponents()) { if (isChild(location.getContainer(), component)) { return true; } } return false; } | isDropOnChild |
45,757 | boolean (RadContainer maybeChild, RadComponent maybeParent) { while (maybeChild != null) { if (maybeParent == maybeChild) { return true; } maybeChild = maybeChild.getParent(); } return false; } | isChild |
45,758 | PsiMethod (final PsiClass aClass) { PsiElementFactory factory = JavaPsiFacade.getInstance(aClass.getProject()).getElementFactory(); PsiMethod method; try { method = factory.createMethodFromText("void " + AsmCodeGenerator.CREATE_COMPONENTS_METHOD_NAME + "() {}", aClass); } catch (IncorrectOperationException e) { throw n... | findCreateComponentsMethod |
45,759 | Object (final Project project) { final GuiEditor guiEditor = DesignerToolWindowManager.getInstance(project).getActiveFormEditor(); return guiEditor == null ? null : guiEditor.getNextSaveGroupId(); } | getNextSaveUndoGroupId |
45,760 | int (final RadContainer container, final int cellIndex, final boolean isRow, final int delta) { if (container.getGridLayoutManager().isGapCell(container, isRow, cellIndex)) { return cellIndex + delta; } return cellIndex; } | adjustForGap |
45,761 | int (final RadContainer container, final int row) { return adjustForGap(container, row - 1, true, -1); } | prevRow |
45,762 | int (final RadContainer container, final int row) { return adjustForGap(container, row + 1, true, 1); } | nextRow |
45,763 | int (final RadContainer container, final int col) { return adjustForGap(container, col - 1, false, -1); } | prevCol |
45,764 | int (final RadContainer container, final int col) { return adjustForGap(container, col + 1, false, 1); } | nextCol |
45,765 | IButtonGroup (final IRootContainer radRootContainer, @NotNull final IComponent component) { for (IButtonGroup group : radRootContainer.getButtonGroups()) { if (ArrayUtil.contains(component.getId(), group.getComponentIds())) { return group; } } return null; } | findGroupForComponent |
45,766 | List<RadComponent> (final List<? extends RadComponent> selection) { ArrayList<RadComponent> result = new ArrayList<>(selection.size()); for (int i = 0; i < selection.size(); i++) { final RadComponent c = selection.get(i); if (c.getParent() != null) { result.add(c.getParent().getActionTargetComponent(c)); } } return res... | remapToActionTargets |
45,767 | void (final JBPopup popup, final RadComponent selectedComponent) { // popup.showUnderneathOf() doesn't work on invisible components Rectangle rc = selectedComponent.getBounds(); Point pnt = new Point(rc.x, rc.y + rc.height); popup.show(new RelativePoint(selectedComponent.getDelegee().getParent(), pnt)); } | showPopupUnderComponent |
45,768 | void (final IComponent component, final StringDescriptorVisitor<? super IComponent> visitor) { iterate(component, new ComponentVisitor<>() { @Override public boolean visit(final IComponent component) { for (IProperty prop : component.getModifiedProperties()) { Object value = prop.getPropertyValue(component); if (value ... | iterateStringDescriptors |
45,769 | boolean (final IComponent component) { for (IProperty prop : component.getModifiedProperties()) { Object value = prop.getPropertyValue(component); if (value instanceof StringDescriptor) { if (!visitor.visit(component, (StringDescriptor)value)) { return false; } } } if (component.getParentContainer() instanceof ITabbedP... | visit |
45,770 | void (@NotNull final RadContainer container) { container.setSelected(false); for (int i = 0; i < container.getComponentCount(); i++) { final RadComponent c = container.getComponent(i); if (c instanceof RadContainer) { clearSelection((RadContainer)c); } else { c.setSelected(false); } } } | clearSelection |
45,771 | IComponent (@NotNull final IComponent component, @NotNull final String id) { if (id.equals(component.getId())) { return component; } if (!(component instanceof IContainer uiContainer)) { return null; } for (int i = 0; i < uiContainer.getComponentCount(); i++) { final IComponent found = findComponent(uiContainer.getComp... | findComponent |
45,772 | PsiClass (@NotNull final Module module, @NotNull final String classToBindName) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701, EA-266779")) { return JavaPsiFacade.getInstance(module.getProject()) .findClass(classToBindName.replace('$', '.'), module.getModuleWithDependenciesScope()); } } | findClassToBind |
45,773 | void (final Graphics g) { final int handleHeight=getHandleHeight(); final int handleWidth=getHandleWidth(); // Paint left handle final int y=(getHeight()-handleHeight)/2; drawHandle(g,0,y); g.setColor(ourColor1); LinePainter2D.paint((Graphics2D)g, handleWidth, y + handleHeight / 2, handleWidth + 1, y + handleHeight / 2... | paintComponent |
45,774 | int () { return HANDLE_ATOM_WIDTH; } | getHandleWidth |
45,775 | int () { return HANDLE_ATOM_HEIGHT*3 + HANDLE_ATOM_SPACE*2; } | getHandleHeight |
45,776 | void (final Graphics g,final int x,int y) { g.setColor(ourColor1); g.drawRect(x,y,HANDLE_ATOM_WIDTH-1,HANDLE_ATOM_HEIGHT-1); LinePainter2D.paint((Graphics2D)g, x + HANDLE_ATOM_WIDTH / 2, y + HANDLE_ATOM_HEIGHT, x + HANDLE_ATOM_WIDTH / 2, y + HANDLE_ATOM_HEIGHT + HANDLE_ATOM_SPACE - 1); y+=HANDLE_ATOM_HEIGHT+HANDLE_ATOM... | drawHandle |
45,777 | void (final Graphics g,final int x,final int y,final int width) { for(int _x=x;_x<x+width-1;_x+=SPRING_PRERIOD){ drawSpringPeriod(g,_x,y); } } | drawSpring |
45,778 | void (final Graphics g,final int x,final int y) { g.setColor(ourColor2); LinePainter2D.paint((Graphics2D)g, x, y - 1, x, y - 2); LinePainter2D.paint((Graphics2D)g, x + 1, y, x + 1, y); LinePainter2D.paint((Graphics2D)g, x + 2, y + 1, x + 2, y + 2); g.setColor(ourColor3); LinePainter2D.paint((Graphics2D)g, x + 3, y, x +... | drawSpringPeriod |
45,779 | Dimension () { return new Dimension(getHandleWidth()*2+SPRING_PRERIOD,getHandleHeight()); } | getMinimumSize |
45,780 | void (final boolean insideChange) { ThreadingAssertions.assertEventDispatchThread(); myInsideChange = insideChange; } | setInsideChange |
45,781 | Stack<ComponentPtr[]> () { return mySelectionHistory; } | getSelectionHistory |
45,782 | ComponentPtr[] (final GuiEditor editor) { final ArrayList<RadComponent> selection = FormEditingUtil.getAllSelectedComponents(editor); final ComponentPtr[] ptrs = new ComponentPtr[selection.size()]; for(int i = selection.size() - 1; i >= 0; i--){ ptrs[i] = new ComponentPtr(editor, selection.get(i)); } return ptrs; } | getSelection |
45,783 | void (final GuiEditor editor, final ComponentPtr[] ptrs) { FormEditingUtil.clearSelection(editor.getRootContainer()); for(int i = ptrs.length - 1; i >= 0; i--){ final ComponentPtr ptr = ptrs[i]; ptr.validate(); if(ptr.isValid()){ ptr.getComponent().setSelected(true); } } } | restoreSelection |
45,784 | void (@NotNull final GuiEditor source) { if(myInsideChange){ // do not react on own events return; } mySelectionHistory.clear(); mySelectionHistory.push(getSelection(source)); } | selectedComponentChanged |
45,785 | String () { return "GUI_DESIGNER_FORM"; } | getName |
45,786 | String () { return IdeBundle.message("filetype.gui.designer.form.description"); } | getDescription |
45,787 | String () { return IdeBundle.message("filetype.gui.designer.form.display.name"); } | getDisplayName |
45,788 | String () { return DEFAULT_EXTENSION; } | getDefaultExtension |
45,789 | Icon () { return PlatformIcons.UI_FORM_ICON; } | getIcon |
45,790 | boolean () { return false; } | isBinary |
45,791 | String (@NotNull VirtualFile file, final byte @NotNull [] content) { return CharsetToolkit.UTF8; } | getCharset |
45,792 | HashMap (final String className) { if (myCache.containsKey(className)) { return myCache.get(className); } final PsiManager psiManager = PsiManager.getInstance(myModule.getProject()); final GlobalSearchScope scope = GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(myModule); final PsiClass aClass = JavaPsiFacad... | getLwProperties |
45,793 | void (final RadContainer grid, final int columnIndex) { splitCell(grid, columnIndex, false); } | splitColumn |
45,794 | void (final RadContainer grid, final int rowIndex) { splitCell(grid, rowIndex, true); } | splitRow |
45,795 | boolean (final RadContainer grid, final int columnIndex) { return canDeleteCell(grid, columnIndex, false) == CellStatus.Empty; } | isColumnEmpty |
45,796 | boolean (final RadContainer grid, final int rowIndex) { return canDeleteCell(grid, rowIndex, true) == CellStatus.Empty; } | isRowEmpty |
45,797 | void (final RadContainer grid, final int cellIndex, final boolean isRow, final boolean isBefore) { check(grid, isRow, cellIndex); final RadAbstractGridLayoutManager oldLayout = grid.getGridLayoutManager(); int beforeIndex = cellIndex; if (!isBefore) { // beforeIndex can actually be equal to get{Row|Column}Count an case... | insertRowOrColumn |
45,798 | GridConstraints[] (RadContainer grid) { final GridConstraints[] gridConstraints = new GridConstraints[grid.getComponentCount()]; for (int i = 0; i < grid.getComponentCount(); i++) { gridConstraints [i] = (GridConstraints) grid.getComponent(i).getConstraints().clone(); } return gridConstraints; } | copyConstraints |
45,799 | void (RadContainer grid, GridConstraints[] oldConstraints) { for(int i=grid.getComponentCount()-1; i >= 0; i--) { grid.getComponent(i).fireConstraintsChanged(oldConstraints [i]); } } | fireAllConstraintsChanged |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.