|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zul.AbstractListModel<E>
public abstract class AbstractListModel<E>
A skeletal implementation for ListModel
.
Constructor Summary | |
---|---|
AbstractListModel()
|
Method Summary | |
---|---|
void |
addListDataListener(ListDataListener l)
Adds a listener to the list that's notified each time a change to the data model occurs. |
void |
addSelection(E obj)
Add the specified object into selection. |
void |
clearSelection()
Clear all selection. |
protected void |
fireEvent(int type,
int index0,
int index1)
Fires a ListDataEvent for all registered listener
(thru addListDataListener(org.zkoss.zul.event.ListDataListener) . |
Set<E> |
getSelection()
Returns current selection. |
protected void |
removeAllSelection(Collection<?> c)
|
void |
removeListDataListener(ListDataListener l)
Removes a listener from the list that's notified each time a change to the data model occurs. |
void |
removeSelection(Object obj)
Remove the specified object from selection. |
protected void |
retainAllSelection(Collection<?> c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zkoss.zul.ListModel |
---|
getElementAt, getSize |
Constructor Detail |
---|
public AbstractListModel()
Method Detail |
---|
protected void fireEvent(int type, int index0, int index1)
ListDataEvent
for all registered listener
(thru addListDataListener(org.zkoss.zul.event.ListDataListener)
.
Note: you can invoke this method only in an event listener.
public void addListDataListener(ListDataListener l)
ListModel
addListDataListener
in interface ListModel<E>
public void removeListDataListener(ListDataListener l)
ListModel
removeListDataListener
in interface ListModel<E>
public Set<E> getSelection()
Selectable
getSelection
in interface Selectable<E>
public void addSelection(E obj)
Selectable
Notice that this method is designed to be called by a component
(such as Listbox
).
If it is called by an application, the component's selection status
won't be changed.
addSelection
in interface Selectable<E>
obj
- the object to be as selection.public void removeSelection(Object obj)
Selectable
Notice that this method is designed to be called by a component
(such as Listbox
).
If it is called by an application, the component's selection status
won't be changed.
removeSelection
in interface Selectable<E>
obj
- the object to be remove from selection.public void clearSelection()
Selectable
Notice that this method is designed to be called by a component
(such as Listbox
).
If it is called by an application, the component's selection status
won't be changed.
clearSelection
in interface Selectable<E>
protected void removeAllSelection(Collection<?> c)
protected void retainAllSelection(Collection<?> c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |