name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_AbstractSelect_unselect_rdh | /**
* Unselects an item.
*
* @param itemId
* the identifier of the Item to be unselected.
* @see #getNullSelectionItemId()
* @see #setNullSelectionItemId(Object)
*/
public void unselect(Object itemId) {
if (isSelected(itemId)) {
if (isMultiSelect()) {
final Set<Object> s = new HashSet<O... | 3.26 |
framework_AbstractSelect_addItemSetChangeListener_rdh | /**
* Adds an Item set change listener for the object.
*
* @see Container.ItemSetChangeNotifier#addListener(Container.ItemSetChangeListener)
*/
@Override
public void addItemSetChangeListener(Container.ItemSetChangeListener listener) {
if (itemSetEventListeners == null) {
itemSetEventListeners
= ... | 3.26 |
framework_AbstractSelect_writeItems_rdh | /**
* Writes the data source items to a design. Hierarchical select components
* should override this method to only write the root items.
*
* @since 7.5.0
* @param design
* the element into which to insert the items
* @param context
* the DesignContext instance used in writing
*/
protected void writeItem... | 3.26 |
framework_AbstractSelect_setNewItemsAllowed_rdh | /**
* Enables or disables possibility to add new options by the user.
*
* @param allowNewOptions
* the New value of property allowNewOptions.
*/
public void setNewItemsAllow... | 3.26 |
framework_AbstractSelect_setItemIconPropertyId_rdh | /**
* Sets the item icon property.
*
* <p>
* If the property id is set to a valid value, each item is given an icon
* got from the given property of the items. The type of the property must
* be assignable to Resource.
* </p>
*
* <p>
* Note : The icons set with <code>setItemIcon</code> function override the
... | 3.26 |
framework_AbstractSelect_setValue_rdh | /**
* Sets the visible value of the property.
*
* <p>
* The value of the select is the selected item id. If the select is in
* multiselect-mode, the value is a set of selected item keys. In
* multiselect mode all collections of id:s can be assigned.
* </p>
*
* @since 7.5.7
* @param newFieldValue
* the New ... | 3.26 |
framework_AbstractSelect_getItemIdOver_rdh | /**
* If the drag operation is currently over an {@link Item}, this method
* returns the identifier of that {@link Item}.
*/
public Object getItemIdOver() {
return idOver;
} | 3.26 |
framework_AbstractSelect_removeAllItems_rdh | /**
* Removes all items from the container.
*
* This functionality is optional. If the function is unsupported, it always
* returns false.
*
* @return True if the operation succeeded.
* @see Container#removeAllItems()
*/
@Override
public boolean removeAllItems() throws UnsupportedOperationException {
final ... | 3.26 |
framework_AbstractSelect_addItems_rdh | /**
* Adds given items with given item ids to container.
*
* @since 7.2
* @param itemIds
* item identifiers to be added to underlying container
* @throws UnsupportedOperationException
* if the underlying container don't support adding items with
* identifiers
*/
public void addItems(Collection<?> itemIds... | 3.26 |
framework_AbstractSelect_getNewItemHandler_rdh | /**
* Returns the new item handler, which is called when user adds new item in
* {@code newItemAllowed} mode.
*
* @return NewItemHandler
*/
public NewItemHandler getNewItemHandler() {if (f2 == null) {
f2 = new DefaultNewItemHandler();
}
return f2;
} | 3.26 |
framework_AbstractSelect_select_rdh | /**
* Selects an item.
*
* <p>
* In single select mode selecting item identified by
* {@link #getNullSelectionItemId()} sets the value of the property to null.
* </p>
*
* @param itemId
* th... | 3.26 |
framework_AbstractSelect_getItemIcon_rdh | /**
* Gets the item icon.
*
* @param itemId
* the id of the item to be assigned an icon.
* @return the icon for the item or null, if not specified.
*/
public Resource getItemIcon(Objec... | 3.26 |
framework_AbstractSelect_getContainer_rdh | /**
* Retrieves the Container whose contents have been modified.
*
* @see Container.PropertySetChangeEvent#getContainer()
*/
@Override
public Container getContainer() {
return ((Container) (getSource()));
} | 3.26 |
framework_AbstractSelect_getDropLocation_rdh | /**
* Returns a detailed vertical location where the drop happened on Item.
*/
public VerticalDropLocation getDropLocation() {
String detail = ((String) (getData("detail")));
if (detail == null) {
return null;
}
return VerticalDropLocation.valueOf(detail);
} | 3.26 |
framework_AbstractSelect_containerPropertySetChange_rdh | /**
* Notifies this listener that the Containers contents has changed.
*
* @see Container.PropertySetChangeListener#containerPropertySetChange(Container.PropertySetChangeEvent)
*/
@Override
public void containerPropertySetChange(Container.PropertySetChangeEvent event) {
m1();
} | 3.26 |
framework_AbstractSelect_addItem_rdh | /**
* Create a new item into container. The created new item is returned and
* ready for setting property values. if the creation fails, null is
* returned. In case the container already contains the item, null is
* returned.
*
* This functionality is optional. If the function is unsupported, it always
* returns... | 3.26 |
framework_AbstractSelect_isMultiSelect_rdh | /* Select attributes */
/**
* Is the select in multiselect mode? In multiselect mode
*
* @return the Value of property multiSelect.
*/
public boolean isMultiSelect() {
return multiSelect;
} | 3.26 |
framework_AbstractSelect_getItemCaption_rdh | /**
* Gets the caption of an item. The caption is generated as specified by the
* item caption mode. See <code>setItemCaptionMode()</code> for more
* details.
*
* @param itemId
* the id of the item to be queried.
* @return the caption for specified item.
*/
public String getItemCaption(Object itemId) {
//... | 3.26 |
framework_AbstractSelect_isSelected_rdh | /**
* Tests if an item is selected.
*
* <p>
* In single select mode testing selection status of the item identified by
* {@link #getNullSelectionItemId()} returns true if the value of the
* property is null.
* </p>
*
* @param itemId
* the Id the of the item to be tested.
* @see #getNullSelectionItemId()
*... | 3.26 |
framework_AbstractSelect_getItemCaptionPropertyId_rdh | /**
* Gets the item caption property.
*
* @return the Id of the property used as item caption source.
*/public Object getItemCaptionPropertyId() {
return itemCaptionPropertyId;
} | 3.26 |
framework_AbstractSelect_addPropertySetChangeListener_rdh | /**
* Adds a new Property set change listener for this Container.
*
* @see Container.PropertySetChangeNotifier#addListener(Container.PropertySetChangeListener)
*/@Override
public void addPropertySetChangeListener(Container.PropertySetChangeListener listener) {
if
(propertySetEventListeners == null) {
... | 3.26 |
framework_AbstractSelect_m0_rdh | /* Property methods */
/**
* Returns the type of the property. <code>getValue</code> and
* <code>setValue</code> methods must be compatible with this type: one can
* safely cast <code>getValue</code> to given type and pass any variable
* assignable to this type as a parameter to <code>setValue</code>.
*
* @return... | 3.26 |
framework_AbstractSelect_readItem_rdh | /**
* Reads an Item from a design and inserts it into the data source.
* Hierarchical select components should override this method to recursively
* recursively read any child items as well.
*
* @since 7.5.0
* @param child
... | 3.26 |
framework_AbstractSelect_getItemCaptionMode_rdh | /**
* Gets the item caption mode.
*
* <p>
* The mode can be one of the following ones:
* <ul>
* <li><code>ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID</code> : Items
* Id-objects <code>toString</code> is used as item caption. If caption is
* explicitly specified, it overrides the id-caption.
* <li><code>ITEM_CAPTION... | 3.26 |
framework_AbstractSelect_removePropertySetChangeListener_rdh | /**
* Removes a previously registered Property set change listener.
*
* @see Container.PropertySetChangeNotifier#removeListener(Container.PropertySetChangeListener)
*/
@Override
public void removePropertySetChangeListener(Container.PropertySetChangeListener listener) {
if (propertySetEventListeners != null) {
... | 3.26 |
framework_AbstractSelect_changeVariables_rdh | /**
* Invoked when the value of a variable has changed.
*
* @see AbstractComponent#changeVariables(java.lang.Object, java.util.Map)
*/
@Override
public void changeVariables(Object
source, Map<String, Object> variables) {
// New option entered (and it is allowed)
if (isNewItemsAllowed())
{
final ... | 3.26 |
framework_AbstractSelect_containerItemSetChange_rdh | /**
* Lets the listener know a Containers Item set has changed.
*
* @see Container.ItemSetChangeListener#containerItemSetChange(Container.ItemSetChangeEvent)
*/
@Override
public void containerItemSetChange(Container.ItemSetChangeEvent event) {
// Clears the item id mapping table
f0.removeAll();
// Notif... | 3.26 |
framework_AbstractSelect_setNullSelectionAllowed_rdh | /**
* Allow or disallow empty selection by the user. If the select is in
* single-select mode, you can make an item represent the empty selection by
* calling <code>setNullSelectionItemId()</code>. This way you can for
* instance set an icon and caption for the null selection item.
*
* @param nullSelectionAllowed... | 3.26 |
framework_AbstractSelect_setMultiSelect_rdh | /**
* Sets the multiselect mode. Setting multiselect mode false may lose
* selection information: if selected items set contains one or more
* selected items, only one of the selected items is kept as selected.
*
* Subclasses of AbstractSelect can choose not to support changing the
* multiselect mode, and may thr... | 3.26 |
framework_AbstractSelect_setItemCaptionPropertyId_rdh | /**
* Sets the item caption property.
*
* <p>
* Setting the id to a existing property implicitly sets the item caption
* mode to <code>ITEM_CAPTION_MODE_PROPERTY</code>. If the object is in
* <code>ITEM_CAPTION_MODE_PROPERTY</code> mode, setting caption property id
* null resets the item caption mode to
* <code... | 3.26 |
framework_AbstractSelect_setItemCaptionMode_rdh | /**
* Sets the item caption mode.
*
* See {@link ItemCaptionMode} for a description of the modes.
* <p>
* {@link ItemCaptionMode#EXPLICIT_DEFAULTS_ID} is the default mode.
* </p>
*
* @param mode
* the One of the modes listed above.
*/
public void setItemCaptionMode(ItemCaptionMode mode) {
if
(mode !... | 3.26 |
framework_AbstractSelect_setNullSelectionItemId_rdh | /**
* Sets the item id that represents null value of this select.
*
* <p>
* Data interface does not support nulls as item ids. Selecting the item
* identified by this id is the same as selecting no items at all. This
* setting only affects the single select mode.
* </p>
*
* @param nullSelectionItemId
* the ... | 3.26 |
framework_AbstractSelect_getValue_rdh | /**
* Gets the selected item id or in multiselect mode a set of selected ids.
*
* @see AbstractField#getValue()
*/
@Override
public Object getValue() {
final Object retValue = super.getValue();
if (isMultiSelect()) {
// If the return value is not a set
if (retValue == null) {
ret... | 3.26 |
framework_AbstractSelect_removeItemSetChangeListener_rdh | /**
* Removes the Item set change listener from the object.
*
* @see Container.ItemSetChangeNotifier#removeListener(Container.ItemSetChangeListener)
*/
@Override
public void removeItemSetChangeListener(Container.ItemSetChangeListener
listener) {
if (itemSetEventListeners != null) {
itemSetEventListeners... | 3.26 |
framework_AbstractSelect_getCaptionChangeListener_rdh | // Caption change listener
protected CaptionChangeListener getCaptionChangeListener() {
if (captionChangeListener == null) {
captionChangeListener
= new CaptionChangeListener();
}
return captionChangeListener; } | 3.26 |
framework_AbstractSelect_isEmpty_rdh | /**
* For multi-selectable fields, also an empty collection of values is
* considered to be an empty field.
*
* @see LegacyAbstractField#isEmpty().
*/
@Override
public boolean isEmpty() {
if (!multiSelect) {
return super.isEmpty();
} else { Object value = getValue();
return su... | 3.26 |
framework_AbstractSelect_getContainerDataSource_rdh | /**
* Gets the viewing data-source container.
*
* @see Container.Viewer#getContainerDataSource()
*/
@Override
public Container getContainerDataSource() {
return items;
} | 3.26 |
framework_AbstractSelect_setNewItemHandler_rdh | /**
* TODO refine doc Setter for new item handler, which is called when user
* adds new item in {@code newItemAllowed} mode.
*
* @param newItemHandler
* The new item handler
*/
public void setNewItemHandler(NewItemHandler newItemHandler) {
this.f2 = newItemHandler;
} | 3.26 |
framework_AbstractSelect_isNewItemsAllowed_rdh | /**
* Does the select allow adding new options by the user. If true, the new
* options can be added to the Container. The text entered by the user is
* used as id. Note that data-source must allow adding new items.
*
* @return True if additions are allowed.
*/
public boolean isNewItemsAllowed() {
return all... | 3.26 |
framework_AbstractSelect_removeContainerProperty_rdh | /**
* Removes the property from all items. Removes a property with given id
* from all the items in the container.
*
* This functionality is optional. If the function is unsupported, it always
* returns false.
*
* @return True if the operation succeeded.
* @see Container#removeContainerProperty(java.lang.Object... | 3.26 |
framework_AbstractSelect_sanitizeSelection_rdh | /**
* Checks that the current selection is valid, i.e. the selected item ids
* exist in the container. Updates the selection if one or several selected
* item ids are no longer available in the container.
*/
@SuppressWarnings("unchecked")
public void sanitizeSelection() {Object value = getValue();
if (value ==... | 3.26 |
framework_AbstractSelect_getContainerProperty_rdh | /**
* Gets the Property identified by the given itemId and propertyId from the
* Container.
*
* @see Container#getContainerProperty(Object, Object)
*/
@Override
public Property getContainerProperty(Object itemId, Object propertyId) {
return items.getContainerProperty(itemId, propertyId);
} | 3.26 |
framework_AbstractSelect_setItemIcon_rdh | /**
* Sets the icon for an item.
*
* @param itemId
* the id of the item to be assigned an icon.
* @param icon
* the icon to use or null.
*/public void setItemIcon(Object itemId, Resource icon) {
if (itemId != null) {
if (icon == null) {
itemIcons.remove(itemId);
} else {
... | 3.26 |
framework_AbstractSelect_m1_rdh | /**
* Fires the property set change event.
*/
protected void m1() {
if ((propertySetEventListeners != null) && (!propertySetEventListeners.isEmpty())) {
final Container.PropertySetChangeEvent event = new PropertySetChangeEvent(this);
for (Object l : propertySetEventListeners.toArray()) {
... | 3.26 |
framework_AbstractSelect_size_rdh | /**
* Gets the number of items in the container.
*
* @return the Number of items in the container.
* @see Container#size()
*/
@Override
public int size() {int size = items.size();
assert size >= 0;
return size;
} | 3.26 |
framework_VProgressBar_setIndeterminate_rdh | /**
* Sets whether or not this progress indicator is indeterminate. In
* indeterminate mode there is an animation indicating that the task is
* running but without providing any information about the current progress.
*
* @param indeterminate
* {@code true} to set to indeterminate mode, {@code false}
* other... | 3.26 |
framework_VAbstractOrderedLayout_insert_rdh | /**
* {@inheritDoc }
*
* @since 7.2
*/
@Override
protected void insert(Widget child, Element container, int beforeIndex, boolean domInsert) {
insert(child, DOM.asOld(container), beforeIndex, domInsert);
} | 3.26 |
framework_VAbstractOrderedLayout_updateExpandedSizes_rdh | /**
* Assigns relative sizes to the children that should expand based on their
* expand ratios.
*/
@SuppressWarnings("deprecation")
public void updateExpandedSizes() {// Ensure the expand wrapper is in place
if (expandWrapper == null) {
expandWrapper = DOM.createDiv();
expandWrapper.setClassName(... | 3.26 |
framework_VAbstractOrderedLayout_setMargin_rdh | /**
* Set the margin of the layout.
*
* @param marginInfo
* The margin information
*/
public void setMargin(MarginInfo marginInfo) {
if (marginInfo != null) {
setStyleName("v-margin-top", marginInfo.hasTop());
setStyleName("v-margin-right", marginInfo.hasRight());
setStyleName("v-ma... | 3.26 |
framework_VAbstractOrderedLayout_getLayoutManager_rdh | /**
* Get the layout manager used by this layout.
*
* @return the layout manager
*/
public LayoutManager getLayoutManager() {
return layoutManager;
}
/**
* Deducts the caption position by examining the wrapping element.
* <p>
* For internal use only. May be removed or replaced in the future.
*
* @param ca... | 3.26 |
framework_VAbstractOrderedLayout_removeWidget_rdh | /**
* Remove a slot from the layout.
*
* @param widget
* the widget whose slot to remove
*/
public void removeWidget(Widget widget) {
Slot slot = widgetToSlot.remove(widget);
if (slot != null) {
removeSlot(slot);
}
} | 3.26 |
framework_VAbstractOrderedLayout_addOrMoveSlot_rdh | /**
* Add or move a slot to another index.
* <p>
* For internal use only. May be removed or replaced in the future.
* <p>
* You should note that the index does not refer to the DOM index if
* spacings are used. If spacings are used then the index will be adjusted
* to include the spacings when inserted.
* <p>
... | 3.26 |
framework_VAbstractOrderedLayout_updateExpandCompensation_rdh | /**
* Updates the expand compensation based on the measured sizes of children
* without expand.
*/
public void updateExpandCompensation() {
boolean isExpanding = false;
for (Widget slot : getChildren()) {
// FIXME expandRatio might be <0
if (((Slot) (slot)).getExpandRatio() != 0) {
... | 3.26 |
framework_VAbstractOrderedLayout_getSlot_rdh | /**
* Gets a slot based on the widget element. If no slot is found then null is
* returned.
*
* @param widgetElement
* The element of the widget ( Same as getWidget().getElement() )
* @return the slot, or {@code null} if not found
* @since 7.2
*/
public Slot getSlot(Element widgetElement) {
return getSlot... | 3.26 |
framework_VAbstractOrderedLayout_removeSlot_rdh | /**
* Remove a slot from the layout.
*
* This method is called automatically by {@link #removeWidget(Widget)} and
* should not be called directly by the user. When overridden, the super
* method must be called.
*
* @since 7.6
* @param slot
* to remove
*/
protected void removeSlot(Slot slot) {
remove(slo... | 3.26 |
framework_VAbstractOrderedLayout_clearExpand_rdh | /**
* Removes elements used to expand a slot.
* <p>
* For internal use only. May be removed or replaced in the future.
*/
public void clearExpand() {
if (expandWrapper != null) {
// Detach all widgets before modifying DOM
for (Widget widget : getChildren()) {
orphan(widget);
... | 3.26 |
framework_VAbstractOrderedLayout_updateCaptionOffset_rdh | /**
* Update the offset off the caption relative to the slot
* <p>
* For internal use only. May be removed or replaced in the future.
*
* @param caption
* The caption element
* @since 7.2
*/
public void updateCaptionOffset(Element caption) {
updateCaptionOffset(DOM.asOld(caption));
} | 3.26 |
framework_VAbstractOrderedLayout_setLayoutManager_rdh | /**
* Set the layout manager for the layout.
*
* @param manager
* The layout manager to use
*/
public void setLayoutManager(LayoutManager manager) {
layoutManager = manager;
} | 3.26 |
framework_VAbstractOrderedLayout_createSlot_rdh | /**
* Create a slot to be added to the layout.
*
* This method is called automatically by {@link #getSlot(Widget)} when a
* new slot is needed. It should not be called directly by the user, but can
* be overridden to customize slot creation.
*
* @since 7.6
* @param widget
* the widget for which a slot is bei... | 3.26 |
framework_VAbstractOrderedLayout_setSpacing_rdh | /**
* Turn on or off spacing in the layout.
*
* @param spacing
* True if spacing should be used, false if not
*/
public void setSpacing(boolean spacing) {
Profiler.enter("VAOL.onConnectorHierarchyChange setSpacing");
this.spacing = spacing;
// first widget does not have spacing on
// optimization... | 3.26 |
framework_VAbstractOrderedLayout_setHeight_rdh | /**
* {@inheritDoc }
*/
@Override
public void setHeight(String height) {
super.setHeight(height);definedHeight = (height != null) && (!height.isEmpty());
} | 3.26 |
framework_VAbstractOrderedLayout_getCaptionPositionFromElement_rdh | /**
* Deducts the caption position by examining the wrapping element.
* <p>
* For internal use only. May be removed or replaced in the future.
*
* @param captionWrap
* The wrapping element
* @return The caption position
* @since 7.2
*/
public CaptionPosition getCaptionPositionFromElement(Element captionWrap)... | 3.26 |
framework_VAbstractOrderedLayout_setSlotStyleNames_rdh | /**
* Sets the slot's style names. The style names will be prefixed with the
* v-slot prefix.
*
* @param widget
* the widget whose slot to style
* @param stylenames
* The style names of the slot.
*/
public void setSlotStyleNames(Widget widget, String... stylenames) {
Slot slot
= getSlot(widget);
... | 3.26 |
framework_GwtRpcButtonConnector_doRPC_rdh | /* Make an RPC to test our bug. */
private void doRPC() {
log("GwtRpcButtonTestConnector onClick");
GwtRpcServiceTestAsync v0 = GWT.create(GwtRpcServiceTest.class);
v0.giveMeThat("honey", "sugar", new AsyncCallback<String>() {
@Override
public void onSuccess(String result) {
show... | 3.26 |
framework_GwtRpcButtonConnector_showResult_rdh | /* Show the result box. */
private void showResult(String result, String labelID) {
DialogBox box = new DialogBox(true);
Label label = new Label(result);
label.getElement().setId(labelID);
box.add(label); box.center();
box.show();
} | 3.26 |
framework_Or_appliesToProperty_rdh | /**
* Returns true if a change in the named property may affect the filtering
* result. If some of the sub-filters are not in-memory filters, true is
* returned.
*
* By default, all sub-filters are iterated to check if any of them applies.
* If there are no sub-filters, true is returned as an empty Or rejects all... | 3.26 |
framework_LocaleService_createLocaleData_rdh | /**
* Creates a LocaleData instance for transportation to the client.
*
* @since 7.1
* @param locale
* The locale for which to create a LocaleData object
* @return A LocaleData object with information about the given locale
*/
protected LocaleData createLocaleData(Locale locale) {
LocaleData localeData = ... | 3.26 |
framework_LocaleService_addLocale_rdh | /**
* Adds a locale to be sent to the client (browser) for date and time entry
* etc. All locale specific information is derived from server-side
* {@link Locale} instances and sent to the client when needed, eliminating
* the need to use the {@link Locale} class and all the framework behind it
... | 3.26 |
framework_SpaceSelectHandler_setDeselectAllowed_rdh | /**
* Sets whether pressing space for the currently selected row should
* deselect the row.
*
* @param deselectAllowed
* <code>true</code> to allow deselecting the selected row;
* otherwise <code>false</code>
*/
public void setDeselectAllowed(boolean deselectAllowed) {
this.deselectAllowed = deselectAllo... | 3.26 |
framework_RadioButtonGroup_setHtmlContentAllowed_rdh | /**
* Sets whether html is allowed in the item captions. If set to true, the
* captions are passed to the browser as html and the developer is
* responsible for ensuring no harmful html is used. If set to false, the
* content is passed to the browser as plain text.
*
* @param htmlContentAllowed
* true if the c... | 3.26 |
framework_RadioButtonGroup_getItemDescriptionGenerator_rdh | /**
* Gets the item description generator.
*
* @return the item description generator
* @since 8.2
*/
public DescriptionGenerator<T> getItemDescriptionGenerator() {
return descriptionGenerator;
} | 3.26 |
framework_RadioButtonGroup_setItemEnabledProvider_rdh | /**
* Sets the item enabled predicate for this radiobutton group. The predicate
* is applied to each item to determine whether the item should be enabled
* (true) or disabled (false). Disabled items are displayed as grayed out
* and the user cannot select ... | 3.26 |
framework_ContainerEventProvider_setStartDateProperty_rdh | /**
* Set the property which provides the starting date and time of the event.
*/
public void setStartDateProperty(Object startDateProperty) {
this.startDateProperty = startDateProperty;
} | 3.26 |
framework_ContainerEventProvider_m0_rdh | /**
* Set the property which provides the ending date and time of the event.
*/
public void m0(Object endDateProperty) {
this.endDateProperty = endDateProperty;
} | 3.26 |
framework_ContainerEventProvider_setContainerDataSource_rdh | /**
* Set the container data source.
*
* @param container
* The container to use as datasource
*/
public void setContainerDataSource(Container.Indexed container) {
// Detach the previous container
detachContainerDataSource();
this.container = container;
listenToContainerEvents();
} | 3.26 |
framework_ContainerEventProvider_m1_rdh | /**
* Set the property which provides the style name for the event.
*/public void m1(Object styleNameProperty) {
this.styleNameProperty = styleNameProperty;
} | 3.26 |
framework_ContainerEventProvider_setDescriptionProperty_rdh | /**
* Set the property which provides the description of the event.
*/
public void setDescriptionProperty(Object descriptionProperty) {
this.descriptionProperty
= descriptionProperty;
} | 3.26 |
framework_ContainerEventProvider_getDescriptionProperty_rdh | /**
* Get the property which provides the description of the event.
*/
public Object getDescriptionProperty() {
return descriptionProperty;
} | 3.26 |
framework_ContainerEventProvider_getContainerDataSource_rdh | /**
* Returns the container used as data source.
*/
public Indexed getContainerDataSource() {
return container;} | 3.26 |
framework_ContainerEventProvider_listenToContainerEvents_rdh | /**
* Attaches listeners to the container so container events can be processed
*/
private void listenToContainerEvents() {if (container instanceof ItemSetChangeNotifier) {
((ItemSetChangeNotifier) (container)).addItemSetChangeListener(this);
}if (container instanceof ValueChangeNotifier) {
((Valu... | 3.26 |
framework_ContainerEventProvider_ignoreContainerEvents_rdh | /**
* Removes listeners from the container so no events are processed
*/
private void ignoreContainerEvents() {if (container instanceof ItemSetChangeNotifier) {
((ItemSetChangeNotifier) (container)).removeItemSetChangeListener(this);
}
if (container instanceof ValueChangeNotifier) {
((ValueC... | 3.26 |
framework_ContainerEventProvider_getStyleNameProperty_rdh | /**
* Get the property which provides the style name for the event.
*/public Object getStyleNameProperty() {
return styleNameProperty;
} | 3.26 |
framework_ContainerEventProvider_getEvent_rdh | /**
* Converts an event in the container to an {@link CalendarEvent}
*
* @param index
* The index of the item in the container to get the event for
* @return */
private CalendarEvent getEvent(int index) {
// Check the event cache first
for (CalendarEvent e : f2) {
if ((e instanceof ContainerCal... | 3.26 |
framework_VNotification_showNotification_rdh | /**
* Creates and shows a {@code Notification} with the specified parameters.
*
* @param client
* The client connection, cannot be {@code null}.
* @param caption
... | 3.26 |
framework_VNotification_showError_rdh | /**
* Shows an error notification and redirects the user to the given URL when
* she clicks on the notification.
*
* If both message and caption are null, redirects the user to the url
* immediately
*
* @since 7.5.1
* @param connection
* A reference to the ApplicationConnection
* @param caption
* The cap... | 3.26 |
framework_LayoutsCssTest_createPanelWith_rdh | /**
* Helper to create panels for different theme variants...
*/
private Panel createPanelWith(String caption, String styleName) { VerticalLayout panelLayout = new VerticalLayout();
panelLayout.setMargin(true);
Panel panel = new Panel(caption, panelLayout);
panelLayout.addComponent(new
Label("Some c... | 3.26 |
framework_RadioButtonGroupConnector_onDataChange_rdh | /**
* A data change handler registered to the data source. Updates the data
* items and selection status when the data source notifies of new changes
* from the server side.
*
* @param range
* the new range of data items
*/
private void onDataChange(Range
range) {
assert (range.getStart() == 0) && (range.g... | 3.26 |
framework_DeclarativeValueProvider_addValue_rdh | /**
* Sets a {@code value} for the item {@code t}.
*
* @param t
* a data item
* @param value
* a value for the item {@code t}
*/
void addValue(T t, String value) {
values.put(t, value);
} | 3.26 |
framework_CheckBox_removeStyleName_rdh | // Implementation copied from AbstractComponent
@Override
public void removeStyleName(String style) {
if (ComponentStateUtil.hasStyles(checkBox.getState().labelStyles)) {
StringTokenizer tokenizer = new StringTokenizer(style, " ");
while (tokenizer.hasMoreTokens()) {
checkBox.getState()... | 3.26 |
framework_CheckBox_getStyleName_rdh | // Implementation copied from AbstractComponent
@Override
public String getStyleName() {
// replaced String with StringBuilder
StringBuilder s = new StringBuilder();
if (ComponentStateUtil.hasStyles(checkBox.getState(false).labelStyles)) {
for (final Iterator<String> it = che... | 3.26 |
framework_CheckBox_setStyleName_rdh | // Implementation copied from AbstractComponent
@Override
public void setStyleName(String style) {
if ((style == null) || style.isEmpty()) {
checkBox.getState().labelStyles = null;
return;
}
if (checkBox.getState().labelStyles == null) {
checkBox.getState().labelStyles = new ArrayLi... | 3.26 |
framework_CheckBox_getInputElement_rdh | /**
* Returns the {@link CheckBoxInputElement} element to manipulate the style
* name of the {@code input} element of the {@link CheckBox}.
*
* @since 8.7
* @return the current {@link CheckBoxInputElement}, not {@code null}.
*/
public CheckBoxInputElement getInputElement() {
if (checkBoxInputElement == null) ... | 3.26 |
framework_CheckBox_addStyleName_rdh | // Implementation copied from AbstractComponent
@Overridepublic void addStyleName(String style) {
if ((style == null) || style.isEmpty()) {
return;}
if ((checkBox.getState().labelStyles !=
null) && checkBox.getState().labelStyles.contains(style)) {
return;
}
if (style.contains(" "))... | 3.26 |
framework_CheckBox_setValue_rdh | /**
* Sets the value of this CheckBox. If the new value is not equal to
* {@code getValue()}, fires a {@link ValueChangeEvent}. Throws
* {@code NullPointerException} if the value is null.
*
* @param value
* the new value, not {@code null}
* @param userOriginated
* {@code true} if this event originates from ... | 3.26 |
framework_ObjectProperty_setValue_rdh | /**
* Sets the value of the property.
*
* Note that since Vaadin 7, no conversions are performed and the value must
* be of the correct type.
*
* @param newValue
* the New value of the property.
* @throws <code>Property.ReadOnlyException</code>
* if the object is in read-only mode
*/
@Override
public voi... | 3.26 |
framework_ObjectProperty_getType_rdh | /**
* Returns the type of the ObjectProperty. The methods <code>getValue</code>
* and <code>setValue</code> must be compatible with this type: one must be
* able to safely cast the value returned from <code>getValue</code> to the
* given type and pass any variable assignable to this type as an argument
* to <code>... | 3.26 |
framework_ClientConnector_getConnector_rdh | /**
* Gets the connector for which this error occurred.
*
* @return The connector for which the error occurred
*/
public Connector getConnector() {
return connector; } | 3.26 |
framework_DateField_notifyFormOfValidityChange_rdh | /**
* Detects if this field is used in a Form (logically) and if so, notifies
* it (by repainting it) that the validity of this field might have changed.
*/
private void notifyFormOfValidityChange() {
Component parenOfDateField = getParent();
boolean formFound = false;
while ((parenOfDateField != null) |... | 3.26 |
framework_DateField_setLenient_rdh | /**
* Specifies whether or not date/time interpretation in component is to be
* lenient.
*
* @see Calendar#setLenient(boolean)
* @see #isLenient()
* @param lenient
* true if the leni... | 3.26 |
framework_DateField_m0_rdh | /**
* Sets the end range for this component. If the value is set after this
* date (taking the resolution into account), the component will not
* validate. If <code>endDate</code> is set to <code>null</code>, any value
* after <code>startDate</code> will be accepted by the range.
*
* @param endDate
* - the all... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.