name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_AbstractInMemoryContainer_size_rdh | // cannot override getContainerPropertyIds() and getItemIds(): if subclass
// uses Object as ITEMIDCLASS or PROPERTYIDCLASS, Collection<Object> cannot
// be cast to Collection<MyInterface>
// public abstract Collection<PROPERTYIDCLASS> getContainerPropertyIds();
// public abstract Collection<ITEMIDCLASS> getItemIds();
... | 3.26 |
framework_AbstractInMemoryContainer_fireItemRemoved_rdh | /**
* Notify item set change listeners that an item has been removed from the
* container.
*
* @since 7.4
* @param position
* position of the removed item in the view prior to removal (if
* was visible)
* @param itemId
* id of the removed item, of type {@link Object} to satisfy
* {@link Container#remo... | 3.26 |
framework_AbstractInMemoryContainer_doSort_rdh | /**
* Perform the sorting of the data structures in the container. This is
* invoked when the <code>itemSorter</code> has been prepared for the sort
* operation. Typically this method calls
* <code>Collections.sort(aCollection, getItemSorter())</code> on all arrays
* (containing item ids) that need to be sorted.
... | 3.26 |
framework_AbstractInMemoryContainer_getVisibleItemIds_rdh | // visible and filtered item identifier lists
/**
* Returns the internal list of visible item identifiers after filtering.
*
* For internal use only.
*/
protected List<ITEMIDTYPE> getVisibleItemIds() {
if (isFiltered()) {
return getFilteredItemIds();
} else {
return getAllItemIds();
}
} | 3.26 |
framework_TypeDataStore_findIdentifiersFor_rdh | // this is a very inefficient implementation for getting all the identifiers
// for a class
public FastStringSet findIdentifiersFor(Class<?> type) {
FastStringSet result = FastStringSet.create();
JsArrayString keys = identifiers.getKeys();
for (int i = 0; i < keys.length(); i++) {
String key = key... | 3.26 |
framework_TypeDataStore_m0_rdh | /**
* Adds data about a method annotated with {@link OnStateChange} for the
* given connector type.
*
* @since 7.2
* @param clazz
* the connector type
* @param method
* the state change method data
*/
public void m0(Class<?> clazz, OnStateChangeMethod method)
{
FastStringMap<JsArrayObject<OnStateChange... | 3.26 |
framework_TypeDataStore_getOnStateChangeMethods_rdh | /**
* Gets data for all methods annotated with {@link OnStateChange} in the
* given connector type.
*
* @since 7.2
* @param type
* the connector type
* @return a map of state property names to handler method data
*/
public static FastStringMap<JsArrayObject<OnStateChangeMethod>> getOnStateChangeMethods(Cl... | 3.26 |
framework_JsonEncoder_encode_rdh | /**
* Encode a value to a JSON representation for transport from the client to
* the server.
*
* @param value
* value to convert
* @param type
* type information, not needed for all encoding tasks, such as
* encoding a String
* @param connection
* application connection providing the context, not need... | 3.26 |
framework_InlineDateFieldElement_getFocusElement_rdh | /**
* Returns the element which receives focus when the component is focused.
*
* @return the element which receives focus when the component is focused
* @since 8.1.1
*/
public WebElement getFocusElement() {
return findElement(By.tagName("table"));} | 3.26 |
framework_IsNullTranslator_m0_rdh | /**
*
* @deprecated As of 8.0, no replacement available.
*/
@Deprecatedpublic class IsNullTranslator implements FilterTranslator {
@Override
public boolean m0(Filter filter) {
return filter instanceof IsNull;
} | 3.26 |
framework_ColorPickerGradient_setBackgroundColor_rdh | /**
* Sets the background color.
*
* @param color
* the new background color
*/
public void setBackgroundColor(Color color) {
getState().bgColor = color.getCSS();
} | 3.26 |
framework_ColorPickerGradient_setValue_rdh | /**
* Sets the value of this object. If the new value is not equal to
* {@code getValue()}, fires a {@link ValueChangeEvent}. Throws
* {@code NullPointerException} if the value is null.
*
* @param color
* the new color, not {@code null}
* @throws NullPointerException
* if {@code color} is {@code null}
*/@O... | 3.26 |
framework_SortDirection_getOpposite_rdh | /**
* Ascending (e.g. A-Z, 1..9) sort order
*/ASCENDING() {
@Override
public SortDirection getOpposite() {
return DESCENDING;
} | 3.26 |
framework_RpcDataProviderExtension_internalDropItems_rdh | /**
* Informs all DataGenerators than an item id has been dropped.
*
* @param droppedItemIds
* collection of dropped item ids
*/
private void internalDropItems(Collection<Object> droppedItemIds) {
... | 3.26 |
framework_RpcDataProviderExtension_columnsRemoved_rdh | /**
* Informs this data provider that given columns have been removed from
* grid.
*
* @param removedColumns
* a list of removed columns
*/
public void columnsRemoved(List<Column> removedColumns) {
for (GridValueChangeListener l : activeItemHandler.getValueChangeListeners()) {
l.removeColumns(remove... | 3.26 |
framework_RpcDataProviderExtension_refreshCache_rdh | /**
* Pushes a new version of all the rows in the active cache range.
*/public void refreshCache() {
if (!refreshCache) {
refreshCache = true;
markAsDirty();
}
... | 3.26 |
framework_RpcDataProviderExtension_beforeClientResponse_rdh | /**
* {@inheritDoc }
* <p>
* RpcDataProviderExtension makes all actual RPC calls from this function
* based on changes in the container.
*/
@Override
public void beforeClientResponse(boolean initial) {
if (initial || bareItemSetTriggeredSizeChange) {
/* Push initial set of rows, assuming Grid will init... | 3.26 |
framework_RpcDataProviderExtension_insertRowData_rdh | /**
* Informs the client side that new rows have been inserted into the data
* source.
*
* @param index
* the index at which new rows have been inserted
* @param count
* the number of rows inserted at <code>index</code>
*/
private void insertRowData(final int index, final int count) {
if (rowChanges == ... | 3.26 |
framework_RpcDataProviderExtension_addActiveItems_rdh | /**
* Registers ValueChangeListeners for given item ids.
* <p>
* Note: This method will clean up any unneeded listeners and key
* mappings
*
* @param itemIds
* collection of new active item ids
*/public void addActiveItems(Collection<?> itemIds) {
for (Object itemId : itemIds) {
if (!activeItemMap... | 3.26 |
framework_RpcDataProviderExtension_addDataGenerator_rdh | /**
* Adds a {@link DataGenerator} for this {@code RpcDataProviderExtension}.
* DataGenerators are called when sending row data to client. If given
* DataGenerator is already added, this method does nothing.
*
* @since 7.6
* @param generator
* generator to add
*/
public void
addDataGenerator(DataGenerator gen... | 3.26 |
framework_RpcDataProviderExtension_dropActiveItem_rdh | /**
* Marks given item id as dropped. Dropped items are cleared when adding
* new active items.
*
* @param itemId
* dropped item id
*/
public void dropActiveItem(Object itemId) {
if (activeItemMap.containsKey(itemId)) {
droppedItems.add(itemId);
}
} | 3.26 |
framework_RpcDataProviderExtension_getActiveItemIds_rdh | /**
* Gets a collection copy of currently active item ids.
*
* @return collection of item ids
*/
public Collection<Object> getActiveItemIds() {
return
new HashSet<Object>(activeItemMap.keySet());
} | 3.26 |
framework_RpcDataProviderExtension_removeDataGenerator_rdh | /**
* Removes a {@link DataGenerator} from this
* {@code RpcDataProviderExtension}. If given DataGenerator is not added to
* this data provider, this method does nothing.
*
* @since 7.6
* @param generator
* generator to remove
*/
public void removeDataGenerator(DataGenerator generator) {
dataGenerators.re... | 3.26 |
framework_RpcDataProviderExtension_updateRowData_rdh | /**
* Informs the client side that data of a row has been modified in the data
* source.
*
* @param itemId
* the item Id the row that was updated
*/
public void updateRowData(Object itemId) {
if (updatedItemIds == null) {
updatedItemIds = new LinkedHashSet<Object>();
}
if (updatedItemIds.isE... | 3.26 |
framework_RpcDataProviderExtension_columnsAdded_rdh | /**
* Informs this data provider that given columns have been added to grid.
*
* @param addedColumns
* a list of added columns
*/
public void columnsAdded(List<Column> addedColumns) {
for (GridValueChangeListener l : activeItemHandler.getValueChangeListeners()) {
l.addColumns(addedColumns);
}
... | 3.26 |
framework_RpcDataProviderExtension_getValueChangeListeners_rdh | /**
* Gets a collection copy of currently active ValueChangeListeners.
*
* @return collection of value change listeners
*/ public Collection<GridValueChangeListener> getValueChangeListeners() {
return new HashSet<GridValueChangeListener>(activeItemMap.values());
} | 3.26 |
framework_RpcDataProviderExtension_extend_rdh | /**
* Makes the data source available to the given {@link Grid} component.
*
* @param component
* the remote data grid component to extend
*/
public void extend(Grid component) {
super.extend(component);
} | 3.26 |
framework_RpcDataProviderExtension_removeRowData_rdh | /**
* Informs the client side that rows have been removed from the data source.
*
* @param index
* the index of the first row removed
* @param count
* the number of rows removed
* @param firstItemId
* the item id of the first removed item
*/
private void removeRowData(final int index, final int count) ... | 3.26 |
framework_RadioButtonGroupElement_getValue_rdh | /**
* Return value of the selected option in the option group.
*
* @return value of the selected option in the option group
*/
public String getValue() {List<WebElement> options = findElements(bySelectOption);
for (WebElement option : options) { WebElement checkedItem;checkedItem = option.findElement(By.tagNa... | 3.26 |
framework_RadioButtonGroupElement_setValue_rdh | /**
* Select option in the option group with the specified value.
*
* @param chars
* value of the option in the option group which will be selected
*/
public void setValue(CharSequence chars) throws ReadOnlyException {
selectByText(((String) (chars)));
} | 3.26 |
framework_VaadinPortlet_invokeStaticLiferayMethod_rdh | /**
* Simplified version of what Liferay PortalClassInvoker did. This is
* used because the API of PortalClassInvoker has changed in Liferay
* 6.2.
*
* This simply uses reflection with Liferay class loader. Parameters are
* Strings to avoid static dependencies and to load all classes with
* Liferay's own class l... | 3.26 |
framework_VaadinPortlet_createVaadinRequest_rdh | /**
* Wraps the request in a (possibly portal specific) Vaadin portlet request.
*
* @param request
* The original PortletRequest
* @return A wrapped version of the PortletRequest
*/
protected VaadinPortletRequest createVaadinRequest(PortletRequest request)
{
PortalContext portalContext = request.getPortalConte... | 3.26 |
framework_CompositeValidator_addValidator_rdh | /**
* Adds validator to the interface.
*
* @param validator
* the Validator object which performs validation checks on this
* set of data field values.
*/
public void addValidator(Validator validator) {
if (validator == null)
{
return;
}
validators.add(validator);
} | 3.26 |
framework_CompositeValidator_setErrorMessage_rdh | /**
* Sets the message to be included in the exception in case the value does
* not validate. The exception message is typically shown to the end user.
*
* @param errorMessage
* the error message.
*/
public void setErrorMessage(String errorMessage) {
this.errorMessage
= errorMessage;
} | 3.26 |
framework_CompositeValidator_removeValidator_rdh | /**
* Removes a validator from the composite.
*
* @param validator
* the Validator object which performs validation checks on this
* set of data field values.
*/
public void removeValidator(Validator validator) {
validators.remove(validator);
} | 3.26 |
framework_CompositeValidator_getErrorMessage_rdh | /**
* Gets the error message for the composite validator. If the error message
* is null, original error messages of the sub-validators are used instead.
*/
public String getErrorMessage() {
if (errorMessage != null) {return errorMessage;
}
// TODO Return composite error message
return null;
} | 3.26 |
framework_CompositeValidator_validate_rdh | /**
* Validates the given value.
* <p>
* The value is valid, if:
* <ul>
* <li><code>MODE_AND</code>: All of the sub-validators are valid
* <li><code>MODE_OR</code>: Any of the sub-validators are valid
* </ul>
*
* If the value is invalid, validation error is thrown. If the error message
* is set (non-null), it... | 3.26 |
framework_CompositeValidator_setMode_rdh | /**
* Sets the mode of the validator. The valid modes are:
* <ul>
* <li>{@link CombinationMode#AND} (default)
* <li>{@link CombinationMode#OR}
* </ul>
*
* @param mode
* the mode to set.
*/
public void setMode(CombinationMode mode) {
if (mode == null) {
throw new IllegalArgumentException("The val... | 3.26 |
framework_AbstractOrderedLayoutConnector_updateAllSlotListeners_rdh | /**
* Add slot listeners
*/
private void updateAllSlotListeners() {
for (ComponentConnector child : getChildComponents()) {
updateSlotListeners(child);}
} | 3.26 |
framework_AbstractOrderedLayoutConnector_updateInternalState_rdh | /**
* Updates DOM properties and listeners based on the current state of this
* layout and its children.
*/
private void updateInternalState() {
// Avoid updating again for the same data
int lastResponseId = getConnection().getLastSeenServerSyncId();
if (processedResponseId == lastResponseId) {
r... | 3.26 |
framework_AbstractOrderedLayoutConnector_updateSlotListeners_rdh | /**
* Add/remove necessary ElementResizeListeners for one slot. This should be
* called after each update to the slot's or it's widget.
*/
private void updateSlotListeners(ComponentConnector child) {
Slot slot = getWidget().getSlot(child.getWidget());
// Clear all possible listeners first
slot.setWidget... | 3.26 |
framework_AbstractOrderedLayoutConnector_getMaxHeight_rdh | /**
* Measures the maximum height of the layout in pixels
*/
private int getMaxHeight() {
int v45 = -1;
int highestRelative = -1;
LayoutManager layoutManager = getLayoutManager();
for (ComponentConnector child : getChildComponents()) {
Widget childWidget = child.getWidget();
Slot slo... | 3.26 |
framework_AbstractOrderedLayoutConnector_updateLayoutHeight_rdh | /**
* Re-calculate the layout height
*/
private void updateLayoutHeight() {
if (needsFixedHeight()) {
int h = getMaxHeight();
if (h < 0) {
// Postpone change if there are elements that have not yet been
// measured
return;
}
h += getLayoutManag... | 3.26 |
framework_AbstractOrderedLayoutConnector_needsFixedHeight_rdh | /**
* Does the layout need a fixed height?
*/
private boolean needsFixedHeight() {
boolean isVertical = getWidget().vertical;
if (isVertical) {
// Doesn't need height fix for vertical layouts
return false;
} else if (!isUndefinedHeight()) {
// Fix not needed unless the height is un... | 3.26 |
framework_AbstractOrderedLayoutConnector_needsExpand_rdh | /**
* Does the layout need to expand?
*/
private boolean needsExpand()
{
return needsExpand; } | 3.26 |
framework_MultiSelectionRenderer_reboundScrollArea_rdh | /**
* If the scroll are has been offset by the pointer starting out there,
* move it back a bit
*/
private void reboundScrollArea(double timeDiff) {
if (!scrollAreaShouldRebound) {
return;
}
int reboundPx = ((int) (Math.ceil(SCROLL_AREA_REBOUND_PX_PER_MS * timeDiff)));
if (topBound <
fin... | 3.26 |
framework_MultiSelectionRenderer_getClientTop_rdh | /**
* Get the "top" of an element in relation to "client" coordinates.
*/
private int getClientTop(final Element e) {
return e.getAbsoluteTop();
} | 3.26 |
framework_VCaption_setCaptionAsHtml_rdh | /**
* Sets whether the caption is rendered as HTML.
* <p>
* Default is false
*
* @param captionAsHtml
* true if the captions are rendered as HTML, false if rendered
* as plain text
*/
public void setCaptionAsHtml(boolean captionAsHtml) {
this.captionAsHtml = captionAsHtml;
} | 3.26 |
framework_VCaption_getOwner_rdh | /**
* Returns Paintable for which this Caption belongs to.
*
* @return owner Widget
*/
public ComponentConnector getOwner() {
return owner;
} | 3.26 |
framework_VCaption_setTooltipInfo_rdh | /**
* Sets the tooltip that should be shown for the caption.
*
* @param tooltipInfo
* The tooltip that should be shown or null if no tooltip should
* be shown
*/
public void setTooltipInfo(TooltipInfo tooltipInfo) {
this.tooltipInfo = tooltipInfo;
} | 3.26 |
framework_VCaption_setCaptionText_rdh | /**
* Sets the text of the given widget to the caption found in the state.
* <p>
* Uses {@link AbstractComponentState#captionAsHtml} to determine whether to
* set the caption as html or plain text
*
* @since 7.4
* @param widget
* the target widget
* @param state
* the state from which to read the caption ... | 3.26 |
framework_SimpleTree_addDoubleClickHandler_rdh | /**
* {@inheritDoc } Events are not fired when double clicking child widgets.
*/
@Override
public HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler) {
if (textDoubleClickHandlerManager == null) {
textDoubleClickHandlerManager = new HandlerManager(this);
addDomHandler(event -> {
... | 3.26 |
framework_SimpleTree_add_rdh | /**
* {@inheritDoc }
*
* @since 7.2
*/
@Override
protected void add(Widget child, Element container) {
add(child, DOM.asOld(container));
} | 3.26 |
framework_ConnectorIdGenerator_generateDefaultConnectorId_rdh | /**
* Generates a connector id using the default logic by using
* {@link VaadinSession#getNextConnectorId()}.
*
* @param event
* the event object that has a reference to the connector and the
* session, not <code>null</code>
* @return the connector id to use for the connector, not <code>null</code>
*/public... | 3.26 |
framework_WindowCloseShortcuts_updateDesign_rdh | //
// The following code is adapted from DeclarativeTestBaseBase.java
// (that's not a typo)
//
private void updateDesign() {
String design = "";
try {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
DesignContext dc = new DesignContext();
dc.setRootComponent(window);... | 3.26 |
framework_WindowCloseShortcuts_elementToHtml_rdh | //
// The following code is copied directly from DeclarativeTestBaseBase.java
// (that's not a typo, either)
//
private String elementToHtml(Element producedElem) {
StringBuilder stringBuilder = new StringBuilder();
elementToHtml(producedElem,
stringBuilder);
return stringBuilder.toString();
} | 3.26 |
framework_VAbsoluteLayout_updateCaptionPosition_rdh | /**
* Updates the caption position by using element offset left and top
*/private void updateCaptionPosition() {
if (caption != null) {
Style style = caption.getElement().getStyle();
style.setProperty("position", "absolute");
style.setPropertyPx("left", getElement().getOffsetLeft());
... | 3.26 |
framework_VAbsoluteLayout_updateStyleNames_rdh | /**
* Updates the style names using the primary style name as prefix.
*/
protected void updateStyleNames() {
setStyleName(VAbsoluteLayout.this.getStylePrimaryName() + "-wrapper");
if (extraStyleNames != null) {
for (String stylename :
extraStyleNames) {
addStyleDependentName(style... | 3.26 |
framework_VAbsoluteLayout_setWidgetWrapperStyleNames_rdh | /**
* Sets style names for the wrapper wrapping the widget in the layout. The
* style names will be prefixed with v-absolutelayout-wrapper.
*
* @param widget
* The widget which wrapper we want to add the stylenames to
* @param stylenames
* The style names that should be added to the wrapper
*/
public void s... | 3.26 |
framework_VAbsoluteLayout_getWidgetSlotWidth_rdh | /**
* Get the pixel width of an slot in the layout.
*
* @param child
* The widget in the layout.
* @return Returns the size in pixels, or 0 if child is not in the layout
*/
public int ... | 3.26 |
framework_VAbsoluteLayout_setWidgetPosition_rdh | /**
* Set the position of the widget in the layout. The position is a CSS
* property string using properties such as top,left,right,top
*
* @param child
* The child widget to set the position for
* @param position
* The position string
*/
public void setWidgetPosition(Widget child, String position) {
... | 3.26 |
framework_VAbsoluteLayout_getWidgetCaption_rdh | /**
* Get the caption for a widget.
*
* @param child
* The child widget to get the caption of
*/
public VCaption getWidgetCaption(Widget child) {
AbsoluteWrapper wrapper = m0(child);
if (wrapper != null) {
return wrapper.getCaption();
}
return null;
} | 3.26 |
framework_VAbsoluteLayout_contains_rdh | /**
* Does this layout contain a widget.
*
* @param widget
* The widget to check
* @return Returns true if the widget is in this layout, false if not
*/
public boolean contains(Widget widget) {
return m0(widget) != null;
} | 3.26 |
framework_VAbsoluteLayout_m0_rdh | /**
* Get the wrapper for a widget.
*
* @param child
* The child to get the wrapper for
* @return */
protected AbsoluteWrapper m0(Widget child) {
for (Widget w : getChildren()) {
if (w instanceof AbsoluteWrapper) {
AbsoluteWrapper wrapper = ((AbsoluteWrapper) (w));
... | 3.26 |
framework_VAbsoluteLayout_updateStylenames_rdh | /**
* Updates all style names contained in the layout.
*
* @param primaryStyleName
* The style name to use as primary
*/
protected void updateStylenames(String primaryStyleName) {
super.setStylePrimaryName(primaryStyleName);
canvas.setClassName(getStylePrimaryName() + "-canvas");
canvas.setClassName(... | 3.26 |
framework_VAbsoluteLayout_setCaption_rdh | /**
* Set the caption for the wrapper.
*
* @param caption
* The caption for the wrapper
*/
public void setCaption(VCaption caption) {
if (caption != null) {
this.caption = caption;
} else if (this.caption != null) {
this.caption.removeFromParent();
this.caption = caption; }
} | 3.26 |
framework_VAbsoluteLayout_setWidgetCaption_rdh | /**
* Sets a caption for a contained widget.
*
* @param child
* The child widget to set the caption for
* @param caption
* The caption of the widget
*/
public void setWidgetCaption(Widget child, VCaption caption) {
AbsoluteWrapper wrapper = m0(child);if (wrapper != null) {
if (caption != null) ... | 3.26 |
framework_VAbsoluteLayout_cleanupWrappers_rdh | /**
* Cleanup old wrappers which have been left empty by other inner layouts
* moving the widget from the wrapper into their own hierarchy. This usually
* happens when a call to setWidget(widget) is done in an inner layout which
* automatically detaches the widget from the parent, in this case the
* wrapper, and r... | 3.26 |
framework_VAbsoluteLayout_m1_rdh | /**
* Set the position for the wrapper in the layout.
*
* @param position
* The position string
*/
public void m1(String position) {
if ((css == null) ||
(!css.equals(position))) {
css = position;
top = right = bottom = left = zIndex = null;
if (!css.isEmpty()) {
... | 3.26 |
framework_Resolution_getResolutionsHigherOrEqualTo_rdh | /**
* Returns the resolutions that are higher or equal to the given resolution,
* starting from the given resolution. In other words passing DAY to this
* methods returns DAY,MONTH,YEAR
*
* @param r
* The resolution to start from
* @return An iterable for the resolutions higher or equal to r
*/
public static ... | 3.26 |
framework_Resolution_getResolutionsLowerThan_rdh | /**
* Returns the resolutions that are lower than the given resolution,
* starting from the given resolution. In other words passing DAY to this
* methods returns HOUR,MINUTE,SECOND.
*
* @param r
* The resolution to start from
* @return An iterable for the resolutions lower than r
*/
public static List<Resolu... | 3.26 |
framework_ComplexRenderer_onBrowserEvent_rdh | /**
* Called whenever a registered event is triggered in the column the
* renderer renders.
* <p>
* The events that triggers this needs to be returned by the
* {@link #getConsumedEvents()} method.
* <p>
* Returns boolean telling if the event has been completely handled and
* should not cause any other actions.
... | 3.26 |
framework_ComplexRenderer_destroy_rdh | /**
* Called after the cell is deemed to be destroyed and no longer used by the
* Grid. Called after the cell element is detached from the DOM.
* <p>
* The row object in the cell reference will be <code>null</code> since the
* row might no longer be present in the data source.
*
* @param cell
* The cell. Note... | 3.26 |
framework_ComplexRenderer_getConsumedEvents_rdh | /**
* Returns the events that the renderer should consume. These are also the
* events that the Grid will pass to
* {@link #onBrowserEvent(Cell, NativeEvent)} when they occur.
*
* @return a list of consumed events
* @see com.google.gwt.dom.client.BrowserEvents
*/
public Collection<String> getConsumedEvents() {
... | 3.26 |
framework_ComplexRenderer_setContentVisible_rdh | /**
* Used by Grid to toggle whether to show actual data or just an empty
* placeholder while data is loading. This method is invoked whenever a cell
* changes between data being available and data missing.
* <p>
* Default implementation hides content by setting visibility: hidden to all
... | 3.26 |
framework_FooterRow_getCell_rdh | /**
* Returns the cell on this row corresponding to the given column.
*
* @param column
* the column whose footer cell to get, not null
* @return the footer cell
* @throws IllegalArgumentException
* if there is no such column in the grid
*/
public FooterCell getCell(Grid.Column<?, ?> column) {
} | 3.26 |
framework_FooterRow_join_rdh | /**
* Merges cells corresponding to the given columns in the row. Original
* cells are hidden, and new merged cell is shown instead. The cell has a
* width of all merged cells together, inherits styles of the first merged
* cell but has empty caption.
*
* @param columnsToMerge
* the columns of the cells that s... | 3.26 |
framework_NullValidator_validate_rdh | /**
* Validates the data given in value.
*
* @param value
* the value to validate.
* @throws Validator.InvalidValueException
* if the value was invalid.
*/
@Override
public void validate(Object value) throws InvalidValueException {
if ((onlyNullAllowed && (value != null)) || ((!onlyNullAllowed) && (value... | 3.26 |
framework_NullValidator_getErrorMessage_rdh | /**
* Gets the error message that is displayed in case the value is invalid.
*
* @return the Error Message.
*/
public String getErrorMessage() {
return errorMessage;
} | 3.26 |
framework_NullValidator_setNullAllowed_rdh | /**
* Sets if nulls (and only nulls) are to be allowed.
*
* @param onlyNullAllowed
* If true, only nulls are allowed. If false only non-nulls are
* allowed. Do we allow nulls?
*/
public void setNullAllowed(boolean onlyNullAllowed) {
this.onlyNullAllowed = onlyNullAllowed;
} | 3.26 |
framework_NullValidator_m0_rdh | /**
* Sets the error message to be displayed on invalid value.
*
* @param errorMessage
* the Error Message to set.
*/
public void m0(String errorMessage) {
this.errorMessage = errorMessage;
} | 3.26 |
framework_NullValidator_isNullAllowed_rdh | /**
* Returns <code>true</code> if nulls are allowed otherwise
* <code>false</code>.
*/
public final boolean isNullAllowed() {
return onlyNullAllowed;
} | 3.26 |
framework_CalendarMonthDropHandler_deEmphasis_rdh | /**
* Removed the emphasis CSS style name from the currently emphasized day
*/
private void deEmphasis() {
if ((currentTargetElement != null) && (currentTargetDay != null)) {
currentTargetDay.removeEmphasisStyle();
currentTargetElement = null;
}
} | 3.26 |
framework_CalendarMonthDropHandler_emphasis_rdh | /**
* Add CSS style name for the currently emphasized day
*/
private void emphasis() {
if ((currentTargetElement != null) && (currentTargetDay != null)) {
currentTargetDay.addEmphasisStyle();
}
} | 3.26 |
framework_CalendarMonthDropHandler_isLocationValid_rdh | /**
* Checks if the one can perform a drop in a element
*
* @param elementOver
* The element to check
* @return */
private boolean isLocationValid(Element elementOver) {
Element monthGridElement = calendarConnector.getWidget().getMonthGrid().getElement();
// drops are not allowed in:
// - weekday header
// - we... | 3.26 |
framework_CalendarWeekDropHandler_updateDropDetails_rdh | /**
* Update the drop details sent to the server
*
* @param drag
* The drag event
*/
private void updateDropDetails(VDragEvent drag) {
int slotIndex = currentTargetDay.getSlotIndex(currentTargetElement); int dayIndex = calendarConnector.getWidget().getWeekGrid().getDateCellIndex(currentTargetDay);
drag.... | 3.26 |
framework_CalendarWeekDropHandler_isLocationValid_rdh | /**
* Checks if the location is a valid drop location
*
* @param elementOver
* The element to check
* @return */
private boolean isLocationValid(Element elementOver) {
Element weekGridElement = calendarConnector.getWidget().getWeekGrid().getElement();
Element timeBarElement = calendarConnector.getWidget... | 3.26 |
framework_MetadataWriter_write_rdh | /**
* Writes a JSON object containing metadata related to the given UI.
*
* @param ui
* The UI whose metadata to write.
* @param writer
* The writer used.
* @param repaintAll
* Whether the client should repaint everything.
* @param async
* True if this message is sent by the server asynchronously,
* ... | 3.26 |
framework_ResponsiveConnector_constructSelectorsForTarget_rdh | /**
* Construct the list of selectors that should be matched against in the
* range selectors.
*
* @return The selectors in a comma delimited string.
*/
protected String constructSelectorsForTarget() {
String primaryStyle = target.getState().primaryStyleName;
StringBuilder
s... | 3.26 |
framework_Dependency_findAndRegisterResources_rdh | /**
* Finds all the URLs defined for the given class using annotations for the
* given type, registers the URLs to the communication manager and adds the
* registered dependencies to the given list.
*
* @param type
* the type of dependencies to look for
* @param cls
* the class to scan
* @param manager
* ... | 3.26 |
framework_Dependency_getUrl_rdh | /**
* Gets the untranslated URL for the dependency.
*
* @return the URL for the dependency
*/
public String getUrl() {
return url;
} | 3.26 |
framework_Dependency_findDependencies_rdh | /**
* Finds all the URLs defined for the given classes, registers the URLs to
* the communication manager, passes the registered dependencies through any
* defined filters and returns the filtered collection of dependencies to
* load.
*
* @since 8.1
* @param connectorTypes
* the collection of connector classe... | 3.26 |
framework_Dependency_getType_rdh | /**
* Gets the type of the dependency.
*
* @return the type of the dependency
*/
public Type getType() {
return type;} | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_createHalfTableAndFixedTableOnFixed_rdh | /**
* Creates an {@link AbsoluteLayout} of fixed size that contains a
* half-sized {@link Table} and a fixed size {@link Table}.
*
* @return the created layout
*/
private Component createHalfTableAndFixedTableOnFixed() {
AbsoluteLayout absoluteLayout = new AbsoluteLayout();
absoluteLayout.setWidth(200, U... | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_createHalfTableOnFull_rdh | /**
* Creates an {@link AbsoluteLayout} of full size that contains a half-sized
* {@link Table}.
*
* @return the created layout
*/
private Component createHalfTableOnFull() {
AbsoluteLayout absoluteLayout = new AbsoluteLayout();
absoluteLayout.setSizeFull();
absoluteLayout.setId("halfinfull-layout");
... | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_m0_rdh | /**
* Creates an {@link AbsoluteLayout} of fixed size that contains a
* full-sized {@link Table} that has been forced to full size with css.
* Represents the workaround given for this ticket.
*
* @return the created layout
*/
private Component m0() {
AbsoluteLayout absoluteLayout = new AbsoluteLayout();
a... | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_createFullOnFixed_rdh | /**
* Creates an {@link AbsoluteLayout} of fixed size that contains a
* fixed-sized {@link AbsoluteLayout}.
*
* @return the created layout
*/
private Component createFullOnFixed() {
AbsoluteLayout
absoluteLayout = new AbsoluteLayout();
absoluteLayout.setWidth(200, Unit.PIXELS);
absoluteLayout.set... | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_createTableOnFixed_rdh | /**
* Creates an {@link AbsoluteLayout} of fixed size that contains a
* full-sized {@link Table}.
*
* @return the created layout
*/
private Component createTableOnFixed() {
AbsoluteLayout absoluteLayout = new AbsoluteLayout();
absoluteLayout.setWidth(200, Unit.PIXELS);
absoluteLayout.setHeight(200, Uni... | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_createFullOnFull_rdh | /**
* Creates an {@link AbsoluteLayout} of full size that contains another
* full-sized {@link AbsoluteLayout}.
*
* @return the created layout
*/
private AbsoluteLayout createFullOnFull() {
AbsoluteLayout absoluteLayout =
new AbsoluteLayout();
absoluteLayout.setSizeFull();
absoluteLayout.setId("ful... | 3.26 |
framework_AbsoluteLayoutRelativeSizeContent_createHalfTableOnFixed_rdh | /**
* Creates an {@link AbsoluteLayout} of fixed size that contains a
* half-sized {@link Table}.
*
* @return the created layout
*/
private Component createHalfTableOnFixed() {
AbsoluteLayout absoluteLayout = new AbsoluteLayout();
absoluteLayout.setWidth(200, Unit.PIXELS);
absoluteLayout.setHeight(200,... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.