name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_DeclarativeItemEnabledProvider_addDisabled_rdh | /**
* Adds the {@code item} to disabled items list.
*
* @param item
* a data item
*/
protected void addDisabled(T item) {
disabled.add(item);
} | 3.26 |
framework_PointerEventSupportImpl_isSupported_rdh | /**
*
* @return true if the pointer events are supported, false otherwise
*/
protected boolean isSupported() {
return false;
} | 3.26 |
framework_PointerEventSupportImpl_getNativeEventName_rdh | /**
*
* @param events
* @return the native event name of the given event
*/
public String getNativeEventName(EventType eventName) {
return eventName.toString().toLowerCase(Locale.ROOT);
} | 3.26 |
framework_ListenerMethod_receiveEvent_rdh | /**
* Receives one event from the <code>EventRouter</code> and calls the
* trigger method if it matches with the criteria defined for the listener.
* Only the events of the same or subclass of the specified event class
* result in the trigger method to be called.
*
* @param event
* the fired event. Unless the ... | 3.26 |
framework_ListenerMethod_getTarget_rdh | /**
* Returns the target object which contains the trigger method.
*
* @return The target object
*/
public Object getTarget() {
return target;
} | 3.26 |
framework_ListenerMethod_writeObject_rdh | /* Special serialization to handle method references */
private void writeObject(ObjectOutputStream out) throws IOException {try {
out.defaultWriteObject();
String name = method.getName();
Class<?>[] paramTypes = method.getParameterTypes();
out.writeObject(name);
out.writeObject... | 3.26 |
framework_ListenerMethod_readObject_rdh | /* Special serialization to handle method references */
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
try {
String name = ((String) (in.readObject()));
Class<?>[] paramTypes = ((Class<?>[]) (in.readObject()));
// We ca... | 3.26 |
framework_MultiSelectionModelConnector_updateAllRowsSelected_rdh | /**
* Update selection for all grid rows.
*
* @param selected
* {@code true} for marking all rows selected, {@code false} for
* not selected
*/
protected void updateAllRowsSelected(boolean selected) {
if (availableRows != null) {
DataSource<JsonObject> dataSource = getGrid().getDataSource();
for (int i = avai... | 3.26 |
framework_MultiSelectionModelConnector_updateRowSelected_rdh | /**
* Marks the given row to be selected or deselected. Returns true if the
* value actually changed.
* <p>
* Note: If selection model is in batch select state, the row will be pinned
* on select.
*
* @param row
* row handle
* @param selected
* {@code true} if row should be selected; {@code false} if not
... | 3.26 |
framework_MultiSelectionModelConnector_onSelectAllEvent_rdh | /**
* Handler for selecting / deselecting all grid rows.
*
* @param event
* the select all event from grid
*/
protected void onSelectAllEvent(SelectAllEvent<JsonObject> event) {
final boolean allSelected = event.isAllSelected();
final boolean wasAllSelected = isAllSelected();
assert allSelected != wasAllSelected... | 3.26 |
framework_MultiSelectionModelConnector_createSelectionModel_rdh | /**
* Creates an instance of MultiSelectionModel. Method provided overriding
* features of the selection model without copying all logic.
*
* @since 8.1
* @return selection model instance, not {@code null}
*/
protected MultiSelectionModel createSelectionModel() {
return new MultiSelectionModel();
} | 3.26 |
framework_MultiSelectionModelConnector_isAllSelected_rdh | /**
* Returns whether all items are selected or not.
*
* @return {@code true} if all items are selected, {@code false} if not
*/
protected boolean isAllSelected() {
return
getState().selectAllCheckBoxVisible && getState().allSelected;
} | 3.26 |
framework_AbstractGridRendererConnector_getColumnId_rdh | /**
* Gets the column id for a column.
* <p>
* In case this renderer wants be able to identify a column in such a way
* that the server also understands it, the column id is used for that.
* Columns are identified by unified ids between the client and the server.
*
* @param column
* the column object
* @retu... | 3.26 |
framework_AbstractGridRendererConnector_getGridConnector_rdh | /**
* Gets the grid connector for this renderer connector.
*
* @return the parent grid connector.
*/
protected GridConnector getGridConnector() {
final ServerConnector parent = getParent();
if (parent instanceof ColumnConnector) {
final ServerConnector parentGrid = parent.getParent();
if
... | 3.26 |
framework_ColorPickerSelect_createColors_rdh | /**
* Creates the color.
*
* @param color
* the color
* @param rows
* the rows
* @param columns
* the columns
* @return the color[][]
*/
private Color[][] createColors(Color color, int rows, int columns)
{
Color[][] colors = new Color[rows][columns];
float[] hsv = color.getHSV();
float hue ... | 3.26 |
framework_ColorPickerSelect_createAllColors_rdh | /**
* Creates the all colors.
*
* @param rows
* the rows
* @param columns
* the columns
* @return the color[][]
*/
private Color[][] createAllColors(int rows,
int columns) {
Color[][] colors = new Color[rows]... | 3.26 |
framework_ColorPickerSelect_getValue_rdh | /**
* Returns the selected value.
* <p>
* Value can be {@code null} if component is not yet initialized via
* {@link #initContent()}
*
* @see ColorPickerSelect#initContent()
* @return the selected color, may be {@code null}
*/
@Override
public Color getValue() {
if (grid == null) {
return null;
}
return gri... | 3.26 |
framework_FileParameters_setName_rdh | /**
* Sets the file name.
*
* @param name
* Name of the file.
*/public void setName(String name) {
this.name = name;
} | 3.26 |
framework_FileParameters_setMime_rdh | /**
* Sets the mime type.
*
* @param mime
* Mime type of the file.
*/
public void setMime(String mime) {
this.mime =
mime;
} | 3.26 |
framework_PropertysetItem_addPropertySetChangeListener_rdh | /**
* Registers a new property set change listener for this Item.
*
* @param listener
* the new Listener to be registered.
*/
@Override
public void addPropertySetChangeListener(Item.PropertySetChangeListener listener) {
if (propertySetChangeListeners == null) {
propertySetChangeListeners = new Linked... | 3.26 |
framework_PropertysetItem_getItemProperty_rdh | /* Item methods */
/**
* Gets the Property corresponding to the given Property ID stored in the
* Item. If the Item does not contain the Property, <code>null</code> is
* returned.
*
* @param id
* the identifier of the Property to get.
* @return the Property with the given ID or <code>null</code>
*/
@Override
... | 3.26 |
framework_PropertysetItem_removePropertySetChangeListener_rdh | /**
* Removes a previously registered property set change listener.
*
* @param listener
* the Listener to be removed.
*/
@Override
public void removePropertySetChangeListener(Item.PropertySetChangeListener listener) {... | 3.26 |
framework_PropertysetItem_fireItemPropertySetChange_rdh | /**
* Sends a Property set change event to all interested listeners.
*/
private void fireItemPropertySetChange() {
if (propertySetChangeListeners != null) {
final Item.PropertySetChangeEvent
event = new PropertysetItem.PropertySetChangeEvent(this);
for (Object l : propertySetChangeListener... | 3.26 |
framework_PropertysetItem_clone_rdh | /**
* Creates and returns a copy of this object.
* <p>
* The method <code>clone</code> performs a shallow copy of the
* <code>PropertysetItem</code>.
* </p>
* <p>
* Note : All arrays are considered to implement the interface Cloneable.
* Otherwise, this method creates a new instance of the class of this object
... | 3.26 |
framework_PropertysetItem_m0_rdh | /**
* Gets the <code>String</code> representation of the contents of the Item.
* The format of the string is a space separated catenation of the
* <code>String</code> representations of the Properties contained by the
* Item.
*
* @return <code>String</code> representation of the Item contents
*/
@Override
public... | 3.26 |
framework_PropertysetItem_getItem_rdh | /**
* Gets the Item whose Property set has changed.
*
* @return source object of the event as an <code>Item</code>
*/
@Override
public Item getItem() {
return ((Item) (getSource()));
} | 3.26 |
framework_SingleSelectionEvent_getSource_rdh | /**
* The single select on which the Event initially occurred.
*
* @return The single select on which the Event initially occurred.
*/
@Override
public SingleSelect<T> getSource() {
return ((SingleSelect<T>) (super.getSource()));
} | 3.26 |
framework_OptionGroupElement_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
... | 3.26 |
framework_VAbstractDropHandler_dragEnter_rdh | /**
* The default implementation in {@link VAbstractDropHandler} checks if the
* Transferable is accepted.
* <p>
* If transferable is accepted (either via server visit or client side
* rules) the default implementation calls abstract
* {@link #dragAccepted(VDragEvent)} method.
* <p>
* If drop handler has distin... | 3.26 |
framework_VAbstractDropHandler_validate_rdh | /**
* Validates the given drag event when all existing DnD-related tasks are
* completed, and triggers the callback if the validation was successful.
*
* @param cb
* the callback that handles acceptance if the target is valid
* @param event
* the drag event
*/
protected void validate(final VAcceptCallback... | 3.26 |
framework_VAbstractDropHandler_drop_rdh | /**
* The default implemmentation visits server if {@link AcceptCriterion}
* can't be verified on client or if {@link AcceptCriterion} are met on
* client.
*/
@Override
public boolean drop(VDragEvent drag) {if (acceptCriteria.needsServerSideCheck(drag, criterioUIDL)) {
return true;
} else {
vali... | 3.26 |
framework_VAbstractDropHandler_dragOver_rdh | /**
* Default implementation does nothing.
*/
@Override
public void dragOver(VDragEvent drag) {
} | 3.26 |
framework_VAbstractDropHandler_dragLeave_rdh | /**
* Default implementation does nothing. Implementors should clean possible
* emphasis or drag icons here.
*/
@Override
public void dragLeave(VDragEvent drag) {
} | 3.26 |
framework_VAbstractDropHandler_updateAcceptRules_rdh | /**
* Implementor/user of {@link VAbstractDropHandler} must pass the UIDL
* painted by {@link AcceptCriterion} to this method. Practically the
* details about {@link AcceptCriterion} are saved.
*
* @param uidl
* the accept criterion UIDL
*/public void updateAcceptRules(UIDL uidl) {
criterioUIDL = uidl;/* s... | 3.26 |
framework_TransactionalPropertyWrapper_detachFromProperty_rdh | /**
* Removes the ValueChangeListener from wrapped Property that was added by
* TransactionalPropertyWrapper.
*
* @since 7.1.15
*/public void detachFromProperty() {
if (wrappedProperty instanceof ValueChangeNotifier) {
((ValueChangeNotifier) (wrappedProperty)).removeValueChangeListener(listener);
}... | 3.26 |
framework_MarginInfo_hasLeft_rdh | /**
* Checks if this MarginInfo object has the left edge margin enabled.
*
* @return true if left edge margin is enabled
*/
public boolean hasLeft() {
return (bitMask & LEFT) == LEFT;
} | 3.26 |
framework_MarginInfo_hasTop_rdh | /**
* Checks if this MarginInfo object has the top edge margin enabled.
*
* @return true if top edge margin is enabled
*/
public boolean hasTop() {
return (bitMask & TOP) == TOP;
} | 3.26 |
framework_MarginInfo_getBitMask_rdh | /**
* Returns the current bit mask that make up the margin settings.
* <p>
* This method is for internal use by the framework.
*
* @return an integer bit mask
*/
@Deprecated
public int getBitMask() {
return bitMask;
} | 3.26 |
framework_MarginInfo_hasAll_rdh | /**
* Checks if this MarginInfo object has margins on all edges enabled.
*
* @since 7.5.0
* @return true if all edges have margins enabled
*/
public boolean hasAll() {
return (bitMask & ALL) == ALL;
} | 3.26 |
framework_MarginInfo_hasBottom_rdh | /**
* Checks if this MarginInfo object has the bottom edge margin enabled.
*
* @return true if bottom edge margin is enabled
*/
public boolean hasBottom() {
return (bitMask
& BOTTOM) == BOTTOM;
} | 3.26 |
framework_MarginInfo_hasNone_rdh | /**
* Checks if this MarginInfo object has no margins enabled.
*
* @since 8.0
* @return true if all edges have margins disabled
*/
public boolean hasNone() {
return (bitMask & ALL) == 0;
} | 3.26 |
framework_MarginInfo_setMargins_rdh | /**
* Copies margin values from another MarginInfo object.
*
* @param marginInfo
* another marginInfo object
*/
public void setMargins(MarginInfo marginInfo) {
bitMask = marginInfo.bitMask;
} | 3.26 |
framework_PointerEvent_getPointerType_rdh | /**
* Gets the type of the pointer device that caused this event.
*
* @see PointerEvent#TYPE_UNKNOWN
* @see PointerEvent#TYPE_TOUCH
* @see PointerEvent#TYPE_PEN
* @see PointerEvent#TYPE_MOUSE
* @return a String indicating the type of the pointer device
*/
public final String getPointerType() {
return getPoi... | 3.26 |
framework_PointerEvent_getWidth_rdh | /**
* Gets the width of the contact geometry of the pointer in CSS pixels.
*
* @return width in CSS pixels
*/
public final int getWidth() {
return m0(getNativeEvent());
} | 3.26 |
framework_ComboBoxElement_sendKeys_rdh | /**
* Use this method to simulate typing into an element, which may set its
* value.
*
* @param delay
* delay after sending each individual key (mainly needed for
* PhantomJS)
* @param keysToSend
* keys to type into the element
*/
public void sendKeys(int delay, CharSequence... keysToSend) {WebElement in... | 3.26 |
framework_ComboBoxElement_getValue_rdh | /**
* Return value of the combo box element.
*
* @return value of the combo box element
*/
public String getValue() {
return getInputField().getAttribute("value");} | 3.26 |
framework_ComboBoxElement_getPopupSuggestions_rdh | /**
* Gets the text representation of all suggestions on the current page.
*
* @return List of suggestion texts
*/
public List<String> getPopupSuggestions() {
List<String> suggestionsTexts = new ArrayList<>();
List<WebElement> suggestions = getPopupSuggestionElements();
for
(WebElement suggestion ... | 3.26 |
framework_ComboBoxElement_getSuggestionPopup_rdh | /**
* Returns the suggestion popup element.
*/
public WebElement getSuggestionPopup() {
ensurePopupOpen();
return findElement(bySuggestionPopup);
} | 3.26 |
framework_ComboBoxElement_selectByTextFromPopup_rdh | /**
* Selects, without filtering, the first option in the ComboBox which
* matches the given text.
*
* @param text
* the text of the option to select
*/
private void selectByTextFromPopup(String text) {
// This method assumes there is no need to touch the filter string
// 1. Find first page
// 2. Select first ... | 3.26 |
framework_ComboBoxElement_openNextPage_rdh | /**
* Opens next popup page.
*
* @return True if next page opened. false if doesn't have next page
*/
public boolean openNextPage() {
try {
clickElement(getSuggestionPopup().findElement(byNextPage));return true;} catch (WebDriverException e) {
// PhantomJS driver can throw WDE instead of the mor... | 3.26 |
framework_ComboBoxElement_getPopupSuggestionElements_rdh | /**
* Gets the elements of all suggestions on the current page.
* <p>
* Opens the popup if not already open.
*
* @return a list of elements for the suggestions on the current page
*/
public List<WebElement> getPopupSuggestionElements() {
List<WebElement> tables = getSuggestionPopup().findElements(By.tagName("... | 3.26 |
framework_ComboBoxElement_selectByText_rdh | /**
* Selects the first option in the ComboBox which matches the given text.
*
* @param text
* the text of the option to select
*/public void selectByText(String text) {
if (isReadOnly()) {
throw new ReadOnlyException();
}
if (!isTextInputAllowed()) {
... | 3.26 |
framework_ComboBoxElement_openPopup_rdh | /**
* Open the suggestion popup.
*/
public void openPopup() {
findElement(By.vaadin("#button")).click();
} | 3.26 |
framework_ComboBoxElement_openPrevPage_rdh | /**
* Open previous popup page.
*
* @return True if previous page opened. False if doesn't have previous page
*/
public boolean openPrevPage() {
try {
clickElement(getSuggestionPopup().findElement(byPrevPage));
return true;
} catch (WebDriverException e) {
// PhantomJS driver can t... | 3.26 |
framework_BinderValidationStatus_isOk_rdh | /**
* Gets whether validation for the binder passed or not.
*
* @return {@code true} if validation has passed, {@code false} if not
*/
public boolean
isOk() {
return !hasErrors();
}
/**
* Gets whether the validation for the binder failed or not.
*
* @return {@code true} if validation failed, {@code false} | 3.26 |
framework_BinderValidationStatus_createUnresolvedStatus_rdh | /**
* Convenience method for creating a unresolved validation status for the
* given binder.
* <p>
* In practice this status means that the values might not be valid, but
* validation errors should be hidden.
*
* @param source
* the source binder
* @return a unresolved validation status
* @param <BEAN>
* ... | 3.26 |
framework_BinderValidationStatus_getValidationErrors_rdh | /**
* Gets both field and bean level validation errors.
*
* @return a list of all validation errors
*/
public List<ValidationResult> getValidationErrors() {
List<ValidationResult> errors = m0().stream().map(s -> s.getResult().get()).collect(Collectors.toList());
errors.addAll(getBeanValidationErrors());
... | 3.26 |
framework_BinderValidationStatus_getBeanValidationErrors_rdh | /**
* Gets the failed bean level validation results.
*
* @return a list of failed bean level validation results
*/
public List<ValidationResult> getBeanValidationErrors() {
return binderStatuses.stream().filter(ValidationResult::isError).collect(Collectors.toList());
} | 3.26 |
framework_BinderValidationStatus_notifyBindingValidationStatusHandlers_rdh | /**
* Notifies validation status handlers for bindings that pass given filter.
* The filter should return {@code true} for each
* {@link BindingValidationStatus} that should be delegated to the status
* handler in the binding.
*
* @see #notifyBindingValidationStatusHandlers()
* @param filter
* the filter to s... | 3.26 |
framework_BinderValidationStatus_m0_rdh | /**
* Gets the failed field level validation statuses.
* <p>
* The field level validators have been added with
* {@link BindingBuilder#withValidator(Validator)}.
*
* @return a list of failed field level validation statuses
*/
public List<BindingValidationStatus<?>> m0() {return bindingStatuses.stream().filter(Bi... | 3.26 |
framework_BinderValidationStatus_getBinder_rdh | /**
* Gets the source binder of the status.
*
* @return the source binder
*/
public Binder<BEAN> getBinder() {
return binder;
} | 3.26 |
framework_SerializableFunction_identity_rdh | /**
* Returns a function that always returns its input argument.
*
* @param <T>
* the type of the input and output objects to the function
* @return a function that always returns its input argument
*/
static <T> SerializableFunction<T, T> identity() {
return t -> t;
} | 3.26 |
framework_Link_getTargetHeight_rdh | /**
* Returns the target window height or -1 if not set.
*
* @return the target window height.
*/
public int getTargetHeight() {
return getState(false).targetHeight < 0 ? -1 : getState(false).targetHeight;
} | 3.26 |
framework_Link_setTargetHeight_rdh | /**
* Sets the target window height.
*
* @param targetHeight
* the targetHeight to set.
*/
public void setTargetHeight(int targetHeight) {
getState().targetHeight = targetHeight;
} | 3.26 |
framework_Link_setTargetWidth_rdh | /**
* Sets the target window width.
*
* @param targetWidth
* the targetWidth to set.
*/
public void setTargetWidth(int targetWidth) {
getState().targetWidth = targetWidth;
} | 3.26 |
framework_Link_setTargetBorder_rdh | /**
* Sets the border of the target window.
*
* @param targetBorder
* the targetBorder to set.
*/
public void setTargetBorder(BorderStyle targetBorder) {
getState().targetBorder = targetBorder;
} | 3.26 |
framework_Link_setResource_rdh | /**
* Sets the resource this link opens.
*
* @param resource
* the resource to set.
*/
public void setResource(Resource resource) {setResource(LinkConstants.HREF_RESOURCE, resource);
} | 3.26 |
framework_Link_getTargetBorder_rdh | /**
* Returns the target window border.
*
* @return the target window border.
*/
public BorderStyle getTargetBorder() {
return getState(false).targetBorder;} | 3.26 |
framework_Link_setTargetName_rdh | /**
* Sets the target window name.
*
* @param targetName
* the targetName to set.
*/
public void setTargetName(String targetName) {
getState().target = targetName;
} | 3.26 |
framework_Link_getTargetWidth_rdh | /**
* Returns the target window width or -1 if not set.
*
* @return the target window width.
*/
public int getTargetWidth() {
return getState(false).targetWidth < 0 ? -1 : getState(false).targetWidth;
} | 3.26 |
framework_Link_getTargetName_rdh | /**
* Returns the target window name. Empty name of null implies that the
* target is opened to the window containing the link.
*
* @return the target window name.
*/
public String getTargetName() {
return getState(false).target;
} | 3.26 |
framework_AbstractDataProvider_fireEvent_rdh | /**
* Sends the event to all listeners.
*
* @param event
* the Event to be sent to all listeners.
*/
protected void fireEvent(EventObject event) {
if (eventRouter != null) {
eventRouter.fireEvent(event);
}
} | 3.26 |
framework_AbstractDataProvider_m0_rdh | /**
* Registers a new listener with the specified activation method to listen
* events generated by this component. If the activation method does not
* have any arguments the event object will not be passed to it when it's
* called.
*
* @param eventType
* the type of the listened event. Events of this type or ... | 3.26 |
framework_BeanPropertySet_get_rdh | /**
* Gets a {@link BeanPropertySet} for the given bean type.
*
* @param beanType
* the bean type to get a property set for, not <code>null</code>
* @param checkNestedDefinitions
* whether to scan for nested definitions in beanType
* @param filterDefinition
* filtering conditions for nested properties
* ... | 3.26 |
framework_AbstractProperty_fireReadOnlyStatusChange_rdh | /**
* Sends a read only status change event to all registered listeners.
*/
protected void fireReadOnlyStatusChange() {
if (readOnlyStatusChangeListeners
!= null) {
final Property.ReadOnlyStatusChangeEvent event = new ReadOnlyStatusChangeEvent(this);
for (Object l : readOnlyStatusChangeListeners.toArray())... | 3.26 |
framework_AbstractProperty_removeReadOnlyStatusChangeListener_rdh | /**
* Removes a previously registered read-only status change listener.
*
* @param listener
* the listener to be removed.
*/
@Override
public void removeReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener) {
if (readOnlyStatusChangeListeners != null) {
readOnlyStatusChangeList... | 3.26 |
framework_AbstractProperty_fireValueChange_rdh | /**
* Sends a value change event to all registered listeners.
*/
protected void fireValueChange() {
if (valueChangeListeners != null) {
final Property.ValueChangeEvent v3 = new ValueChangeEvent(this);
for (Object l : valueChangeListeners.toArray()) {
((Property.ValueChangeListener) (l)).valueChange(v3... | 3.26 |
framework_AbstractProperty_m0_rdh | /**
* {@inheritDoc }
*
* Override for additional restrictions on what is considered a read-only
* property.
*/
@Override
public boolean m0() {
return f0;
} | 3.26 |
framework_AbstractProperty_getProperty_rdh | /**
* Gets the Property whose value has changed.
*
* @return source Property of the event.
*/
@Override
public Property getProperty() {
return ((Property)
(getSource()));
} | 3.26 |
framework_AbstractProperty_addReadOnlyStatusChangeListener_rdh | /**
* Registers a new read-only status change listener for this Property.
*
* @param listener
* the new Listener to be registered.
*/
@Override
public void addReadOnlyStatusChangeListener(Property.ReadOnlyStatusChangeListener listener) {
if (readOnlyStatusChangeListeners == null) {
readOnlyStatusCha... | 3.26 |
framework_AbstractContainer_fireItemSetChange_rdh | /**
* Sends an Item set change event to all registered interested listeners.
*
* @param event
* the item set change event to send, optionally with additional
* information
*/
protected void fireItemSetChange(ItemSetChangeEvent event) {
if (getItemSetChangeListeners() != null) {
for (Object l : getItemSetC... | 3.26 |
framework_AbstractContainer_fireContainerPropertySetChange_rdh | /**
* Sends a Property set change event to all interested listeners.
*
* Use {@link #fireContainerPropertySetChange()} instead of this method
* unless additional information about the exact changes is available and
* should be included in the event.
*
* @param event
* the property change event to send, option... | 3.26 |
framework_AbstractContainer_getPropertySetChangeListeners_rdh | /**
* Returns the property set change listener collection. For internal use
* only.
*/
protected Collection<Container.PropertySetChangeListener> getPropertySetChangeListeners() {
return propertySetChangeListeners;
} | 3.26 |
framework_AbstractContainer_addPropertySetChangeListener_rdh | // PropertySetChangeNotifier
/**
* Implementation of the corresponding method in
* {@link PropertySetChangeNotifier}, override with the corresponding public
* method and implement the interface to use this.
*
* @see PropertySetChangeNotifier#addListener(Container.PropertySetChangeListener)
*/
protected void addPr... | 3.26 |
framework_AbstractContainer_setItemSetChangeListeners_rdh | /**
* Sets the item set change listener collection. For internal use only.
*
* @param itemSetChangeListeners
*/
protected void setItemSetChangeListeners(Collection<Container.ItemSetChangeListener> itemSetChangeListeners) {
this.itemSetChangeListeners = itemSetChangeListeners;
} | 3.26 |
framework_AbstractContainer_setPropertySetChangeListeners_rdh | /**
* Sets the property set change listener collection. For internal use only.
*
* @param propertySetChangeListeners
*/
protected void setPropertySetChangeListeners(Collection<Container.PropertySetChangeListener> propertySetChangeListeners) {
this.propertySetChangeListeners = propertySetChangeListeners;
} | 3.26 |
framework_AbstractContainer_getItemSetChangeListeners_rdh | /**
* Returns the item set change listener collection. For internal use only.
*/
protected Collection<Container.ItemSetChangeListener> getItemSetChangeListeners() {
return itemSetChangeListeners;} | 3.26 |
framework_AbstractContainer_addItemSetChangeListener_rdh | // ItemSetChangeNotifier
/**
* Implementation of the corresponding method in
* {@link ItemSetChangeNotifier}, override with the corresponding public
* method and implement the interface to use this.
*
* @see ItemSetChangeNotifier#addListener(Container.ItemSetChangeListener)
*/
protected void addItemSetChangeListe... | 3.26 |
framework_HasStyleNames_addStyleNames_rdh | /**
* Adds one or more style names to this component by using one or multiple
* parameters.
*
* @since 8.7
* @param styles
* the style name or style names to be added to the component
* @see #addStyleName(String)
* @see #setStyleName(String)
* @see #removeStyleName(String)
*/
default void addStyleNames(Stri... | 3.26 |
framework_HasStyleNames_setStyleName_rdh | /**
* Adds or removes a style name. Multiple styles can be specified as a
* space-separated list of style names.
*
* If the {@code add} parameter is true, the style name is added to the
* component. If the {@code add} parameter is false, the style name is
* removed from the component.
... | 3.26 |
framework_HasStyleNames_removeStyleNames_rdh | /**
* Removes one or more style names from component. Multiple styles can be
* specified by using multiple parameters.
*
* <p>
* The parameter must be a valid CSS style name. Only user-defined style
* names added with {@link #addStyleName(String) addStyleName()} or
* {@link #setStyleName(String) setStyleName()} ... | 3.26 |
framework_Validator_m0_rdh | /**
* Returns the message of the error in HTML.
*
* Note that this API may change in future versions.
*/
public String m0() {
return VaadinServlet.safeEscapeForHtml(getLocalizedMessage());
}
/**
* Returns the {@code InvalidValueExceptions} that caused this
* exception.
... | 3.26 |
framework_Validator_getErrorMessage_rdh | // Intentional change in compatibility package
@Override
public ErrorMessage getErrorMessage() {
UserError error = new UserError(m0(), ContentMode.HTML, ErrorLevel.ERROR);
for (Validator.InvalidValueException nestedException : getCauses()) {
error.addCause(AbstractErrorMessage.getErrorMessageForExceptio... | 3.26 |
framework_Validator_isInvisible_rdh | /**
* Check if the error message should be hidden.
*
* An empty (null or "") message is invisible unless it contains nested
* exceptions that are visible.
*
* @return true if the error message should be hidden, false otherwise
*/
public boolean isInvisible() {
String msg = getMessage();
if ((msg != null)... | 3.26 |
framework_OnStateChangeMethod_getProperties_rdh | /**
* Gets the list of state property names to listen for.
*
* @return the list of state property names to listen for
*/
public List<String> getProperties() {return properties;
} | 3.26 |
framework_AbstractConnector_getStateType_rdh | /**
* Find the type of the state for the given connector.
*
* @param connector
* the connector whose state type to find
* @return the state type
*/
public static Type getStateType(ServerConnector connector) {
try { return TypeData.getType(connector.getClass()).getMethod("getState").getReturnType();
} ca... | 3.26 |
framework_AbstractConnector_init_rdh | /**
* Called when the connector has been initialized. Override this method to
* perform initialization of the connector.
*/
// FIXME: It might make sense to make this abstract to force users to
// use init instead of constructor, where connection and id has not yet been
// set.
protected void init() {
} | 3.26 |
framework_AbstractConnector_getState_rdh | /**
* Returns the shared state object for this connector.
*
* Override this method to define the shared state type for your connector.
*
* @return the current shared state (never null)
*/
@Override
public SharedState getState() {if (state == null) {
Profiler.enter("AbstractConnector.createState()");
... | 3.26 |
framework_AbstractConnector_createState_rdh | /**
* Creates a state object with default values for this connector. The
* created state object must be compatible with the return type of
* {@link #getState()}. The default implementation creates a state object
* using GWT.create() using the defined return type of {@link #getState()}.
*
* @return A new state obj... | 3.26 |
framework_AbstractConnector_ensureHandlerManager_rdh | /**
* Ensure there is a handler manager. If one doesn't exist before this
* method is called, it gets created.
*
* @return the handler manager
*/
protected HandlerManager ensureHandlerManager() {
if (handlerManager == null) {
handlerManager = new HandlerManager(this);
}
return handlerManager;
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.