name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_Overlay_setWidth_rdh | /**
* Sets the pixel value for width css property.
*
* @param width
* value to set
*/
public void setWidth(int width) {if (width < 0) {
width = 0;
}
this.width =
width;
} | 3.26 |
framework_Overlay_setOwner_rdh | /**
* Set owner (Widget that made this Overlay, not the layout parent) of
* Overlay.
*
* @param owner
* Owner (creator) of Overlay
*/
public void setOwner(Widget owner) {
this.owner = owner;
} | 3.26 |
framework_Overlay_m1_rdh | /**
*
* @deprecated Call {@link #positionOrSizeUpdated()} instead.
*/
@Deprecated
protected void m1() {
positionOrSizeUpdated();
} | 3.26 |
framework_Overlay_setTop_rdh | /**
* Sets the pixel value for top css property.
*
* @param top
* value to set
*/
public void setTop(int top) {
this.top = top;
} | 3.26 |
framework_Overlay_setZIndex_rdh | /**
* Set the z-index (visual stack position) for this overlay.
*
* @param zIndex
* The new z-index
*/
protected void setZIndex(int zIndex) {
getElement().getStyle().setZIndex(zIndex);
} | 3.26 |
framework_Overlay_needsShimElement_rdh | /**
* Returns true if we should add a shim iframe below the overlay to deal
* with zindex issues with PDFs and applets. Can be overridden to disable
* shim iframes if they are not needed.
*
* @return true if a shim iframe should be added, false otherwise
*/
protected boolean needsShimElement() {
BrowserInfo ... | 3.26 |
framework_Overlay_hide_rdh | /**
* Hides the popup and detaches it from the page. This has no effect if it
* is not currently showing. Animation-in, animation-out can be
* enable/disabled for different use cases.
*
* @see com.google.gwt.user.client.ui.PopupPanel#hide(boolean)
* @param autoClosed
* the value that will be passed to
* {@l... | 3.26 |
framework_Overlay_getOverlayContainer_rdh | /**
* Gets the 'overlay container' element.
*
* @return the overlay container element
*/
public Element getOverlayContainer() {
return RootPanel.get().getElement();
} | 3.26 |
framework_Overlay_setAnimationFromCenterProgress_rdh | /**
* Offset the set values from center by given progress to create the
* state of a single animation frame. Each frame needs to be initialized
* from the beginning, since calling this method for a second time
* without resetting the size and position values would lead to
* incorrect end re... | 3.26 |
framework_Overlay_getOwner_rdh | /**
* Get owner (Widget that made this Overlay, not the layout parent) of
* Overlay.
*
* @return Owner (creator) or null if not defined
*/
public Widget getOwner() {
return owner;} | 3.26 |
framework_BeanUtil_checkSerialization_rdh | /**
* Checks if the object is serializable or not. To be used in assertion
* checks only, since the check might be a bit heavyweight.
*
* @param obj
* to be checked
* @return {@code true}
* @throws AssertionError
* if the object is not serializable
*/
public static boolean checkSerialization(Object obj) {
... | 3.26 |
framework_BeanUtil_getPropertyDescriptors_rdh | // Workaround for Java6 bug JDK-6788525. Do nothing for JDK7+.
private static List<PropertyDescriptor> getPropertyDescriptors(BeanInfo beanInfo) {
PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors();
List<PropertyDescriptor> result = new ArrayList<>(descriptors.length);
for (PropertyDescrip... | 3.26 |
framework_BeanUtil_getMethodFromBridge_rdh | /**
* Return declared method for which {@code bridgeMethod} is generated using
* its {@code paramTypes}. If {@code bridgeMethod} is not a bridge method
* then return null.
*/
private static Method getMethodFromBridge(Method bridgeMethod, Class<?>... paramTypes) throws SecurityException {
if ((bridgeMethod
=... | 3.26 |
framework_BeanUtil_getBeanPropertyDescriptors_rdh | /**
* Returns the property descriptors of a class or an interface.
*
* For an interface, superinterfaces are also iterated as Introspector does
* not take them into account (Oracle Java bug 4275879), but in that case,
* both the setter and the getter for a property must be in the same
* interface and should not b... | 3.26 |
framework_BeanUtil_getPropertyDescriptor_rdh | /**
* Returns the property descriptor for the property of the given name and
* declaring class. The property name may refer to a nested property, e.g.
* "property.subProperty" or "property.subProperty1.subProperty2". The
* property must have a public read method (or a chain of read methods in
* case of a nested pr... | 3.26 |
framework_FocusableComplexPanel_makeFocusable_rdh | /**
* A ComplexPanel that can be focused.
*
* @since 7.1
* @author Vaadin Ltd.
*/public class FocusableComplexPanel extends ComplexPanel implements HasFocusHandlers , HasBlurHandlers , HasKeyDownHandlers , HasKeyPressHandlers , Focusable {
protected void makeFocusable() { // make focusable, as we don't need a... | 3.26 |
framework_FocusableComplexPanel_setFocus_rdh | /**
* Sets/Removes the keyboard focus to the panel.
*
* @param focus
* If set to true then the focus is moved to the panel, if set to
* false the focus is removed
*/
public void setFocus(boolean focus) {
if (focus) {
FocusImpl.getFocusImplForPanel().focus(getElement());
} else {
Focu... | 3.26 |
framework_BeanFieldGroup_bindFieldsBuffered_rdh | /**
* Convenience method to bind Fields from a given "field container" to a
* given bean with buffering enabled.
* <p>
* The returned {@link BeanFieldGroup} can be used for further
* configuration.
*
* @see #bindFieldsUnbuffered(Object, Object)
* @see #bindMemberFields(Object)
* @since 7.2
* @param bean
* ... | 3.26 |
framework_BeanFieldGroup_isBeanValidationImplementationAvailable_rdh | /**
* Checks whether a bean validation implementation (e.g. Hibernate Validator
* or Apache Bean Validation) is available.
*
* TODO move this method to some more generic location
*
* @return true if a JSR-303 bean validation implementation is available
*/
protected static boolean isBeanValidationImplementation... | 3.26 |
framework_BeanFieldGroup_setItemDataSource_rdh | /**
* Helper method for setting the data source directly using a bean. This
* method wraps the bean in a {@link BeanItem} and calls
* {@link #setItemDataSource(Item)}.
* <p>
* For null values, a null item is passed to
* {@link #setItemDataSource(Item)} to be properly clear fields.
*
* @param bean
* The bean ... | 3.26 |
framework_BeanFieldGroup_bindFieldsUnbuffered_rdh | /**
* Convenience method to bind Fields from a given "field container" to a
* given bean with buffering disabled.
* <p>
* The returned {@link BeanFieldGroup} can be used for further
* configuration.
*
* @see #bindFieldsBuffered(Object, Object)
* @see #bindMemberFields(Object)
* @since 7.2
* @param bean
* t... | 3.26 |
framework_TestSizeableIncomponents_getComponent_rdh | /**
* Instantiates and populates component with test data to be ready for
* testing.
*
* @return * @throws InstantiationException
* @throws IllegalAccessException
*/
public Component getComponent() throws InstantiationException, IllegalAccessExcepti... | 3.26 |
framework_WindowsCssTest_createWindowWith_rdh | /**
*
* @param caption
* @param primaryStyleName
* - the style defined styleName
* @param styleName
* - the user defined styleName
* @return */
private void createWindowWith(String caption, String primaryStyleName, String
styleName) {
Window window = new Window();
VerticalLayout v6 = new VerticalLa... | 3.26 |
framework_TabsheetConnector_renderContent_rdh | /**
* (Re-)render the content of the active tab.
*/
protected void renderContent() {
ComponentConnector contentConnector = null;if (!getChildComponents().isEmpty()) {
contentConnector = getChildComponents().get(0);
}
if (null != contentConnector) {getWidget().renderContent(contentConnector.getWidg... | 3.26 |
framework_GridLayout_insertRow_rdh | /**
* Inserts an empty row at the specified position in the grid.
*
* @param row
* Index of the row before which the new row will be inserted.
* The leftmost row has index 0.
*/
public void insertRow(int row) {
if (row > getRows()) {
throw new IllegalArgumentException((("Cannot insert row at " + row) + " in a... | 3.26 |
framework_GridLayout_setCursorX_rdh | /**
* Sets the current cursor x-position. This is usually handled automatically
* by GridLayout.
*
* @param cursorX
* current cursor x-position
*/
public void setCursorX(int cursorX) {
this.cursorX = cursorX;
} | 3.26 |
framework_GridLayout_removeComponent_rdh | /**
* Removes the component specified by its cell coordinates.
*
* @param column
* the component's column, starting from 0.
* @param row
* the component's row, starting from 0.
*/
public void removeComponent(int column, int row) {
// Finds the area
for (final Component component : components) {
... | 3.26 |
framework_GridLayout_setColumnExpandRatio_rdh | /**
* Sets the expand ratio of given column.
*
* <p>
* The expand ratio defines how excess space is distributed among columns.
* Excess space means space that is left over from components that are not
* sized relatively. By default, the excess space is distributed evenly.
* </p>
*
* <p>
* Note, that width of ... | 3.26 |
framework_GridLayout_addComponent_rdh | /**
* Adds the component into this container to the cursor position. If the
* cursor position is already occupied, the cursor is moved forwards to find
* free position. If the cursor goes out from the bottom of the grid, the
* grid is automatically extended.
*
* @param component
* the component to be added, no... | 3.26 |
framework_GridLayout_getCursorY_rdh | /**
* Gets the current y-position (row) of the cursor.
*
* <p>
* The cursor position points the position for the next component that is
* added without specifying its coordinates (grid cell). When the cursor
* position is occupied, the next component will be added to the first free
* position after the cursor.
... | 3.26 |
framework_GridLayout_newLine_rdh | /**
* Forces the next component to be added at the beginning of the next line.
*
* <p>
* Sets the cursor column to 0 and increments the cursor row by one.
* </p>
*
* <p>
* By calling this function you can ensure that no more components are added
* right of the previous component.
* </p>
*
* @see #space()
*... | 3.26 |
framework_GridLayout_checkExistingOverlaps_rdh | /**
* Tests if the given area overlaps with any of the items already on the
* grid.
*
* @param area
* the Area to be checked for overlapping.
* @throws OverlapsException
* if <code>area</code> overlaps with any existing area.
*/
private void checkExistingOverlaps(Area area) throws OverlapsException {
fo... | 3.26 |
framework_GridLayout_m2_rdh | /**
* Sets the number of columns in the grid. The column count can not be
* reduced if there are any areas that would be outside of the shrunk grid.
*
* @param columns
* the new number of columns in the grid.
*/
public void m2(int columns) {
// The the param
if (columns < 1) {
throw new IllegalA... | 3.26 |
framework_GridLayout_getRowExpandRatio_rdh | /**
* Returns the expand ratio of given row.
*
* @see #setRowExpandRatio(int, float)
* @param rowIndex
* The row index, starting from 0 for the topmost row.
* @return the expand ratio, 0.0f by default
*/
public float getRowExpandRatio(int rowIndex) {
Float r = rowExpandRatio.get(rowIndex);
return r == null ? 0... | 3.26 |
framework_GridLayout_space_rdh | /**
* Moves the cursor forward by one. If the cursor goes out of the right grid
* border, it is moved to the first column of the next row.
*
* @see #newLine()
*/
public void space() {
cursorX++;
if (cursorX >=
getColumns()) {
cursorX = 0;
f0++;
}
} | 3.26 |
framework_GridLayout_getComponentCount_rdh | /**
* Gets the number of components contained in the layout. Consistent with
* the iterator returned by {@link #getComponentIterator()}.
*
* @return the number of contained components
*/
@Override
public int getComponentCount()
{
return components.size();
} | 3.26 |
framework_GridLayout_setCursorY_rdh | /**
* Sets the current y-coordinate (row) of the cursor. This is usually
* handled automatically by GridLayout.
*
* @param cursorY
* the row number, starting from 0 for the topmost row.
*/
public void setCursorY(int cursorY) {
this.f0 = cursorY;
} | 3.26 |
framework_GridLayout_getColumnExpandRatio_rdh | /**
* Returns the expand ratio of given column.
*
* @see #setColumnExpandRatio(int, float)
* @param columnIndex
* The column index, starting from 0 for the leftmost row.
* @return the expand ratio, 0.0f by default
*/
public float getColumnExpandRatio(int columnIndex) {
Float r = columnExpandRatio.get(columnInd... | 3.26 |
framework_GridLayout_setHideEmptyRowsAndColumns_rdh | /**
* Sets whether empty rows and columns should be considered as non-existent
* when rendering or not. If this is set to true then the spacing between
* multiple empty columns (or rows) will be collapsed.
*
* The default behavior is to consider all rows and columns as visible
*
* NOTE that this must be set befo... | 3.26 |
framework_GridLayout_setRows_rdh | /**
* Sets the number of rows in the grid. The number of rows can not be
* reduced if there are any areas that would be outside of the shrunk grid.
*
* @param rows
* the new number of rows in the grid.
*/
public void setRows(int rows) {
// The the param
if (rows < 1) {
throw new IllegalArgumentE... | 3.26 |
framework_GridLayout_writeEmptyColsAndRows_rdh | /**
* Fills in the design with rows and empty columns. This needs to be done
* for empty {@link GridLayout}, because there's no other way to serialize
* info about number of columns and rows if there are absolutely no
* components in the {@link GridLayout}
*
* @param design
*/
private void writeEmptyColsAndRows(... | 3.26 |
framework_GridLayout_removeRow_rdh | /**
* Removes a row and all the components in the row.
*
* <p>
* Components which span over several rows are removed if the selected row
* is on the first row of such a component.
* </p>
*
* <p>
* If the last row is removed then all remaining components will be removed
* and the grid will be reduced to one ro... | 3.26 |
framework_GridLayout_getComponent_rdh | /**
* Gets the Component at given index.
*
* @param x
* The column index, starting from 0 for the leftmost column.
* @param y
* The row index, starting from 0 for the topmost row.
* @return Component in given cell or null if empty
*/
public Component getComponent(int x, int y)
{
for (Entry<Connector, ChildC... | 3.26 |
framework_GridLayout_getArea_rdh | /**
* Gets the area that is out of bounds.
*
* @return the area out of Bound.
*/
public Area getArea() {
return areaOutOfBounds;
} | 3.26 |
framework_GridLayout_isHideEmptyRowsAndColumns_rdh | /**
* Checks whether whether empty rows and columns should be considered as
* non-existent when rendering or not.
*
* @see #setHideEmptyRowsAndColumns(boolean)
* @since 7.3
* @return true if empty rows and columns are hidden, false otherwise
*/
public boolean isHideEmptyRowsAndColumns() {
return getState(false).... | 3.26 |
framework_GridLayout_getColumn1_rdh | /**
* Gets the column of the top-left corner cell.
*
* @return the column of the top-left corner cell.
*/
public int getColumn1() {
return childData.column1;
} | 3.26 |
framework_GridLayout_replaceComponent_rdh | /* Documented in superclass */
@Override
public void replaceComponent(Component oldComponent,
Component newComponent)
{
// Gets the locations
ChildComponentData oldLocation = m0().childData.get(oldComponent);
ChildComponentData newLocation = m0().childData.get(newComponent);
if (oldLocation == null) {
... | 3.26 |
framework_GridLayout_getColumns_rdh | /**
* Get the number of columns in the grid.
*
* @return the number of columns in the grid.
*/
public int getColumns() {
return getState(false).columns;} | 3.26 |
framework_GridLayout_setRowExpandRatio_rdh | /**
* Sets the expand ratio of given row.
*
* <p>
* Expand ratio defines how excess space is distributed among rows. Excess
* space means the space left over from components that are not sized
* relatively. By default, the excess space is distributed evenly.
* </p>
*
* <p>
* Note, that height of this GridLayo... | 3.26 |
framework_GridLayout_readDesign_rdh | /**
* {@inheritDoc }
* <p>
* After reading the design, cursorY is set to point to a row outside of the
* GridLayout area. CursorX is reset to 0.
*/
@Override
public void readDesign(Element design, DesignContext designContext) {
super.readDesign(design, designContext);
setMargin(readMargin(design, getMargin(), desi... | 3.26 |
framework_InMemoryDataProvider_filteringByEquals_rdh | /**
* Wraps this data provider to create a new data provider that is filtered
* by testing whether the value of a property is equals to the filter value
* provided in the query. Equality is tested using
* {@link Objects#equals(Object, Object)}.
*
* @param valueProvider
* a value provider that gets the property... | 3.26 |
framework_InMemoryDataProvider_addFilterByValue_rdh | /**
* Adds a filter that requires an item property to have a specific value.
* The property value and the provided value are compared using
* {@link Object#equals(Object)}.The filter will be used in addition to any
* filter that has been set or added previously.
*
* @see #setFilterByValue(ValueProvider, Object)
... | 3.26 |
framework_InMemoryDataProvider_addFilter_rdh | /**
* Adds a filter for an item property. The filter will be used in addition
* to any filter that has been set or added previously.
*
* @see #addFilter(SerializablePredicate)
* @see #addFilterByValue(ValueProvider, Object)
* @see #setFilter(ValueProvider, SerializablePredicate)
* @param valueProvider
* value... | 3.26 |
framework_InMemoryDataProvider_addSortComparator_rdh | /**
* Adds a comparator to the default sorting for this data provider. If no
* default sorting has been defined, then the provided comparator will be
* used as the default sorting. If a default sorting has been defined, then
* the provided comparator will be used to determine the ordering of items
* that are consi... | 3.26 |
framework_InMemoryDataProvider_filteringBy_rdh | /**
* Wraps this data provider to create a new data provider that is filtered
* by comparing an item property value to the filter value provided in the
* query.
* <p>
* The predicate receives the property value as the first parameter and the
* query filter value as the second parameter, and should return
* <code... | 3.26 |
framework_InMemoryDataProvider_setSortOrder_rdh | /**
* Sets the property and direction to use as the default sorting for this
* data provider. This overrides the sorting set by any other method that
* manipulates the default sorting of this data provider.
* <p>
* The default sorting is used if the query defines no sorting. The default
* sorting is also used to ... | 3.26 |
framework_InMemoryDataProvider_filteringBySubstring_rdh | /**
* Wraps this data provider to create a new data provider that is filtered
* by a string by checking whether the lower case representation of the
* filter value provided in the query is a substring of the lower case
* representation of an item property value. The filter never passes if the
* item property value... | 3.26 |
framework_InMemoryDataProvider_setFilter_rdh | /**
* Sets a filter for an item property. The filter replaces any filter that
* has been set or added previously.
*
* @see #setFilter(SerializablePredicate)
* @see #setFilterByValue(ValueProvider, Object)
* @see #addFilter(ValueProvider, SerializablePredicate)
* @param valueProvid... | 3.26 |
framework_InMemoryDataProvider_setFilterByValue_rdh | /**
* Sets a filter that requires an item property to have a specific value.
* The property value and the provided value are compared using
* {@link Object#equals(Object)}. The filter replaces any filter that has
* been set or added previously.
*
* @see #setFilter(SerializablePredicate)
* @see #setFilter(ValuePr... | 3.26 |
framework_InMemoryDataProvider_filteringByPrefix_rdh | /**
* Wraps this data provider to create a new data provider that is filtered
* by a string by checking whether the lower case representation of an item
* property value starts with the lower case representation of the filter
* value provided in the query. Conversion to lower case is done using the
* locale of the... | 3.26 |
framework_InMemoryDataProvider_addSortOrder_rdh | /**
* Adds a property and direction to the default sorting for this data
* provider. If no default sorting has been defined, then the provided sort
* order will be used as the default sorting. If a default sorting has been
* defined, then the provided sort order will be used to determine the
* ordering of items th... | 3.26 |
framework_TestSampler_registerComponent_rdh | /**
* Register a component to the TestSampler for style name changes/additions.
*
* @param component
*/
public void registerComponent(Component component) {
components.add(component);
} | 3.26 |
framework_CustomField_setHeight_rdh | // Size related methods
// TODO might not be necessary to override but following the pattern from
// AbstractComponentContainer
@Override
public void setHeight(float height, Unit unit) {
super.setHeight(height, unit);
markAsDirtyRecursive();
} | 3.26 |
framework_CustomField_setFocusDelegate_rdh | /**
* Sets the component to which all methods from the {@link Focusable}
* interface should be delegated.
* <p>
* Set this to a wrapped field to include that field in the tabbing order,
* to make it receive focus when {@link #focus()} is called and to make it
* be correctly focused when used as a Grid editor comp... | 3.26 |
framework_CustomField_m0_rdh | /**
* Returns the content (UI) of the custom component.
*
* @return Component
*/
protected Component m0() {
if (null == root) {
root =
initContent();
root.setParent(this);
}
return root;
} | 3.26 |
framework_CustomField_attach_rdh | /**
* Constructs the content and notifies it that the {@link CustomField} is
* attached to a window.
*
* @see com.vaadin.ui.Component#attach()
*/
@Override
public void attach() {
// First call super attach to notify all children (none if content has
// not yet been created)
super.attach();
// If ... | 3.26 |
framework_VPopupCalendar_makeDate_rdh | /**
* Creates a date based on the provided date values map. Any values of a
* more precise resolution than day are ignored.
*
* @param dateValues
* a map with date values to convert into a date
* @return the date based on the dateValues map
*/
@SuppressWarnings("deprecation"... | 3.26 |
framework_PropertyFilterDefinition_getDefaultFilter_rdh | /**
* Get the default nested property filtering conditions.
*
* @return default property filter
*/
public static PropertyFilterDefinition getDefaultFilter() {
return new PropertyFilterDefinition(NestedBeanPropertyDefinition.MAX_PROPERTY_NESTING_DEPTH, Arrays.asList("java"));} | 3.26 |
framework_PropertyFilterDefinition_getMaxNestingDepth_rdh | /**
* Returns the maximum amount of nesting levels for sub-properties.
*
* @return maximum nesting depth
*/
public int getMaxNestingDepth() {
return maxNestingDepth;} | 3.26 |
framework_PropertyFilterDefinition_getIgnorePackageNamesStartingWith_rdh | /**
* Returns a list of package name prefixes to ignore.
*
* @return list of strings that
*/
public List<String> getIgnorePackageNamesStartingWith() {
return
ignorePackageNamesStartingWith;
} | 3.26 |
framework_TreeAction_execute_rdh | /**
* Sends message to server that this action has been fired. Messages are
* "standard" Vaadin messages whose value is comma separated pair of
* targetKey (row, treeNod ...) and actions id.
*
* Variablename is always "action".
*
* Actions are always sent immediatedly to server.
*/
@Override
public void execute... | 3.26 |
framework_NumberRenderer_setFormat_rdh | /**
* Sets the number format to use for formatting the number.
*
* @param format
* the format to use
* @throws IllegalArgumentException
* when the format is null
*/
public void setFormat(NumberFormat format) throws IllegalArgumentException {
if (format == null) {
throw new IllegalArgumentExceptio... | 3.26 |
framework_HierarchyRenderer_setStyleNames_rdh | /**
* Set the style name prefix for the node, expander and cell-content
* elements.
*
* @param styleName
* the style name to set
*/
public void setStyleNames(String styleName) {
nodeStyleName = styleName + "-node";
expanderStyleName = styleName + "-expander";
f0 = styleName + "-cell-content";
} | 3.26 |
framework_HierarchyRenderer_m0_rdh | /**
* Sets the renderer to be wrapped. This is the original renderer before
* hierarchy is applied.
*
* @param innerRenderer
* Renderer to be wrapped.
*/
@SuppressWarnings("rawtypes")
public void m0(Renderer innerRenderer) {
this.innerRenderer = innerRenderer;
} | 3.26 |
framework_HierarchyRenderer_getInnerRenderer_rdh | /**
* Returns the wrapped renderer.
*
* @return Wrapped renderer.
*/
@SuppressWarnings("rawtypes")
public Renderer getInnerRenderer() {
return innerRenderer;
}
/**
* Decides whether the element was rendered by {@link HierarchyRenderer}.
*
* @param element
* the element to check
* @return {@code true} if... | 3.26 |
framework_AbstractStringToNumberConverter_convertToNumber_rdh | /**
* Convert the value to a Number using the given locale and
* {@link #getFormat(Locale)}.
*
* @param value
* The value to convert
* @param locale
* The locale to use for conversion
* @return The converted value
* @throws ConversionException
* If there was a problem converting the value
* @since 7.1
... | 3.26 |
framework_AbstractStringToNumberConverter_getFormat_rdh | /**
* Returns the format used by {@link #convertToPresentation(Object, Locale)}
* and {@link #convertToModel(Object, Locale)}.
*
* @param locale
* The locale to use
* @return A NumberFormat instance
* @since 7.1
*/
protected NumberFormat getFormat(Locale locale) {
if (locale == null) {
locale = Lo... | 3.26 |
framework_EffectAllowed_getValue_rdh | /**
* Get the string value that is accepted by the client side drag event.
*
* @return String value accepted by the client side drag event.
*/
public String getValue() {
return value;
} | 3.26 |
framework_TreeGrid_setItemCollapseAllowedProvider_rdh | /**
* Sets the item collapse allowed provider for this TreeGrid. The provider
* should return {@code true} for any item that the user can collapse.
* <p>
* <strong>Note:</strong> This callback will be accessed often when sending
* data to the client. The callback should not do any costly operations.
* <p>
* This... | 3.26 |
framework_TreeGrid_m1_rdh | /**
* Expands the given items.
* <p>
* If an item is currently expanded, does nothing. If an item does not have
* any children, does nothing.
*
* @param items
* the items to expand
*/
@SuppressWarnings("unchecked")
public void m1(T... items) {
expand(Arrays.asList(items));
} | 3.26 |
framework_TreeGrid_expand_rdh | /**
* Expands the given items.
* <p>
* If an item is currently expanded, does nothing. If an item does not have
* any children, does nothing.
*
* @param items
* the items to expand
*/
public void expand(Collection<T> items) {HierarchicalDataCommunicator<T> communicator = getDataCommunicator();
items.forEa... | 3.26 |
framework_TreeGrid_isExpanded_rdh | /**
* Returns whether a given item is expanded or collapsed.
*
* @param item
* the item to check
* @return true if the item is expanded, false if collapsed
*/
public boolean isExpanded(T item) {
return getDataCommunicator().isExpanded(item);
} | 3.26 |
framework_TreeGrid_m0_rdh | /**
* Set the column that displays the hierarchy of this grid's data. By
* default the hierarchy will be displayed in the first column.
* <p>
* Setting a hierarchy column by calling this method also sets the column to
* be visible and not hidable.
* <p>
* <strong>Note:</strong> Changing the Renderer of the hiera... | 3.26 |
framework_TreeGrid_addCollapseListener_rdh | /**
* Adds a CollapseListener to this TreeGrid.
*
* @see CollapseEvent
* @param listener
* the listener to add
* @return a registration for the listener
*/
public Registration addCollapseListener(CollapseListener<T>
listener) {
return addListener(CollapseEvent.class, listener, CollapseListener.COLLAPSE_METHOD)... | 3.26 |
framework_TreeGrid_withPropertySet_rdh | /**
* Creates a {@code TreeGrid} using a custom {@link PropertySet}
* implementation for creating a default set of columns and for resolving
* property names with {@link #addColumn(String)} and
* {@link Column#setEditorComponent(HasValue)}.
* <p>
* This func... | 3.26 |
framework_TreeGrid_scrollTo_rdh | /**
* This method is inherited from Grid but should never be called directly
* with a TreeGrid.
*/
@Override
@Deprecated
public void scrollTo(int row) throws IllegalArgumentException {
super.scrollTo(row);
} | 3.26 |
framework_TreeGrid_expandRecursively_rdh | /**
* Expands the given items and their children recursively until the given
* depth.
* <p>
* {@code depth} describes the maximum distance between a given item and its
* descendant, meaning that {@code expandRecursively(items, 0)} expands only
* the given items while {@code expandRecursively(items, 2)} expands th... | 3.26 |
framework_TreeGrid_fireExpandEvent_rdh | /**
* Emit an expand event.
*
* @param item
* the item that was expanded
* @param userOriginated
* whether the expand was triggered by a user interaction or the
* server
*/
private void fireExpandEvent(T item, boolean userOriginated) {
fireEvent(new ExpandEvent<>(this, item, userOriginated));
} | 3.26 |
framework_TreeGrid_collapseRecursively_rdh | /**
* Collapse the given items and their children recursively until the given
* depth.
* <p>
* {@code depth} describes the maximum distance between a given item and its
* descendant, meaning that {@code collapseRecursively(items, 0)} collapses
* only the given items while {@code collapseRecursively(items, 2)}
* ... | 3.26 |
framework_TreeGrid_collapse_rdh | /**
* Collapse the given items.
* <p>
* For items that are already collapsed, does nothing.
*
* @param items
* the collection of items to collapse
*/
public void collapse(Collection<T> items) {HierarchicalDataCommunicator<T> communicator = getDataCommunicator();
items.forEach(item -> {
if (communic... | 3.26 |
framework_TreeGrid_fireCollapseEvent_rdh | /**
* Emit a collapse event.
*
* @param item
* the item that was collapsed
* @param userOriginated
* whether the collapse was triggered by a user interaction or
* the server
*/
private void fireCollapseEvent(T item, boolean userOriginated) {
fireEvent(new CollapseEvent<>(this, item, userOriginated));
} | 3.26 |
framework_TreeGrid_addExpandListener_rdh | /**
* Adds an ExpandListener to this TreeGrid.
*
* @see ExpandEvent
* @param listener
* the listener to add
* @return a registration for the listener
*/
public Registration addExpandListener(ExpandListener<T> listener) {
return addListener(ExpandEvent.class, listener, Expand... | 3.26 |
framework_KeyMapper_m0_rdh | /**
* Merge Objects into the mapper.
* <p>
* This method will add the new objects to the mapper and remove inactive
* objects from it.
*
* @param objects
* new objects set needs to be merged.
* @since 8.7
*/
public void
m0(Set<V> objects) {
final Set<St... | 3.26 |
framework_KeyMapper_remove_rdh | /**
* Removes object from the mapper.
*
* @param removeobj
* the object to be removed.
*/
@Override
public void remove(V removeobj) {
final String key = objectIdKeyMap.remove(identifierGetter.apply(removeobj));
if (key != null) {
keyObjectMap.remove(key);
}
} | 3.26 |
framework_KeyMapper_get_rdh | /**
* Retrieves object with the key.
*
* @param key
* the name with the desired value.
* @return the object with the key.
*/
@Override
public V get(String key) {
return keyObjectMap.get(key);
} | 3.26 |
framework_KeyMapper_key_rdh | /**
* Gets key for an object.
*
* @param o
* the object.
*/
@Override
public String key(V o) {if (o
== null) {
return "null";
}
// If the object is already mapped, use existing key
Object id = identifierGetter.apply(o);
String v1 = objectIdKeyMap.get(id);
if (v1 != null) {
... | 3.26 |
framework_KeyMapper_createKey_rdh | /**
* Creates a key for a new item.
* <p>
* This method can be overridden to customize the keys used.
*
* @return new key
* @since 8.1.2
*/
protected String createKey() {
return
String.valueOf(++lastKey);
} | 3.26 |
framework_WrappedHttpSession_enumerationToSet_rdh | // Helper shared with WrappedPortletSession
static <T> Set<T> enumerationToSet(Enumeration<T> values) {
HashSet<T> set = new HashSet<>();
while (values.hasMoreElements()) {
set.add(values.nextElement());
}
return Collections.unmodifiableSet(set);
} | 3.26 |
framework_ConnectorTracker_cleanStreamVariable_rdh | /**
* Removes any StreamVariable of the given name from the indicated
* connector.
*
* @param connectorId
* @param variableName
*/
public void cleanStreamVariable(String connectorId, String variableName) {
if (pidToNameToStreamVariable == null) {
return;
}
Map<String, StreamVariable> nameToStr... | 3.26 |
framework_ConnectorTracker_getConnectorString_rdh | /**
* Returns a string with the connector name and id. Useful mostly for
* debugging and logging.
*
* @param connector
* The connector
* @return A string that describes the connector
*/
private String getConnectorString(ClientConnector connector) {
if (connector == null) {
return "(null)";
}
String connect... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.