name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_AbstractSingleSelect_updateSelectedItemState_rdh | /**
* This method updates the shared selection state of the
* {@code AbstractSingleSelect}.
*
* @param value
* the value that is selected; may be {@code null}
* @since 8.5
*/
protected void updateSelectedItemState(T value) {
// FIXME: If selecting a value that does not exist, this will leave and
// ext... | 3.26 |
framework_AbstractSingleSelect_addSelectionListener_rdh | /**
* Adds a selection listener to this select. The listener is called when the
* selection is changed either by the user or programmatically.
*
* @param listener
* the selection listener, not null
* @return a registration for the listener
*/
public Registration addSelectionListener(SingleSelectionListener<T> ... | 3.26 |
framework_AbstractSingleSelect_setSelectedItem_rdh | /**
* This method updates the internal selection state of the server-side of
* {@code AbstractSingleSelect}.
*
* @param value
* the value that should be selected
* @param userOriginated
* {@code true} if selection was done by user, {@code false} if
* not
* @since 8.5
*/
protected void setSelectedItem(T ... | 3.26 |
framework_VUpload_setAcceptMimeTypes_rdh | /**
* Sets accepted mime types. If no mime types are given, all types should be
* accepted.
*
* @param acceptMimeTypes
* a comma-separated list of content types that this component
* will handle correctly, {@code null} or an empty String if all
* types should be accepted
* @since 8.5.0
*/
public void set... | 3.26 |
framework_VUpload_updateEnabledForSubmitButton_rdh | /**
* Updates the enabled status for submit button. If the widget itself is
* disabled, so is the submit button. It must also follow overall enabled
* status in immediate mode, otherwise you cannot select a file at all. In
* non-immediate mode there is another button for selecting the file, so the
* submit button ... | 3.26 |
framework_VUpload_ensureTargetFrame_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void ensureTargetFrame() {
if
(f1 == null) {
// Attach a hidden IFrame to the form. This is the target iframe to
// which the form will be submitted. We have to create the iframe
// using innerHTML, becaus... | 3.26 |
framework_VUpload_setImmediateMode_rdh | /**
* Sets the upload in immediate mode.
*
* @param immediateMode
* {@code true} for immediate mode, {@code false} for
* non-immediate mode
*/
public void setImmediateMode(boolean immediateMode) {
if (this.immediateMode
!= immediateMode) {
this.immediateMode
= immediateMode;
if... | 3.26 |
framework_VUpload_enableUpload_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void
enableUpload()
{
fu.getElement().setPropertyBoolean("disabled", false);
enabled = true;
updateEnabledForSubmitButton();
if (submitted) {
/* An old request is still in progress (most likely cancelled),
... | 3.26 |
framework_VUpload_disableUpload_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void disableUpload() {
if (!submitted) {
// Cannot disable the fileupload while submitting or the file won't
// be submitted at all
fu.getElement().setPropertyBoolean("disabled", true);
}
enabled = fal... | 3.26 |
framework_VUpload_submit_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void submit() {
if (submitted || (!enabled)) {
getLogger().info("Submit cancelled (disabled or already submitted)");
return;
}
if (!hasFilename()) {
if (!allowUploadWithoutFilename) {
retu... | 3.26 |
framework_VUpload_onSubmitComplete_rdh | /**
* Called by JSNI (hooked via {@link #onloadstrategy})
*/
private void onSubmitComplete() {
/* Needs to be run dereferred to avoid various browser issues. */
Scheduler.get().scheduleDeferred(() -> {
if (submitted) {
if (client != null) {
if (t != null) {
... | 3.26 |
framework_VUpload_disableTitle_rdh | /**
* For internal use only. May be removed or replaced in the future.
*
* @param disable
* {@code true} if the built-in browser-dependent tooltip should
* be hidden in favor of a Vaadin tooltip, {@code false}
* otherwise
*/
public void disableTitle(boolean disable) {
... | 3.26 |
framework_VUpload_rebuildPanel_rdh | /**
* Re-creates file input field and populates panel. This is needed as we
* want to clear existing values from our current file input field.
*/
private void rebuildPanel() {
panel.remove(submitButton);
panel.remove(fu);
fu = new VFileUpload();
fu.setName(paintableId + "_file");
fu.getElement().... | 3.26 |
framework_VUpload_isImmediateMode_rdh | /**
* Returns whether this component is in immediate mode or not.
*
* @return {@code true} for immediate mode, {@code false} for not
*/
public boolean isImmediateMode()
{
return immediateMode;
}
/* -{
element.click();
} | 3.26 |
framework_ServerRpcQueue_size_rdh | /**
* Returns the current size of the queue.
*
* @return the number of invocations in the queue
*/
public int size() {
return pendingInvocations.size();
} | 3.26 |
framework_ServerRpcQueue_getAll_rdh | /**
* Returns a collection of all queued method invocations.
* <p>
* The returned collection must not be modified in any way
*
* @return a collection of all queued method invocations
*/public Collection<MethodInvocation> getAll() {
return pending... | 3.26 |
framework_ServerRpcQueue_connectorExists_rdh | /**
* Checks if the connector with the given id is still ok to use (has not
* been removed)
*
* @param connectorId
* the connector id to check
* @return true if the connector exists, false otherwise
*/
private boolean connectorExists(String connectorId) {
ConnectorMap connectorMap = ConnectorMap.get(connec... | 3.26 |
framework_ServerRpcQueue_clear_rdh | /**
* Clears the queue.
*/
public void clear() {
pendingInvocations.clear();
// Keep tag string short
lastInvocationTag = 0;
flushPending = false;
doFlushStrategy = NO_OP;} | 3.26 |
framework_ServerRpcQueue_add_rdh | /**
* Adds an explicit RPC method invocation to the send queue.
*
* @param invocation
* RPC method invocation
* @param lastOnly
* <code>true</code> to remove all previously delayed invocations
* of the same method that were also enqueued with lastonly set
* to <code>true</code>. <code>false</code> to ad... | 3.26 |
framework_ServerRpcQueue_showLoadingIndicator_rdh | /**
* Checks if a loading indicator should be shown when the RPCs have been
* sent to the server and we are waiting for a response.
*
* @return true if a loading indicator should be shown, false otherwise
*/
public boolean showLoadingIndicator() {
for (MethodInvocation invocation : getAll()) {
if (is... | 3.26 |
framework_ServerRpcQueue_get_rdh | /**
* Returns the server RPC queue for the given application.
*
* @param connection
* the application connection which owns the queue
* @return the server rpc queue for the given application
*/
public static ServerRpcQueue get(ApplicationConnection connection) {
return connection.getServerRpcQueue();
} | 3.26 |
framework_ServerRpcQueue_setConnection_rdh | /**
* Sets the application connection this instance is connected to. Called
* internally by the framework.
*
* @param connection
* the application connection this instance is connected to
*/
public void setConnection(ApplicationConnection connection) {
this.connection = connection;
} | 3.26 |
framework_ServerRpcQueue_flush_rdh | /**
* Triggers a send of server RPC and legacy variable changes to the server.
*/
public void flush() {
if (isFlushScheduled() || isEmpty()) {
return;
}
flushPending = true;
doFlushStrategy = this::doFlush;
Scheduler.get().scheduleFinally(() -> doFlushStrategy.run());
} | 3.26 |
framework_MenuBarConnector_updateFromUIDL_rdh | /**
* This method must be implemented to update the client-side component from
* UIDL data received from server.
*
* This method is called when the page is loaded for the first time, and
* every time UI changes in the component are received from the server.
*/
@Override
public void updateFromUIDL(UIDL uidl, Appli... | 3.26 |
framework_ComponentRendererConnector_createConnectorHierarchyChangeHandler_rdh | /**
* Adds a listener for grid hierarchy changes to find detached connectors
* previously handled by this renderer in order to detach from DOM their
* widgets before {@link AbstractComponentConnector#onUnregister()} is
* invoked otherwise an error message is logged.
*/
private void createConnectorHierarchyChangeHa... | 3.26 |
framework_StringToLongConverter_m0_rdh | /**
* Returns the format used by
* {@link #convertToPresentation(Long, Class, Locale)} and
* {@link #convertToModel(String, Class, Locale)}.
*
* @param locale
* The locale to use
* @return A NumberFormat instance
*/
@Override
protected NumberFormat m0(Locale locale) {
if (locale == null) {
locale ... | 3.26 |
framework_Header_join_rdh | /**
* Merges column cells in the row. Original cells are hidden, and new
* merged cell is shown instead. The cell has a width of all merged
* cells together, inherits styles of the first merged cell but has
* empty caption.
*
* @param cellsToMerge
* the cells which should be merged. The cells should not be
* ... | 3.26 |
framework_Header_getDefaultRow_rdh | /**
* Returns the default row of this header. The default row displays column
* captions and sort indicators.
*
* @return the default row, or {@code null} if there is no default row
*/
public Row getDefaultRow() {
return getRows().stream().filter(Row::isDefault).findAny().orElse(null);
} | 3.26 |
framework_Header_setDefaultRow_rdh | /**
* Sets the default row of this header. The default row displays column
* captions and sort indicators.
*
* @param defaultRow
* the new default row, or null for no default row
* @throws IllegalArgumentException
* if the header does not contain the row
*/
public void setDefaultRow(Row defaultRow) {
if (d... | 3.26 |
framework_Header_setDefault_rdh | /**
* Sets whether this row is the default header row.
*
* @param defaultHeader
* {@code true} to set to default, {@code false} otherwise.
*/
protected void setDefault(boolean defaultHeader) {
getRowState().defaultHeader = defaultHeader;
} | 3.26 |
framework_MessageSender_m1_rdh | /**
* Makes an UIDL request to the server.
*
* @param reqInvocations
* Data containing RPC invocations and all related information.
* @param extraJson
* The JsonObject whose parameters are added to the payload
*/
protected void m1(final JsonArray reqInvocations, final JsonObject extraJson) {
startRequest... | 3.26 |
framework_MessageSender_m0_rdh | /**
* Sends all pending method invocations (server RPC and legacy variable
* changes) to the server.
*/
private void m0() {
ServerRpcQueue serverRpcQueue = getServerRpcQueue();
if (serverRpcQueue.isEmpty() && (!resynchronizeRequested)) {return;
}
if (ApplicationConfiguration.isDebugMode())
{
... | 3.26 |
framework_MessageSender_setClientToServerMessageId_rdh | /**
* Used internally to update what the server expects.
*
* @param nextExpectedId
* the new client id to set
* @param force
* true if the id must be updated, false otherwise
*/
public void setClientToServerMessageId(int nextExpectedId, boolean force) {
if (nextExpectedId == clientToServerMessageId) {
... | 3.26 |
framework_MessageSender_send_rdh | /**
* Sends an asynchronous or synchronous UIDL request to the server using the
* given URI.
*
* @param payload
* The contents of the request to send
*/
public void send(final JsonObject payload) {
if ((push != null) && push.isBidirectional()) {
push.push(payload);
} else {
xhrConnectio... | 3.26 |
framework_MessageSender_m2_rdh | /**
* Returns a human readable string representation of the method used to
* communicate with the server.
*
* @return A string representation of the current transport type
*/
public String m2() {
String clientToServer = "XHR";
String serverToClient = "-";
if (push != null) {
serverToClient = pu... | 3.26 |
framework_MessageSender_setConnection_rdh | /**
* Sets the application connection this instance is connected to. Called
* internally by the framework.
*
* @param connection
* the application connection this instance is connected to
*/
public void setConnection(ApplicationConnection connection) {
this.connection = connection;
xhrConnection.setConn... | 3.26 |
framework_MessageSender_setPushEnabled_rdh | /**
* Sets the status for the push connection.
*
* @param enabled
* <code>true</code> to enable the push connection;
* <code>false</code> to disable the push connection.
*/
public void setPushEnabled(boolean enabled) {
final PushConfigurationState pushState = connection.getUIConnector().getState().pushCon... | 3.26 |
framework_VTooltip_getMaxWidth_rdh | /**
* Returns the maximum width of the tooltip popup.
*
* @return The maximum width the tooltip popup (in pixels)
*/public int
getMaxWidth() {
return maxWidth;
} | 3.26 |
framework_VTooltip_getFinalTouchX_rdh | /**
* Return the final X-coordinate of the tooltip based on cursor
* position, size of the tooltip, size of the page and necessary
* margins.
*
* @param offsetWidth
* @return The final X-coordinate
*/
private int getFinalTouchX(int offsetWidth) {
int x = 0;
int widthNeeded = 10 + offsetWidth;
int roo... | 3.26 |
framework_VTooltip_m2_rdh | /**
* Sets the time (in ms) that determines when {@link #getQuickOpenDelay()}
* should be used instead of {@link #getOpenDelay()}. The quick open delay
* is used when the tooltip has very recently been shown, is currently
* hidden but about to be shown again.
*
* @param quickOpenTimeout
* The quick open timeou... | 3.26 |
framework_VTooltip_getOpenDelay_rdh | /**
* Returns the time (in ms) that should elapse after an event triggering
* tooltip showing has occurred (e.g. mouse over) before the tooltip is
* shown. If a tooltip has recently been shown, then
* {@link #getQuickOpenDelay()} is used instead of this.
*
* @return The open delay (in ms)
*/
public int getOpenDe... | 3.26 |
framework_VTooltip_connectHandlersToWidget_rdh | /**
* Connects DOM handlers to widget that are needed for tooltip presentation.
*
* @param widget
* Widget which DOM handlers are connected
*/
public void connectHandlersToWidget(Widget widget) {
Profiler.enter("VTooltip.connectHandlersToWidget");
widget.addDomHandler(tooltipEventHandler, MouseOutEvent.getType()... | 3.26 |
framework_VTooltip_replaceCurrentTooltip_rdh | /**
* Replace current open tooltip with new content.
*/
public void replaceCurrentTooltip() {
if (closing) {
closeTimer.cancel();
m0();
justClosedTimer.cancel();
justClosed = false;
}
showTooltip();
opening = false;
} | 3.26 |
framework_VTooltip_getFinalX_rdh | /**
* Return the final X-coordinate of the tooltip based on cursor
* position, size of the tooltip, size of the page and necessary
* margins.
*
* @param offsetWidth
* @return The final X-coordinate
*/
private int getFinalX(int offsetWidth) {
int x = 0;
int widthNeeded = (10
+ MARGIN) + offsetWidth;
... | 3.26 |
framework_VTooltip_setQuickOpenDelay_rdh | /**
* Sets the time (in ms) that should elapse before a tooltip will be shown,
* in the situation when a tooltip has very recently been shown (within
* {@link #getQuickOpenDelay()} ms).
*
* @param quickOpenDelay
* The quick open delay (in ms)
*/
public void setQuickOpenDelay(int quickOpenDelay) {
this.quickOpe... | 3.26 |
framework_VTooltip_getFinalY_rdh | /**
* Return the final Y-coordinate of the tooltip based on cursor
* position, size of the tooltip, size of the page and necessary
* margins.
*
* @param offsetHeight
* @return The final y-coordinate
*/
private int getFinalY(int offsetHeight) {
int y = 0;
int heightNeeded = 10 + offsetHeight;
int roo... | 3.26 |
framework_VTooltip_showAssistive_rdh | /**
* Show the tooltip with the provided info for assistive devices.
*
* @param info
* with the content of the tooltip
*/
public void showAssistive(TooltipInfo info) {
updatePosition(null, true);
setTooltipText(info);
showTooltip();
} | 3.26 |
framework_VTooltip_getFinalTouchY_rdh | /**
* Return the final Y-coordinate of the tooltip based on cursor
* position, size of the tooltip, size of the page and necessary
* margins.
*
* @param offsetHeight
* @return The final y-coordinate
*/
private int getFinalTouchY(int offsetHeight) {
int y = 0;
int heightNeeded = 10 + offsetHeight;
in... | 3.26 |
framework_VTooltip_isTooltipOpen_rdh | /**
* For assistive tooltips to work correctly we must have the tooltip visible
* and attached to the DOM well in advance. For this reason both isShowing
* and isVisible return false positives. We can't override either of them as
* external code may depend on this behavior.
*
* @return boolean
*/
public boolean ... | 3.26 |
framework_VTooltip_getCloseTimeout_rdh | /**
* Returns the time (in ms) the tooltip should be displayed after an event
* that will cause it to be closed (e.g. mouse click outside the component,
* key down).
*
* @return The close timeout (in ms)
*/
public int getCloseTimeout() {
return closeTimeout;
} | 3.26 |
framework_VTooltip_setMaxWidth_rdh | /**
* Sets the maximum width of the tooltip popup.
*
* @param maxWidth
* The maximum width the tooltip popup (in pixels)
*/
public void setMaxWidth(int maxWidth) {
this.maxWidth = maxWidth;
} | 3.26 |
framework_VTooltip_getTooltipFor_rdh | /**
* Locate the tooltip for given element
*
* @param element
* Element used in search
* @return TooltipInfo if connector and tooltip found, null if not
*/
private TooltipInfo getTooltipFor(Element element) {
ApplicationConnection v26 = getApplicationConnection();
ComponentConnector connector = Util.getConnecto... | 3.26 |
framework_VTooltip_initializeAssistiveTooltips_rdh | /**
* Initialize the tooltip overlay for assistive devices.
*
* @since 7.2.4
*/
| 3.26 |
framework_VTooltip_showTooltip_rdh | /**
* Show a popup containing the currentTooltipInfo
*/
private void showTooltip() {
if (currentTooltipInfo.hasMessage()) {
// Issue #8454: With IE7 the tooltips size is calculated based on
// the last tooltip's position, causing problems if the last one was
// in the right or bottom edge. For this reason... | 3.26 |
framework_VTooltip_handleHideEvent_rdh | /**
* Handle hide event
*/
private void handleHideEvent() {
hideTooltip();
} | 3.26 |
framework_VTooltip_setCloseTimeout_rdh | /**
* Sets the time (in ms) the tooltip should be displayed after an event that
* will cause it to be closed (e.g. mouse click outside the component, key
* down).
*
* @param closeTimeout
* The close timeout (in ms)
*/
public void setCloseTimeout(int closeTimeout) {
this.closeTimeout = closeTimeout;
} | 3.26 |
framework_VTooltip_setOpenDelay_rdh | /**
* Sets the time (in ms) that should elapse after an event triggering
* tooltip showing has occurred (e.g. mouse over) before the tooltip is
* shown. If a tooltip has recently been shown, then
* {@link #getQuickOpenDelay()} is used instead of this.
*
* @param openDelay
* The open delay (in ms)
*/public voi... | 3.26 |
framework_VTooltip_getQuickOpenDelay_rdh | /**
* Returns the time (in ms) that should elapse before a tooltip will be
* shown, in the situation when a tooltip has very recently been shown
* (within {@link #getQuickOpenDelay()} ms).
*
* @return The quick open delay (in ms)
*/
public int getQuickOpenDelay() {
return quickOpenDelay;
} | 3.26 |
framework_VTooltip_onFocus_rdh | /**
* Displays Tooltip when page is navigated with the keyboard.
*
* Tooltip is not visible. This makes it possible for assistive devices
* to recognize the tooltip.
*/
@Override
public void onFocus(FocusEvent fe) {
handleShowHide(fe, true);
} | 3.26 |
framework_VAcceptCriterion_accept_rdh | /**
* Checks if current drag event has valid drop target and target accepts the
* transferable. If drop target is valid, callback is used.
*
* @param drag
* the drag event
* @param configuration
* accept criterion UIDL
* @param callback
* the callback that handles acceptance if the target is valid
*/
pu... | 3.26 |
framework_EventCellReference_getSection_rdh | /**
* Gets the Grid section where the referenced cell is.
*
* @since 7.5
* @return grid section
*/
public Section getSection() {
return
section;
} | 3.26 |
framework_EventCellReference_set_rdh | /**
* Configures this CellReference and its internal RowReference to point to
* the given Cell.
*
* @param targetCell
* the cell to point to
* @param section
* the section the cell belongs to
*/
public void set(Cell targetCell, Section section) {
Grid<T> grid = getGri... | 3.26 |
framework_GridDropTargetConnector_getRowData_rdh | /**
* Get the row data as json object for the given row.
*
* @param row
* table row element
* @return row data as json object for the given row
*/
protected JsonObject getRowData(TableRowElement row) {
int rowIndex = ((Escalator.AbstractRowContainer) (getGridBody())).getLogic... | 3.26 |
framework_GridDropTargetConnector_m0_rdh | /**
* Returns the location of the event within the row.
*
* @param target
* drop target element
* @param event
* drop event
* @return the drop location to use
*/
protected DropLocation m0(Element target, NativeEvent event) {
if (!isDroppingOnRowsPossible()) {
return DropLocation.EMPTY;
}
... | 3.26 |
framework_GridDropTargetConnector_getTargetElement_rdh | /**
* Gets the target element for a dragover or drop event.
*
* @param source
* the event target of the event
* @return the element that should be handled as the target of the event
*/
protected Element getTargetElement(Element source) {
final Element tableWrapper = m1();final BodyRowContainer v13 = getGridBod... | 3.26 |
framework_Window_getTabStopBottomAssistiveText_rdh | /**
* Gets the message that is provided to users of assistive devices when the
* user reaches the bottom of the window when leaving a window with the tab
* key is prevented.
*
* @return the bottom message
*/
public String getTabStopBottomAssistiveText() {
return getState(false).assistiveTabStopBottomText;
} | 3.26 |
framework_Window_isModal_rdh | /**
*
* @return true if this window is modal.
*/
public boolean isModal() {
return getState(false).modal;
} | 3.26 |
framework_Window_setAssistiveDescription_rdh | /**
* Allows to specify which components contain the description for the
* window. Text contained in these components will be read by assistive
* devices when it is opened.
*
* @param components
* the components to use as description
*/
public void setAssistiveDescription(Component... components) {
if (co... | 3.26 |
framework_Window_bringToFront_rdh | /**
* If there are currently several windows visible, calling this method makes
* this window topmost.
* <p>
* This method can only be called if this window connected a UI. Else an
* illegal state exception is thrown. Also if there are modal w... | 3.26 |
framework_Window_m3_rdh | /**
* Gets the new window mode.
*
* @return the new mode
*/
public WindowMode m3()
{
return windowMode;
} | 3.26 |
framework_Window_addWindowModeChangeListener_rdh | /**
* Adds a WindowModeChangeListener to the window.
*
* The WindowModeChangeEvent is fired when the user changed the display
* state by clicking the maximize/restore button or by double clicking on
* the window header. The event is also fired if the state is changed using
* {@link #setWindowMode(WindowMode)}.
*... | 3.26 |
framework_Window_removeCloseShortcut_rdh | /**
* Removes a close shortcut previously added with
* {@link #addCloseShortcut(int, int...)}.
*
* @since 7.6
* @param keyCode
* the keycode for invoking the shortcut
* @param modifiers
* the (optional) modifiers for invoking the shortcut. Can be set
* to null to be explicit about not having modifiers.
... | 3.26 |
framework_Window_getAssistiveRole_rdh | /**
* Gets the WAI-ARIA role the window.
*
* This role defines how an assistive device handles a window. Available
* roles are alertdialog and dialog (@see
* <a href="http://www.w3.org/TR/2011/CR-wai-aria-20110118/roles">Roles
* Model</a>).
*
* @return WAI-ARIA role set for the window
*/
public WindowRole getA... | 3.26 |
framework_Window_setDraggable_rdh | /**
* Enables or disables that a window can be dragged (moved) by the user. By
* default a window is draggable.
* <p/>
*
* @param draggable
* true if the window can be dragged by the user
*/
public void setDraggable(boolean draggable) {
getState().draggable
= draggable;
} | 3.26 |
framework_Window_setCloseShortcut_rdh | /**
* This is the old way of adding a keyboard shortcut to close a
* {@link Window} - to preserve compatibility with existing code under the
* new functionality, this method now first removes all registered close
* shortcuts, then adds the default ESCAPE shortcut key, and then attempts
* to add the shortcut provid... | 3.26 |
framework_Window_readDesignChildren_rdh | /**
* Reads the content and possible assistive descriptions from the list of
* child elements of a design. If an element has an
* {@code :assistive-description} attribute, adds the parsed component to
* the list of components used as the assistive description of this Window.
* Otherwise, sets the component as the ... | 3.26 |
framework_Window_removeAllCloseShortcuts_rdh | /**
* Removes all close shortcuts. This includes the default ESCAPE shortcut.
* It is up to the user to add back any and all keyboard close shortcuts
* they may require. For more fine-grained control over shortcuts, use
* {@link #removeCloseShortcut(int, int...)}.
*
* @since 7.6
*/
public void removeAllCloseShor... | 3.26 |
framework_Window_addCloseListener_rdh | /**
* Adds a CloseListener to the window.
*
* For a window the CloseListener is fired when the user closes it (clicks
* on the close button).
*
* For a browser level window the CloseListener is fired when the browser
* level window is closed. Note that closing a browser level window does not
* mean it will be d... | 3.26 |
framework_Window_addResizeListener_rdh | /**
* Add a resize listener.
*
* @see Registration
* @param listener
* the listener to add, not null
* @return a registration object for removing the listener
* @since 8.0
*/
public Registration addResizeListener(ResizeListener listener) {
return addListener(Window.ResizeEvent.class, listener, WINDOW_RESI... | 3.26 |
framework_Window_removeWindowModeChangeListener_rdh | /**
* Removes the WindowModeChangeListener from the window.
*
* @param listener
* the WindowModeChangeListener to remove.
*/
@Deprecated
public void removeWindowModeChangeListener(WindowModeChangeListener listener) {
removeListener(Window.WindowModeChangeEvent.class, listener, WindowModeChangeListener.f0);
... | 3.26 |
framework_Window_m6_rdh | /**
* Sets the message that is provided to users of assistive devices when the
* user reaches the bottom of the window when leaving a window with the tab
* key is prevented.
* <p>
* This message is not visible on the screen.
*
* @param bottomMessage
* String provided when the user navigates with the Tab key t... | 3.26 |
framework_Window_focus_rdh | /**
* {@inheritDoc }
*
* Cause the window to be brought on top of other windows and gain keyboard
* focus.
*/
@Override
public void focus() {
/* When focusing a window it basically means it should be brought to the
front. Instead of just moving the keyboard focus we focus the window
and bring it top-mo... | 3.26 |
framework_Window_setModal_rdh | /**
* Sets window modality. When a modal window is open, components outside
* that window cannot be accessed.
* <p>
* Keyboard navigation is restricted by blocking the tab key at the top and
* bottom of the window by activating the tab stop function internally.
*
* @param modal
* true if modality is to be tur... | 3.26 |
framework_Window_getOrderPosition_rdh | /**
* Returns the position of this window in the order of all open windows for
* this UI.
* <p>
* Window with position 0 is on the bottom, and window with greatest
* position is at the top. If window has no position (it's not yet attached
* or hidden) then position is {@code -1}.
*
* @see UI#addWindowOrderUpdat... | 3.26 |
framework_Window_m2_rdh | /**
* Removes the CloseListener from the window.
*
* <p>
* For more information on CloseListeners see {@link CloseListener}.
* </p>
*
* @param listener
* the CloseListener to remove.
*/
@Deprecated
public void m2(CloseListener listener) {
removeListener(Window.CloseEvent.class, listener,
WINDOW_CLOS... | 3.26 |
framework_Window_isClosable_rdh | /**
* Returns the closable status of the window. If a window is closable, it
* typically shows an X in the upper right corner. Clicking on the X sends a
* close event to the server. Setting closable to false will remove the X
* from the window and prevent the user from closing the window.
*
* @return true if the ... | 3.26 |
framework_Window_setResizable_rdh | /**
* Sets window resizable.
*
* @param resizable
* true if resizability is to be turned on
*/
public void setResizable(boolean resizable) {
getState().resizable = resizable;
} | 3.26 |
framework_Window_setClosable_rdh | /**
* Sets the closable status for the window. If a window is closable it
* typically shows an X in the upper right corner. Clicking on the X sends a
* close event to the server. Setting closable to false will remove the X
* from the window and prevent the user from closing the window.
*
* @param closable
* de... | 3.26 |
framework_Window_setTabStopTopAssistiveText_rdh | /**
* Sets the message that is provided to users of assistive devices when the
* user reaches the top of the window when leaving a window with the tab key
* is prevented.
* <p>
* This message is not visible on the screen.
*
* @param topMessage
* String provided when the user navigates with Shift-Tab keys to
... | 3.26 |
framework_Window_m4_rdh | /**
* Gets the current mode of the window.
*
* @see WindowMode
* @return the mode of the window.
*/
public WindowMode m4() {
return getState(false).windowMode;
} | 3.26 |
framework_Window_addWindowOrderChangeListener_rdh | /**
* Adds a WindowOrderChangeListener to the window.
* <p>
* The WindowOrderChangeEvent is fired when the order position is changed.
* It can happen when some window (this or other) is brought to front or
* detached.
* <p>
* The other way to listen positions of all windows in UI is
* {@link UI#addWindowOrderUp... | 3.26 |
framework_Window_setAssistiveRole_rdh | /**
* Sets the WAI-ARIA role the window.
*
* This role defines how an assistive device handles a window. Available
* roles are alertdialog and dialog (@see
* <a href="http://www.w3.org/TR/2011/CR-wai-aria-20110118/roles">Roles
* Model</a>).
*
* The default role is dialog.
*
* @param role
* WAI-ARIA role to... | 3.26 |
framework_Window_setPositionX_rdh | /**
* Sets the distance of Window left border in pixels from left border of the
* containing (main window). Has effect only if in {@link WindowMode#NORMAL}
* mode.
*
* @param positionX
* the Distance of Window left border in pixels from left border
* of the containing (main window). or -1 if unspecified.
* ... | 3.26 |
framework_Window_m0_rdh | /**
* Gets the Window.
*
* @return the window
*/
public Window m0() {
return ((Window) (getSource()));
} | 3.26 |
framework_Window_getWindow_rdh | /**
* Get the window form which this event originated.
*
* @return the window
*/
public Window getWindow() {
return ((Window) (getSource()));
} | 3.26 |
framework_Window_getTabStopTopAssistiveText_rdh | /**
* Gets the message that is provided to users of assistive devices when the
* user reaches the top of the window when leaving a window with the tab key
* is prevented.
*
* @return the top message
*/
public String getTabStopTopAssistiveText()
{return getState(false).assistiveTabStopTopText;
} | 3.26 |
framework_Window_setTabStopEnabled_rdh | /**
* Set if it should be prevented to set the focus to a component outside a
* non-modal window with the tab key.
* <p>
* This is meant to help users of assistive devices to not leaving the
* window unintentionally.
* <p>
* For modal windows, this function is activated automatically, while
* preserving the sto... | 3.26 |
framework_Window_getAssistivePrefix_rdh | /**
* Gets the accessibility prefix for the window caption.
*
* This prefix is read to assistive device users before the window caption,
* but not visible on the page.
*
* @r... | 3.26 |
framework_Window_setResizeLazy_rdh | /**
* Should resize operations be lazy, i.e. should there be a delay before
* layout sizes are recalculated. Speeds up resize operations in slow UIs
* with the penalty of slightly decreased usability.
*
* Note, some browser send false resize events for the browser window and
* are therefore always lazy.
*
* @pa... | 3.26 |
framework_Window_setPositionY_rdh | /**
* Sets the distance of Window top border in pixels from top border of the
* containing (main window). Has effect only if in {@link WindowMode#NORMAL}
* mode.
*
* @param positionY
* the Distance of Window top border in pixels from top border of
* the containing (main window). or -1 if unspecified
* @sinc... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.