name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
framework_VaadinSession_getLocale_rdh
/** * Gets the default locale for this session. * * By default this is the preferred locale of the user using the session. In * most cases it is read from the browser defaults. * * @return the locale of this session. */ public Locale getLocale() { assert hasLock(); if (locale != null) { ...
3.26
framework_VaadinSession_getSession_rdh
/** * Gets the underlying session to which this service session is currently * associated. * * @return the wrapped session for this context */ public WrappedSession getSession() { /* This is used to fetch the underlying session and there is no need for having a lock when doing this. On the contrary this i...
3.26
framework_VaadinSession_m1_rdh
/** * Returns a UI with the given id. * <p> * This is meant for framework internal use. * </p> * * @param uiId * The UI id * @return The UI with the given id or null if not found */ public UI m1(int uiId) { assert hasLock(); return uIs.get(uiId); }
3.26
framework_VaadinSession_getConfiguration_rdh
/** * Gets the configuration for this session. * * @return the deployment configuration */ public DeploymentConfiguration getConfiguration() { assert hasLock(); return configuration; }
3.26
framework_VaadinSession_getConverterFactory_rdh
/** * Gets the {@code ConverterFactory} used to locate a suitable * {@code Converter} for fields in the session. * <p> * Note that the this and {@link #setConverterFactory(Object))} use Object * and not {@code ConverterFactory} in Vaadin 8 to avoid a core dependency * on the compatibility packages. * * @return ...
3.26
framework_VaadinSession_setAttribute_rdh
/** * Stores a value in this service session. This can be used to associate * data with the current user so that it can be retrieved at a later point * from some other part of the application. Setting the value to * <code>null</code> clears the stored value. * <p> * The fully qualified name of the type is used as...
3.26
framework_VaadinSession_setLastRequestTimestamp_rdh
/** * Sets the time when the last UIDL request was serviced in this session. * * @param timestamp * The time when the last request was handled, in milliseconds * since the epoch. */ public void setLastRequestTimestamp(long timestamp) { assert hasLock(); lastRequestTimestamp = timestamp; }
3.26
framework_VaadinSession_addUIProvider_rdh
/** * Adds a UI provider to this session. * * @param uiProvider * the UI provider that should be added */ public void addUIProvider(UIProvider uiProvider) { assert hasLock(); uiProviders.addFirst(uiProvider); }
3.26
framework_VaadinSession_m3_rdh
/** * Locks this session and runs the provided Runnable right away. * <p> * It is generally recommended to use {@link #access(Runnable)} instead of * this method for accessing a session from a different thread as * {@link #access(Runnable)} can be used while holding the lock of another * session. To avoid causing...
3.26
framework_VaadinSession_getState_rdh
/** * Returns the lifecycle state of this session. * * @since 7.2 * @return the current state */ public State getState() { assert hasLock(); return state; }
3.26
framework_VaadinSession_valueUnbound_rdh
/** * * @see javax.servlet.http.HttpSessionBindingListener#valueUnbound(HttpSessionBindingEvent) */ @Override public void valueUnbound(HttpSessionBindingEvent event) { // If we are going to be unbound from the session, the session must be // closing // Notify the service if (service == null) { ...
3.26
framework_VaadinSession_setLocale_rdh
/** * Sets the default locale for this session. * * By default this is the preferred locale of the user using the * application. In most cases it is read from the browser defaults. * * @param locale * the Locale object. */ public void setLocale(Locale locale) { assert hasLock(); this.locale = locale; ...
3.26
framework_VaadinSession_setLastRequestDuration_rdh
/** * Sets the time spent servicing the last request in the session and updates * the total time spent servicing requests in this session. * * @param time * The time spent in the last request, in milliseconds. */ public void setLastRequestDuration(long time) { assert hasLock(); lastRequestDuration = ti...
3.26
framework_VaadinSession_readObject_rdh
/** * Override default deserialization logic to account for transient * {@link #pendingAccessQueue}. */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { Map<Class<?>, CurrentInstance> old = CurrentInstance.setCurrent(this); try { stream.defaultReadObject(); pendingAcces...
3.26
framework_VaadinSession_valueBound_rdh
/** * * @see javax.servlet.http.HttpSessionBindingListener#valueBound(HttpSessionBindingEvent) */ @Override public void valueBound(HttpSessionBindingEvent arg0) { // We are not interested in bindings }
3.26
framework_VaadinSession_removeRequestHandler_rdh
/** * Removes a request handler from the session. * * @param handler * the request handler to remove * @since 7.0 */ public void removeRequestHandler(RequestHandler handler) { assert hasLock(); requestHandlers.remove(handler); }
3.26
framework_VaadinSession_unlock_rdh
/** * Unlocks this session. This method should always be used in a finally * block after {@link #lock()} to ensure that the lock is always released. * <p> * For UIs in this session that have its push mode set to * {@link PushMode#AUTOMATIC automatic}, pending changes will be pushed to ...
3.26
framework_VaadinSession_refreshTransients_rdh
/** * Refreshes the transient fields of the session to ensure they are up to * date. * <p> * Called internally by the framework. * * @since 7.6 * @param wrappedSession * the session this VaadinSession is stored in * @param vaadinService * the service associated with this VaadinSession */ public void refr...
3.26
framework_VaadinSession_lock_rdh
/** * Locks this session to protect its data from concurrent access. Accessing * the UI state from outside the normal request handling should always lock * the session and unlock it when done. The preferred way to ensure locking * is done correctly is to wrap your code using ...
3.26
framework_VaadinSession_getNextUIid_rdh
/** * Creates a new unique id for a UI. * * @return a unique UI id */ public int getNextUIid() { assert hasLock(); return nextUIId++; }
3.26
framework_VaadinSession_writeObject_rdh
/** * Override default serialization logic to avoid * ConcurrentModificationException if the contents are modified while * serialization is reading them. */ private void writeObject(ObjectOutputStream out) throws IOException { Lock lock = this.lock;if (lock != null) { lock.lock(); } try { out.defaultWriteObject(); ...
3.26
framework_VaadinSession_m2_rdh
/** * Called by the framework to remove an UI instance from the session because * it has been closed. * * @param ui * the UI to remove */ public void m2(UI ui) { assert hasLock() : "Session is locked"; assert UI.getCurrent() != null : "Current UI cannot be null"; assert ui != null : "Removed UI cann...
3.26
framework_VaadinSession_getBrowser_rdh
/** * Get the web browser associated with this session. * * @return the web browser object * @deprecated As of 7.0, use {@link Page#getWebBrowser()} instead. */ @Deprecated public WebBrowser getBrowser() { assert hasLock(); return browser; }
3.26
framework_TwinColSelect_setRows_rdh
/** * Sets the number of rows in the editor. If the number of rows is set to 0, * the actual number of displayed rows is determined implicitly by the * adapter. * <p> * If a height if set (using {@link #setHeight(String)} or * {@link #setHeight(float, int)}) it overrides the number of rows. Leave * the height un...
3.26
framework_TwinColSelect_setLeftColumnCaption_rdh
/** * Sets the text shown above the left column. * * @param leftColumnCaption * The text to show */ public void setLeftColumnCaption(String leftColumnCaption) { this.leftColumnCaption = leftColumnCaption; markAsDirty(); }
3.26
framework_TwinColSelect_setRightColumnCaption_rdh
/** * Sets the text shown above the right column. * * @param rightColumnCaption * The text to show */ public void setRightColumnCaption(String rightColumnCaption) { this.rightColumnCaption = rightColumnCaption; markAsDirty(); }
3.26
framework_Responsive_makeResponsive_rdh
/** * Enable responsive width and height range styling for the target component * or UI instance. * * @param components * The components which should be able to respond to width and/or * height changes. */ public static void makeResponsive(Component... components) { for (Component c : components) { ...
3.26
framework_AbstractComponentTest_createActions_rdh
/** * Create actions for the component. Remember to call super.createActions() * when overriding. */ protected void createActions() { createBooleanAction("Enabled", CATEGORY_STATE, true, enabledCommand); createBooleanAction("Readonly", CATEGORY_STATE, false, readonlyCommand); createBooleanAction("Visible", CATEGORY_...
3.26
framework_AbstractComponentTest_createCategory_rdh
/** * Creates category named "category" with id "categoryId" in parent category * "parentCategory". Each categoryId must be globally unique. * * @param category * @param categoryId * @param parentCategory * @return */ protected MenuItem createCategory(String category, String parentCategory) { if (hasCategor...
3.26
framework_AbstractComponentTest_unselectChildren_rdh
/** * Unselect all child menu items * * @param parent */ protected void unselectChildren(MenuItem parent) { List<MenuItem> children = parent.getChildren(); if (children == null) { return; } for (MenuItem child : children) { setSelected(child, false); } }
3.26
framework_AbstractComponentTest_constructComponent_rdh
/** * Construct the component that is to be tested. This method uses a no-arg * constructor by default. Override to customize. * * @return Instance of the component that is to be tested. * @throws IllegalAccessException * @throws InstantiationException */ protected T constructComponent() { try { return getTe...
3.26
framework_AbstractComponentTest_initializeComponents_rdh
/** * By default initializes just one instance of {@link #getTestClass()} using * {@link #constructComponent()}. */ @Override protected void initializeComponents() { component = constructComponent(); component.setId("testComponent"); addTestComponent(component); }
3.26
framework_AbstractComponentTest_populateSettingsMenu_rdh
/** * Override to add items to the "settings" menu. * * NOTE, Call super class first to preserve current order. If you override * this in a class and another class overrides it you might break tests * because the wrong items will be selected. * * @param settingsMenu */ protected void populateSettingsMenu(MenuIt...
3.26
framework_OrderedLayoutBasics_layout1_rdh
/* LAYOUTS */@SuppressWarnings({ "unused", "deprecation" }) private Layout layout1() { HorizontalLayout ol = new HorizontalLayout(); ol.setHeight("200px"); ol.setWidth(""); ol.setCaption("Fixed height (200px) and dynamic width"); TextField tf = new TextField("100px high TextField, valign: bottom")...
3.26
framework_OrderedLayoutBasics_layout_add_remove_components_rdh
// ol.setHeight("600px"); // ol.setWidth("600px"); // ol.setMargin(true); // ol.setSpacing(true); // // // ol.setWidth(""); // ol.setCaption("Fixed width (" + ol.getWidth() // + "px) and fixed height (" + ol.getHeight() + "px)"); // // for (int i = 0; i < 3; i++) { // Button b = createAddButton(ol); // ol.addComponen...
3.26
framework_EditorOpenEvent_getGrid_rdh
/** * Gets the editors' grid. * * @return the editors' grid */ public Grid<T> getGrid() {return getSource().getGrid(); }
3.26
framework_VBrowserFrame_setSource_rdh
/** * Set the source (the "src" attribute) of iframe. Will replace old iframe * with new. * * @param source * Source of iframe. */ public void setSource(String source) { if (source == null) { if (iframe != null) { getElement().removeChild(iframe); iframe = null; ...
3.26
framework_VBrowserFrame_createIFrameElement_rdh
/** * Always creates new iframe inside widget. Will replace previous iframe. * * @return */ protected IFrameElement createIFrameElement(String src) { String name = null; // Remove alt text if (altElement != null) { getElement().removeChild(altElement); altElement = null; } // R...
3.26
framework_VDateFieldCalendar_updateValueFromPanel_rdh
/** * TODO refactor: almost same method as in VPopupCalendar.updateValue * <p> * For internal use only. May be removed or replaced in the future. */ @Override public void updateValueFromPanel() { m0(); if (bufferedResolutions != null) ...
3.26
framework_AbstractOrderedLayout_addComponent_rdh
/** * Adds a component into indexed position in this container. * * @param c * the component to be added. * @param index * the index of the component position. The components currently * in and after the position are shifted forwards. */ public void addComponent(Component c, int index) { // If c is al...
3.26
framework_AbstractOrderedLayout_setExpandRatio_rdh
/** * <p> * This method is used to control how excess space in layout is distributed * among components. Excess space may exist if layout is sized and contained * non relatively sized components don't consume all available space. * * <p> * Example how to distribute 1:3 (33%) for component1 and 2:3 (67%) for * c...
3.26
framework_AbstractOrderedLayout_m1_rdh
/** * Gets the component container iterator for going trough all the components * in the container. * * @return the Iterator of the components inside the container. */ @Override public Iterator<Component> m1() { return Collections.unmodifiableCollection(f0).iterator(); }
3.26
framework_AbstractOrderedLayout_getComponentIndex_rdh
/** * Returns the index of the given component. * * @param component * The component to look up. * @return The index of the component or -1 if the component is not a child. */ public int getComponentIndex(Component component) { return f0.indexOf(component); }
3.26
framework_AbstractOrderedLayout_getComponent_rdh
/** * Returns the component at the given position. * * @param index * The position of the component. * @return The component at the given index. * @throws IndexOutOfBoundsException * If the index is out of range. */ public Component getComponent(int index) throws IndexOutOfBoundsException { return f0.ge...
3.26
framework_AbstractOrderedLayout_replaceComponent_rdh
/* Documented in superclass */ @Override public void replaceComponent(Component oldComponent, Component newComponent) { // Gets the locations int oldLocation = -1; int newLocation = -1; int location = 0; for (final Component component : f0) { if (component == oldComponent) { o...
3.26
framework_AbstractOrderedLayout_addComponentAsFirst_rdh
/** * Adds a component into this container. The component is added to the left * or on top of the other components. * * @param c * the component to be added. */ public void addComponentAsFirst(Component c) { // If c is already in this, we must remove it before proceeding // see ticket #7668 if (equa...
3.26
framework_AbstractOrderedLayout_getComponentCount_rdh
/** * Gets the number of contained components. Consistent with the iterator * returned by {@link #getComponentIterator()}. * * @return the number of contained components */ @Override public int getComponentCount() { return f0.size(); }
3.26
framework_TableQuery_removeRowIdChangeListener_rdh
/** * Removes the given RowIdChangeListener from this query. */ @Override public void removeRowIdChangeListener(RowIdChangeListener listener) { if (rowIdChangeListeners != null) { rowIdChangeListeners.remove(listener); } } /** * * @deprecated As of 7.0, replaced by {@link #removeRowIdChangeListener(QueryDelegate....
3.26
framework_TableQuery_fetchMetaData_rdh
/** * Fetches name(s) of primary key column(s) from DB metadata. * * Also tries to get the escape string to be used in search strings. */ private void fetchMetaData() {Connection connection = null; ResultSet rs = null; ResultSet tables = null; try { connec...
3.26
framework_TableQuery_executeUpdate_rdh
/** * Executes the given update query string using either the active connection * if a transaction is already open, or a new connection from this query's * connection pool. * * @param sh * an instance of StatementHelper, contain...
3.26
framework_TableQuery_m1_rdh
/** * Returns the table name for the query without catalog and schema * information. * * @return table name, not null */public String m1() { return tableName; }
3.26
framework_TableQuery_executeUpdateReturnKeys_rdh
/** * Executes the given update query string using either the active connection * if a transaction is already open, or a new connection from this query's * connection pool. * * Additionally adds a new RowIdChangeEvent to the event buffer. * * @param...
3.26
framework_TableQuery_writeObject_rdh
/** * Custom writeObject to call rollback() if object is serialized. */ private void writeObject(ObjectOutputStream out) throws IOException { try { rollback(); } catch (SQLException ignored) { } out.defaultWriteObject(); }
3.26
framework_TableQuery_addRowIdChangeListener_rdh
/** * Adds RowIdChangeListener to this query. */ @Override public void addRowIdChangeListener(RowIdChangeListener listener) { if (rowIdChangeListeners == null) { rowIdChangeListeners = new LinkedList<RowIdChangeListener>(); } rowIdChangeListeners.add(listener); } /** * * @deprecated As of 7.0, replaced by {@lin...
3.26
framework_TableQuery_executeQuery_rdh
/** * Executes the given query string using either the active connection if a * transaction is already open, or a new connection from this query's * connection pool. * * @param sh * an instance of StatementHelper, containing the query string * and parameter values. * @return ResultSet of the query * @throw...
3.26
framework_SampleDirectory_getDirectory_rdh
/** * Get sample directory. * * @param application * @return file pointing to sample directory */ public static File getDirectory(VaadinSession application, LegacyWindow uI) { String errorMessage = (("Access to application " + "context base directory failed, ") + "possible security constraint with Applicat...
3.26
framework_ComponentDetail_getTooltipInfo_rdh
/** * Returns a TooltipInfo associated with Component. If element is given, * returns an additional TooltipInfo. * * @param key * @return the tooltipInfo */ public TooltipInfo getTooltipInfo(Object key) { if (key == null) { return tooltipInfo; } else if (additionalTooltips != null) { retu...
3.26
framework_ComponentDetail_setTooltipInfo_rdh
/** * * @param tooltipInfo * the tooltipInfo to set */ public void setTooltipInfo(TooltipInfo tooltipInfo) { this.tooltipInfo = tooltipInfo; }
3.26
framework_AbstractComponentElement_getCaption_rdh
/** * Returns the caption of the Component element. * * @since 8.0 * @return component caption */ public String getCaption() { final String gwtIdAttribute = "aria-labelledby";String captionId = getAttribute(gwtIdAttribute); // IE8 getAttribute returns empty string instead of null // when there is no a...
3.26
framework_HierarchyMapper_expand_rdh
/** * Expands the given item. * * @param item * the item to expand * @param position * the index of the item * @return range of rows added by expanding the item */ public Range expand(T item, Integer position) { if (doExpand(item) && (position != null)) { return Range.withLength(position + 1...
3.26
framework_HierarchyMapper_registerChildren_rdh
/** * Register parent and children items into inner structures. May be * overridden in subclasses. * * @param parent * the parent item * @param childList * list of parents children to be registered. */ protected void registerChildren(T parent, List<T> childList) { childMap.put(parent, new HashSet<>(chil...
3.26
framework_HierarchyMapper_getDirectChildren_rdh
/** * Gets the stream of direct children for given node. * * @param parent * the parent node * @return the stream of direct children */ private Stream<T> getDirectChildren(T parent) { return doFetchDirectChildren(parent, Range.between(0, getDataProvider().getChildCount(new HierarchicalQuery<>(filter, parent)))...
3.26
framework_HierarchyMapper_setFilter_rdh
/** * Sets the current filter. This will cause the hierarchy to be constructed * again. * * @param filter * the filter */ public void setFilter(Object filter) { this.filter = ((F) (filter)); }
3.26
framework_HierarchyMapper_setItemCollapseAllowedProvider_rdh
/** * Sets the current item collapse allowed provider. * * @param itemCollapseAllowedProvider * the item collapse allowed provider */ public void setItemCollapseAllowedProvider(ItemCollapseAllowedProvider<T> itemCollapseAllowedProvider) { this.itemCollapseAllowedProvider = itemCollapseAllowedProvider; }
3.26
framework_HierarchyMapper_removeChildren_rdh
/** * Removes all children of an item identified by a given id. Items removed * by this method as well as the original item are all marked to be * collapsed. May be overridden in subclasses for removing obsolete data to * avoid memory leaks. * * @param id * the item id */ protected void removeChildren(Object ...
3.26
framework_HierarchyMapper_hasChildren_rdh
/** * Returns whether given item has children. * * @param item * the node to test * @return {@code true} if node has children; {@code false} if not */ public boolean hasChildren(T item) { return getDataProvider().hasChildren(item); }
3.26
framework_HierarchyMapper_setBackEndSorting_rdh
/** * Sets the current back-end sorting. This will cause the hierarchy to be * constructed again. * * @param backEndSorting * the back-end sorting */ public void setBackEndSorting(List<QuerySortOrder> backEndSorting) { this.backEndSorting = backEndSorting; }
3.26
framework_HierarchyMapper_getHierarchy_rdh
/** * Getst hte full hierarchy tree starting from given node. The starting node * can be omitted. * * @param parent * the parent node to start from * @param includeParent * {@code true} to include the parent; {@code false} if not * @return the flattened hierarchy as a stream */ private Stream<T> getHierarc...
3.26
framework_HierarchyMapper_getFilter_rdh
/** * Gets the current filter. * * @return the filter */ public F getFilter() { return filter; }
3.26
framework_HierarchyMapper_fetchItems_rdh
/** * Gets a stream of children for the given item in the form of a flattened * hierarchy from the back-end and filter the wanted results from the list. * * @param parent * the parent item for the fetch * @param range * the requested item range * @return the stream of items */ public Stream<T> fetchItems(T...
3.26
framework_HierarchyMapper_isExpanded_rdh
/** * Returns whether the given item is expanded. * * @param item * the item to test * @return {@code true} if item is expanded; {@code false} if not */public boolean isExpanded(T item) { if (item == null) { // Root nodes are always visible. return true; } return expandedItemIds....
3.26
framework_HierarchyMapper_getParentIndex_rdh
/** * Finds the index of the parent of the item in given target index. * * @param item * the item to get the parent of * @return the parent index or a negative value if the parent is not found */ public Integer getParentIndex(T item) { // TODO: This can be optimized. List<T> flatHierarchy = getHierarchy...
3.26
framework_HierarchyMapper_m0_rdh
/** * Collapses the given item. * * @param item * the item to collapse * @param position * the index of the item * @return range of rows removed by collapsing the item */ public Range m0(T item, Integer position) { Range removedRows = Range.emptyRange(); if (isExpanded(item)) { if (position...
3.26
framework_HierarchyMapper_m1_rdh
/** * Sets the current in-memory sorting. This will cause the hierarchy to be * constructed again. * * @param inMemorySorting * the in-memory sorting */ public void m1(Comparator<T> inMemorySorting) { this.inMemorySorting = inMemorySorting; }
3.26
framework_HierarchyMapper_doExpand_rdh
/** * Expands the given item. * * @param item * the item to expand * @param position * the index of item * @return range of rows added by expanding the item * @deprecated Use {@link #expand(Object, Integer)} instead. */ @Deprecated public Range doExpand(T item, Optional<Integer> position) { return expa...
3.26
framework_HierarchyMapper_getChildrenStream_rdh
/** * The method to recursively fetch the children of given parent. Used with * {@link Stream#flatMap} to expand a stream of parent nodes into a * flattened hierarchy. * * @param parent * the parent node * @return the stream of all children under the parent, includes the parent */ private Stream<T> getChildre...
3.26
framework_HierarchyMapper_doFetchDirectChildren_rdh
/* Methods for providing information on the hierarchy. */ /** * Generic method for finding direct children of a given parent, limited by * given range. * * @param parent * the parent * @param range * the range of direct children to return * @return the requested children of the given parent */ @SuppressWar...
3.26
framework_HierarchyMapper_combineParentAndChildStreams_rdh
/** * Helper method for combining parent and a stream of children into one * stream. {@code null} item is never included, and parent can be skipped by * providing the correct value for {@code includeParent}. * * @param parent * the parent node * @param children * the stream of children * @param includePare...
3.26
framework_HierarchyMapper_doCollapse_rdh
/** * Collapses the given item. * * @param item * the item to collapse * @param position * the index of item * @return range of rows removed by collapsing the item * @deprecated Use {@link #collapse(Object, Integer)} instead. */ @Deprecated public Range doCollapse(T item, Optional<Integer> position) { ...
3.26
framework_HierarchyMapper_getTreeSize_rdh
/** * Returns the size of the currently expanded hierarchy. * * @return the amount of available data */ public int getTreeSize() { return ((int) (getHierarchy(null).count())); }
3.26
framework_TestBench_getTestableClassesForPackage_rdh
/** * Return all testable classes within given package. Class is considered * testable if it's superclass is Application or CustomComponent. * * @param packageName * @return * @throws ClassNotFoundException */ public static List<Class<?>> getTestableClassesForPackage(String packageName) throws Exception { final ...
3.26
framework_TestBench_valueChange_rdh
// Handle menu selection and update body @Override public void valueChange(Property.ValueChangeEvent event) { bodyLayout.removeAllComponents(); bodyLayout.setCaption(null); final Object o = menu.getValue(); if ((o != null) && (o instanceof Class)) { final Class<?> c = ((Class<?>) (o)); final String title...
3.26
framework_ClientRpcWriter_write_rdh
/** * Writes a JSON object containing all pending client RPC invocations in the * given UI. * * @param ui * The {@link UI} whose RPC calls to write. * @param writer * The {@link Writer} used to write the JSON. * @throws IOException * If the serialization fails. */ public void write(UI ui, Writer writer)...
3.26
framework_ClientRpcWriter_collectPendingRpcCalls_rdh
/** * Collects all pending RPC calls from listed {@link ClientConnector}s and * clears their RPC queues. * * @param rpcPendingQueue * list of {@link ClientConnector} of interest * @return ordered list of pending RPC calls */ private Collection<ClientMethodInvocation> collectPendingRpcCalls(Collection<ClientCon...
3.26
framework_BootstrapPageResponse_setDateHeader_rdh
/** * Properly formats a timestamp as a date in a header that will be included * in the HTTP response. If the header had already been set, the new value * overwrites the previous one. * * @see #setHeader(String, String) * @see VaadinResponse#setDateHeader(String, long) * @param name * the name of the header ...
3.26
framework_BootstrapPageResponse_setHeader_rdh
/** * Sets a header value that will be added to the HTTP response. If the * header had already been set, the new value overwrites the previous one. * * @see VaadinResponse#setHeader(String, String) * @param name * the name of the header * @param value * the header value */ public void setHeader(String name...
3.26
framework_BindingValidationStatus_getValidationResults_rdh
/** * Gets all the validation results related to this binding validation * status. * * @return list of validation results * @since 8.2 */public List<ValidationResult> getValidationResults() { return Collections.unmodifiableList(results); }
3.26
framework_BindingValidationStatus_getResult_rdh
/** * Gets the validation result if status is either {@link Status#OK} or * {@link Status#ERROR} or an empty optional if status is * {@link Status#UNRESOLVED}. * * @return the validation result */ public Optional<ValidationResult> getResult() { if (result == null) { return Optional.empty(); } ...
3.26
framework_BindingValidationStatus_getField_rdh
/** * Gets the bound field for this status. * * @return the field */ public HasValue<?> getField() { return getBinding().getField();}
3.26
framework_BindingValidationStatus_createUnresolvedStatus_rdh
/** * Convenience method for creating a {@link Status#UNRESOLVED} validation * status for the given binding. * * @param source * the source binding * @return unresolved validation status * @param <TARGET> * the target data type of the binding for which the validation * status was reset */ public static ...
3.26
framework_BindingValidationStatus_getStatus_rdh
/** * Gets status of the validation. * * @return status */ public Status getStatus() { return f0; } /** * Gets whether the validation failed or not. * * @return {@code true} if validation failed, {@code false}
3.26
framework_CheckBoxGroupConnector_isRequiredIndicatorVisible_rdh
// TODO remove once this extends AbstractMultiSelectConnector @Override public boolean isRequiredIndicatorVisible() { return getState().required && (!isReadOnly()); }
3.26
framework_ScrolledTabSheetResize_m0_rdh
/** * Test class for resizing a scrolled TabSheet. * * @author Vaadin Ltd */ @Widgetset("com.vaadin.DefaultWidgetSet")public class ScrolledTabSheetResize extends AbstractTestUI { @Override protected void m0(VaadinRequest request) { TabSheet tabSheet = new TabSheet(); tabSheet.setSizeFull(); ...
3.26
framework_Overlay_setFitInWindow_rdh
/** * Sets whether the overlay should be moved or shrunk to fit inside the * window. * <p> * When this is <code>false</code>, the default {@link PopupPanel} behavior * is used, which tries to position the popup primarly below and to the * right of a reference UIObject and, if there is not enough space, above or ...
3.26
framework_Overlay_getVisualViewportWidth_rdh
/** * Gets the visual viewport width, which is useful for e.g iOS where the * view can be zoomed in while keeping the layout viewport intact. * * Falls back to layout viewport; for those browsers/devices the difference * is that the scrollbar with is included (if there is a scrollbar). * * @since 7.0.7 * @retur...
3.26
framework_Overlay_setHeight_rdh
/** * Sets the pixel value for height css property. * * @param height * value to set */ public void setHeight(int height) { if (height < 0) { height = 0; } this.height = height; }
3.26
framework_Overlay_setLeft_rdh
/** * Sets the pixel value for left css property. * * @param left * value to set */ public void setLeft(int left) { this.left = left; }
3.26
framework_Overlay_getVisualViewportHeight_rdh
/** * Gets the visual viewport height, which is useful for e.g iOS where the * view can be zoomed in while keeping the layout viewport intact. * * Falls back to layout viewport; for those browsers/devices the difference * is that the scrollbar with is included (if there is a scrollbar). * * @since 7.0.7 * @retu...
3.26
framework_Overlay_isShimElementEnabled_rdh
/** * Is there a shim iframe behind the overlay, allowing PDFs and applets to * be covered by overlays. * * @return {@code true} if a shim element exists, {@code false} otherwise */ protected boolean isShimElementEnabled() { return shimElement != null; }
3.26
framework_Overlay_positionOrSizeUpdated_rdh
/** * Recalculates proper position and dimensions for the shadow and shim * elements. Can be used to animate the related elements, using the * 'progress' parameter (used to animate the shadow in sync with GWT * PopupPanel's default animation 'PopupPanel.AnimationType.CENTER'). * * @param progress * A value bet...
3.26