name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
framework_Window_addCloseShortcut_rdh
/** * Adds a close shortcut - pressing this key while holding down all (if any) * modifiers specified while this Window is in focus will close the Window. * * @since 7.6 * @param keyCode * the keycode for invoking the shortcut * @param modifiers * the (optional) modifiers for invoking the shortcut. Can be s...
3.26
framework_Window_setPosition_rdh
/** * Sets the position of the window on the screen using * {@link #setPositionX(int)} and {@link #setPositionY(int)}. * * @since 7.5 * @param x * The new x coordinate for the window * @param y * The new y coordinate for the window */ public void setPosition(int x, int y) { setPositionX(x); setPosi...
3.26
framework_Window_setWindowMode_rdh
/** * Sets the mode for the window. * * @see WindowMode * @param windowMode * The new mode */ public void setWindowMode(WindowMode windowMode) { if (windowMode != m4()) { getState().windowMode = windowMode; fireWindowWindowModeChange(); } }
3.26
framework_Window_close_rdh
/** * Method that handles window closing (from UI). * * <p> * By default, windows are removed from their respective UIs and thus * visually closed on browser-side. * </p> * * <p> * To react to a window being closed (after it is closed), register a * {@link CloseListener}. * </p> */ public void close() { ...
3.26
framework_Window_setAssistivePrefix_rdh
/** * Sets 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. * * @param prefix * String that is placed before the window caption */ public void setAssistivePrefix(String prefix) { getState().assisti...
3.26
framework_Window_removeResizeListener_rdh
/** * Remove a resize listener. * * @param listener */@Deprecated public void removeResizeListener(ResizeListener listener) { removeListener(Window.ResizeEvent.class, listener); }
3.26
framework_Window_setAssistivePostfix_rdh
/** * Sets the accessibility postfix for the window caption. * * This postfix is read to assistive device users after the window caption, * but not visible on the page. * * @param assistivePostfix * String that is placed after the window caption */ public void setAssistivePostfix(String assistivePostfix) { ...
3.26
framework_Window_getAssistiveDescription_rdh
/** * Gets the components that are used as assistive description. Text * contained in these components will be read by assistive devices when the * window is opened. * * @return array of previously set components */ public Component[] getAssistiveDescription() { Connector[] contentDescription = getState(fals...
3.26
framework_Window_hasCloseShortcut_rdh
/** * Checks if a close window shortcut key has already been registered. * * @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. * @return true, if an e...
3.26
framework_TableConnector_showSavedContextMenu_rdh
/** * Shows a saved row context menu if the row for the context menu is still * visible. Does nothing if a context menu has not been saved. * * @param savedContextMenu */ public void showSavedContextMenu(ContextMenuDetails savedContextMenu) { if (isEnabled() && (savedContextMenu != null)) { for (Widg...
3.26
framework_ConnectorHelper_writeHierarchyInformation_rdh
/** * Creates a string containing hierarchy information for the connector. * * @since 7.1 * @param connector * The connector to get hierarchy information for * @param builder * The StringBuilder where the information should be written */ public static void writeHierarchyInformation(ClientConnector connector...
3.26
framework_ConnectorHelper_getDebugInformation_rdh
/** * Creates a string containing debug info for the connector. * * @since 7.1 * @param connector * The connector to print debug info about * @return A string with debug information */ public static String getDebugInformation(ClientConnector connector) { StringBuilder sb = new StringBuilder(); sb.appen...
3.26
framework_DragSourceExtensionConnector_removeDragListeners_rdh
/** * Removes dragstart and dragend event listeners from the given DOM element. * * @param element * DOM element to remove event listeners from. */ protected void removeDragListeners(Element element) { EventTarget target = element.cast(); target.removeEventListener(Event.DRAGSTART, dragStartListener); target.rem...
3.26
framework_DragSourceExtensionConnector_sendDragStartEventToServer_rdh
/** * Initiates a server RPC for the drag start event. * <p> * This method is called only if there is a server side drag start event * handler attached. * * @param dragStartEvent * Client side dragstart event. */ protected void sendDragStartEventToServer(NativeEvent dragStartEvent) { getRpcProxy(DragSourceRp...
3.26
framework_DragSourceExtensionConnector_addDraggable_rdh
/** * Makes the given element draggable and adds class name. * * @param element * Element to be set draggable. */ protected void addDraggable(Element element) { element.setDraggable(Element.DRAGGABLE_TRUE); element.addClassName(getStylePrimaryName(element) + STYLE_SUFFIX_DRAGSOURCE); element.addClassName(STYLE...
3.26
framework_DragSourceExtensionConnector_getDraggableElement_rdh
/** * Finds the draggable element within the widget. By default, returns the * topmost element. * <p> * Override this method to make some other than the root element draggable * instead. * <p> * In case you need to make more than whan element draggable, override * {@link #extend(ServerConnector)} instead. * *...
3.26
framework_DragSourceExtensionConnector_onDragEnd_rdh
/** * Event handler for the {@code dragend} event. Called when {@code dragend} * event occurs. * * @param event * browser event to be handled */ protected void onDragEnd(Event event) { NativeEvent nativeEvent = ((NativeEvent) (event)); // for android chrome we use the polyfill, in case browser fires a // native...
3.26
framework_DragSourceExtensionConnector_removeDraggable_rdh
/** * Removes draggable and class name from the given element. * * @param element * Element to remove draggable from. */ protected void removeDraggable(Element element) { element.setDraggable(Element.DRAGGABLE_FALSE); element.removeClassName(getStylePrimaryName(element) + STYLE_SUFFIX_DRAGSOURCE); element.remov...
3.26
framework_DragSourceExtensionConnector_isAndoidChrome_rdh
/** * Returns whether the current browser is Android Chrome. * * @return {@code true} if Android Chrome, {@code false} if not */ protected boolean isAndoidChrome() { BrowserInfo browserInfo = BrowserInfo.get(); return browserInfo.isAndroid() && browserInfo.isChrome();} /* -{ return event.isTrusted; }
3.26
framework_DragSourceExtensionConnector_setDragImage_rdh
/** * Sets the drag image to be displayed. * <p> * Override this method in case you need custom drag image setting. Called * from {@link #onDragStart(Event)}. * * @param dragStartEvent * The drag start event. */ protected void setDragImage(NativeEvent dragStartEvent) { String imageUrl = getResourceUrl(DragSou...
3.26
framework_DragSourceExtensionConnector_removeDraggedStyle_rdh
/** * Remove class name that indicated that the drag source element was being * dragged. This method is called during the dragend event. * * @param event * The drag end element. */ protected void removeDraggedStyle(NativeEvent event) { Element dragSource = getDraggableElement(); dragSource.removeClassName(getSt...
3.26
framework_DragSourceExtensionConnector_sendDragEndEventToServer_rdh
/** * Initiates a server RPC for the drag end event. * * @param dragEndEvent * Client side dragend event. * @param dropEffect * Drop effect of the dragend event, extracted from {@code DataTransfer.dropEffect} parameter. */ protected void sendDragEndEventToServer(NativeEvent dragEndEvent, DropEffect dropEffec...
3.26
framework_DragSourceExtensionConnector_addDragListeners_rdh
/** * Adds dragstart and dragend event listeners to the given DOM element. * * @param element * DOM element to attach event listeners to. */ protected void addDragListeners(Element element) { EventTarget v0 = element.cast(); v0.addEventListener(Event.DRAGSTART, dragStartListener); v0.addEventListener(Event.DRAGE...
3.26
framework_DragSourceExtensionConnector_fixDragImageTransformForMobile_rdh
/** * Fix drag image offset for touch devices when the dragged image has been * offset with css transform: translate/translate3d. * <p> * This necessary for e.g grid rows. * <p> * This method is NOOP for non-touch browsers. * * @param draggedElement * the element that forms the drag image */ protected void ...
3.26
framework_DragSourceExtensionConnector_addDraggedStyle_rdh
/** * Add class name to indicate that the drag source element is being dragged. * This method is called during the dragstart event. * * @param event * The drag start event. */protected void addDraggedStyle(NativeEvent event) { Element dragSource = getDraggableElement(); dragSource.addClassName(getStylePrimaryNa...
3.26
framework_DragSourceExtensionConnector_onDragStart_rdh
/** * Event handler for the {@code dragstart} event. Called when {@code dragstart} event occurs. * * @param event * browser event to be handled */ protected void onDragStart(Event event) { // Convert elemental event to have access to dataTransfer NativeEvent nativeEvent = ((NativeEvent) (event)); // Do not allow...
3.26
framework_DragSourceExtensionConnector_fixDragImageOffsetsForDesktop_rdh
/** * Fixes missing or offset drag image caused by using css transform: * translate (or such) by using a cloned drag image element, for which the * property has been cleared. * <p> * This bug only occurs on Desktop with Safari (gets offset and clips the * element for the parts that are not inside the element star...
3.26
framework_AbstractTextFieldConnector_getAbstractTextField_rdh
/** * Helper to cast {@link #getWidget()} to {@link AbstractTextField}. The * method exists only because getWidget() must return a {@link Widget} and * not an interface. * * @return the widget as an AbstractTextFieldWidget */ private AbstractTextFieldWidget getAbstractTextField() { return ((AbstractTextFieldW...
3.26
framework_AbstractTextFieldConnector_sendValueChange_rdh
/** * Sends the updated value and cursor position to the server, if either one * has changed. */ @Override public void sendValueChange() { if (!hasStateChanged()) { return; } lastSentCursorPosition = getAbstractTextField().getCursorPos(); getRpcProxy(AbstractTextFieldServerRpc.class).setText(...
3.26
framework_AbstractTextFieldConnector_isWorkPending_rdh
/** * {@inheritDoc } * * @since 8.0 */ @Override public boolean isWorkPending() { return getValueChangeHandler().isScheduled(); }
3.26
framework_AbstractTextFieldConnector_getValueChangeHandler_rdh
/** * Returns the internal value change handler. * * @return the value change handler */ protected ValueChangeHandler getValueChangeHandler() { return f0; }
3.26
framework_VAcceptCriteria_get_rdh
/** * Returns the accept criterion that matches the given identifier. * * @param name * the identifier * @return the accept criterion */ public static VAcceptCriterion get(String name) { return impl.get(name); }
3.26
framework_Result_error_rdh
/** * Returns a failure result wrapping the given error message. * * @param <R> * the result value type * @param message * the error message * @return a failure result */ public static <R> Result<R> error(String message) { Objects.requireNonNull(message, "message cannot be null"); return new Simple...
3.26
framework_Result_ifOk_rdh
/** * Applies the {@code consumer} if result is not an error. * * @param consumer * consumer to apply in case it's not an error */ public default void ifOk(SerializableConsumer<R> consumer) { handle(consumer, error -> { }); }
3.26
framework_Result_of_rdh
/** * Returns a Result representing the result of invoking the given supplier. * If the supplier returns a value, returns a {@code Result.ok} of the * value; if an exception is thrown, returns the message in a * {@code Result.error}. * * @param <R> * the result value type * @param supplier * the supplier t...
3.26
framework_Result_map_rdh
/** * If this Result has a value, returns a Result of applying the given * function to the value. Otherwise, returns a Result bearing the same error * as this one. Note that any exceptions thrown by the mapping function are * not wrapped but allowed to propagate. * * @param <S> * the type of the mapped value ...
3.26
framework_Result_ifError_rdh
/** * Applies the {@code consumer} if result is an error. * * @param consumer * consumer to apply in case it's an error */ public default void ifError(SerializableConsumer<String> consumer) { handle(value -> { }, consumer); }
3.26
framework_DataCommunicatorConnector_updateRowData_rdh
/** * Updates row data based on row key. * * @param rowData * new row object */ protected void updateRowData(JsonObject rowData) { int index = indexOfKey(getRowKey(rowData)); if (index >= 0) {JsonObject oldRowData = getRow(index); ...
3.26
framework_DataCommunicatorConnector_sendDroppedRows_rdh
/** * Inform the server of any dropped rows. */ private void sendDroppedRows() { if (!droppedKeys.isEmpty()) { JsonArray v6 = Json.createArray(); int i = 0; for (String key : droppedKeys) { v6.set(i++, key); } droppedKeys.clear(); getRpcProxy(DataReque...
3.26
framework_DataCommunicatorConnector_onRowDataUpdate_rdh
/** * Called row updates from server side. * <p> * This method exists for making it possible to copy data from the old * object to the new one, if e.g. some data is not available in the server * side when doing updates and would be missed otherwise. * * @param newRowData * the new row data * @param oldRowDat...
3.26
framework_StateChangeEvent_addAllStateFields_rdh
/** * Recursively adds the names of all properties in the provided state type. * * @param type * the type to process * @param changedProperties * a set of all currently added properties * @param context * the base name of the current object */ @Deprecated private static void addAllStateFields(Type type, ...
3.26
framework_StateChangeEvent_addJsonFields_rdh
/** * Recursively adds the names of all fields in all objects in the provided * json object. * * @param json * the json object to process * @param changedProperties * a set of all currently added fields * @param context * the base name of the current object */ @Deprecated private static void addJsonFiel...
3.26
framework_DefaultErrorHandler_findRelevantThrowable_rdh
/** * Vaadin wraps exceptions in its own and due to reflection usage there * might be also other irrelevant exceptions that make no sense for Vaadin * users (~developers using Vaadin). This method tries to choose the * relevant one to be reported. * * @since 7.2 * @param t * a throwable passed to ErrorHandler...
3.26
framework_AbsoluteLayout_setLeftValue_rdh
/** * Sets the 'left' attribute value (distance from the left of the * component to the left edge of the layout). Currently active units are * maintained. * * @param leftValue * The value of the 'left' CSS-attribute * @see #setLeftUnits(Unit) */ public void setLeftValue(Float leftValue) { this.leftValue = lef...
3.26
framework_AbsoluteLayout_setCSSString_rdh
/** * Sets the position attributes using CSS syntax. Attributes not * included in the string are reset to their unset states. * * <code><pre> * setCSSString("top:10px;left:20%;z-index:16;"); * </pre></code> * * @param css */ public void setCSSString(String css) { topValue = f0 = bottomValue = leftValue...
3.26
framework_AbsoluteLayout_setTopValue_rdh
/** * Sets the value of the 'top' attribute; distance from the top of the * component to the top edge of the layout. * * @param topValue * The value of the 'left' attribute */ public void setTopValue(Float topValue) { this.topValue = topValue; markAsDirty(); }
3.26
framework_AbsoluteLayout_writePositionAttribute_rdh
/** * Private method for writing position attributes * * @since 7.4 * @param node * target node * @param key * attribute key * @param symbol * value symbol * @param value * the value */ private void writePositionAttribute(Node node, String key, String symbol, Float value) { if (value != null) { Stri...
3.26
framework_AbsoluteLayout_setZIndex_rdh
/** * Sets the 'z-index' attribute; the visual stacking order. * * @param zIndex * The z-index for the component. */public void setZIndex(int zIndex) { this.zIndex = zIndex; markAsDirty(); }
3.26
framework_AbsoluteLayout_iterator_rdh
/** * Gets an iterator for going through all components enclosed in the * absolute layout. */ @Override public Iterator<Component> iterator() { return Collections.unmodifiableCollection(componentToCoordinates.keySet()).iterator(); }
3.26
framework_AbsoluteLayout_setRight_rdh
/** * Sets the 'right' attribute; distance from the right of the component * to the right edge of the layout. * * @param rightValue * The value of the 'right' attribute * @param rightUnits * The unit of the 'right' attribute. See UNIT_SYMBOLS for a * description of the available units. */ public void se...
3.26
framework_AbsoluteLayout_getRightValue_rdh
/** * Gets the 'right' attributes value in current units. * * @return The value of the 'right' attribute, null if not set * @see #getRightUnits() */ public Float getRightValue() { return f0; }
3.26
framework_AbsoluteLayout_replaceComponent_rdh
/** * Replaces one component with another one. The new component inherits the * old components position. */ @Override public void replaceComponent(Component oldComponent, Component newComponent) { ComponentPosition position = getPosition(oldComponent); removeComponent(oldComponent); addComponent(newCo...
3.26
framework_AbsoluteLayout_m0_rdh
/** * Sets the unit for the 'top' attribute. * * @param topUnits * See {@link Sizeable} UNIT_SYMBOLS for a description of the * available units. */ public void m0(Unit topUnits) { this.topUnits = topUnits; markAsDirty(); } /** * Gets the unit for the 'right' attribute. * * @return See {@link Sizeable}
3.26
framework_AbsoluteLayout_setLeftUnits_rdh
/** * Sets the unit for the 'left' attribute. * * @param leftUnits * See {@link Sizeable} UNIT_SYMBOLS for a description of the * available units. */ public void setLeftUnits(Unit leftUnits) { this.leftUnits = leftUnits; markAsDirty(); }
3.26
framework_AbsoluteLayout_getBottomValue_rdh
/** * Gets the 'bottom' attributes value using current units. * * @return The value of the 'bottom' attribute, null if not set * @see #getBottomUnits() */ public Float getBottomValue() { return bottomValue; }
3.26
framework_AbsoluteLayout_setTop_rdh
/** * Sets the 'top' attribute; distance from the top of the component to * the top edge of the layout. * * @param topValue * The value of the 'top' attribute * @param topUnits * The unit of the 'top' attribute. See UNIT_SYMBOLS for a * description of the available units. */ public void setTop(Float topV...
3.26
framework_AbsoluteLayout_setBottomUnits_rdh
/** * Sets the unit for the 'bottom' attribute. * * @param bottomUnits * See {@link Sizeable} UNIT_SYMBOLS for a description of the * available units. */ public void setBottomUnits(Unit bottomUnits) { this.bottomUnits = bottomUnits; markAsDirty(); } /** * Gets the unit for the 'left' attribute. * * @retur...
3.26
framework_AbsoluteLayout_setPosition_rdh
/** * Sets the position of a component in the layout. * * @param component * @param position */ public void setPosition(Component component, ComponentPosition position) { if (!componentToCoordinates.containsKey(component)) { throw new IllegalArgumentException("Component must be a child of this layout")...
3.26
framework_AbsoluteLayout_getTopValue_rdh
/** * Gets the 'top' attributes value in current units. * * @see #getTopUnits() * @return The value of the 'top' attribute, null if not set */ public Float getTopValue() {return topValue; }
3.26
framework_AbsoluteLayout_setBottom_rdh
/** * Sets the 'bottom' attribute; distance from the bottom of the * component to the bottom edge of the layout. * * @param bottomValue * The value of the 'bottom' attribute * @param bottomUnits * The unit of the 'bottom' attribute. See UNIT_SYMBOLS for a * description of the available units. */ public v...
3.26
framework_AbsoluteLayout_setLeft_rdh
/** * Sets the 'left' attribute; distance from the left of the component to * the left edge of the layout. * * @param leftValue * The value of the 'left' attribute * @param leftUnits * The unit of the 'left' attribute. See UNIT_SYMBOLS for a * description of the available units. */ public void setLeft(Fl...
3.26
framework_AbsoluteLayout_setRightValue_rdh
/** * Sets the 'right' attribute value (distance from the right of the * component to the right edge of the layout). Currently active units * are maintained. * * @param rightValue * The value of the 'right' attribute * @see #setRightUnits(Unit) */ public void setRightValue(Float rightValue) { this.f0 = rightV...
3.26
framework_AbsoluteLayout_internalRemoveComponent_rdh
/** * Removes the component from all internal data structures. Does not * actually remove the component from the layout (this is assumed to have * been done by the caller). * * @param c * The component to remove */ private void internalRemoveComponent(Component c) { componentToCoordinates.remove(c); }
3.26
framework_AbsoluteLayout_addComponent_rdh
/** * Adds the component using the given position. Ensures the position is only * set if the component is added correctly. * * @param c * The component to add * @param position * The position info for the component. Must not be null. * @throws IllegalArgumentException * If adding the component failed */...
3.26
framework_AbsoluteLayout_internalSetPosition_rdh
/** * Updates the position for a component. Caller must ensure component is a * child of this layout. * * @param component * The component. Must be a child for this layout. Not enforced. * @param position * New position. Must not be null. */ private void internalSetPosition(Component component, ComponentPos...
3.26
framework_AbsoluteLayout_getCSSString_rdh
/** * Converts the internal values into a valid CSS string. * * @return A valid CSS string */ public String getCSSString() { String s = ""; if (topValue != null) { s += (("top:" + topValue) + topUnits.getSymbol()) + ";"; } if (f0 != null) { s += (("right:" + f0) + rightUnits.getSymbol()) + ";"; } if (bottomValue ...
3.26
framework_AbsoluteLayout_getZIndex_rdh
/** * Gets the 'z-index' attribute. * * @return the zIndex The z-index attribute */ public int getZIndex() { return zIndex; }
3.26
framework_AbsoluteLayout_getLeftValue_rdh
/** * Gets the 'left' attributes value using current units. * * @return The value of the 'left' attribute, null if not set * @see #getLeftUnits() */ public Float getLeftValue() { return leftValue; }
3.26
framework_AbsoluteLayout_setRightUnits_rdh
/** * Sets the unit for the 'right' attribute. * * @param rightUnits * See {@link Sizeable} UNIT_SYMBOLS for a description of the * available units. */ public void setRightUnits(Unit rightUnits) { this.rightUnits = rightUnits; markAsDirty(); } /** * Gets the unit for the 'bottom' attribute. * * @return Se...
3.26
framework_AbsoluteLayout_setBottomValue_rdh
/** * Sets the 'bottom' attribute value (distance from the bottom of the * component to the bottom edge of the layout). Currently active units * are maintained. * * @param bottomValue * The value of the 'bottom' attribute * @see #setBottomUnits(Unit) */ public void setBottomValue(Float bottomValue) { this.bot...
3.26
framework_NativeSelect_setEmptySelectionAllowed_rdh
/** * Sets whether the user is allowed to select nothing in the combo box. When * true, a special empty item is shown to the user. * * @param emptySelectionAllowed * true to allow not selecting anything, false to require * selection * @since 8.0 */ public void setEmptySelectionAllowed(boolean emptySelection...
3.26
framework_NativeSelect_getEmptySelectionCaption_rdh
/** * Returns the empty selection caption. * <p> * The empty string {@code ""} is the default empty selection caption. * * @see #setEmptySelectionAllowed(boolean) * @see #isEmptySelectionAllowed() * @see #setEmptySelectionCaption(String) * @see #isSelected(Object) * @return the empty selection caption, not {@c...
3.26
framework_NativeSelect_setEmptySelectionCaption_rdh
/** * Sets the empty selection caption. * <p> * The empty string {@code ""} is the default empty selection caption. * <p> * If empty selection is allowed via the * {@link #setEmptySelectionAllowed(boolean)} method (it is by default) then * the empty item will be shown with the given caption. * * @param caption...
3.26
framework_NativeSelect_getVisibleItemCount_rdh
/** * Gets the number of items that are visible. If only one item is visible, * then the box will be displayed as a drop-down list. * * @since 8.1 * @return the visible item count */ public int getVisibleItemCount() { return getState(false).visibleItemCount; }
3.26
framework_NativeSelect_setVisibleItemCount_rdh
/** * Sets the number of items that are visible. If only one item is visible, * then the box will be displayed as a drop-down list (the default). * * @since 8.1 * @param visibleItemCount * the visible item count * @throws IllegalArgumentException * if the value is smaller than one */ public void setVisible...
3.26
framework_DefaultDeploymentConfiguration_getSystemProperty_rdh
/** * Gets an system property value. * * @param parameterName * the Name or the parameter. * @return String value or null if not found */ protected String getSystemProperty(String parameterName) { String val = null; String pkgName; final Package pkg = systemPropertyBaseClass.getPackage(); if (pk...
3.26
framework_DefaultDeploymentConfiguration_isCloseIdleSessions_rdh
/** * {@inheritDoc } * <p> * The default value is false. */ @Override public boolean isCloseIdleSessions() { return closeIdleSessions; }
3.26
framework_DefaultDeploymentConfiguration_isSyncIdCheckEnabled_rdh
/** * {@inheritDoc } * <p> * The default value is <code>true</code>. */ @Overridepublic boolean isSyncIdCheckEnabled() { return syncIdCheck; } /** * {@inheritDoc }
3.26
framework_DefaultDeploymentConfiguration_getPushMode_rdh
/** * {@inheritDoc } * <p> * The default mode is {@link PushMode#DISABLED}. */ @Override public PushMode getPushMode() { return pushMode; }
3.26
framework_DefaultDeploymentConfiguration_checkProductionMode_rdh
/** * Log a warning if Vaadin is not running in production mode. */ private void checkProductionMode() { productionMode = m0(Constants.SERVLET_PARAMETER_PRODUCTION_MODE, "false").equals("true"); if (!productionMode) { getLogger().warning(Constants.NOT_PRODUCTION_MODE_INFO); } }
3.26
framework_DefaultDeploymentConfiguration_getResourceCacheTime_rdh
/** * {@inheritDoc } * <p> * The default interval is 3600 seconds (1 hour). */ @Override public int getResourceCacheTime() { return resourceCacheTime; } /** * {@inheritDoc }
3.26
framework_DefaultDeploymentConfiguration_isXsrfProtectionEnabled_rdh
/** * {@inheritDoc } * <p> * The default is true. */ @Override public boolean isXsrfProtectionEnabled() { return xsrfProtectionEnabled; }
3.26
framework_DefaultDeploymentConfiguration_getApplicationProperty_rdh
/** * Gets an application property value. * * @param parameterName * the Name or the parameter. * @return String value or null if not found */ public String getApplicationProperty(String parameterName) { String val = initParameters.getProperty(parameterName); if (val != null) { return val;} ...
3.26
framework_DefaultDeploymentConfiguration_checkXsrfProtection_rdh
/** * Log a warning if cross-site request forgery protection is disabled. */ private void checkXsrfProtection() { xsrfProtectionEnabled = !m0(Constants.SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, "false").equals("true"); if (!xsrfProtectionEnabled) { getLogger().warning(Constants.WARNING_XSRF_PROTECTIO...
3.26
framework_DefaultDeploymentConfiguration_checkResourceCacheTime_rdh
/** * Log a warning if resource cache time is set but is not an integer. */ private void checkResourceCacheTime() { try { resourceCacheTime = Integer.parseInt(m0(Constants.SERVLET_PARAMETER_RESOURCE_CACHE_TIME, Integer.toString(DEFAULT_RESOURCE_CACHE_TIME))); } catch (Numb...
3.26
framework_DefaultDeploymentConfiguration_isProductionMode_rdh
/** * {@inheritDoc } * * The default is false. */ @Overridepublic boolean isProductionMode() { return productionMode; }
3.26
framework_VPopupView_showPopup_rdh
/** * Determines the correct position for a popup and displays the popup at * that position. * * By default, the popup is shown centered relative to its host component, * ensuring it is visible on the screen if possible. * * Can be overridden to customize the popup position. * * @param popup * the popup who...
3.26
framework_VPopupView_onDetach_rdh
/** * Make sure that we remove the popup when the main widget is removed. * * @see com.google.gwt.user.client.ui.Widget#onUnload() */ @Override protected void onDetach() { popup.hide(); super.onDetach();} /* -{ if (e && e.blur) { e.blur(); } }
3.26
framework_VPopupView_preparePopup_rdh
/** * For internal use only. May be removed or replaced in the future. * * @param popup * the popup that should be shown */ public void preparePopup(final CustomPopup popup) { popup.setVisible(true); popup.setWidget(loading); popup.show(); }
3.26
framework_VPopupView_setPopupConnector_rdh
/** * Sets the connector of the popup content widget. Should not be * {@code null}. * * @param newPopupComponent * the connector to set */ public void setPopupConnector(ComponentConnector newPopupComponent) { if (newPopupComponent != popupComponentConnector) { if (popupComponentConnector != null) { ...
3.26
framework_VPopupView_center_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void center() { int windowTop = RootPanel.get().getAbsoluteTop(); int windowLeft = RootPanel.get().getAbsoluteLeft(); int windowRight = windowLeft + RootPanel.get().getOffsetWidth(); int windowBottom = windowTop + Roo...
3.26
framework_VPopupView_setHideOnMouseOut_rdh
/** * Should this popup automatically hide when the user takes the mouse * cursor out of the popup area? If this is {@code false}, the user must * click outside the popup to close it. The default is {@code true}. * * @p...
3.26
framework_AbstractRenderer_getNullRepresentation_rdh
/** * Null representation for the renderer. * * @return a textual representation of {@code null} */ protected String getNullRepresentation() { return nullRepresentation; }
3.26
framework_AbstractRenderer_encode_rdh
/** * Encodes the given value to JSON. * <p> * This is a helper method that can be invoked by an {@link #encode(Object) * encode(T)} override if serializing a value of type other than * {@link #getPresentationType() the presentation type} is desired. For * instance, a {@code Renderer<Date>} could first turn a dat...
3.26
framework_EventRouter_fireEvent_rdh
/** * Sends an event to all registered listeners. The listeners will decide if * the activation method should be called or not. * * @param event * the Event to be sent to all listeners. */ public void fireEvent(EventObject event) { m0(event, null); }
3.26
framework_EventRouter_m0_rdh
/** * Sends an event to all registered listeners. The listeners will decide if * the activation method should be called or not. * <p> * If an error handler is set, the processing of other listeners will * continue after the error handler method call unless the error handler * itself throws an exception. * * @pa...
3.26
framework_EventRouter_addListener_rdh
/** * Registers a new event listener with the specified activation method to * listen events generated by this component. If the activation method does * not have any arguments the event object will not be passed to it when * it's called. * * <p> * This method additionally informs the event-api to stop routing e...
3.26
framework_EventRouter_hasListeners_rdh
/** * Checks if the given Event type is listened by a listener registered to * this router. * * @param eventType * the event type to be checked * @return true if a listener is registered for the given event type */ ...
3.26
framework_Html5File_setStreamVariable_rdh
/** * Sets the {@link StreamVariable} that into which the file contents will be * written. Usage of StreamVariable is similar to {@link Upload} component. * <p> * If the {@link StreamVariable} is not set in the {@link DropHandler} the * file contents will not be sent to server. * <p> * <em>Note!</em> receiving f...
3.26
framework_DesignContext_shouldWriteChildren_rdh
/** * Helper method for component write implementors to determine whether their * children should be written out or not. * * @param c * The component being written * @param defaultC * The default instance for the component * @return whether the children of c should be written */ public boolean shouldWriteC...
3.26