com.vaadin.data.Container.ItemSetChangeListener Java Examples
The following examples show how to use
com.vaadin.data.Container.ItemSetChangeListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 5 votes |
/** * 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) { final Object[] l = getItemSetChangeListeners().toArray(); for (int i = 0; i < l.length; i++) { ((Container.ItemSetChangeListener) l[i]) .containerItemSetChange(event); } } }
Example #2
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 4 votes |
@Override public void addItemSetChangeListener(ItemSetChangeListener listener) { if (getItemSetChangeListeners() == null) { setItemSetChangeListeners(new LinkedList<Container.ItemSetChangeListener>()); } getItemSetChangeListeners().add(listener); }
Example #3
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 4 votes |
@Override public void addListener(ItemSetChangeListener listener) { addItemSetChangeListener(listener); }
Example #4
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 4 votes |
@Override public void removeItemSetChangeListener(ItemSetChangeListener listener) { if (getItemSetChangeListeners() != null) { getItemSetChangeListeners().remove(listener); } }
Example #5
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 4 votes |
@Override public void removeListener(ItemSetChangeListener listener) { removeItemSetChangeListener(listener); }
Example #6
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 4 votes |
protected void setItemSetChangeListeners( Collection<Container.ItemSetChangeListener> itemSetChangeListeners) { this.itemSetChangeListeners = itemSetChangeListeners; }
Example #7
Source File: ItemSetChangeNotifier.java From XACML with MIT License | 4 votes |
protected Collection<Container.ItemSetChangeListener> getItemSetChangeListeners() { return itemSetChangeListeners; }