name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
framework_DesignContext_readPackageMappings_rdh
/** * Reads and stores the mappings from prefixes to package names from meta * tags located under <head> in the html document. * * @param doc * the document */ protected void readPackageMappings(Document doc) { Element head = doc.head(); if (head == null) { return; } for (Node child : he...
3.26
framework_DesignContext_getComponent_rdh
/** * Returns the created component. * * @return the component */ public Component getComponent() { return component; }
3.26
framework_DesignContext_getContext_rdh
/** * Returns the new component context. * * @return the context * @since 8.5 */ public DesignContext getContext() { return context; }
3.26
framework_DesignContext_getComponentByCaption_rdh
/** * Returns a component having the specified caption. If no component is * found, returns null. * * @param caption * The caption of the component * @return a component whose caption equals the caption given as a parameter */ public Component getComponentByCaption(String caption) { return captionToCompone...
3.26
framework_DesignContext_addComponentCreationListener_rdh
/** * Adds a component creation listener. The listener will be notified when * components are created while parsing a design template * * @param listener * the component creation listener to be added * @return a registration object for removing the listener */ public Registration addComponentCreationListener(C...
3.26
framework_DesignContext_addPackagePrefix_rdh
/** * Creates a two-way mapping between a prefix and a package name. * * Note that modifying the mapping for {@value #VAADIN_UI_PACKAGE} may * invalidate the backwards compatibility mechanism supporting reading such * components with either {@value #LEGACY_PREFIX} or {@value #VAADIN_PREFIX} * as prefix. * * @pa...
3.26
framework_DesignContext_getLocalId_rdh
/** * Returns the local id of the created component or null if not exist. * * @return the localId */ public String getLocalId() { return localId;}
3.26
framework_DesignContext_setCustomAttribute_rdh
/** * Sets a custom attribute not handled by the component. These attributes * are directly written to the component tag. * * @since 7.7 * @param component * the component to set the attribute for * @param attribute * the attribute to set * @param value * the value of the attribute */ public void setCu...
3.26
framework_DesignContext_getComponentById_rdh
/** * Returns a component having the specified global id. If no component is * found, returns null. * * @param globalId * The global id of the component * @return a component whose global id equals globalId */ public Component getComponentById(String globalId) { return idToComponent.get(globalId); }
3.26
framework_DesignContext_getComponentByLocalId_rdh
/** * Returns a component having the specified local id. If no component is * found, returns null. * * @param localId * The local id of the component * @return a component whose local id equals localId */ public Component getComponentByLocalId(String localId) { return localIdToComponent.get(localId); }
3.26
framework_DesignContext_isLegacyPrefixEnabled_rdh
/** * Check whether the legacy prefix "v" or the default prefix "vaadin" should * be used when writing designs. The property or context parameter * {@link Constants#SERVLET_PARAMETER_LEGACY_DESIGN_PREFIX} can be used to * switch to the legacy prefix. * * @since 7.5.7 * @return true to use the legacy prefix, fals...
3.26
framework_DesignContext_setRootComponent_rdh
/** * Sets the root component of a created component hierarchy. * * @param rootComponent * the root component of the hierarchy */ public void setRootComponent(Component rootComponent) { this.rootComponent = rootComponent; }
3.26
framework_DesignContext_instantiateClass_rdh
/** * Instantiates given class via ComponentFactory. * * @param qualifiedClassName * class name to instantiate * @return instance of a given class */ private Component instantiateClass(String qualifiedClassName) { ComponentFactory factory = Design.getComponentFactory(); Component component = factory.cre...
3.26
framework_DesignContext_readDesign_rdh
/** * Reads the given design node and populates the given component with the * corresponding component tree. * <p> * Additionally registers the component id, local id and caption of the * given component and all its children in the context * * @param componentDesign * The design element containing the descrip...
3.26
framework_DesignContext_getShouldWriteDataDelegate_rdh
/** * Gets the delegate that determines whether the container data of a * component should be written out. * * @since 7.5.0 * @see #setShouldWriteDataDelegate(ShouldWriteDataDelegate) * @see #shouldWriteChildren(Component, Component) * @return the shouldWriteDataDelegate the currently use delegate */ public Sho...
3.26
framework_DesignContext_instantiateComponent_rdh
/** * Creates a Component corresponding to the given node. Does not set the * attributes for the created object. * * @param node * a node of an html tree * @return a Component corresponding to node, with no attributes set. */ private Component instantiateComponent(Node node) { String tag = node.nodeName();...
3.26
framework_DesignContext_getCustomAttributes_rdh
/** * Gets the attributes that the component did not handle. * * @since 7.7 * @param component * the component to get the attributes for * @return map of the attributes which were not recognized by the component */ public Map<String, String> getCustomAttributes(Component component) { return customAttribut...
3.26
framework_DesignContext_getPackagePrefixes_rdh
/** * Gets all registered package prefixes. * * @since 7.5.0 * @see #getPackage(String) * @return a collection of package prefixes */ public Collection<String> getPackagePrefixes() {return Collections.unmodifiableCollection(prefixToPackage.keySet()); }
3.26
framework_DesignContext_writePackageMappings_rdh
/** * Writes the package mappings (prefix -> package name) of this object to * the specified document. * <p> * The prefixes are stored as <meta> tags under <head> in the document. * * @param doc * the Jsoup document tree where the package mappings are written */ public void writePackageMappings(Document doc) ...
3.26
framework_DesignContext_setShouldWriteDataDelegate_rdh
/** * Sets the delegate that determines whether the container data of a * component should be written out. * * @since 7.5.0 * @see #shouldWriteChildren(Component, Component) * @see #getShouldWriteDataDelegate() * @param shouldWriteDataDelegate * the delegate to set, not <code>null</code> * @throws IllegalArg...
3.26
framework_DesignContext_setShouldWriteDefaultValues_rdh
/** * Set whether default attribute values should be written by the * {@code DesignAttributeHandler#writeAttribute(String, Attributes, Object, Object, Class, DesignContext)} * method. Default is {@code false}. * * @since 8.0 * @param value * {@code true} to write default values of attributes, * {@code false...
3.26
framework_DesignContext_fireComponentCreatedEvent_rdh
/** * Fires component creation event * * @param localId * localId of the component * @param component * the component that was created */ private void fireComponentCreatedEvent(String localId, Component component) { ComponentCreatedEvent event = new ComponentCreatedEvent(localId, component); for (Co...
3.26
framework_HeaderRow_join_rdh
/** * Merges cells corresponding to the given columns in the row. Original * cells are hidden, and new merged cell is shown instead. The cell has a * width of all merged cells together, inherits styles of the first merged * cell but has empty caption. * * @param columnsToMerge * the columns of the cells that s...
3.26
framework_HeaderRow_getCell_rdh
/** * Returns the cell on this row corresponding to the given column. * * @param column * the column whose header cell to get, not null * @return the header cell * @throws IllegalArgumentException * if there is no such column in the grid */ public HeaderCell getCell(Grid.Column<?, ?> column) { }
3.26
framework_VPopupTimeCalendar_makeDate_rdh
/** * Creates a date based on the provided date values map. * * @param dateValues * a map with date values to convert into a date * @return the date based on the dateValues map */ @SuppressWarnings("deprecation") public static Date makeDate(Map<DateTimeResolution, Integer> da...
3.26
framework_FileDownloader_handleConnectorRequest_rdh
/** * {@inheritDoc } * * @throws IOException * if something goes wrong with the download or the user * cancelled the file download process. */ @Override public boolean handleConnectorRequest(VaadinRequest request, VaadinResponse response, String path) throws IOException { if (!path.matches("dl(/.*)?")) { ...
3.26
framework_FileDownloader_setOverrideContentType_rdh
/** * Sets whether the content type of served resources should be overridden to * <code>application/octet-stream</code> to reduce the risk of a browser * plugin choosing to display the resource instead of downloading it. This * is by default set to <code>true</code>. * <p> * Please note that this only affects Con...
3.26
framework_FileDownloader_extend_rdh
/** * Add this extension to the {@code EventTrigger}. * * @param eventTrigger * the trigger to attach this extension to * @since 8.4 */ public void extend(EventTrigger eventTrigger) { super.extend(eventTrigger.getConnector()); getState().partInformation = eventTr...
3.26
framework_FileDownloader_setFileDownloadResource_rdh
/** * Sets the resource that is downloaded when the extended component is * clicked. * * @param resource * the resource to download */ public void setFileDownloadResource(Resource resource) { setResource("dl", resource); }
3.26
framework_PropertyValueGenerator_modifyFilter_rdh
/** * Return an updated filter that should be compatible with the underlying * container. * <p> * This function is called when setting a filter for this generated * property. Returning null from this function causes * GeneratedPropertyContainer to discard the filter and not use it. * <p> * By default this funct...
3.26
framework_PropertyValueGenerator_getSortProperties_rdh
/** * Translates sorting of the generated property in a specific direction to a * set of property ids and directions in the underlying container. * <p> * SortOrder is similar to (or the same as) the SortOrder already defined * for Grid. * <p> * The default implementation of this method returns an empty array, wh...
3.26
framework_View_enter_rdh
/** * Called before the view is shown on screen. * <p> * The event object contains information about parameters used when showing * the view, in addition to references to the old view and the new view. * <p> * Override this method to perform initialization of your view. * <p> * By default does nothing. * * @p...
3.26
framework_View_beforeLeave_rdh
/** * Called when the user is requesting navigation away from the view. * <p> * This method allows the view to accept or prevent navigation away from the * view or optionally delay navigation away until a later stage. For * navigation to take place, the {@link ViewBeforeLeaveEvent#navigate()} * method must be cal...
3.26
framework_BasicBackwardHandler_setDates_rdh
/** * Set the start and end dates for the event. * * @param event * The event that the start and end dates should be set * @param start * The start date * @param end * The end date */protected void setDates(BackwardEvent event, Date start, Date end) { event.getComponent().setStartDate(start); eve...
3.26
framework_StaticSection_setStyleName_rdh
/** * Sets a custom style name for this cell. * * @param styleName * the style name to set or null to not use any style name */ public void setStyleName(String styleName) { cellState.styleName = styleName; row.section.markAsDirty(); }
3.26
framework_StaticSection_setText_rdh
/** * Sets the textual caption of this cell. * * @param text * a plain text caption, not null */ public void setText(String text) { Objects.requireNonNull(text, "text cannot be null"); removeComponentIfPresent(); cellState.text = text; cellState.type = GridStaticCellType.TEXT; row.section.markAsDirty(); }
3.26
framework_StaticSection_setHtml_rdh
/** * Sets the HTML content displayed in this cell. * * @param html * the html to set, not null */ public void setHtml(String html) { Objects.requireNonNull(html, "html cannot be null"); removeComponentIfPresent(); cellState.html = html; cellState.type = GridStaticCellType.HTML;row.section.markAsDirty(); }
3.26
framework_StaticSection_addCell_rdh
/** * Adds a cell to this section for given column. * * @param column * the column for which to add a cell */ protected void addCell(Column<?, ?> column) { if (!section.m0().getColumns().contains(column)) { throw new IllegalArgumentException("Given column does not exist in this Grid"); } inte...
3.26
framework_StaticSection_writeCellState_rdh
/** * Writes declarative design for the cell using its {@code state} to the * given table cell element. * <p> * The method is used instead of StaticCell::writeDesign because * sometimes there is no a reference to the cell which should be written * (merged cell) but only its state is a...
3.26
framework_StaticSection_setDescriptionContentMode_rdh
/** * Sets the content mode for the tooltip. * * @see ContentMode * @param descriptionContentMode * the content mode for the tooltip * @since 8.4 */ public void setDescriptionContentMode(ContentMode descriptionContentMode) { cellState.descriptionContentMode = descriptionContentMode; }
3.26
framework_StaticSection_setDescription_rdh
/** * Sets the tooltip for the cell to be shown with the given content * mode. * * @see ContentMode * @param description * the tooltip to show when hovering the cell * @param descriptionContentMode * the content mode to use for the tooltip (HTML or plain * text) * @since 8.4 */ public void setDescripti...
3.26
framework_StaticSection_getHtml_rdh
/** * Returns the HTML content displayed in this cell. * * @return the html */ public String getHtml() { if (cellState.type != GridStaticCellType.HTML) { throw new IllegalStateException("Cannot fetch HTML from a cell with type " + cellState.type); } return cellState.html; }
3.26
framework_StaticSection_setComponent_rdh
/** * Sets the component displayed in this cell. * * @param component * the component to set, not null */ public void setComponent(Component component) { Objects.requireNonNull(component, "component cannot be null"); removeComponentIfPresent(); component.setParent(row.section.m0()); cellState.connector = compone...
3.26
framework_StaticSection_getText_rdh
/** * Returns the textual caption of this cell. * * @return the plain text caption */ public String getText() { return cellState.text; }
3.26
framework_StaticSection_internalGetCell_rdh
/** * Returns the cell in this section that corresponds to the given * internal column id. * * @param internalId * the internal id of the column * @return the cell for the given column * @throws IllegalArgumentException * if no cell was found for the column id */ protected CELL internalGetCell(String inter...
3.26
framework_StaticSection_getRow_rdh
/** * Returns the row at the given index. * * @param index * the index of the row * @return the row at the index * @throws IndexOutOfBoundsException * if {@code index < 0 || index >= getRowCount()} */ public ROW getRow(int index) { return rows.get(index); }
3.26
framework_StaticSection_removeRow_rdh
/** * Removes the given row from this section. * * @param row * the row to remove, not null * @throws IllegalArgumentException * if this section does not contain the row */ public void removeRow(Object row) { Objects.requireNonNull(row, "row cannot be null"); int index = rows.indexOf(row); if (in...
3.26
framework_StaticSection_getComponent_rdh
/** * Returns the component displayed in this cell. * * @return the component */ public Component getComponent() { if (cellState.type != GridStaticCellType.WIDGET) { throw new IllegalStateException("Cannot fetch Component from a cell with type " + cellState.type); } return ((Component) (cellState.connector));...
3.26
framework_StaticSection_writeDesign_rdh
/** * Writes the declarative design to the given table section element. * * @param tableSectionElement * Element to write design to * @param designContext * the design context */ public void writeDesign(Element tableSectionElement, DesignContext designContext) { for (ROW row : getRows()) { Elemen...
3.26
framework_StaticSection_addColumn_rdh
/** * Adds a cell corresponding to the given column id to this section. * * @param columnId * the id of the column for which to add a cell */ public void addColumn(String columnId) { for (ROW row : rows) { row.internalAddCell(columnId); } }
3.26
framework_StaticSection_removeColumn_rdh
/** * Removes the cell corresponding to the given column id. * * @param columnId * the id of the column whose cell to remove */ public void removeColumn(String columnId) { for (ROW row : rows) { row.removeCell(columnId); } markAsDirty(); }
3.26
framework_StaticSection_getCell_rdh
/** * Returns the cell in this section that corresponds to the given * column. * * @param column * the column * @return the cell for the given column * @throws IllegalArgumentException * if no cell was found for the column */ public CELL getCell(Column<?, ?> column) { return internalGetCell(section.ge...
3.26
framework_StaticSection_setVisible_rdh
/** * Sets the visibility of this section. * * @param visible * {@code true} if visible; {@code false} if not * @since 8.1.1 */ public void setVisible(boolean visible) { if (getState(false).visible != visible) { getState(true).visible = visible; } }
3.26
framework_StaticSection_addRowAt_rdh
/** * Adds a new row at the given index. * * @param index * the index of the new row * @return the added row * @throws IndexOutOfBoundsException * if {@code index < 0 || index > getRowCount()} */ public ROW addRowAt(int index) { ROW row = createRow(); rows.add(index, row); getState(true).rows....
3.26
framework_StaticSection_readDesign_rdh
/** * Reads the declarative design from the given table section element. * * @since 7.5.0 * @param tableSectionElement * Element to read design from * @param designContext * the design context * @throws DesignException * if the table section contains unexpected children */ public void readDesign(Element...
3.26
framework_StaticSection_getRows_rdh
/** * Returns an unmodifiable list of the rows in this section. * * @return the rows in this section */ protected List<ROW> getRows() {return Collections.unmodifiableList(rows); }
3.26
framework_StaticSection_getStyleName_rdh
/** * Returns the custom style name for this cell. * * @return the style name or null if no style name has been set */ public String getStyleName() { return cellState.styleName;}
3.26
framework_StaticSection_removeCell_rdh
/** * Removes the cell from this section that corresponds to the given * column id. If there is no such cell, does nothing. * * @param columnId * the id of the column from which to remove the cell */ protected void removeCell(String columnId) { CELL cell = cells.remove(columnId); if (cell != null) { ...
3.26
framework_StaticSection_getCellState_rdh
/** * Returns the shared state of this cell. * * @return the cell state */protected CellState getCellState() { return cellState; }
3.26
framework_StaticSection_isVisible_rdh
/** * Gets the visibility of this section. * * @return {@code true} if visible; {@code false} if not * @since 8.1.1 */ public boolean isVisible() { return getState(false).visible; }
3.26
framework_EditorConnector_getRowKey_rdh
/** * Returns the key of the given data row. * * @param row * the row * @return the row key */ protected static String getRowKey(JsonObject row) { return row.getString(DataCommunicatorConstants.KEY);}
3.26
framework_LayoutEvents_getClickedComponent_rdh
/** * Returns the component that was clicked, which is somewhere inside the * parent layout on which the listener was registered. * * For the direct child component of the layout, see * {@link #getChildComponent()}. * * @return clicked {@link Component}, null if none found */ public Component getClickedComponen...
3.26
framework_HierarchicalQuery_getParentOptional_rdh
/** * Get an Optional of the hierarchical parent object. * * @see #getParent() * @return the result of {@link #getParent()} wrapped by an Optional */ public Optional<T> getParentOptional() { return Optional.ofNullable(parent);}
3.26
framework_HierarchicalQuery_getParent_rdh
/** * Get the hierarchical parent object, where <code>null</code> corresponds * to the root node. * * @return the hierarchical parent object */ public T getParent() { return parent;}
3.26
framework_ComboBox_sanitizeList_rdh
/** * Makes correct sublist of given list of options. * <p> * If paint is not an option request (affected by page or filter change), * page will be the one where possible selection exists. * <p> * Detects proper first and last item in list to return right page of * options. Also, ...
3.26
framework_ComboBox_setScrollToSelectedItem_rdh
/** * Sets whether to scroll the selected item visible (directly open the page * on which it is) when opening the combo box popup or not. Only applies to * single select mode. * * This requires finding the index of the item, which can be expensive in * many large lazy loading containers. * * @param scrollToSele...
3.26
framework_ComboBox_isTextInputAllowed_rdh
/** * Returns true if the user can enter text into the field to either filter * the selections or enter a new value if {@link #isNewItemsAllowed()} * returns true. If text input is disabled, the comboBox will work in the * same way as a {@link NativeSelect} * * @return */ public boolean isTextInputAllowed() { ...
3.26
framework_ComboBox_setPopupWidth_rdh
/** * Sets the suggestion pop-up's width as a CSS string. By using relative * units (e.g. "50%") it's possible to set the popup's width relative to the * ComboBox itself. * * @see #getPopupWidth() * @since 7.7 * @param width * the width */public void setPopupWidth(String width) { suggestionPopupWidth = w...
3.26
framework_ComboBox_getFilteredOptions_rdh
/** * Filters the options in memory and returns the full filtered list. * * This can be less efficient than using container filters, so use * {@link #getOptionsWithFilter(boolean)} if possible (filterable container * and suitable item caption mode etc.). * * @return */ protected List<?> getFilteredOptions() { ...
3.26
framework_ComboBox_getPageLength_rdh
/** * Returns the page length of the suggestion popup. * * @return the pageLength */ public int getPageLength() { return pageLength; }
3.26
framework_ComboBox_setInputPrompt_rdh
/** * Sets the input prompt - a textual prompt that is displayed when the * select would otherwise be empty, to prompt the user for input. * * @param inputPrompt * the desired input prompt, or null to disable */ public void setInputPrompt(String inputPrompt) { this.inputPrompt = inputPrompt; markAsDirty...
3.26
framework_ComboBox_setTextInputAllowed_rdh
/** * Sets whether it is possible to input text into the field or whether the * field area of the component is just used to show what is selected. By * disabling text input, the comboBox will work in the same way as a * {@link NativeSelect} * * @see #isTextInputAllowed() * @param textInputAllowed * true to al...
3.26
framework_ComboBox_adjustCurrentPage_rdh
/** * Adjusts the index of the current page if necessary: make sure the current * page is not after the end of the contents, and optionally go to the page * containg a specific item. There are no side effects but the adjusted page * index is returned. * * @param page * page number to use as the starting point ...
3.26
framework_ComboBox_setPageLength_rdh
/** * Sets the page length for the suggestion popup. Setting the page length to * 0 will disable suggestion popup paging (all items visible). * * @param pageLength * the pageLength to set */ public void setPageLength(int pageLength) { this.pageLength = pageLength; markAsDirty(); }
3.26
framework_ComboBox_setItemStyleGenerator_rdh
/** * Sets the item style generator that is used to produce custom styles for * showing items in the popup. The CSS class name that will be added to the * item style names is <tt>v-filterselect-item-[style name]</tt>. * * @param itemStyleGenerator * the item style generator to set, or <code>null</code> to not ...
3.26
framework_ComboBox_getPopupWidth_rdh
/** * Returns the suggestion pop-up's width as a CSS string. * * @see #setPopupWidth * @since 7.7 */ public String getPopupWidth() {return suggestionPopupWidth; }
3.26
framework_ComboBox_getLastItemIndexOnCurrentPage_rdh
/** * Returns the index of the last item on the current page. The index is to * the underlying (possibly filtered) contents. If needNullSelectOption is * true, the null item takes up the first slot on the first page, * effectively reducing the first page size by one. * * @param needNullSelectOption * true if a...
3.26
framework_ComboBox_m2_rdh
/** * Constructs a filter instance to use when using a Filterable container in * the <code>ITEM_CAPTION_MODE_PROPERTY</code> mode. * * Note that the client side implementation expects the filter string to * apply to the item caption string it sees, so changing the behavior of * this method can cause problems. * ...
3.26
framework_Margins_setMarginTop_rdh
/** * Sets the height of the top margin. * * @param marginTop * the top margin to set (in pixels) */ public void setMarginTop(int marginTop) { this.marginTop = marginTop; updateVertical(); }
3.26
framework_Margins_setMarginLeft_rdh
/** * Sets the width of the left margin. * * @param marginLeft * the left margin to set (in pixels) */ public void setMarginLeft(int marginLeft) { this.marginLeft = marginLeft;updateHorizontal(); }
3.26
framework_Margins_setMarginBottom_rdh
/** * Sets the height of the bottom margin. * * @param marginBottom * the bottom margin to set (in pixels) */ public void setMarginBottom(int marginBottom) { this.marginBottom = marginBottom; updateVertical(); }
3.26
framework_Margins_getHorizontal_rdh
/** * Returns the combined width of the left and the right margins. * * @return the sum of the left and the right margins (in pixels) */ public int getHorizontal() { return horizontal; }
3.26
framework_Margins_m0_rdh
/** * Returns the height of the top margin. * * @return top margin (in pixels) */ public int m0() { return marginTop; }
3.26
framework_Margins_setMarginRight_rdh
/** * Sets the width of the right margin. * * @param marginRight * the right margin to set (in pixels) */ public void setMarginRight(int marginRight) { this.marginRight = marginRight; updateHorizontal(); }
3.26
framework_LayoutDependencyTree_markHeightAsChanged_rdh
/** * Marks the component's height as changed. Iterates through all components * whose vertical size depends on this component's size. If the dependent is * a managed layout triggers need for vertical layouting, otherwise triggers * need for vertical measuring for any dependent components of that * component in tu...
3.26
framework_LayoutDependencyTree_getScrollingBoundary_rdh
/** * Returns the scrolling boundary for this component. If a cached value is * available, the check isn't performed again. If no cached value exists, * iterates through the component hierarchy until the closest parent that * implements {@link MayScrollChildren} has been found. * * @param connector * the conne...
3.26
framework_LayoutDependencyTree_markWidthAsChanged_rdh
/** * Marks the component's width as changed. Iterates through all components * whose horizontal size depends on this component's size. If the dependent * is a managed layout triggers need for horizontal layouting, otherwise * triggers need for horizontal measuring for any dependent components of * that component ...
3.26
framework_LayoutDependencyTree_setNeedsMeasure_rdh
/** * Informs this LayoutDependencyTree that the size of a component might have * changed and it needs measuring in both directions, or that the measuring * is no longer necessary. If there are blockers, measuring will be delayed * and cannot be disabled before the blockers have been removed. * * @param connector...
3.26
framework_LayoutDependencyTree_getVerticalLayoutTargetsJsArray_rdh
/** * Returns a JsArrayString array of connectorIds for managed layouts that * are waiting for vertical layouting. * * @return JsArrayString of connectorIds */ public JsArrayString getVerticalLayoutTargetsJsArray() {return getLayoutQueue(f0).dump(); } /** * * @return connectors that are waiting for measuring *...
3.26
framework_LayoutDependencyTree_getMeasureTargetsJsArray_rdh
/** * Returns a JsArrayString array of connectorIds for components that are * waiting for either horizontal or vertical measuring. * * @return JsArrayString of connectorIds */ public JsArrayString getMeasureTargetsJsArray() { FastStringSet allMeasuredTargets = FastStringSet.create();allMeasuredTargets.addAll(g...
3.26
framework_LayoutDependencyTree_setNeedsVerticalMeasure_rdh
/** * Informs this LayoutDependencyTree that the vertical size of a component * might have changed and it needs measuring, or that the measuring is no * longer necessary. If there are blockers, measuring will be delayed and * cannot be disabled before the blockers have been removed. * * @param connector * the ...
3.26
framework_LayoutDependencyTree_markAsHorizontallyLayouted_rdh
/** * Marks the managed layout as layouted horizontally and propagates the need * of horizontal measuring for any components that might have got their size * changed as a result. If there are blockers, nothing is done. * * @param layout * the managed layout whose horizontal layouting has been done, * should ...
3.26
framework_LayoutDependencyTree_markAsVerticallyLayouted_rdh
/** * Marks the managed layout as layouted vertically and propagates the need * of vertical measuring for any components that might have got their size * changed as a result. If there are blockers, nothing is done. * * @param layout * the managed layout whose vertical layouting has been done, * should not be...
3.26
framework_LayoutDependencyTree_setNeedsVerticalLayout_rdh
/** * Informs this LayoutDependencyTree that the vertical size of a managed * layout might have changed and it needs layouting, or that the layouting * is no longer necessary. If there are blockers, layouting will be delayed * and cannot be disabled before the blockers have been removed. Logs a * warning if no dep...
3.26
framework_LayoutDependencyTree_setNeedsHorizontalMeasure_rdh
/** * Informs this LayoutDependencyTree that the horizontal size of a component * might have changed and it needs measuring, or that the measuring is no * longer necessary. If there are blockers, measuring will be delayed and * cannot be disabled before the blockers have been removed. * * @param connector * th...
3.26
framework_LayoutDependencyTree_logDependencyStatus_rdh
/** * Logs horizontal and vertical {@link LayoutDependency} state for the given * connector. * * @param connector * the connector whose state to log, should not be {@code null} */ public void logDependencyStatus(ComponentConnector connector) { getLogger().info("===="); String connectorId = connector.get...
3.26
framework_LayoutDependencyTree_noMoreChangesExpected_rdh
/** * Returns whether all required layouting and measuring has been done for * this component to both directions and there are no more blockers waiting * for handling. * * @param connector * the connector to check, should not be {@code null} * @return {@code true} if nothing is pending, {@code false} otherwise...
3.26
framework_LayoutDependencyTree_setNeedsHorizontalLayout_rdh
/** * Informs this LayoutDependencyTree that the horizontal size of a managed * layout might have changed and it needs layouting, or that the layouting * is no longer necessary. If there are blockers, layouting will be delayed * and cannot be disabled before the blockers have been removed. Logs a * warning if no d...
3.26
framework_VFormLayout_getStylesFromState_rdh
/** * Parses the stylenames from shared state * * @param state * shared state of the component * @param enabled * @return An array of stylenames */ private String[] getStylesFromState(AbstractComponentState state, boolean enabled) { List<String> styles = new ArrayList<>(); if (ComponentStateUtil.hasSt...
3.26
framework_VFormLayout_getOwner_rdh
/** * Returns Paintable for which this Caption belongs to. * * @return owner Widget */ public ComponentConnector getOwner() { return owner; }
3.26