name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
framework_LayoutManager_getPaddingTop_rdh
/** * Gets the top padding of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has r...
3.26
framework_LayoutManager_getPaddingRight_rdh
/** * Gets the right padding of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has...
3.26
framework_LayoutManager_getBorderBottom_rdh
/** * Gets the bottom border of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has...
3.26
framework_LayoutManager_unregisterDependency_rdh
/** * Registers that a ManagedLayout is no longer depending on the size of an * Element. * * @see #registerDependency(ManagedLayout, Element) * @param owner * the ManagedLayout no longer depends on an element * @param element * the Element that that no longer needs to be measured */ public void unregisterD...
3.26
framework_LayoutManager_getPaddingBottom_rdh
/** * Gets the bottom padding of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout h...
3.26
framework_LayoutManager_setNeedsLayout_rdh
/** * Marks that a ManagedLayout should be layouted in the next layout phase * even if none of the elements managed by the layout have been resized. * <p> * This method should not be invoked during a layout phase since it only * controls what will happen in the beginning of the next phase. If you want * to explic...
3.26
framework_LayoutManager_reportOuterHeight_rdh
/** * Registers the outer height (including margins, borders and paddings) of a * component. This can be used as an optimization by ManagedLayouts; by * informing the LayoutManager about what size a component will have, the * layout propagation can continue directly without first measuring the * potentially resize...
3.26
framework_LayoutManager_setNeedsMeasureRecursively_rdh
/** * Informs this LayoutManager that some sizes in a component hierarchy might * have changed. This method should be used whenever the size of any child * component might have changed from outside of Vaadin's normal update * phase, e.g. when a CSS class name related to sizing has been changed. * <p> * To set a s...
3.26
framework_LayoutManager_performBrowserLayoutHacks_rdh
/** * Called once per iteration in the layout loop before size calculations so * different browsers quirks can be handled. Mainly this exists for legacy * reasons. */ protected void performBrowserLayoutHacks() { // Permutations implement this }
3.26
framework_LayoutManager_reportOuterWidth_rdh
/** * Registers the outer width (including margins, borders and paddings) of a * component. This can be used as an optimization by ManagedLayouts; by * informing the LayoutManager about what size a component will have, the * layout propagation can continue directly without first measuring the * potentially resized...
3.26
framework_LayoutManager_getMarginRight_rdh
/** * Gets the right margin of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has ...
3.26
framework_LayoutManager_delayOverflowFix_rdh
/* Delay the overflow fix if the involved connectors might still change */ private boolean delayOverflowFix(ComponentConnector componentConnector) { if (!currentDependencyTree.noMoreChangesExpected(componentConnector)) { return true; } ServerConnector parent = componentConnector.getParent(); if ((parent instanceof Co...
3.26
framework_LayoutManager_m0_rdh
/** * Returns the application connection for this layout manager. * * @return connection */ protected ApplicationConnection m0() { return connection; } /** * Gets the layout manager associated with the given * {@link ApplicationConnection}
3.26
framework_LayoutManager_getBorderRight_rdh
/** * Gets the right border of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has ...
3.26
framework_LayoutManager_removeElementResizeListener_rdh
/** * Removes an element resize listener from the provided element. This might * cause this LayoutManager to stop tracking the size of the element if no * other sources are interested in the size. * * @param element * the element to which the element resize listener was * previously added * @param listener ...
3.26
framework_LayoutManager_setNeedsMeasure_rdh
/** * Informs this LayoutManager that the size of a component might have * changed. This method should be used whenever the size of an individual * component might have changed from outside of Vaadin's normal update * phase, e.g. when an icon has been loaded or when the user resizes some * part of the UI using the...
3.26
framework_SystemMessagesInfo_getLocale_rdh
/** * The locale of the UI related to the {@link SystemMessages} request. * * @return The Locale or null if the locale is not known */ public Locale getLocale() { return locale;}
3.26
framework_TableElement_openCollapseMenu_rdh
/** * Opens the collapse menu of this table and returns the element for it. * * @return collapse menu element */ public CollapseMenuElement openCollapseMenu() { getCollapseMenuToggle().click();WebElement cm = getDriver().findElement(By.xpath("//*[@id='PID_VAADIN_CM']")); return wrapElement(cm, getCommandExe...
3.26
framework_TableElement_getCollapseMenuToggle_rdh
/** * Gets the button that shows or hides the collapse menu. * * @return button for opening collapse menu */ public WebElement getCollapseMenuToggle() { return findElement(By.className("v-table-column-selector")); }
3.26
framework_TableElement_getContextMenu_rdh
/** * Fetches the context menu for the table. * * @return {@link com.vaadin.testbench.elements.TableElement.ContextMenuElement} * @throws java.util.NoSuchElementException * if the menu isn't open */ public ContextMenuElement getContextMenu() { try { WebElement cm = getDriver().findElement(By.classNa...
3.26
framework_TableElement_getHeaderCell_rdh
/** * Returns the header cell with the given column index. * * @param column * 0 based column index * @return TableHeaderElement containing the wanted header cell */ public TableHeaderElement getHeaderCell(int column) { TestBenchElement headerCell = wrapElement(findElement(By...
3.26
framework_TableElement_getRow_rdh
/** * Return table row element by zero-based index. * * @return table row element by zero-based index */ public TableRowElement getRow(int row) { TestBenchElement rowElem = wrapElement(findElement(By.vaadin(("#row[" + row) + "]")), getCommandExecutor()); return rowElem.wrap(TableRowElement.class); }
3.26
framework_TableElement_getFooterCell_rdh
/** * Function to get footer cell with given column index. * * @param column * 0 based column index * @return TestBenchElement containing wanted footer cell */ public TestBenchElement getFooterCell(int column) { TestBenchElement footerCell = wrapElement(findElement(By.vaadin(("#footer[" + column) + "]")), g...
3.26
framework_TableElement_getCell_rdh
/** * Function to find a Table cell. Looking for a cell that is currently not * visible will throw NoSuchElementException * * @param row * 0 based row index * @param column * 0 based column index * @return TestBenchElement containing wanted cell. * @throws NoSuchElementException * if the cell (row, colu...
3.26
framework_RowItem_addItemProperty_rdh
/** * Adding properties is not supported. Properties are generated by * SQLContainer. */ @Override public boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException { throw new UnsupportedOperationException(); }
3.26
framework_RowItem_m0_rdh
/** * Removing properties is not supported. Properties are generated by * SQLContainer. */ @Override public boolean m0(Object id) throws UnsupportedOperationException { throw new UnsupportedOperationException(); }
3.26
framework_VFlash_setCodetype_rdh
/** * This attribute specifies the content type of data expected when * downloading the object specified by classid. This attribute is optional * but recommended when classid is specified since it allows the user agent * to avoid loading information for unsupported content types. The default * value is the value o...
3.26
framework_VFlash_setArchive_rdh
/** * This attribute may be used to specify a space-separated list of URIs for * archives containing resources relevant to the object, which may include * the resources specified by the classid and data attributes. Preloading * archives will generally result in reduced load times for objects. * Archives specified ...
3.26
framework_VFlash_setEmbedParams_rdh
/** * Sets the map of object parameters. Parameters are optional information, * and they are passed to the instantiated object. Parameters are are stored * as name value pairs. Calling this method for a second time overrides the * previously given map. * * @param params * the parameter map */ public void setE...
3.26
framework_VFlash_setAlternateText_rdh
/** * Sets this component's alternate text that can be presented instead of the * component's normal content for accessibility purposes. * * @param altText * a short, human-readable description of this component's * content */ public void setAlternateText(String altText) { if (this.altText != altText) { ...
3.26
framework_VFlash_setCodebase_rdh
/** * This attribute specifies the base path used to resolve relative URIs * specified by the classid, data, and archive attributes. The default value * is the base URI of the current document. * * @param codebase * The base path * @see #setClassId(String) * @see #setArchiv...
3.26
framework_VFlash_setStandby_rdh
/** * Sets standby. * * @param standby * the standby text */ public void setStandby(String standby) { if (this.standby != standby) { this.standby = standby; needsRebuild = true; } }
3.26
framework_VFlash_setClassId_rdh
/** * Set the class id that is required for ActiveX to recognize the flash. * This is a predefined value which ActiveX recognizes and must be the given * value. * * @param classId * the classId */ public void setClassId(String classId) { if (this.classId != classId) { this.classId = classId; ...
3.26
framework_VFlash_setSlotHeightAndWidth_rdh
/** * Set dimensions of the containing layout slot so that the size of the * embed object can be calculated from percentages if needed. * * Triggers embed resizing if percentage sizes are in use. * * @since 7.7.8 * @param slotOffsetHeight * offset height of the layout slot * @param slotOffsetWidth * offse...
3.26
framework_HasComponents_getAttachedComponent_rdh
/** * Gets the attached component. */ public Component getAttachedComponent() { return component; }
3.26
framework_HasComponents_getContainer_rdh
/** * Gets the component container. */ public HasComponents getContainer() { return ((HasComponents) (getSource())); }
3.26
framework_ClickSelectHandler_setDeselectAllowed_rdh
/** * Sets whether clicking the currently selected row should deselect the row. * * @param deselectAllowed * <code>true</code> to allow deselecting the selected row; * otherwise <code>false</code> */ public void setDeselectAllowed(boolean deselectAllowed) { this.deselectAllowed = deselectAllowed; }
3.26
framework_HierarchicalDataProvider_fetch_rdh
/** * Fetches data from this HierarchicalDataProvider using given * {@code query}. Only the immediate children of * {@link HierarchicalQuery#getParent()} will be returned. * * @param query * given query to request data with * @return a stream of data objects resulting from the query * @throws IllegalArgumentE...
3.26
framework_SASSAddonImportFileCreator_main_rdh
/** * * @param args * Theme directory where the addons.scss file should be created */ public static void main(String[] args) throws IOException { if (args.length == 0) { printUsage(); } else { String v0 = args[0]; updateTheme(v0); } }
3.26
framework_InfoSection_refresh_rdh
/** * Updates the information for a single running application * * @since 7.1 */ private void refresh(ApplicationConnection connection) { clear(); ApplicationConfiguration configuration = connection.getConfiguration(); addVersionInfo(configuration); addRow("Widget set", GWT.getModuleName()); ad...
3.26
framework_InfoSection_addVersionInfo_rdh
/** * Logs version information for client/server/theme. * * @param applicationConfiguration * @since 7.1 */ private void addVersionInfo(ApplicationConfiguration applicationConfiguration) { String clientVersion = Version.getFullVersion(); String servletVersion = applicationConfiguration.getServletVersion();...
3.26
framework_InfoSection_equalsEither_rdh
/** * Checks if the target value equals one of the reference values * * @param target * The value to compare * @param reference1 * A reference value * @param reference2 * A reference value ...
3.26
framework_InfoSection_m0_rdh
/** * * @since 7.1 */ private void m0() { content.setStylePrimaryName(PRIMARY_STYLE_NAME); refresh(); }
3.26
framework_InfoSection_getThemeVersion_rdh
/** * Finds out the version of the current theme (i.e. the version of Vaadin * used to compile it) * * @since 7.1 * @return The full version as a string */ private String getThemeVersion() { Element div = DOM.createDiv(); div.setClassName(THEME_VERSION_CLASSNAME);RootPanel.get().getElement().appendChild...
3.26
framework_ClassResource_setBufferSize_rdh
/** * Sets the size of the download buffer used for this resource. * * @param bufferSize * the size of the buffer in bytes. * @see #getBufferSize() */ public void setBufferSize(int bufferSize) { this.bufferSize = bufferSize; }
3.26
framework_ClassResource_getCacheTime_rdh
/** * Gets the length of cache expiration time. * * <p> * This gives the adapter the possibility cache streams sent to the client. * The caching may be made in adapter or at the client if the client * supports caching. Default is {@link DownloadStream#DEFAULT_CACHETIME}. * </p> * * @return Cache time in millis...
3.26
framework_ClassResource_setCacheTime_rdh
/** * Sets the length of cache expiration time. * * <p> * This gives the adapter the possibility cache streams sent to the client. * The caching may be made in adapter or at the client if the client * supports caching. Zero or negative value disables the caching of this * stream. * </p> * * @param cacheTime ...
3.26
framework_ClassResource_getMIMEType_rdh
/** * Gets the MIME type of this resource. * * @see com.vaadin.server.Resource#getMIMEType() */ @Override public String getMIMEType() { return FileTypeResolver.getMIMEType(resourceName); }
3.26
framework_FocusableFlowPanel_setFocus_rdh
/** * Sets/Removes the keyboard focus to the panel. * * @param focus * If set to true then the focus is moved to the panel, if set to * false the focus is removed */ public void setFocus(boolean focus) { if (focus) { FocusImpl.getFocusImplForPanel().focus(getElement()); } else { Focu...
3.26
framework_FocusableFlowPanel_focus_rdh
/** * Focus the panel. */ @Override public void focus() { setFocus(true); }
3.26
framework_AbstractTestUI_setTransport_rdh
/** * Sets the push transport according to the transport= URL parameter if such * is given. Supports transport=xhr (disables push), transport=websocket * (forces websocket into use), transport=streaming (forces streaming into * use). Using ?transport=xyz disables the fallback transport. * * @param request * Th...
3.26
framework_AbstractTestUI_runAfterResponse_rdh
/** * Execute the provided runnable on the UI thread as soon as the current * request has been sent. */ protected void runAfterResponse(final Runnable runnable) { // Immediately start a thread that will start waiting for the session to // get unlocked. new Thread() { @Override public void run() { acc...
3.26
framework_VLazyExecutor_trigger_rdh
/** * Triggers execution of the command. Each call reschedules any existing * execution to {@link #delayMs} milliseconds from that point in time. */ public void trigger() { if (timer == null) { timer = new Timer() { @Override public void run() { timer = null; ...
3.26
framework_VGridLayout_calcColumnUsedSpace_rdh
/** * Calculates column used space */ private int calcColumnUsedSpace() { int usedSpace = 0; int horizontalSpacing = getHorizontalSpacing();boolean visibleFound = false; for (int i = 0; i < minColumnWidths.length; i++) { if ((minColumnWidths[i] > 0) || (!hiddenEmptyColumn(i...
3.26
framework_VGridLayout_getCell_rdh
/** * For internal use only. May be removed or replaced in the future. */ public Cell getCell(int row, int col) { return cells[col][row]; }
3.26
framework_VGridLayout_createNewCell_rdh
/** * Creates a new Cell with the given coordinates. * <p> * For internal use only. May be removed or replaced in the future. * * @param row * @param col * @return */ public Cell createNewCell(int row, in...
3.26
framework_VGridLayout_updateHeight_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void updateHeight() { // Detect minimum heights & calculate spans detectRowHeights(); // Expand expandRows(); // Position layoutCellsVertically(); }
3.26
framework_VGridLayout_distributeColSpanWidths_rdh
/** * Iterates colspanned cells, ensures cols have enough space to accommodate * them */ void distributeColSpanWidths() { for (SpanList list : colSpans) { for (Cell cell : list.cells) { // cells with relative content may return non 0 here if on // subsequent renders ...
3.26
framework_VGridLayout_distributeRowSpanHeights_rdh
/** * Iterates rowspanned cells, ensures rows have enough space to accommodate * them */ private void distributeRowSpanHeights() { for (SpanList list : rowSpans) { for (Cell cell : list.cells) {// cells with relative content may return non 0 here if on // subsequent renders int he...
3.26
framework_VGridLayout_getRowHeights_rdh
/** * Returns the row heights measured in pixels. * * @return */ protected int[] getRowHeights() { return rowHeights; }
3.26
framework_VGridLayout_getHorizontalSpacing_rdh
/** * Returns the spacing between the cells horizontally in pixels. * * @return */ protected int getHorizontalSpacing() { return LayoutManager.get(client).getOuterWidth(spacingMeasureElement); }
3.26
framework_VGridLayout_updateWidth_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void updateWidth() { // Detect widths & calculate spans detectColWidths(); // Expand expandColumns(); // Position layoutCellsHorizontally(); }
3.26
framework_VGridLayout_updateMarginStyleNames_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void updateMarginStyleNames(MarginInfo marginInfo) { togglePrefixedStyleName("margin-top", marginInfo.hasTop()); togglePrefixedStyleName("margin-right", marginInfo.hasRight()); togglePrefixedStyleName("margin-bottom", margi...
3.26
framework_VGridLayout_getVerticalSpacing_rdh
/** * Returns the spacing between the cells vertically in pixels. * * @return */ protected int getVerticalSpacing() { return LayoutManager.get(client).getOuterHeight(spacingMeasureElement); }
3.26
framework_VGridLayout_updateSpacingStyleName_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void updateSpacingStyleName(boolean spacingEnabled) {String styleName = getStylePrimaryName(); if (spacingEnabled) { spacingMeasureElement.addClassName(styleName + "-spacing-on"); spacingMeasureElement.removeClassName...
3.26
framework_VGridLayout_getColumnWidths_rdh
/** * Returns the column widths measured in pixels. * * @return */ protected int[] getColumnWidths() { return columnWidths; }
3.26
framework_VGridLayout_getAvailableHeight_rdh
/** * * @return total of spanned rows */ private int getAvailableHeight() { int height = rowHeights[row]; for (int i = 1; i < rowspan; i++) { height += getVerticalSpacing() + rowHeights[row + i]; } return height; }
3.26
framework_VGridLayout_getAvailableWidth_rdh
/** * * @return total of spanned cols */ private int getAvailableWidth() { int width = columnWidths[col]; for (int i = 1; i < colspan; i++) { width += getHorizontalSpacing() + columnWidths[col + i]; } return width; }
3.26
framework_VGridLayout_setCaption_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void setCaption(Widget widget, VCaption caption) { VLayoutSlot slot = widgetToCell.get(widget).slot; if (caption != null) { // Logical attach. getChildren().add(caption); } // Physical attach if not null...
3.26
framework_AbstractLayout_readMargin_rdh
/** * Reads margin attributes from a design into a MarginInfo object. This * helper method should be called from the * {@link #readDesign(Element, DesignContext) readDesign} method of layouts * that implement {@link MarginHandler}. * * @since 7.5 * @param design * the design from which to read * @param defMa...
3.26
framework_AbstractLayout_writeMargin_rdh
/** * Writes margin attributes from a MarginInfo object to a design. This * helper method should be called from the * {@link #readDesign(Element, DesignContext) writeDesign} method of layouts * that implement {@link MarginHandler}. * * @since 7.5 * @param design * the desig...
3.26
framework_HasItems_setItems_rdh
/** * Sets the data items of this listing provided as a stream. * <p> * This is just a shorthand for {@link #setItems(Collection)}, that * <b>collects objects in the stream to a list</b>. Thus, using this method, * instead of its array and Collection variations, doesn't save any memory. * If you have a large data...
3.26
framework_GridElement_getRowCount_rdh
/** * Gets the total number of data rows in the grid. * * @return the number of data rows in the grid, */ public long getRowCount() { Long res = ((Long) (getCommandExecutor().executeScript("return arguments[0].getBodyRowCount()", this))); if (res == null) { throw new IllegalStateException("getBody...
3.26
framework_GridElement_scrollToRow_rdh
/** * Scrolls Grid element so that wanted row is displayed. * * @param index * Target row */ public void scrollToRow(int index) { try { getSubPart(("#cell[" + index) + "]"); } catch (NoSuchElementException e) { // Expected, ignore it. } }
3.26
framework_GridElement_toggleColumnHidden_rdh
/** * Toggles the column visibility. Column is identified by its hiding toggle * caption. * * @param toggleCaption * @since 8.0.6 */ public void toggleColumnHidden(String toggleCaption) { if (!isElementPresent(By.className("v-grid-sidebar-content"))) { // Open sidebar menu WebElement sidebarB...
3.26
framework_GridElement_getCell_rdh
/** * Gets cell element with given row and column index. * * @param rowIndex * Row index * @param colIndex * Column index * @return Cell element with given indices. */ public GridCellElement getCell(int rowIndex, int colIndex) { scrollToRow(rowIndex); return getSubPart(((("#cell[" + rowIndex) + "...
3.26
framework_GridElement_getRow_rdh
/** * Gets row element with given row index. * * @param index * Row index * @return Row element with given index. */ public GridRowElement getRow(int index) { scrollToRow(index); return getSubPart(("#cell[" + index) + "]").wrap(GridElement.GridRowElement.class); }
3.26
framework_GridElement_getHeaderCells_rdh
/** * Gets list of header cell elements on given row. * * @param rowIndex * Row index * @return Header cell elements on given row. */ public List<GridCellElement> getHeaderCells(int rowIndex) { List<GridCellElement> headers = new ArrayList<GridCellElement>(); for (TestBenchElement e : TestBenchElement.w...
3.26
framework_GridElement_isFieldErrorMarked_rdh
/** * Checks whether a field is marked with an error. * * @param colIndex * column index * @return <code>true</code> if the field is marked with an error */ public boolean isFieldErrorMarked(int colIndex) { return getField(colIndex).getAttr...
3.26
framework_GridElement_getRows_rdh
/** * Gets all the data rows in the grid. * <p> * Returns an iterable which will lazily scroll rows into views and lazy * load data as needed. * * @return an iterable of all the data rows in the grid. */ public Iterable<GridRowElement> getRows() { return () -> new Iterator<GridElement.GridRowElement>() { ...
3.26
framework_GridElement_getHorizontalScroller_rdh
/** * Get the horizontal scroll element. * * @return The element representing the horizontal scrollbar */ public TestBenchElement getHorizontalScroller() { List<WebElement> rootElements = findElements(By.xpath("./div")); return ((TestBenchElement) (rootElements.get(1))); }
3.26
framework_GridElement_getSubPart_rdh
/** * Helper function to get Grid subparts wrapped correctly * * @param subPartSelector * SubPart to be used in ComponentLocator * @return SubPart element wrapped in TestBenchElement class */ private TestBenchElement getSubPart(String subPartSelector) { return ((TestBenchElement) (findElement(By.vaadin...
3.26
framework_GridElement_getFooterCell_rdh
/** * Gets footer cell element with given row and column index. * * @param rowIndex * Row index * @param colIndex * Column index * @return Footer cell element with given indices. */ public GridCellElement getFooterCell(int rowIndex, int colIndex) { return getSubPart(((("#footer[" + rowIndex) + "][")...
3.26
framework_GridElement_getHeaderCellByCaption_rdh
/** * Gets the header cell element with the given caption in the given header * row. If there are multiple headers with the same name, the first one is * returned. * * @param rowIndex * The index of the header row * @param caption * The header caption * @return The first header cell element with a given ca...
3.26
framework_GridElement_getFooterRow_rdh
/** * Get a footer row by index. * * @param rowIndex * Row index * @return The tr element of the row */ public TestBenchElement getFooterRow(int rowIndex) { return getSubPart(("#footer[" + rowIndex) + "]"); }
3.26
framework_GridElement_getHeaderRow_rdh
/** * Get a header row by index. * * @param rowIndex * Row index * @return The th element of the row */ public TestBenchElement getHeaderRow(int rowIndex) { return getSubPart(("#header[" + rowIndex) + "]"); }
3.26
framework_GridElement_cancel_rdh
/** * Cancels this editor. * <p> * <em>Note:</em> that this closes the editor making this element * useless. */ public void cancel() { findElement(By.className("v-grid-editor-cancel")).click(); }
3.26
framework_GridElement_getHeader_rdh
/** * Get the header element. * * @return The thead element */ public TestBenchElement getHeader() { return getSubPart("#header");}
3.26
framework_GridElement_getErrorMessage_rdh
/** * Gets the error message text, or <code>null</code> if no message is * present. */ public String getErrorMessage() { WebElement messageWrapper = findElement(By.className("v-grid-editor-message")); List<WebElement> divs = messageWrapper.findElements(By.tagName("div")); if (divs.isEmpty()) { r...
3.26
framework_GridElement_getHeaderCell_rdh
/** * Gets header cell element with given row and column index. * * @param rowIndex * Row index * @param colIndex * Column index * @return Header cell element with given indices. */ public GridCellElement getHeaderCell(int rowIndex, int colIndex) { return getSubPart(((("#header[" + rowIndex) + "][") ...
3.26
framework_GridElement_getField_rdh
/** * Gets the editor field for column in given index. * * @param colIndex * the column index * @return the editor field for given location * @throws NoSuchElementException * if {@code isEditable(colIndex) == false} */ public TestBenchElement getField(int colIndex) { return grid.getSubPart(("#editor[" +...
3.26
framework_GridElement_getHeaderCount_rdh
/** * Get header row count. * * @return Header row count */ public int getHeaderCount() {return getSubPart("#header").findElements(By.xpath("./tr")).size(); }
3.26
framework_GridElement_getTableWrapper_rdh
/** * Get the element wrapping the table element. * * @return The element that wraps the table element */ public TestBenchElement getTableWrapper() { List<WebElement> rootElements = findElements(By.xpath("./div"));return ((TestBenchElement) (rootElements.get(2))); }
3.26
framework_ServerRpcHandler_getIgnoredDisabledError_rdh
/** * Generates an error message when the client is trying to do something * ('what') with a connector which is disabled or invisible. * * @since 7.1.8 * @param what * the ignored operation * @param connector * the connector which is disabled (or invisible) * @return an error message */ public static Stri...
3.26
framework_ServerRpcHandler_checkWidgetsetVersion_rdh
/** * Checks that the version reported by the client (widgetset) matches that * of the server. * * @param widgetsetVersion * the widget set version reported by the client or null */ private void checkWidgetsetVersion(String widgetsetVersion) { if (widgetsetVersion == null) { // Only check when t...
3.26
framework_ServerRpcHandler_handleRpc_rdh
/** * Reads JSON containing zero or more serialized RPC calls (including legacy * variable changes) and executes the calls. * * @param ui * The {@link UI} receiving the calls. Cannot be null. * @param reader * The {@link Reader} used to read the JSON. * @param request * The {@link VaadinRequest} to handl...
3.26
framework_ServerRpcHandler_getRawJson_rdh
/** * Gets the entire request in JSON format, as it was received from the * client. * <p> * <em>Note:</em> This is a shared reference - any modifications made * will be shared. * * @return the raw JSON object that was received from the client */ public JsonObject getRawJson() { return json; }
3.26
framework_ServerRpcHandler_handleInvocations_rdh
/** * Processes invocations data received from the client. * <p> * The invocations data can contain any number of RPC calls, including * legacy variable change calls that are processed separately. * <p> * Consecutive changes to the value of the same variable are combined and * changeVariables() is only called on...
3.26
framework_ServerRpcHandler_parseInvocations_rdh
/** * Parse JSON from the client into a list of MethodInvocation instances. * * @param connectorTracker * The ConnectorTracker used to lookup connectors * @param invocationsJson * JSON containing all information needed to exec...
3.26
framework_ServerRpcHandler_handleInvocation_rdh
/** * Handles the given Legacy variable change RPC method invocation for the * given connector. * * @since 7.7 * @param ui * the UI containing the connector * @param connector * the connector the RPC is targeted to * @param legacyInvocation * information about the rpc to invoke */ protected void handle...
3.26