|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zul.AbstractListModel
public abstract class AbstractListModel
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(java.lang.Object 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) . |
java.util.Set |
getSelection()
Returns current selection. |
protected void |
removeAllSelection(java.util.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(java.lang.Object obj)
Remove the specified object from selection. |
protected void |
retainAllSelection(java.util.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
public void removeListDataListener(ListDataListener l)
ListModel
removeListDataListener
in interface ListModel
public java.util.Set getSelection()
Selectable
getSelection
in interface Selectable
public void addSelection(java.lang.Object obj)
Selectable
addSelection
in interface Selectable
obj
- the object to be as selection.public void removeSelection(java.lang.Object obj)
Selectable
removeSelection
in interface Selectable
obj
- the object to be remove from selection.public void clearSelection()
Selectable
clearSelection
in interface Selectable
protected void removeAllSelection(java.util.Collection c)
protected void retainAllSelection(java.util.Collection c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |