name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
framework_Form_setValidationVisibleOnCommit_rdh
/** * Controls the making validation visible implicitly on commit. * * Having commit() call setValidationVisible(true) implicitly is the default * behavior. You can disable the implicit setting by setting this property * as false. * * It is useful, because you usually want to start with the form free of * error...
3.26
framework_Form_setFormDataSource_rdh
/** * Updates the internal form datasource. * * Method setFormDataSource. * * @param data * @param properties */ protected void setFormDataSource(Object data, Collection<?> properties) { // If data is an item use it. Item item = null; if (data instanceof Item) { item = ((Item) (data));} else ...
3.26
framework_Form_setImmediate_rdh
/** * Setting the form to be immediate also sets all the fields of the form to * the same state. */ @Override public void setImmediate(boolean immediate) { super.setImmediate(immediate); for (Field<?> f : fields.values()) { if (f instanceof AbstractLegacyComponent) { ((AbstractLegacyComp...
3.26
framework_Form_addItemProperty_rdh
/** * Adds a new property to form and create corresponding field. * * @see Item#addItemProperty(Object, Property) */ @Override public boolean addItemProperty(Object id, Property property) { // Checks inputs ...
3.26
framework_Form_setReadOnly_rdh
/** * Sets the component's to read-only mode to the specified state. * * @see Component#setReadOnly(boolean) */ @Override public void setReadOnly(boolean readOnly) { super.setReadOnly(readOnly); for (final Object id : propertyIds) { fields.get(id).setReadOnly(readOnly); } }
3.26
framework_Form_getFirstFocusableField_rdh
/** * Gets the first focusable field in form. If there are enabled, * non-read-only fields, the first one of them is returned. Otherwise, the * field for the first property (or null if none) is returned. * * @return the Field. */ private Field<?> getFirstFocusableField() { Collection<?> itemPropertyIds = getI...
3.26
framework_Form_getType_rdh
/** * Gets the field type. * * @see AbstractField#getType() */ @Override public Class<?> getType() {if (getPropertyDataSource() != null) {return getPropertyDataSource().getType(); } return Object.class; }
3.26
framework_Form_attachField_rdh
/** * Adds the field to the form layout. * <p> * The field is added to the form layout in the default position (the * position used by {@link Layout#addComponent(Component)}. If the * underlying layout is a {@link CustomLayout} the field is added to the * CustomLayout location given by the string representation o...
3.26
framework_Form_detachField_rdh
/** * Called when a form field is detached from a Form. Typically when a new * Item is assigned to Form via {@link #setItemDataSource(Item)}. * <p> * Override this method to control how the fields are removed from the * layout. * </p> * * @param field * the field to be detached from the forms layout. */ pro...
3.26
framework_Form_isValidationVisibleOnCommit_rdh
/** * Is validation made automatically visible on commit? * * See setValidationVisibleOnCommit(). * * @return true if validation is made automatically visible on commit. */ public boolean isValidationVisibleOnCommit() { return validationVisibleOnCommit; }
3.26
framework_Form_setFooter_rdh
/** * Sets the layout that is rendered below normal form contents. No footer is * rendered if this is set to null, . * * @param footer * the new footer layout */ public void setFooter(Layout footer) { if (getFooter() != null) { getFooter().setParent(null); } getState().footer = footer; i...
3.26
framework_Form_setFormFieldFactory_rdh
/** * Sets the field factory used by this Form to genarate Fields for * properties. * * {@link FormFieldFactory} is used to create fields for form properties. * {@link DefaultFieldFactory} is used by default. * * @param fieldFactory * the new factory used to create the fields. * @see Field * @see FormFieldF...
3.26
framework_Form_setInternalValue_rdh
/** * Sets the internal value. * * This is relevant when the Form is used as Field. * * @see AbstractField#setInternalValue(java.lang.Object) */ @Overrideprotected void setInternalValue(Object newValue) { // Stores the old value final Object v45 = propertyValue; // Sets the current Value super.set...
3.26
framework_Form_validate_rdh
/** * Checks the validity of the Form and all of its fields. * * @see Validatable#validate() */ @Override public void validate() throws InvalidValueException { super.validate(); for (final Object id : propertyIds) { fields.get(id).validate(); } }
3.26
framework_Form_setTabIndex_rdh
/** * Sets the Tabulator index of this Focusable component. * * @see Component.Focusable#setTabIndex(int) */ @Override public void setTabIndex(int tabIndex) { super.setTabIndex(tabIndex); for (final Object id : getItemPropertyIds()) { m0(id).setTabIndex(tabIndex); } }
3.26
framework_Form_m0_rdh
/** * Gets the field identified by the propertyid. * * @param propertyId * the id of the property. */ public Field m0(Object propertyId) { return fields.get(propertyId); }
3.26
framework_Form_getLayout_rdh
/** * Gets the layout of the form. * * <p> * By default form uses <code>OrderedLayout</code> with <code>form</code> * -style. * </p> * * @return the Layout of the form. */ public Layout getLayout() { return ((Layout) (getState(false).layout)); }
3.26
framework_Form_bindPropertyToField_rdh
/** * Binds an item property to a field. The default behavior is to bind * property straight to Field. If Property.Viewer type property (e.g. * PropertyFormatter) is already set for field, the property is bound to * that Property.Viewer. * * @param propertyId * @param property * @param field * @since 6.7.3 */...
3.26
framework_Form_setVisibleItemProperties_rdh
/** * Sets the visibleProperties. * * @param visibleProperties * the visibleProperties to set. */ public void setVisibleItemProperties(Object... visibleProperties) { LinkedList<Object> v = new LinkedList<Object>(); for (int i = 0; i < visibleProperties.length; i++) { v.add(visibleProperties[i]);...
3.26
framework_Form_getOwnActionManager_rdh
/* ACTIONS */ /** * Gets the {@link ActionManager} responsible for handling {@link Action}s * added to this Form.<br/> * Note that Form has another ActionManager inherited from * {@link AbstractField}. The ownActionManager handles Actions attached to * this Form specifically, while the ActionManager in AbstractFie...
3.26
framework_Form_isEmpty_rdh
/** * {@inheritDoc } * <p> * A Form is empty if all of its fields are empty. */ @Override public boolean isEmpty() { for (Field<?> f : fields.values()) { if (f instanceof AbstractField) { if (!((AbstractField<?>) (f)).isEmpty()) { return false; } } ...
3.26
framework_Form_getErrorMessage_rdh
/** * The error message of a Form is the error of the first field with a * non-empty error. * * Empty error messages of the contained fields are skipped, because an * empty error indicator would be confusing to the user, especially if there * are errors that have something to display. This is also the reason why ...
3.26
framework_ComponentLocator_isValidForLegacyLocator_rdh
/** * Check if a given selector is valid for LegacyLocatorStrategy. * * @param path * Vaadin selector path * @return true if passes path validation with LegacyLocatorStrategy */ public boolean isValidForLegacyLocator(String path) { for (LocatorStrategy ls : locatorStrategies) { if (ls instanceof LegacyLocatorS...
3.26
framework_ComponentLocator_getClient_rdh
/** * Returns the {@link ApplicationConnection} used by this locator. * <p> * This method is primarily for internal use by the framework. * * @return the application connection */ public ApplicationConnection getClient() { return client; }
3.26
framework_AbstractLegacyComponent_setImmediate_rdh
/** * Sets the component's immediate mode to the specified status. * <p> * Since Vaadin 8, the default mode is immediate. * * @param immediate * the boolean value specifying if the component should be in the * immediate mode after the call. */public void setImmediate(boolean immediate) { explicitImmedi...
3.26
framework_AbstractLegacyComponent_setReadOnly_rdh
/** * Sets the read-only mode of the component to the specified mode. The user * can not change the value of a read-only component. * * <p> * As only {@code AbstractField} or {@code LegacyField} components normally * have a value that can be input or changed by the user, this is mostly * relevant only to field c...
3.26
framework_VTextualDate_buildDate_rdh
/** * Updates the text field according to the current date (provided by * {@link #getDate()}). Takes care of updating text, enabling and disabling * the field, setting/removing readonly status and updating readonly styles. * <p> * For internal use only. May be removed or replaced in the future. * <p> * TODO: Spl...
3.26
framework_ColorPickerHistory_addColorChangeListener_rdh
/** * Adds a color change listener. * * @param listener * The listener */ @Override public void addColorChangeListener(ColorChangeListener listener) { addListener(ColorChangeEvent.class, listener, COLOR_CHANGE_METHOD); }
3.26
framework_ColorPickerHistory_removeColorChangeListener_rdh
/** * Removes a color change listener. * * @param listener * The listener */ @Override public void removeColorChangeListener(ColorChangeListener listener) { removeListener(ColorChangeEvent.class, listener);}
3.26
framework_ColorPickerHistory_getHistory_rdh
/** * Gets the history. * * @return the history */ public List<Color> getHistory() {ArrayBlockingQueue<Color> colorHistory = getColorHistory(); Color[] array = colorHistory.toArray(new Color[colorHistory.size()]); return Collections.unmodifiableList(Arrays.asList(array)); }
3.26
framework_ColorPickerHistory_hasColor_rdh
/** * Checks if the history contains given color. * * @param c * the color * @return true, if successful */ public boolean hasColor(Color c) { return getColorHistory().contains(c); }
3.26
framework_FocusableScrollPanel_setScrollPosition_rdh
/** * Sets the vertical scroll position. * * @param position * the new vertical scroll position, in pixels */ public void setScrollPosition(int position) { if (BrowserInfo.get().isAndroidWithBrokenScrollTop() && BrowserInfo.get().requiresTouchScrollDelegate()) { List<Element> elements = TouchScrollDelegate.get...
3.26
framework_FocusableScrollPanel_moveFocusElementAfterWidget_rdh
/** * Helper to keep focus element always in domChild[1]. Aids testing. */ private void moveFocusElementAfterWidget() { getElement().insertAfter(focusElement, getWidget().getElement()); }
3.26
framework_FocusableScrollPanel_getScrollPosition_rdh
/** * Gets the vertical scroll position. * * @return the vertical scroll position, in pixels */ public int getScrollPosition() { if (getElement().getPropertyJSO("_vScrollTop") != null) { return getElement().getPropertyInt("_vScrollTop"); } else { return getElement().getScrollTop(); } }
3.26
framework_FocusableScrollPanel_setHorizontalScrollPosition_rdh
/** * Sets the horizontal scroll position. * * @param position * the new horizontal scroll position, in pixels */public void setHorizontalScrollPosition(int position) { getElement().setScrollLeft(position); }
3.26
framework_FocusableScrollPanel_getHorizontalScrollPosition_rdh
/** * Gets the horizontal scroll position. * * @return the horizontal scroll position, in pixels */ public int getHorizontalScrollPosition() { return getElement().getScrollLeft(); }
3.26
framework_DropTargetExtension_setDropCriteria_rdh
/** * Sets multiple drop criteria to allow drop on this drop target. When data * is dragged on top of the drop target, the value of the given criteria is * compared to the drag source's payload with the same key. * <p> * The drag passes these criteria if, depending on {@code match}, any or all * of the criteria m...
3.26
framework_DropTargetExtension_setDropEffect_rdh
/** * Sets the drop effect for the current drop target. This is set to the * dropEffect on {@code dragenter} and {@code dragover} events. * <p> * <em>NOTE: If the drop effect that doesn't match the dropEffect / * effectAllowed of the drag source, it DOES NOT prevent drop on IE and * Sa...
3.26
framework_DropTargetExtension_setDropCriteriaScript_rdh
/** * Sets a criteria script in JavaScript to allow drop on this drop target. * The script is executed when something is dragged on top of the target, * and the drop is not allowed in case the script returns {@code false}. * <p> * Drop will be allowed if it passes both this criteria script and the * criteria set ...
3.26
framework_DropTargetExtension_onDrop_rdh
/** * Invoked when a <code>drop</code> has been received from client side. * Fires the {@link DropEvent}. * * @param types * List of data types from {@code DataTransfer.types} object. * @param data * Map containing all types and corresponding data from the * {@code DataTransfer} object. * @param dropEffe...
3.26
framework_DropTargetExtension_getParent_rdh
/** * Returns the component this extension is attached to. * * @return Extended component. */ @Override @SuppressWarnings("unchecked") public T getParent() { return ((T) (super.getParent())); }
3.26
framework_DropTargetExtension_setDropCriterion_rdh
/** * Set a drop criterion to allow drop on this drop target. When data is * dragged on top of the drop target, the given value is compared to the * drag source's payload with the same key. The drag passes this criterion * if the value of the payload compared to the given value using the given * operator holds. *...
3.26
framework_DropTargetExtension_registerDropTargetRpc_rdh
/** * Registers the server side RPC methods invoked from client side on * <code>drop</code> event. * <p> * Override this method if you need to have a custom RPC interface for * transmitting the drop event with more data. If just need to do additional * things before firing the drop event, then you should override...
3.26
framework_DropTargetExtension_addDropListener_rdh
/** * Attaches drop listener for the current drop target. * {@link DropListener#drop(DropEvent)} is called when drop event happens on * the client side. * * @param listener * Listener to handle drop event. * @return Handle to be used to remove this listener. */public Registration addDropListener(DropListener<...
3.26
framework_WindowElement_move_rdh
/** * Moves the window by given offset. * * @param xOffset * x offset * @param yOffset * y offset */ public void move(int xOffset, int yOffset) { Actions action = new Actions(getDriver()); action.moveToElement(findElement(selenium.By.className("v-window-wrap")), 5, 5); action.clickAndHold(); ...
3.26
framework_WindowElement_m0_rdh
/** * Check if this window is currently maximized. */ public boolean m0() { return isElementPresent(By.className(RESTORE_BOX_CLASS)); }
3.26
framework_WindowElement_restore_rdh
/** * Clicks the restore button of the window. */ public void restore() { if (m0()) { getRestoreButton().click(); } else { throw new IllegalStateException("Window is not maximized, cannot be restored."); } }
3.26
framework_WindowElement_close_rdh
/** * Clicks the close button of the window. */public void close() { getCloseButton().click(); }
3.26
framework_WindowElement_maximize_rdh
/** * Clicks the maximize button of the window. */ public void maximize() { if (!m0()) { getMaximizeButton().click(); } else { throw new IllegalStateException("Window is already maximized, cannot maximize."); }}
3.26
framework_AbstractField_setReadOnly_rdh
/** * {@inheritDoc } * <p> * The server ignores (potentially forged) value change requests from the * client to fields that are read-only. Programmatically changing the field * value via {@link #setValue(T)} is still possible. * <p> * The read-only mode is distinct from the * {@linkplain Component#setEnabled(bo...
3.26
framework_AbstractField_createValueChange_rdh
/** * Returns a new value change event instance. * * @param oldValue * the value of this field before this value change event * @param userOriginated * {@code true} if this event originates from the client, * {@code false} otherwise. * @return the new event */ protected ValueChangeEvent<T> createValueCha...
3.26
framework_WrappedPortletSession_getAttribute_rdh
/** * Returns the object bound with the specified name in this session, or * <code>null</code> if no object is bound under the name in the given * scope. * * @param name * a string specifying the name of the object * @param scope * session scope of this attribute * @return the object with the specified nam...
3.26
framework_WrappedPortletSession_removeAttribute_rdh
/** * Removes the object bound with the specified name and the given scope from * this session. If the session does not have an object bound with the * specified name, this method does nothing. * * @param name * the name of the object to be removed from this session * @param sco...
3.26
framework_WrappedPortletSession_setAttribute_rdh
/** * Binds an object to this session in the given scope, using the name * specified. If an object of the same name in this scope is already bound * to the session, that object is replaced. * * <p> * If the value is <code>null</code>, this has the same effect as calling * <code>removeAttribute()</code>. * * @p...
3.26
framework_MethodPropertyDescriptor_writeObject_rdh
/* Special serialization to handle method references */ private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); SerializerHelper.writeClass(out, propertyType); if (writeMethod != null) { out.writeObject(writeMethod.getName()); ...
3.26
framework_MethodPropertyDescriptor_readObject_rdh
/* Special serialization to handle method references */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); try { // business assumption; type parameters not checked at runtime @SuppressWarnings("unchecked") Class<BT> class1 ...
3.26
framework_GeneratedPropertyContainer_nextItemId_rdh
/* Unmodified functions */ @Override public Object nextItemId(Object itemId) { return wrappedContainer.nextItemId(itemId); }
3.26
framework_GeneratedPropertyContainer_addItemAfter_rdh
/* Item related overrides */ @Override public Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException { Item item = wrappedContainer.addItemAfter(previousItemId, newItemId); if (item == null) { ...
3.26
framework_GeneratedPropertyContainer_getType_rdh
/* Type related overrides */ @Override public Class<?> getType(Object propertyId) { if (propertyGenerators.containsKey(propertyId)) { return propertyGenerators.get(propertyId).getType(); } else { return wrappedContainer.getType(propertyId);} }
3.26
framework_GeneratedPropertyContainer_removeGeneratedProperty_rdh
/** * Removes any possible PropertyValueGenerator with given property id. Fires * a PropertySetChangeEvent. * * @param propertyId * property id */ public void removeGeneratedProperty(Object propertyId) { if (propertyGenerators.containsKey(propertyId)) { propertyGenerators.remove(propertyId); fireContainerProper...
3.26
framework_GeneratedPropertyContainer_addGeneratedProperty_rdh
/* Functions related to generated properties */ /** * Add a new PropertyValueGenerator with given property id. This will * override any existing properties with the same property id. Fires a * PropertySetChangeEvent. * * @param propertyId * property id * @param generator * a property value generator */ pub...
3.26
framework_GeneratedPropertyContainer_removeContainerProperty_rdh
/** * Marks the given property as hidden. This property from wrapped container * will be removed from {@link #getContainerPropertyIds()} and is no longer * be available in Items retrieved from this container. */ @Override public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException...
3.26
framework_GeneratedPropertyContainer_addContainerFilter_rdh
/* Filtering functionality */ @Override public void addContainerFilter(Filter filter) throws UnsupportedFilterException {if (filterableContainer == null) { throw new UnsupportedOperationException("Wrapped container is not filterable"); } List<Filter> addedFilters = new ArrayList<Filter>(); f...
3.26
framework_GeneratedPropertyContainer_getWrappedItem_rdh
/** * Returns the wrapped Item that belongs to the wrapped container. * * @return wrapped item. * @since 7.6.8 */ public Item getWrappedItem() { return wrappedItem; }
3.26
framework_GeneratedPropertyContainer_addContainerProperty_rdh
/** * Adds a previously removed property back to GeneratedPropertyContainer. * Adding a property that is not previously removed causes an * UnsupportedOperationException. */ @Override public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { ...
3.26
framework_GeneratedPropertyContainer_getContainerPropertyIds_rdh
/** * Returns a list of propety ids available in this container. This * collection will contain properties for generated properties. Removed * properties will not show unless there is a generated property overriding * those. */ @Override public Collec...
3.26
framework_GeneratedPropertyContainer_addItemSetChangeListener_rdh
/* Listener functionality */ @Override public void addItemSetChangeListener(ItemSetChangeListener listener) { super.addItemSetChangeListener(listener); }
3.26
framework_GeneratedPropertyContainer_sort_rdh
/* Sorting functionality */ @Override public void sort(Object[] propertyId, boolean[] ascending) { if (sortableContainer == null) { throw new UnsupportedOperationException("Wrapped container is not Sortable"); } if (propertyId.length == 0) { sortableContainer.sort(propertyId, asce...
3.26
framework_GeneratedPropertyContainer_getWrappedContainer_rdh
/** * Returns the original underlying container. * * @return the original underlying container */ public Indexed getWrappedContainer() { return wrappedContainer; }
3.26
framework_GeneratedPropertyContainer_getContainerProperty_rdh
/* Property related overrides */ @Override public Property<?> getContainerProperty(Object itemId, Object propertyId) { if (propertyGenerators.keySet().contains(propertyId)) { return getItem(itemId).getItemProperty(propertyId); } else if (!removedProperties.contains(propertyId)) { return wrappedC...
3.26
framework_VLayoutSlot_reportActualRelativeHeight_rdh
/** * Override this method to report the expected outer height to the * LayoutManager. By default does nothing. * * @param allocatedHeight * the height to set (including margins, borders and paddings) in * pixels */protected void reportActualRelativeHeight(int allocatedHeight) { // Default implementatio...
3.26
framework_VLayoutSlot_positionVertically_rdh
/** * Position the slot vertically and set the height and the bottom margin. * * @param currentLocation * the top position for this slot * @param allocatedSpace * how much vertical space is available for this slot * @param marginBottom * the bottom margin this slot should have (removed if negative) */ pu...
3.26
framework_VLayoutSlot_getWidget_rdh
/** * Returns the widget that this slot contains. * * @return the child widget, cannot be {@code null} */ public Widget getWidget() { return widget; } /** * Sets the alignment data for this slot. * * @param alignment * the alignment data, can be {@code null}
3.26
framework_VLayoutSlot_positionHorizontally_rdh
/** * Position the slot horizontally and set the width and the right margin. * * @param currentLocation * the left position for this slot * @param allocatedSpace * how much horizontal space is available for this slot * @param marginRight * the right margin this slot should have (removed if negative) */ p...
3.26
framework_VLayoutSlot_getUsedSizeInDirection_rdh
/** * Returns how much vertical or horizontal space the widget and its caption * use depending on the indicated direction. * * @param isVertical * {@code true} if the requested dimension is height, * {@code false} if width * @return the height or the width of the contents in pixels */ public int getUsedSize...
3.26
framework_VLayoutSlot_getWrapperElement_rdh
/** * Returns the wrapper element for the contents of this slot. * * @return the wrapper element */ @SuppressWarnings("deprecation") public Element getWrapperElement() { return DOM.asOld(wrapper); }
3.26
framework_VLayoutSlot_getAlignment_rdh
/** * Returns the alignment data for this slot. * * @return the alignment data, can be {@code null} */ public AlignmentInfo getAlignment() { return alignment; }
3.26
framework_VLayoutSlot_getUsedHeight_rdh
/** * Returns how much vertical space the widget and its caption use. * * @return the height of the contents in pixels */ public int getUsedHeight() {int v26 = getWidgetHeight(); if (caption == null) { return v26; } else if (caption.shouldBePlacedAfterComponent()) { return Math.max(v26, getC...
3.26
framework_VLayoutSlot_getCaption_rdh
/** * Returns the caption element for this slot. * * @return the caption element, can be {@code null} */ public VCaption getCaption() { return caption; }
3.26
framework_VLayoutSlot_getWidgetSizeInDirection_rdh
/** * Returns the widget's height if the indicated direction is vertical, and * width if horizontal. * * @param isVertical * {@code true} if the requested dimension is height, * {@code false} if width * @return the widget height or width depending on the indicated direction */ public int getWidgetSizeInDi...
3.26
framework_VLayoutSlot_positionInDirection_rdh
/** * Position the slot vertically and set the height and the bottom margin, or * horizontally and set the width and the right margin, depending on the * indicated direction. * * @param currentLocation * the top position or the left position for this slot depending * on the indicated direction * @param allo...
3.26
framework_VLayoutSlot_setCaption_rdh
/** * Sets the caption element for this slot. * * @param caption * the caption element, can be {@code null} */ public void setCaption(VCaption caption) { if (this.caption != null) { this.caption.removeFromParent(); } this.caption = caption; if (caption != null) { // Physical at...
3.26
framework_VLayoutSlot_reportActualRelativeWidth_rdh
/** * Override this method to report the expected outer width to the * LayoutManager. By default does nothing. * * @param allocatedWidth * the width to set (including margins, borders and paddings) in * pixels */ protected void reportActualRelativeWidth(int allocatedWidth) { // Default implementation doe...
3.26
framework_VLayoutSlot_setExpandRatio_rdh
/** * Set how the slot should be expanded relative to the other slots. * * @param expandRatio * The ratio of the space the slot should occupy * @deprecated this value isn't used for anything by default */ @Deprecated public void setExpandRatio(double expandRatio) { this.f0 = expandRatio; }
3.26
framework_VLayoutSlot_getUsedWidth_rdh
/** * Returns how much horizontal space the widget and its caption use. * * @return the width of the contents in pixels */ public int getUsedWidth() { int widgetWidth = getWidgetWidth(); if (caption == null) {return widgetWidth; } else if (caption.shouldBePlacedAfterComponent()) { return w...
3.26
framework_LayoutManager_getPaddingLeft_rdh
/** * Gets the left padding of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has ...
3.26
framework_LayoutManager_m2_rdh
/** * Marks that a ManagedLayout should be layouted vertically in the next * layout phase even if none of the elements managed by the layout have been * resized vertically. * <p> * For SimpleManagedLayout which is always layouted in both directions, this * has the same effect as {@link #setNeedsLayout(ManagedLayo...
3.26
framework_LayoutManager_getMarginLeft_rdh
/** * Gets the left margin of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has r...
3.26
framework_LayoutManager_addElementResizeListener_rdh
/** * Adds a listener that will be notified whenever the size of a specific * element changes. Adding a listener to an element also ensures that all * sizes for that element will be available starting from the next layout * phase. * * @param element * the element that should be checked for size changes * @par...
3.26
framework_LayoutManager_setNeedsHorizontalLayout_rdh
/** * Marks that a ManagedLayout should be layouted horizontally in the next * layout phase even if none of the elements managed by the layout have been * resized horizontally. * <p> * For SimpleManagedLayout which is always layouted in both directions, this * has the same effect as {@link #setNeedsLayout(Managed...
3.26
framework_LayoutManager_reportWidthAssignedToRelative_rdh
/** * Registers the width reserved for a relatively sized component. This can * be used as an optimization by ManagedLayouts; by informing the * LayoutManager about what size a component will have, the layout * propagation can continue directly without first measuring the potentially * resized elements. * * @par...
3.26
framework_LayoutManager_getBorderLeft_rdh
/** * Gets the left border of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has r...
3.26
framework_LayoutManager_getMarginTop_rdh
/** * Gets the top margin of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has r...
3.26
framework_LayoutManager_reportHeightAssignedToRelative_rdh
/** * Registers the height reserved for a relatively sized component. This can * be used as an optimization by ManagedLayouts; by informing the * LayoutManager about what size a component will have, the layout * propagation can continue directly without first measuring the potentially * resized elements. * * @pa...
3.26
framework_LayoutManager_registerDependency_rdh
/** * Registers that a ManagedLayout is depending on the size of an Element. * This causes this layout manager to measure the element in the beginning * of every layout phase and call the appropriate layout method of the * managed layout if the size of the element has changed. * * @param owner * the ManagedLay...
3.26
framework_LayoutManager_getMarginBottom_rdh
/** * Gets the bottom margin of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has...
3.26
framework_LayoutManager_getBorderTop_rdh
/** * Gets the top border of the given element, provided that it has been * measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one ManagedLayout has re...
3.26
framework_LayoutManager_setThoroughSizeChck_rdh
/** * Set whether the measuring should use a thorough size check that evaluates * the presence of the element and uses calculated size, or default to a * slightly faster check that can result in incorrect size information if * the check is triggered while a transform animation is ongoing. This can * happen e.g. wh...
3.26
framework_LayoutManager_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) { if (this.connection != null) { throw new R...
3.26
framework_LayoutManager_getMarginHeight_rdh
/** * Gets the combined top & bottom margin of the given element, provided that * they have been measured. These elements are guaranteed to be measured: * <ul> * <li>ManagedLayouts and their child Connectors * <li>Elements for which there is at least one ElementResizeListener * <li>Elements for which at least one...
3.26