name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_AbstractDateField_setPreventInvalidInput_rdh | /**
* Control whether value change event is emitted when user input value does
* not meet the integrated range validator.
*
* @param preventInvalidInput
* Set to false to disable the value change event.
* @since 8.13
*/
public void setPreventInvalidInput(boolean preventInvalidInput) {
this.preventInvalidInput... | 3.26 |
framework_AbstractDateField_setRangeStart_rdh | /**
* Sets the start range for this component. If the value is set before this
* date (taking the resolution into account), the component will not
* validate. If {@code startDate} is set to {@code null}, any value before
* {@code endDate} will be accepted by the range
* <p>
* Note: Negative, i.e. BC dates are not... | 3.26 |
framework_AbstractDateField_convertFromDateString_rdh | /**
* Parses string representation of date range limit into date type.
*
* @param temporalStr
* the string representation
* @return parsed value
* @see AbstractDateFieldState#rangeStart
... | 3.26 |
framework_AbstractDateField_setShowISOWeekNumbers_rdh | /**
* Sets the visibility of ISO 8601 week numbers in the date selector. ISO
* 8601 defines that a week always starts with a Monday so the week numbers
* are only shown if this is the case.
*
* @param showWeekNumbers
* true if week numbers should be shown, false otherwise.
*/
public void setShowISOWeekNumbers(... | 3.26 |
framework_AbstractDateField_setZoneId_rdh | /**
* Sets the {@link ZoneId}, which is used when {@code z} is included inside
* the {@link #setDateFormat(String)} .
*
* @param zoneId
* the zone id
* @since 8.2
*/
public void setZoneId(ZoneId zoneId) {
if ((zoneId != this.zoneId) || ((zoneId != null) && (!zoneId.equals(this.zoneId)))) {
updat... | 3.26 |
framework_AbstractDateField_setDateStyle_rdh | /**
* <p>
* Sets a custom style name for the given date's calendar cell. Setting the
* style name will override any previous style names that have been set for
* that date, but can contain several actual style names separated by space.
* Setting the custom style name... | 3.26 |
framework_AbstractDateField_convertToDateString_rdh | /**
* Converts date range limit into string representation.
*
* @param temporal
* the value
* @return textual representation
* @see AbstractDateFieldState#rangeStart
* @see AbstractDateFieldState#rangeEnd
* @since 8.4
*/
protected String convertToDateString(T temporal) {
if (temporal == null) {
r... | 3.26 |
framework_AbstractDateField_setDaylightSavingTimeRange_rdh | /**
* Sets {@link startYear} and {@link endYear}: the start and end years (both
* inclusive) between which to calculate the daylight-saving time zone
* transition dates. Both parameters are used when '{@code z}' is included
* inside the {@link #setDateFormat(String)}, they would have no effect
* otherwise. Specifi... | 3.26 |
framework_AbstractDateField_setDefaultValue_rdh | /**
* Sets the default value for the field. The default value is the starting
* point for the date field when nothing has been selected yet. If no
* default value is set, current date/time is used.
*
* @param defaultValue
* the default value, may be {@code null}
* @since 8.1.2
*/
public void setDefaultValue(T... | 3.26 |
framework_AbstractDateField_setDateOutOfRangeMessage_rdh | /**
* Sets the current error message if the range validation fails.
*
* @param dateOutOfRangeMessage
* - Localizable message which is shown when value (the date) is
* set outside allowed range
*/
public void setDateOutOfRangeMessage(String dateOutOfRangeMessage) {
this.dateOutOfRangeMessage = dateOutOfR... | 3.26 |
framework_AbstractDateField_beforeClientResponse_rdh | /* Component basic features */
@Override
public void beforeClientResponse(boolean initial) {
super.beforeClientResponse(initial);
Locale locale = getLocale();
getState().locale = (locale == null) ? null : locale.toString();
} | 3.26 |
framework_AbstractDateField_setRangeEnd_rdh | /**
* Sets the end range for this component. If the value is set after this
* date (taking the resolution into account), the component will not
* validate. If {@code endDate} is set to {@code null}, any value after
* {@code startDate} will be accepted by the range.
* <p>
* Note: It's usually recommended to use on... | 3.26 |
framework_AbstractDateField_getDateStyle_rdh | /**
* Returns the custom style name that corresponds with the given date's
* calendar cell.
*
* @param date
* which date cell's custom style name(s) to return, not
* {@code null}
* @return the corresponding style name(s), if any, {@code null} otherwise
* @see #setDateStyle(LocalDate, String)
* @since 8.3
... | 3.26 |
framework_AbstractDateField_getAssistiveLabel_rdh | /**
* Gets the assistive label of a calendar navigation element.
*
* @param element
* the element of which to get the assistive label
* @since 8.4
*/
public void getAssistiveLabel(AccessibleElement element) {
getState(false).assistiveLabels.get(element);
} | 3.26 |
framework_AbstractDateField_getResolution_rdh | /**
* Gets the resolution.
*
* @return the date/time field resolution
*/
public R getResolution() {
return resolution;
}
/**
* Sets the resolution of the DateField.
*
* The default resolution is {@link DateResolution#DAY} since Vaadin 7.0.
*
* @param resolution
* t... | 3.26 |
framework_AbstractDateField_getZoneId_rdh | /**
* Returns the {@link ZoneId}, which is used when {@code z} is included
* inside the {@link #setDateFormat(String)}.
*
* @return the zoneId
* @since 8.2
*/
public ZoneId getZoneId() {
return zoneId;} | 3.26 |
framework_AbstractDateField_getRangeStart_rdh | /**
* Returns the precise rangeStart used.
*
* @return the precise rangeStart used, may be {@code null}.
*/public T getRangeStart() {
return convertFromDateString(getState(false).rangeStart);
} | 3.26 |
framework_AbstractDateField_handleUnparsableDateString_rdh | /**
* This method is called to handle a non-empty date string from the client
* if the client could not parse it as a Date.
*
* By default, an error result is returned whose error message is
* {@link #getParseErrorMessage()}.
*
* This can be overridden to handle conversions, to return a result with
* {@code nul... | 3.26 |
framework_AbstractDateField_reconstructDateFromFields_rdh | /**
* Construct a date object from the individual field values received from
* the client.
*
* @param resolutions
* map of time unit (resolution) name and value, the key is the
* resolution name e.g. "HOUR", "MINUTE", the value can be
* {@code null}
* @param oldDate
* used as a fallback to get needed v... | 3.26 |
framework_MenuBarElement_closeAll_rdh | /**
* Closes all submenus, if any is open.<br>
* This is done by clicking on the currently selected top level item.
*/
private void closeAll() {
lastItemLocationMovedTo = null;
WebElement selectedItem = getSelectedTopLevelItem();
if (selectedItem != null) {
activateOrOpenSubmenu(selectedItem, tru... | 3.26 |
framework_MenuBarElement_clickItem_rdh | /**
* Clicks the item specified by a full path given as variable arguments.<br>
* Fails if path given is not full (ie: last submenu is already opened, and
* path given is last item only).
* <p>
* Example:
* </p>
*
* <pre>
* // clicks on "File" item
* menuBarElement.click("File");
* // cli... | 3.26 |
framework_ColorPickerPreviewElement_getColorFieldValue_rdh | /**
* Get the value of the input element TextField in ColorPickerPreview.
*
* @return the value of the attribute 'value' of the input element
* @since 8.4
*/
public String getColorFieldValue() {
return getColorTextField().getAttribute("value");
} | 3.26 |
framework_ColorPickerPreviewElement_getColorFieldContainsErrors_rdh | /**
* Get whether TextField in ColorPickerPreview has validation errors.
*
* @return true if field has errors, false otherwise
* @since 8.4
*/
public boolean getColorFieldContainsErrors() {
List<WebElement> caption = findElements(By.className("v-caption-v-colorpicker-preview-textfield"));
return (!caption.... | 3.26 |
framework_ColorPickerPreviewElement_setColorTextFieldValue_rdh | /**
* Set value of TextField in ColorPickerPreview. Any existing value in the
* field is replaced.
*
* @param value
* text to insert
* @since 8.4
*/
public void setColorTextFieldValue(String value) {
// Select all text
getColorTextField().sendKeys(Keys.chord(Keys.CONTROL, "a"));
getColorTextField(... | 3.26 |
framework_ShortcutActionHandler_shakeTarget_rdh | /**
* We try to fire value change in the component the key combination was
* typed. E.g. TextField may contain newly typed text that is expected to be
* sent to server before the shortcut action is triggered. This is done by
* removing focus and then returning it immediately back to target element.
* <p>
* This i... | 3.26 |
framework_ShortcutActionHandler_updateActionMap_rdh | /**
* Updates list of actions this handler listens to.
*
* @param c
* UIDL snippet containing actions
*/
public void updateActionMap(UIDL c) {
actions.clear();
for (final Object child : c) {
final UIDL action = ((UIDL) (child));
int[] modifiers = null;
if (action.hasAttribute("mk")) {
modif... | 3.26 |
framework_ColumnConnector_getTooltipContentMode_rdh | /**
* Gets the content mode for tooltips in this column.
*
* @return the content mode.
* @since 8.2
*/
public ContentMode getTooltipContentMode() {
return tooltipContentMode;
} | 3.26 |
framework_ColumnConnector_getConnectorId_rdh | /**
* Returns the id for the corresponding connector.
*
* @return the id for the connector
*/
public String getConnectorId() {
return connectorId;
} | 3.26 |
framework_ColumnConnector_setTooltipContentMode_rdh | /**
* Sets the content mode for tooltips in this column.
*
* @param tooltipContentMode
* the content mode for tooltips
* @since 8.2
*/
public void setTooltipContentMode(ContentMode tooltipContentMode) {this.tooltipContentMode = tooltipContentMode;
} | 3.26 |
framework_TreeGridConnector_setCollapsed_rdh | /**
* Set the collapse state for the row in the given index.
* <p>
* Calling this method will have no effect if a response has not yet been
* received for a previous call to this method.
*
* @param rowIndex
* index of the row to set the state for
* @param collapsed
* {@code true} to collapse the row, {@cod... | 3.26 |
framework_TreeGridConnector_updateHierarchyColumn_rdh | /**
* This method has been scheduled finally to avoid possible race conditions
* between state change handling for the Grid and its columns. The renderer
* of the column is set in a state change handler, and might not be
* available when this method is executed.
*/
@SuppressWarnings("unchecked")
@OnStateChange("hi... | 3.26 |
framework_SortOrderBuilder_append_rdh | /**
* Append a sort order to {@code sortOrders}.
*
* @param sortOrder
* the sort order to append
* @return this
*/
private final SortOrderBuilder<T, V> append(T sortOrder) {
sortOrders.add(sortOrder);
return this;
} | 3.26 |
framework_SortOrderBuilder_thenAsc_rdh | /**
* Appends sorting with ascending sort direction.
*
* @param by
* the object to sort by
* @return this sort builder
*/
public SortOrderBuilder<T,
V> thenAsc(V by) {
return append(m0(by, SortDirection.ASCENDING));
} | 3.26 |
framework_SortOrderBuilder_thenDesc_rdh | /**
* Appends sorting with descending sort direction.
*
* @param by
* the object to sort by
* @return this sort builder
*/
public SortOrderBuilder<T, V> thenDesc(V by) {
return append(m0(by, SortDirection.DESCENDING));
} | 3.26 |
framework_AbstractMultiSelect_setValue_rdh | /**
* Sets the value of this object which is a set of items to select. If the
* new value is not equal to {@code getValue()}, fires a value change event.
* May throw {@code IllegalArgumentException} if the value is not
* acceptable.
* <p>
* The method effectively selects the given items and deselects previously
... | 3.26 |
framework_AbstractMultiSelect_deselect_rdh | /**
* Deselects the given item. If the item is not currently selected, does
* nothing.
*
* @param item
* the item to deselect, not null
* @param userOriginated
* {@code true} if this was used originated, {@code false} if not
*/
protected void deselect(T item, boolean userOriginated) {
if (!selection.con... | 3.26 |
framework_AbstractMultiSelect_addValueChangeListener_rdh | /**
* Adds a value change listener. The listener is called when the selection
* set of this multi select is changed either by the user or
* programmatically.
*
* @see #addSelectionListener(MultiSelectionListener)
* @param listener
* the value change listener, not null
* @return a registration for the listener... | 3.26 |
framework_AbstractMultiSelect_setItemEnabledProvider_rdh | /**
* Sets the item enabled predicate for this multiselect. The predicate is
* applied to each item to determine whether the item should be enabled (
* {@code true}) or disabled ({@code false}). Disabled items are displayed
* as grayed out and the user cannot select them. The default predicate
* always returns {@c... | 3.26 |
framework_AbstractMultiSelect_getValue_rdh | /**
* Returns the current value of this object which is an immutable set of the
* currently selected items.
* <p>
* The call is delegated to {@link #getSelectedItems()}
*
* @return the current selection
* @see #getSelectedItems()
* @see SelectionModel#getSelectedItems
*/
@Override
public Set<T> getValue() {
... | 3.26 |
framework_AbstractMultiSelect_updateSelection_rdh | /**
* Updates the selection by adding and removing the given items.
*
* @param addedItems
* the items added to selection, not {@code } null
* @param removedItems
* the items removed from selection, not {@code } null
* @param userOriginated
... | 3.26 |
framework_AbstractMultiSelect_addSelectionListener_rdh | /**
* Adds a selection listener that will be called when the selection is
* changed either by the user or programmatically.
*
* @param listener
* the value change listener, not {@code null}
* @return a registration for the listener
*/
@Override
public Registration addSelectionListener(MultiSelectionListener<T>... | 3.26 |
framework_AbstractMultiSelect_readItem_rdh | /**
* Reads an Item from a design and inserts it into the data source.
* Hierarchical select components should override this method to recursively
* recursively read any child items as well.
*
* @param child
* a child element representing the item
* @param selected
* A set accumulating selected items. If th... | 3.26 |
framework_AbstractMultiSelect_select_rdh | /**
* Selects the given item. Depending on the implementation, may cause other
* items to be deselected. If the item is already selected, does nothing.
*
* @param item
* the item to select, not null
* @param userOriginated
* {@code true} if this was used originated, {@code false} if not
*/
protected void se... | 3.26 |
framework_TestUtils_injectCSS_rdh | /**
* Crossbrowser hack to dynamically add css current window. Can be used to
* keep tests css in source files.
*
* @param cssString
*/
public static void injectCSS(UI
w, String cssString) {
String script = (((((((("if ('\\v'=='v') /* ie only */ {\n" + " document.createStyleSheet().cssText = '") + css... | 3.26 |
framework_BrowserWindowOpener_setUrl_rdh | /**
* Sets the provided URL {@code url} for this instance. The {@code url} will
* be opened in a new browser window/tab when the extended component is
* clicked.
*
* @since 7.4
* @param url
* URL to open
*/
public void setUrl(String url) {
setResource(new ExternalResource(url));
} | 3.26 |
framework_BrowserWindowOpener_setResource_rdh | /**
* Sets the provided {@code resource} for this instance. The
* {@code resource} will be opened in a new browser window/tab when the
* extended component is clicked.
*
* @since 7.4
* @param resource
* resource to open
*/
public void setResource(Resource resource) {
setResource(BrowserWindowOpenerState.l... | 3.26 |
framework_BrowserWindowOpener_setParameter_rdh | /**
* Sets a parameter that will be added to the query string of the opened
* URI. If the window is opened to contain a Vaadin UI, the parameter will
* be available using {@link VaadinRequest#getParameter(String)} e.g. using
* the request instance passed to {@link UI#init(VaadinRequest)}.
* <p>
* Setting a parame... | 3.26 |
framework_BrowserWindowOpener_setWindowName_rdh | /**
* Sets the target window name that will be used. If a window has already
* been opened with the same name, the contents of that window will be
* replaced instead of opening a new window. If the name is
* <code>null</code> or <code>"_blank"</code>, a new window will always be
* opened.
*
* @param windowName
... | 3.26 |
framework_BrowserWindowOpener_setUriFragment_rdh | /**
* Sets a URI fragment that will be added to the URI opened in the window.
* If the window is opened to contain a Vaadin UI, the fragment will be
* available using {@link Page#getUriFragment()} on the Page instance of the
* new UI.
* <p>
* The default val... | 3.26 |
framework_BrowserWindowOpener_getFeatures_rdh | /**
* Gets the window features.
*
* @see #setFeatures(String)
* @return */
public String getFeatures() {
return getState(false).features;
} | 3.26 |
framework_BrowserWindowOpener_removeParameter_rdh | /**
* Removes a parameter that has been set using
* {@link #setParameter(String, String)}. Removing a parameter that has not
* been set has no effect.
*
* @param name
* the name of the parameter to remove, not <code>null</code>
* @see #setParameter(String, String)
*/
public void removeParameter(String name) ... | 3.26 |
framework_BrowserWindowOpener_m2_rdh | /**
* Gets the names of all parameters set using
* {@link #setParameter(String, String)}.
*
* @return an unmodifiable set of parameter names
* @see #setParameter(String, String)
* @see #getParameter(String)
*/
public Set<String> m2() {
return Collections.unmodifiableSet(getState().parameters.keySet());
}
/*... | 3.26 |
framework_BrowserWindowOpener_getResource_rdh | /**
* Returns the resource for this instance.
*
* @since 7.4
* @return resource to open browser window
*/
public Resource getResource() {
return getResource(BrowserWindowOpenerState.locationResource);
}
/**
* Returns the URL for this BrowserWindowOpener instance. Returns
* {@code null} | 3.26 |
framework_BrowserWindowOpener_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 = eventTrigger.getPartInformation();
} | 3.26 |
framework_BrowserWindowOpener_m0_rdh | // Avoid breaking url to multiple lines
// @formatter:off
/**
* Sets the features for opening the window. See e.g.
* {@link https://developer.mozilla.org/en-US/docs/DOM/window.open#Position_and_size_features}
* for a description of the commonly supported features.
*
* @param features
* a string with window feat... | 3.26 |
framework_BrowserWindowOpener_getWindowName_rdh | /**
* Gets the target window name.
*
* @see #setWindowName(String)
* @return the window target string
*/
public String getWindowName() {
return getState(false).target;
} | 3.26 |
framework_RowVisibilityChangeEvent_getVisibleRowRange_rdh | /**
* Gets the range of visible rows.
*
* @since 7.6
* @return the visible rows
*/
public Range getVisibleRowRange() {
return visibleRows;} | 3.26 |
framework_RowVisibilityChangeEvent_getFirstVisibleRow_rdh | /**
* Gets the index of the first row that is at least partially visible.
*
* @return the index of the first visible row
*/
public int getFirstVisibleRow() {
return visibleRows.getStart();
} | 3.26 |
framework_VaadinPortletSession_setSharedRenderParameter_rdh | /**
* Sets a shared portlet parameter.
*
* Internally, an action may be created and opened, as shared parameters
* cannot be set directly from all types of requests.
*
* Setting shared render parameters from background threads is not
* supported.
*
* The parameters and values need to be kept in the context unt... | 3.26 |
framework_VaadinPortletSession_getPortletSession_rdh | /**
* Returns the underlying portlet session.
*
* @return portlet session
*/
public PortletSession getPortletSession() {
WrappedSession wrappedSession = getSession();
PortletSession session = ((WrappedPortletSession) (wrappedSession)).getPortletSession();
return session;
} | 3.26 |
framework_VaadinPortletSession_firePortletEventRequest_rdh | /**
* For internal use by the framework only - API subject to change.
*/
public void firePortletEventRequest(UI uI,
EventRequest request, EventResponse response) {
for (PortletListener l : new ArrayList<>(portletListeners)) {
l.handleEventRequest(request, response, uI);
}
} | 3.26 |
framework_VaadinPortletSession_setPortletMode_rdh | /**
* Sets the portlet mode. This may trigger a new render request.
*
* Currently, this is only supported when working with a
* {@link StateAwareResponse} (an action request or an event request).
* Portlet mode change in background threads is not supported.
*
* Portlet modes used by a portlet need to be declared... | 3.26 |
framework_VaadinPortletSession_firePortletActionRequest_rdh | /**
* For internal use by the framework only - API subject to change.
*/
public void firePortletActionRequest(UI uI, ActionRequest request, ActionResponse response) {
String key = request.getParameter(ActionRequest.ACTION_NAME);
if (eventActionDestinationMap.containsKey(key)) {
// this action request ... | 3.26 |
framework_VaadinPortletSession_firePortletRenderRequest_rdh | /**
* For internal use by the framework only - API subject to change.
*/
public void firePortletRenderRequest(UI uI, RenderRequest request, RenderResponse response) {
for (PortletListener l : new ArrayList<>(portletListeners)) {
l.handleRenderRequest(request, new RestrictedRenderResponse(response), uI);... | 3.26 |
framework_VaadinPortletSession_addPortletListener_rdh | /**
* Adds a listener for various types of portlet requests.
*
* @param listener
* to add
* @since 8.0
*/
public Registration addPortletListener(PortletListener listener) {
portletListeners.add(listener);
return () -> portletListeners.remove(listener);
}
/**
* Removes a portlet request listener regist... | 3.26 |
framework_VaadinPortletSession_getPortletConfig_rdh | /**
* Returns the JSR-286 portlet configuration that provides access to the
* portlet context and init parameters.
*
* @return portlet configuration
*/
public PortletConfig getPortletConfig() {
VaadinPortletResponse response = ((VaadinPortletResponse) (CurrentInstance.get(VaadinResponse.class)));
return re... | 3.26 |
framework_ContainerHelpers_getItemIdsUsingGetIdByIndex_rdh | /**
* Get a range of item ids from the container using
* {@link Indexed#getIdByIndex(int)}. This is just a helper method to aid
* developers to quickly add the required functionality to a Container
* during development. This should not be used in a "finished product"
* unless fetching an id for an index is very in... | 3.26 |
framework_VDragAndDropWrapper_hookHtml5DragStart_rdh | /**
*
* @since 7.2
*/
protected void hookHtml5DragStart(Element el) {
hookHtml5DragStart(DOM.asOld(el));
}
/**
* Prototype code, memory leak risk.
*
* @param el
* @deprecated As of 7.2, call or override {@link #hookHtml5Events(Element)}
instead
*/
/* -{
var me = this;
el.addEventListener("dragenter", $entry... | 3.26 |
framework_VDragAndDropWrapper_setDragAndDropWidget_rdh | /**
* Set the widget that will be used as the drag image when using
* DragStartMode {@link COMPONENT_OTHER} .
*
* @param widget
*/public void setDragAndDropWidget(Widget widget) {
dragImageWidget = widget;
} | 3.26 |
framework_VDragAndDropWrapper_hookHtml5Events_rdh | /**
* Prototype code, memory leak risk.
*
* @param el
* @since 7.2
*/
protected void hookHtml5Events(Element el) {
hookHtml5Events(DOM.asOld(el));
} | 3.26 |
framework_VDragAndDropWrapper_initDragStartMode_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void initDragStartMode() {
Element div = getElement();
if (dragStartMode == HTML5) {
if (dragStartElement == null) {
dragStartElement = getDragStartElement();
dragStartElement.setPropertyBoolean(DRAGGABLE, true);
getLogger().info("drag... | 3.26 |
framework_VDragAndDropWrapper_startDrag_rdh | /**
* Starts a drag and drop operation from mousedown or touchstart event if
* required conditions are met.
*
* @param event
* @return true if the event was handled as a drag start event
*/
private boolean startDrag(NativeEvent event) {if (((dragStartMode == WRAPPER) || (dragStart... | 3.26 |
framework_VDragAndDropWrapper_startNextUpload_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void startNextUpload() {
Scheduler.get().scheduleDeferred(() -> {
if (!f1) {
if (!fileIds.isEmpty()) {
f1 = true;
final Integer fileId = fileIds.remove(0);
VHtml5File file = files.remove(0);
final String v10 = client.translateVaadinUri(... | 3.26 |
framework_UidlWriter_write_rdh | /**
* Writes a JSON object containing all pending changes to the given UI.
*
* @param ui
* The {@link UI} whose changes to write
* @param writer
* The writer to use
* @param async
* True if this message is sent by the server asynchronously,
* false if it is a response to a client message.
* @throws IO... | 3.26 |
framework_UidlWriter_writePerformanceData_rdh | /**
* Adds the performance timing data (used by TestBench 3) to the UIDL
* response.
*
* @throws IOException
*/
private void writePerformanceData(UI ui, Writer writer) throws IOException {
if (!ui.getSession().getService().getDeploymentConfiguration().isProductionMode()) {
writer.write(String.forma... | 3.26 |
framework_TreeDataProvider_getTreeData_rdh | /**
* Return the underlying hierarchical data of this provider.
*
* @return the underlying data of this provider
*/
public TreeData<T> getTreeData() {
return treeData;} | 3.26 |
framework_CheckBoxGroupElement_getOptionElements_rdh | /**
* Gets the list of option elements for this check box group.
*
* @return list of option elements
*/
public List<WebElement> getOptionElements() {
return findElements(bySelectOption);} | 3.26 |
framework_CheckBoxGroupElement_getValue_rdh | /**
* Return list of the selected options in the checkbox group.
*
* @return list of the selected options in the checkbox group
*/
public List<String> getValue() {
List<String> values = new
ArrayList<>();
List<WebElement> options = findElements(bySelectOption);
for (WebElement option : options) {
... | 3.26 |
framework_CheckBoxGroupElement_setValue_rdh | /**
* Sets the selected options for this checkbox group.
*
* @param options
* the list of options to select
* @see #getValue()
* @see #setValue(String...)
*/
public void setValue(List<String> options) {
// Deselect everything that is not going to be selected again.
getValue().stream().filter(option -> ... | 3.26 |
framework_TreeTable_getDepth_rdh | /**
* Consider adding getDepth to {@link Collapsible}, might help
* scalability with some container implementations.
*/
@Override
public int getDepth(Object itemId) {
int depth = 0;
Hierarchical hierarchicalContainer = getContainerDataSource();
while (!hierarchicalContainer.isRoot(itemId)) {
dept... | 3.26 |
framework_TreeTable_isCollapsed_rdh | /**
* Checks if Item with given identifier is collapsed in the UI.
*
* <p>
*
* @param itemId
* the identifier of the checked Item
* @return true if the Item with given id is collapsed
* @see Collapsible#isCollapsed(Object)
*/
public boolean isCollapsed(Object itemId) {
return !m0().isNodeOpen(itemId);
} | 3.26 |
framework_TreeTable_isAnimationsEnabled_rdh | /**
*
* @return true if animations are enabled
*/
public boolean isAnimationsEnabled() {
return animationsEnabled;
} | 3.26 |
framework_TreeTable_getPreOrder_rdh | /**
* Preorder of ids currently visible
*
* @return */private List<Object> getPreOrder() {if (preOrder == null) {
preOrder = new ArrayList<Object>();Collection<?> rootItemIds = getContainerDataSource().rootItemIds();
for (Object id : rootItemIds) {
preOrder.add(id);
addVisib... | 3.26 |
framework_TreeTable_fireCollapseEvent_rdh | /**
* Emits a collapse event.
*
* @param itemId
* the item id.
*/
protected void fireCollapseEvent(Object itemId) {
fireEvent(new CollapseEvent(this, itemId));
} | 3.26 |
framework_TreeTable_addExpandListener_rdh | /**
* Adds an expand listener.
*
* @param listener
* the Listener to be added.
*/
public void addExpandListener(ExpandListener listener) {
addListener(ExpandEvent.class, listener, ExpandListener.EXPAND_METHOD);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #addExpandListener(ExpandListener)} | 3.26 |
framework_TreeTable_setCollapsed_rdh | /**
* Sets the Item specified by given identifier as collapsed or expanded. If
* the Item is collapsed, its children are not displayed to the user.
*
* @param itemId
* the identifier of the Item
* @param collapsed
* true if the Item should be collapsed, false if expanded
*/
public void setCollapsed(Object i... | 3.26 |
framework_TreeTable_fireExpandEvent_rdh | /**
* Emits an expand event.
*
* @param itemId
* the item id.
*/
protected void fireExpandEvent(Object itemId) {
fireEvent(new ExpandEvent(this, itemId));
} | 3.26 |
framework_TreeTable_removeExpandListener_rdh | /**
* Removes an expand listener.
*
* @param listener
* the Listener to be removed.
*/public void removeExpandListener(ExpandListener listener) {
removeListener(ExpandEvent.class, listener, ExpandListener.EXPAND_METHOD);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #removeExpandListener(ExpandListener)... | 3.26 |
framework_TreeTable_setHierarchyColumn_rdh | /**
* Explicitly sets the column in which the TreeTable visualizes the
* hierarchy. If hierarchyColumnId is not set, the hierarchy is visualized
* in the first visible column.
*
* @param hierarchyColumnId
*/public void setHierarchyColumn(Object hierarchyColumnId) {this.hierarchyColumnId = hierarchyColumnId;
} | 3.26 |
framework_TreeTable_removeCollapseListener_rdh | /**
* Removes a collapse listener.
*
* @param listener
* the Listener to be removed.
*/
public void removeCollapseListener(CollapseListener listener) {
removeListener(CollapseEvent.class, listener, CollapseListener.COLLAPSE_METHOD);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #removeCollapseListener(C... | 3.26 |
framework_DropEvent_getDragSourceExtension_rdh | /**
* Returns the extension of the drag source component if the drag originated
* from a component in the same UI as the drop target component, or an empty
* optional.
*
* @return Drag source extension or an empty optional
*/
public Optional<DragSourceExtension<? extends AbstractComponent>> getDragSourceExtension... | 3.26 |
framework_DropEvent_getDataTransferData_rdh | /**
* Get all of the transfer data from the {@code DataTransfer} object. The
* data can be iterated to find the most relevant data as it preserves the
* order in which the data was set to the drag source element.
*
* @return Map of type/data pairs, containing all the data from the {@code DataTransfer} object.
*/
... | 3.26 |
framework_DropEvent_getDataTransferText_rdh | /**
* Get data of any of the types {@code "text"}, {@code "Text"} or {@code "text/plain"}.
* <p>
* IE 11 transfers data dropped from the desktop as {@code "Text"} while
* most other browsers transfer textual data as {@code "text/plain"}.
*
* @return First existing data of types in order {@code "text"}, {@code "Te... | 3.26 |
framework_DropEvent_getDropEffect_rdh | /**
* Get the desired dropEffect for the drop event.
* <p>
* <em>NOTE: Currently you cannot trust this to work on all browsers!
* https://github.com/vaadin/framework/issues/9247 For Chrome & IE11 it is
* never set and always returns {@link Dro... | 3.26 |
framework_DropEvent_getComponent_rdh | /**
* Returns the drop target component where the drop event occurred.
*
* @return Component on which a drag source was dropped.
*/
@Override
@SuppressWarnings("unchecked")
public T getComponent() {
return ((T) (super.getComponent()));
} | 3.26 |
framework_VColorPicker_refreshColor_rdh | /**
* Update color icon to show the currently selected color.
*/
public void refreshColor() {
if (color != null) {
if (colorIcon == null) {
colorIcon = new HTML();
colorIcon.setStylePrimaryName("v-colorpicker-button-color");
wrapper.insertBefore(colorIcon.getElement()... | 3.26 |
framework_PointerCancelEvent_getType_rdh | /**
* Gets the event type associated with pointer cancel events.
*
* @return the handler type
*/
public static Type<PointerCancelHandler>
getType() {
return TYPE;
} | 3.26 |
framework_AbstractSingleSelect_readItem_rdh | /**
* Reads an Item from a design and inserts it into the data source.
* Hierarchical select components should override this method to recursively
* recursively read any child items as well.
*
* @param child
* a child element representing the item
* @param selected
* A set accumulating selected items. If th... | 3.26 |
framework_AbstractSingleSelect_keyToItem_rdh | /**
* Returns the item that the given key is assigned to, or {@code null} if
* there is no such item.
*
* @param key
* the key whose item to return
* @return the associated item if any, {@code null} otherwise.
*/
protected T keyToItem(String key) {
return getDataCommunicator().getKeyMapper().get(key);
}
/... | 3.26 |
framework_AbstractSingleSelect_setValue_rdh | /**
* Sets the value of this object which is an item to select. If the new
* value is not equal to {@code getValue()}, fires a value change event. If
* value is {@code null} then it deselects currently selected item.
* <p>
* The call is delegated to {@link #setSelectedItem(Object)}.
*
* @see #setSelectedItem(Obj... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.