name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
framework_ConnectorTracker_removeUnregisteredConnector_rdh
/** * Removes all references and information about the given connector, which * must not be registered. * * @param connector * @param globalResourceHandler */ private void removeUnregisteredConnector(ClientConnector connector, GlobalResourceHandler globalResourceHandler) { ClientConnector removedConnector = ...
3.26
framework_ConnectorTracker_markClean_rdh
/** * Mark the connector as clean. * * @param connector * The connector that should be marked clean. */ public void markClean(ClientConnector connector) { if (fineLogging && dirtyConnectors.contains(connector)) {getLogger().log(Level.FINE, "{0} is no longer dirty", getConnectorAndParentInfo(connector)); ...
3.26
framework_ConnectorTracker_markAllConnectorsDirty_rdh
/** * Mark all connectors in this uI as dirty. */ public void markAllConnectorsDirty() { markConnectorsDirtyRecursively(uI); if (fineLogging) {getLogger().fine("All connectors are now dirty"); } }
3.26
framework_ConnectorTracker_removeUnregisteredConnectors_rdh
/** * Removes all references and information about connectors marked as * unregistered. */ private void removeUnregisteredConnectors() {GlobalResourceHandler globalResourceHandler = uI.getSession().getGlobalResourceHandler(false); for (ClientConnector connector : unregisteredConnectors) { removeUnregiste...
3.26
framework_ConnectorTracker_cleanConnectorMap_rdh
/** * Cleans the connector map from all connectors that are no longer attached * to the application. This should only be called by the framework. * * @deprecated use {@link #cleanConnectorMap(boolean)} instead */ @Deprecated public void cleanConnectorMap() { removeUnregisteredConnectors(); cleanStreamVari...
3.26
framework_ConnectorTracker_addMarkedAsDirtyListener_rdh
/** * Add a marked as dirty listener that will be called when a client * connector is marked as dirty. * * @param listener * listener to add * @since 8.4 * @return registration for removing listener registration */ public Registration addMarkedAsDirtyListener(MarkedAsDirtyListener listener) { markedDirtyL...
3.26
framework_ConnectorTracker_addStreamVariable_rdh
/** * Adds a StreamVariable of the given name to the indicated connector. * * @param connectorId * @param variableName * @param variable */ public void addStreamVariable(String connectorId, String variableName, StreamVariable variable) { assert getConnector(connectorId) != null; if (pidToNameToStreamVaria...
3.26
framework_ConnectorTracker_readObject_rdh
/* Special serialization to JsonObjects which are not serializable */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); // Read String versions of JsonObjects and parse into JsonObjects as // JsonObject is not serializable diffStates = new HashMap<>(); @S...
3.26
framework_ConnectorTracker_getStreamVariable_rdh
/** * Checks if the indicated connector has a StreamVariable of the given name * and returns the variable if one is found. * * @param connectorId * @param variableName * @return variable if a matching one exists, otherwise null */ public StreamVariable getStreamVariable(String connectorId, String variableName) {...
3.26
framework_ConnectorTracker_m2_rdh
/** * Returns the security key associated with the given StreamVariable. * * @param variable * @return matching security key if one exists, null otherwise */public String m2(StreamVariable variable) { if (streamVariableToSeckey == null) { return null; } return streamVariableToSeckey.get(variabl...
3.26
framework_ConnectorTracker_getLogger_rdh
/** * Gets a logger for this class * * @return A logger instance for logging within this class */ private static Logger getLogger() { return Logger.getLogger(ConnectorTracker.class.getName()); }
3.26
framework_ConnectorTracker_notifyMarkedAsDirtyListeners_rdh
/** * Notify all registered MarkedAsDirtyListeners the given client connector * has been marked as dirty. * * @param connector * client connector marked as dirty * @since 8.4 */ public void notifyMarkedAsDirtyListeners(ClientConnector connector) { MarkedAsDirtyConnectorEvent event = new MarkedAsDirtyCon...
3.26
framework_ConnectorTracker_setWritingResponse_rdh
/** * Sets the current response write status. Connectors can not be marked as * dirty when the response is written. * <p> * This method has a side-effect of incrementing the sync id by one (see * {@link #getCurrentSyncId()}), if {@link #isWritingResponse()} returns * <code>true</code> and <code>writingResponse</c...
3.26
framework_ConnectorTracker_markConnectorsDirtyRecursively_rdh
/** * Marks all visible connectors dirty, starting from the given connector and * going downwards in the hierarchy. * * @param c * The component to start iterating downwards from */ private void markConnectorsDirtyRecursively(ClientConnector c) { if ((c instanceof Component) && (!((Component) (c)).isVisible()))...
3.26
framework_ConnectorTracker_unregisterConnector_rdh
/** * Unregister the given connector. * * <p> * The lookup method {@link #getConnector(String)} only returns registered * connectors. * </p> * * @param connector * The connector to unregister */ public void unregisterConnector(ClientConnector connector) { ...
3.26
framework_ConnectorTracker_hasDirtyConnectors_rdh
/** * Checks if there a dirty connectors. * * @return true if there are dirty connectors, false otherwise */ public boolean hasDirtyConnectors() { return !getDirtyConnectors().isEmpty(); }
3.26
framework_ConnectorTracker_markDirty_rdh
/** * Mark the connector as dirty and notifies any marked as dirty listeners. * This should not be done while the response is being written. * * @see #getDirtyConnectors() * @see #isWritingResponse() * @param connector * The connector that should be marked clean. */ public void markDirty(ClientConnector conne...
3.26
framework_ConnectorTracker_getDirtyVisibleConnectors_rdh
/** * Returns a collection of those {@link #getDirtyConnectors() dirty * connectors} that are actually visible to the client. * * @return A list of dirty and visible connectors. */ public ArrayList<ClientConnector> getDirtyVisibleConnectors() { Collection<ClientConnector> dirtyConnectors = getDirtyConnectors(); Ar...
3.26
framework_ConnectorTracker_m0_rdh
/** * Marks the given connector as initialized, meaning that the client-side * state has been initialized for the connector. * * @see #isClientSideInitialized(ClientConnector) * @param connector * the connector that should be marked as initialized */ public void m0(ClientConnector connector) { uninitialize...
3.26
framework_ConnectorTracker_markAllConnectorsClean_rdh
/** * Mark all connectors in this uI as clean. */ public void markAllConnectorsClean() { dirtyConnectors.clear(); if (fineLogging) { getLogger().fine("All connectors are now clean"); } }
3.26
framework_ConnectorTracker_m1_rdh
/* Special serialization to JsonObjects which are not serializable */ private void m1(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); // Convert JsonObjects in diff state to String representation as // JsonObject is not serializable Map<ClientConnector, String> stringDiffStates = new HashMap<>(...
3.26
framework_ConnectorTracker_getCurrentSyncId_rdh
/** * Gets the most recently generated server sync id. * <p> * The sync id is incremented by one whenever a new response is being * written. This id is then sent over to the client. The client then adds * the most recent sync id to each communication packet it sends back to the * server. This way, the server know...
3.26
framework_ConnectorTracker_registerConnector_rdh
/** * Register the given connector. * <p> * The lookup method {@link #getConnector(String)} only returns registered * connectors. * </p> * * @param connector * The connector to register. */ public void registerConnector(ClientConnector connector) { boolean wasUnregistered = unregisteredConnectors.remove(...
3.26
framework_ConnectorTracker_getConnectorAndParentInfo_rdh
/** * Returns {@link #getConnectorString(ClientConnector)} for the connector * and its parent (if it has a parent). * * @param connector * The connector * @return A string describing the connector and its parent */ private String getConnectorAndParentInfo(ClientConnector connector) { String message = getConnec...
3.26
framework_ConnectorTracker_cleanStreamVariables_rdh
/** * Removes StreamVariables that belong to connectors that are no longer * attached to the session. */ private void cleanStreamVariables() { if (pidToNameToStreamVariable != null) { ConnectorTracker connectorTracker = uI.getConnectorTracker(); Iterator<String> iterator = pidToNameToStreamVariable...
3.26
framework_TabSheet_setSelectedTab_rdh
/** * Sets the selected tab. The tab is identified by the corresponding * {@link Tab Tab} instance. Does nothing if the tabsheet doesn't contain * the given tab. * * @param tab * the tab to select */ public void setSelectedTab(Tab tab) { if (tab != null) { setSelectedTab(tab.getComponent(), fal...
3.26
framework_TabSheet_iterator_rdh
/** * Gets the component container iterator for going through all the * components (tab contents). * * @return the unmodifiable Iterator of the tab content components */ @Override public Iterator<Component> iterator() { return Collections.unmodifiableList(components).iterator(); }
3.26
framework_TabSheet_addSelectedTabChangeListener_rdh
/** * Adds a tab selection listener. * * @see Registration * @param listener * the Listener to be added, not null * @return a registration object for removing the listener * @since 8.0 */ public Registration addSelectedTabChangeListener(SelectedTabChangeListener listener) { return addListener(TabSheet.Sel...
3.26
framework_TabSheet_removeComponent_rdh
/** * Removes a component and its corresponding tab. * * If the tab was selected, the first eligible (visible and enabled) * remaining tab is selected. * * @param component * the component to be removed. */ @Override public void removeComponent(Component component) { if ((component != null) && components....
3.26
framework_TabSheet_replaceComponent_rdh
/** * Replaces a component (tab content) with another. This can be used to * change tab contents or to rearrange tabs. The tab position and some * metadata are preserved when moving components within the same * {@link TabSheet}. * * If the oldComponent is not present in the tab sheet, the new one is added * at t...
3.26
framework_TabSheet_setTabPosition_rdh
/** * Sets the position of the tab. * * @param tab * The tab * @param position * The new position of the tab */ public void setTabPosition(Tab tab, int position) { int oldPosition = getTabPosition(tab); components.remove(oldPosition); components.add(position, tab.getComponent()); getState().t...
3.26
framework_TabSheet_moveComponentsFrom_rdh
/** * Moves all components from another container to this container. The * components are removed from the other container. * * If the source container is a {@link TabSheet}, component captions and * icons are copied from it. * * @param source * the container components are removed from. */ @Override public ...
3.26
framework_TabSheet_isTabsVisible_rdh
/** * Checks if the tab selection part should be shown in the UI. * * @return true if the tabs are shown in the UI, false otherwise * @since 7.5 */ public boolean isTabsVisible() { return getState(false).tabsVisible; } /** * Returns the {@link Tab} (metadata) for a component. The {@link Tab}
3.26
framework_TabSheet_removeTab_rdh
/** * Removes a {@link Tab} and the component associated with it, as previously * added with {@link #addTab(Component)}, * {@link #addTab(Component, String, Resource)} or * {@link #addComponent(Component)}. * <p> * If the tab was selected, the first eligible (visible and enabled) * remaining tab is selected. * ...
3.26
framework_TabSheet_writeTabToDesign_rdh
/** * Writes the given tab to design * * @since 7.4 * @param design * the design node for tabsheet * @param designContext * the design context * @param tab * the tab to be written */ private void writeTabToDesign(Element design, DesignContext designContext, Tab tab) { // get default tab instance ...
3.26
framework_TabSheet_getCaption_rdh
/** * Returns the tab caption. Can never be null. */ @Override public String getCaption() { return tabState.caption; }
3.26
framework_TabSheet_getTabSheet_rdh
/** * The TabSheet where the event occurred. * * @return the TabSheet where the event occurred */ public TabSheet getTabSheet() { return ((TabSheet) (getSource())); }
3.26
framework_TabSheet_addComponent_rdh
/** * Adds a new tab into TabSheet. Component caption and icon are copied to * the tab metadata at creation time. * * @see #addTab(Component) * @param c * the component to be added. */ @Override public void addComponent(Component c) { addTab(c); }
3.26
framework_TabSheet_m0_rdh
/** * Checks if the current selection is valid, and updates the selection if * the previously selected component is not visible and enabled. The first * visible and enabled tab is selected if the current selection is empty or * invalid. * * This method does not fire tab change events, but the caller should do so ...
3.26
framework_TabSheet_copyTabMetadata_rdh
/** * Copies properties from one Tab to another. * * @param from * The tab whose data to copy. * @param to * The tab to which copy the data. */ private static void copyTabMetadata(Tab from, Tab to) { to.setCaption(from.getCaption()); to.setIcon(from.getIcon(), from.getIconAlternateText()); to.set...
3.26
framework_TabSheet_areTabsHidden_rdh
/** * Are the tab selection parts ("tabs") hidden. * * @return true if the tabs are hidden in the UI * @deprecated as of 7.5, use {@link #isTabsVisible()} instead */ @Deprecated public boolean areTabsHidden() { return !isTabsVisible(); } /** * Hides or shows the tab selection parts ("tabs"). * * @param t...
3.26
framework_TabSheet_getSelectedTab_rdh
/** * Gets the selected tab content component. * * @return the selected tab contents */ public Component getSelectedTab() { return selected; }
3.26
framework_TabSheet_setCloseHandler_rdh
/** * Provide a custom {@link CloseHandler} for this TabSheet if you wish to * perform some additional tasks when a user clicks on a tabs close button, * e.g. show a confirmation dialogue before removing the tab. * * To remove the tab, if you provide your own close handler, you must call * {@link #removeComponent...
3.26
framework_TabSheet_readTabFromDesign_rdh
/** * Reads the given tab element from design * * @since 7.4 * @param tabElement * the element to be read * @param designContext * the design context */ private void readTabFromDesign(Element tabElement, DesignContext designContext) { Attributes attr = tabElement.attributes(); if (tabElement.childr...
3.26
framework_TabSheet_fireSelectedTabChange_rdh
/** * Sends an event that the currently selected tab has changed. * * @param userOriginated * <code>true</code> if the event originates from the client * side, <code>false</code> otherwise * @since 8.1 */ protected void fireSelectedTabChange(boolean userOriginated) { fireEvent(new SelectedTabChangeEvent(...
3.26
framework_TabSheet_getComponentCount_rdh
/** * Gets the number of contained components (tabs). Consistent with the * iterator returned by {@link #getComponentIterator()}. * * @return the number of contained components */@Override public int getComponentCount() { return components.size(); }
3.26
framework_TabSheet_setTabCaptionsAsHtml_rdh
/** * Sets whether HTML is allowed in the tab captions. * <p> * If set to true, the captions are rendered in the browser as HTML and the * developer is responsible for ensuring no harmful HTML is used. If set to * false, the content is rendered in the browser as plain text. * <p> * The default is false, i.e. ren...
3.26
framework_TabSheet_addTab_rdh
/** * Adds a new tab into TabSheet. Component caption and icon are copied to * the tab metadata at creation time. * * If the tab sheet already contains the component, its tab is returned. * * @param component * the component to be added onto tab - should not be null. * @param position * The position where ...
3.26
framework_TabSheet_isUserOriginated_rdh
/** * {@inheritDoc } * * @since 8.1 */ @Override public boolean isUserOriginated() { return userOriginated; }
3.26
framework_TabSheet_setTabsVisible_rdh
/** * Sets whether the tab selection part should be shown in the UI. * * @since 7.5 * @param tabsVisible * true if the tabs should be shown in the UI, false otherwise */ public void setTabsVisible(boolean tabsVisible) { getState().tabsVisible = tabsVisible;}
3.26
framework_MenuBar_onShow_rdh
/* This method is called when a menu bar is shown. */ private void onShow() { // Select the first item when a menu is shown. if (!items.isEmpty()) {selectItem(items.get(0)); } }
3.26
framework_MenuBar_addItem_rdh
/** * Adds a menu item to the bar, that will open the specified menu when it is * selected. * * @param text * the item's text * @param popup * the menu to be cascaded from it * @return the {@link MenuItem} object created */ public MenuItem addItem(String text, MenuBar popup) { final MenuItem item = new...
3.26
framework_MenuBar_m0_rdh
/** * Gest the last item from the menu or null if no items. * * @since 7.2.6 * @return the last item from the menu or null if no items. */ public MenuItem m0() {return (items != null) && (!items.isEmpty()) ? items.get(items.size() - 1) : null; }
3.26
framework_MenuBar_close_rdh
/** * Closes this menu (if it is a popup). */ private void close() { if (parentMenu != null) { parentMenu.popup.hide(); } }
3.26
framework_MenuBar_m1_rdh
/* Scroll the specified item into view. */ private void m1(MenuItem item) { if (item != null) { item.getElement().scrollIntoView(); } }
3.26
framework_MenuBar_clearItems_rdh
/** * Removes all menu items from this menu bar. */ public void clearItems() { final Element container = getItemContainerElement(); while (DOM.getChildCount(container) > 0) { DOM.removeChild(container, DOM.getChild(container, 0)); } items.clear(); }
3.26
framework_MenuBar_scrollSelectionIntoView_rdh
/** * Scroll the selected item into view. * * @since 7.2.6 */ public void scrollSelectionIntoView() { m1(selectedItem); }
3.26
framework_MenuBar_getPreferredHeight_rdh
/** * Gets the preferred height of the menu. * * @since 7.2.6 * @return the preferred height */ protected int getPreferredHeight() { return table.getOffsetHeight(); }
3.26
framework_MenuBar_getFirstItem_rdh
/** * Gets the first item from the menu or null if no items. * * @since 7.2.6 * @return the first item from the menu or null if no items. */ public MenuItem getFirstItem() { return (items != null) && (!items.isEmpty()) ? items.get(0) : null; }
3.26
framework_MenuBar_setAutoOpen_rdh
/** * Sets whether this menu bar's child menus will open when the mouse is * moved over it. * * @param autoOpen * <code>true</code> to cause child menus to auto-open */ public void setAutoOpen(boolean autoOpen) { this.autoOpen = autoOpen; }
3.26
framework_MenuBar_selectItem_rdh
/** * Moves the selection to the given item and scrolls it into view. If the * given item is {@code null}, previous selection is removed but no * scrolling will happen. * * @param item * the item to select */ public void selectItem(MenuItem item) { if (item == selectedItem) { m1(item); return; } if (...
3.26
framework_MenuBar_setScrollEnabled_rdh
/** * Sets the menu scroll enabled or disabled. * * @since 7.2.6 * @param enabled * the enabled state of the scroll. */ public void setScrollEnabled(boolean enabled) { if (enabled) { if (vertical) { outer.getStyle().setOverflowY(Overflow.AUTO); } else { outer.getStyle().setOverflowX(Overflow.AUTO); } } ...
3.26
framework_MenuBar_getSelectedIndex_rdh
/** * Gets the index of the selected item. * * @since 7.2.6 * @return the index of the selected item. */ public int getSelectedIndex() { return items != null ? items.indexOf(getSelectedItem()) : -1; }
3.26
framework_MenuBar_removeItem_rdh
/** * Removes the specified menu item from the bar. * * @param item * the item to be removed */ public void removeItem(MenuItem item) { final int idx = items.indexOf(item); if (idx == (-1)) { return; } final Element container = getItemContainerElement(); DOM.removeChild(containe...
3.26
framework_MenuBar_doItemAction_rdh
/** * Performs the action associated with the given menu item. If the item has * a popup associated with it, the popup will be shown. If it has a command * associated with it, and 'fireCommand' is true, then the command will be * fired. Popups associated with other items will be hidden. * ...
3.26
framework_MenuBar_closeAllParents_rdh
/* Closes all parent menu popups. */ void closeAllParents() { MenuBar curMenu = this; while (curMenu != null) { curMenu.close(); if ((curMenu.parentMenu == null) && (curMenu.selectedItem != null)) { curMenu.selectedItem.setSelectionStyle(false); curMenu.selectedItem = ...
3.26
framework_VTextArea_setWordWrap_rdh
/** * Sets whether the words should wrap or not. * * @param wordWrap * {@code true} if the words should wrap, {@code false} otherwise */ public void setWordWrap(boolean wordWrap) { if (wordWrap == this.wordWrap) { return; ...
3.26
framework_VTextArea_setRows_rdh
/** * Sets the number of text rows that should be displayed. * * @param rows * the number of text rows */ public void setRows(int rows) { getTextAreaElement().setRows(rows);}
3.26
framework_VVideo_updateElementDynamicSize_rdh
/** * Updates the dimensions of the widget. * * @param width * width to set (in pixels) * @param height * height to set (in pixels) */ @SuppressWarnings("deprecation") private void updateElementDynamicSize(int width, int height) { video.getStyle().setWidth(width, Unit.PX); video.getStyle().setHeight...
3.26
framework_VVideo_setPoster_rdh
/** * Sets the poster URL. * * @param poster * the poster image URL */ public void setPoster(String poster) { video.setPoster(poster); }
3.26
framework_SpacerVisibilityChangedEvent_getRowIndex_rdh
/** * Gets the row index to which the spacer element belongs. * * @return the row index to which the spacer element belongs */ public int getRowIndex() { return rowIndex; } /** * Gets whether the spacer element is displayed. * * @return {@code true} if the spacer element is shown, {@code false}
3.26
framework_VAbstractDateFieldCalendar_setTabIndex_rdh
/** * Sets the tabulator index for the calendar panel element that represents * the entire widget in the browser's focus cycle. * * @param tabIndex * the new tabulator index */ public void setTabIndex(int tabIndex) { calendarPanel.getElement().setTabIndex(tabIndex); }
3.26
framework_MonthEventLabel_setEventIndex_rdh
/** * Set the (server side) index of the event. * * @param index * The integer index */ public void setEventIndex(int index) { eventIndex = index; }
3.26
framework_MonthEventLabel_renderCaption_rdh
/** * Renders the caption in the DIV element */ private void renderCaption() { StringBuilder html = new StringBuilder(); String textOrHtml; if (calendar.isEventCaptionAsHtml()) { textOrHtml = caption; } else { textOrHtml = Util.escapeHTML(caption); } if ((caption != null) && (t...
3.26
framework_MonthEventLabel_setTimeSpecificEvent_rdh
/** * Is the event bound to a specific time. * * @param timeSpecificEvent * True if the event is bound to a time, false if it is only * bound to the day */ public void setTimeSpecificEvent(boolean timeSpecificEvent) { this.timeSpecificEvent = timeSpecificEvent; }
3.26
framework_MonthEventLabel_setTime_rdh
/** * Set the time of the event label. * * @param date * The date object that specifies the time */ public void setTime(Date date) { time = date; renderCaption(); }
3.26
framework_MonthEventLabel_isTimeSpecificEvent_rdh
/** * Is the event bound to a specific time. * * @return */ public boolean isTimeSpecificEvent() { return timeSpecificEvent; }
3.26
framework_MonthEventLabel_setCalendar_rdh
/** * Set the Calendar instance this label belongs to. * * @param calendar * The calendar instance */ public void setCalendar(VCalendar calendar) { this.calendar = calendar; }
3.26
framework_MonthEventLabel_setCaption_rdh
/** * Set the caption of the event label. * * @param caption * The caption string, can be HTML if * {@link VCalendar#isEventCaptionAsHtml()} is true */ public void setCaption(String caption) { this.caption = caption; renderCaption(); }
3.26
framework_TreeConnector_m0_rdh
/** * Registers action for the root and also for individual nodes * * @param uidl */ private void m0(UIDL uidl) { for (final Object child : uidl) { final UIDL action = ((UIDL) (child)); final String key = action.getStringAttribute("key"); final String caption = action.getStringAttribute(TreeConstants.ATTRIBUTE_ACT...
3.26
framework_StringToEnumConverter_enumToString_rdh
/** * Converts the given enum to a human readable string using the given * locale. * <p> * Compatible with {@link #stringToEnum(String, Class, Locale)} * * @param value * The enum value to convert * @pa...
3.26
framework_StringToEnumConverter_stringToEnum_rdh
/** * Converts the given string to the given enum type using the given locale. * <p> * Compatible with {@link #enumToString(Enum, Locale)} * * @param value * The string value to convert * @param enumType * The type of enum to create * @param locale * The locale to use for conversion. If null, the JVM de...
3.26
framework_Action_setCaption_rdh
/** * Sets the caption. * * @param caption * the caption to set. */public void setCaption(String caption) { this.caption = caption; }
3.26
framework_Action_setIcon_rdh
/** * Sets the icon. * * @param icon * the icon to set. */ public void setIcon(Resource icon) { this.icon = icon; }
3.26
framework_ComponentConnectorLayoutSlot_reportActualRelativeWidth_rdh
/** * Reports the expected outer width to the LayoutManager. * * @param allocatedWidth * the width to set (including margins, borders and paddings) in * pixels */ @Override protected void reportActualRelativeWidth(int allocatedWidth) { getLayoutManager().reportOuterWidth(child, allocatedWidth); }
3.26
framework_ComponentConnectorLayoutSlot_getLayoutManager_rdh
/** * Returns the layout manager for the managed layout. * * @return layout manager */ public LayoutManager getLayoutManager() { return layout.getLayoutManager(); }
3.26
framework_ComponentConnectorLayoutSlot_getChild_rdh
/** * Returns the connector of the child component that has been assigned to * this slot. * * @return the content connector */ public ComponentConnector getChild() { return child; }
3.26
framework_ComponentConnectorLayoutSlot_reportActualRelativeHeight_rdh
/** * Reports the expected outer height to the LayoutManager. * * @param allocatedHeight * the height to set (including margins, borders and paddings) in * pixels */@Override protected void reportActualRelativeHeight(int allocatedHeight) { getLayoutManager().reportOuterHeight(child, allocatedHeight); }
3.26
framework_AbstractJunctionFilter_appliesToProperty_rdh
/** * Returns true if a change in the named property may affect the filtering * result. If some of the sub-filters are not in-memory filters, true is * returned. * * By default, all sub-filters are iterated to check if any of them applies. * If there are no sub-filters, false is returned - override in subclasses ...
3.26
framework_QueryBuilder_setStringDecorator_rdh
/** * Allows specification of a custom ColumnQuoter instance that handles * quoting of column names for the current DB dialect. * * @param decorator * the ColumnQuoter instance to use. */ public static void setStringDecorator(StringDecorator decorator) { stringDecorator = decorator; }
3.26
framework_QueryBuilder_getWhereStringForFilter_rdh
/** * Constructs and returns a string representing the filter that can be used * in a WHERE clause. * * @param filter * the filter to translate * @param sh * the statement helper to update with the value(s) of the filter * @return a string representing the filter. */ public static synchronized String getW...
3.26
framework_ElementResizeEvent_getLayoutManager_rdh
/** * Returns the current layout manager. * * @return the layout manager */ public LayoutManager getLayoutManager() { return layoutManager; }
3.26
framework_ElementResizeEvent_getElement_rdh
/** * Returns the resized element. * * @return the element */ public Element getElement() { return element; }
3.26
framework_TreeFilesystemContainer_componentEvent_rdh
/** * Listener for any component events. This class has been registered as an * listener for component fsTree. */ @Override public void componentEvent(Event event) { // Check if event occurred at fsTree component if (event.getSource() == filesystem) { // Check if event is about changing value ...
3.26
framework_AbstractDateField_getRangeEnd_rdh
/** * Returns the precise rangeEnd used. * * @return the precise rangeEnd used, may be {@code null}. */ public T getRangeEnd() { return convertFromDateString(getState(false).rangeEnd); }
3.26
framework_AbstractDateField_setAssistiveLabel_rdh
/** * Sets the assistive label for a calendar navigation element. This sets the * {@code aria-label} attribute for the element which is used by screen * reading software. * * @param element * the element for which to set the label. Not {@code null}. * @param label * the assistive label to set * @since 8.4 ...
3.26
framework_AbstractDateField_setDateFormat_rdh
/** * Sets formatting used by some component implementations. See * {@link SimpleDateFormat} for format details. * * By default it is encouraged to used default formatting defined by Locale, * but due some JVM bugs it is sometimes necessary to use this method to * override formatting. See Vaadin issue #2200. * ...
3.26
framework_AbstractDateField_setParseErrorMessage_rdh
/** * Sets the default error message used if the DateField cannot parse the * text input by user to a Date field. Note that if the * {@link #handleUnparsableDateString(String)} method is overridden, the * localized message from its exception is used. * * @param parsingErrorMessage * the default parsing error m...
3.26
framework_AbstractDateField_setValue_rdh
/** * Sets the value of this object. If the new value is not equal to * {@code getValue()}, fires a {@link ValueChangeEvent} . * * @param value * the new value, may be {@code null} * @throws IllegalArgumentException * if the value is not within range bounds */ @Override public void setValue(T value) { T...
3.26
framework_AbstractDateField_isPreventInvalidInput_rdh
/** * Check whether value change is emitted when user input value does not meet * integrated range validator. The default is false. * * @return a Boolean value * @since 8.13 */ public boolean isPreventInvalidInput() { return preventInvalidInput; }
3.26