public class ListModelListProxy<E> extends ListModelList<E> implements javassist.util.proxy.Proxy, FormProxyObject, java.io.Serializable
AbstractListModel.DefaultSelectionControl<E>
_list
_selection
INTERNAL_EVENT
Constructor and Description |
---|
ListModelListProxy(ListModelList<E> origin,
java.lang.annotation.Annotation[] callerAnnots) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
add(int index,
E element) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
void |
addListDataListener(ListDataListener l)
Adds a listener to the list that's notified each time a change
to the data model occurs.
|
void |
addPagingEventListener(PagingListener l)
Adds a listener to the list of listeners to be notified when a PagingEvent
happens outside of standard Paging component
|
boolean |
addToSelection(E obj)
Add the specified object into selection.
|
void |
cacheSavePropertyBinding(java.lang.String property,
SavePropertyBinding s)
Cache save property binding by property string
|
void |
clear() |
void |
clearSelection()
Change the selection to the empty set.
|
java.lang.Object |
clone() |
java.util.Set<Pair<java.lang.String,SavePropertyBinding>> |
collectCachedSavePropertyBinding()
Collect all of collect cached save property bindings
|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
protected <T> T |
createProxyObject(T t) |
boolean |
equals(java.lang.Object o) |
E |
get(int index) |
int |
getActivePage()
Returns the active page (starting from 0).
|
ListModelList<E> |
getCache() |
E |
getElementAt(int j)
Returns the value at the specified index.
|
java.util.List<E> |
getInnerList()
Get the inner real List.
|
ListModelList<E> |
getOriginObject()
Returns the origin object.
|
int |
getPageCount()
Returns the number of pages.
|
int |
getPageSize()
Returns the number of items per page.
|
java.util.Set<E> |
getSelection()
Returns the current selection.
|
SelectionControl |
getSelectionControl()
Returns the selection control for the selection model, if any.
|
int |
getSize()
Returns the length of the list.
|
java.lang.String |
getSortDirection(java.util.Comparator<E> cmpr)
Returns the sort direction of this model for the given comparator.
|
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
boolean |
isFormDirty()
Returns whether the form proxy object is dirty or not, including all
of its attributes.
|
boolean |
isSelected(java.lang.Object obj)
Returns whether an object is selected.
|
boolean |
isSelectionEmpty()
Returns true if the selection is currently empty.
|
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
boolean |
notifyChange(E element)
Notifies a change of the same element to trigger an event of
ListDataEvent.CONTENTS_CHANGED . |
void |
onDataChange(java.lang.Object o) |
void |
onDirtyChange() |
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeFromSelection(java.lang.Object obj)
Remove the specified object from selection.
|
void |
removeListDataListener(ListDataListener l)
Removes a listener from the list that's notified each time
a change to the data model occurs.
|
void |
removePagingEventListener(PagingListener l)
Removes a listener from the list of listeners to be notified when a PagingEvent
happens outside of standard Paging component
|
void |
removeRange(int fromIndex,
int toIndex)
Remove from fromIndex(inclusive) to toIndex(exclusive).
|
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object.
|
boolean |
retainAll(java.util.Collection<?> c) |
E |
set(int index,
E element) |
void |
setActivePage(int pg)
Sets the active page (starting from 0).
|
protected void |
setDirty(boolean d) |
void |
setFormOwner(java.lang.Object owner,
FormBinding binding)
Sets the owner of this form with its binding.
|
void |
setHandler(javassist.util.proxy.MethodHandler mi) |
void |
setMultiple(boolean multiple)
Sets the selection mode to be multiple.
|
void |
setPageSize(int size)
Sets the number of items per page.
|
void |
setPath(java.lang.String property,
ProxyNode parent)
Set the property of current form proxy object and it's creator
|
void |
setSelection(java.util.Collection<? extends E> selection)
Replace the current selection with the given set.
|
void |
setSelectionControl(SelectionControl ctrl)
Sets the selection control for the selection model
|
int |
size() |
void |
sort()
Sort the data model by default or assigned comparator.
|
void |
sort(java.util.Comparator<E> cmpr,
boolean ascending)
Sorts the data.
|
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
void |
submitToOrigin(BindContext ctx)
Saves all of the changes of this form to the origin object.
|
protected static boolean |
testEquals(java.lang.Object e,
java.lang.Object o) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
addSelection, fireSelectionEvent, removeSelection
fireEvent, isMultiple, newEmptySelection, readSelection, removeAllSelection, retainAllSelection, writeSelection
public ListModelListProxy(ListModelList<E> origin, java.lang.annotation.Annotation[] callerAnnots)
public ListModelList<E> getCache()
public void onDirtyChange()
public void onDataChange(java.lang.Object o)
protected void setDirty(boolean d)
public void addListDataListener(ListDataListener l)
AbstractListModel
addListDataListener
in interface ListModel<E>
addListDataListener
in class AbstractListModel<E>
public void removeListDataListener(ListDataListener l)
AbstractListModel
removeListDataListener
in interface ListModel<E>
removeListDataListener
in class AbstractListModel<E>
public java.util.Set<E> getSelection()
AbstractListModel
getSelection
in interface Selectable<E>
getSelection
in class AbstractListModel<E>
public void setSelection(java.util.Collection<? extends E> selection)
AbstractListModel
If this represents a change to the current selection then notify each ListDataListener, including UI.
setSelection
in interface Selectable<E>
setSelection
in class AbstractListModel<E>
public boolean isSelected(java.lang.Object obj)
AbstractListModel
isSelected
in interface Selectable<E>
isSelected
in class AbstractListModel<E>
public boolean isSelectionEmpty()
AbstractListModel
isSelectionEmpty
in interface Selectable<E>
isSelectionEmpty
in class AbstractListModel<E>
public boolean addToSelection(E obj)
AbstractListModel
If this represents a change to the current selection then notify each ListDataListener, including UI.
addToSelection
in interface Selectable<E>
addToSelection
in class AbstractListModel<E>
obj
- the object to be as selection.obj
is not part of the data, or was already selected.public boolean removeFromSelection(java.lang.Object obj)
AbstractListModel
If this represents a change to the current selection then notify each ListDataListener, including UI.
removeFromSelection
in interface Selectable<E>
removeFromSelection
in class AbstractListModel<E>
obj
- the object to be remove from selection.public void clearSelection()
AbstractListModel
If this represents a change to the current selection then notify each ListDataListener, including UI.
clearSelection
in interface Selectable<E>
clearSelection
in class AbstractListModel<E>
public void setMultiple(boolean multiple)
AbstractListModel
setMultiple
in interface Selectable<E>
setMultiple
in class AbstractListModel<E>
public void setSelectionControl(SelectionControl ctrl)
Selectable
setSelectionControl
in interface Selectable<E>
setSelectionControl
in class AbstractListModel<E>
public SelectionControl getSelectionControl()
Selectable
getSelectionControl
in interface Selectable<E>
getSelectionControl
in class AbstractListModel<E>
public int getPageSize()
Pageable
Default: 20.
getPageSize
in interface Pageable
getPageSize
in class AbstractListModel<E>
public void setPageSize(int size) throws WrongValueException
Pageable
setPageSize
in interface Pageable
setPageSize
in class AbstractListModel<E>
WrongValueException
public int getPageCount()
Pageable
getPageCount
in interface Pageable
getPageCount
in class AbstractListModel<E>
public int getActivePage()
Pageable
getActivePage
in interface Pageable
getActivePage
in class AbstractListModel<E>
public void setActivePage(int pg) throws WrongValueException
Pageable
setActivePage
in interface Pageable
setActivePage
in class AbstractListModel<E>
WrongValueException
public void addPagingEventListener(PagingListener l)
PageableModel
addPagingEventListener
in interface PageableModel
addPagingEventListener
in class AbstractListModel<E>
public void removePagingEventListener(PagingListener l)
PageableModel
removePagingEventListener
in interface PageableModel
removePagingEventListener
in class AbstractListModel<E>
public void removeRange(int fromIndex, int toIndex)
ListModelList
removeRange
in class ListModelList<E>
fromIndex
- the begin index (inclusive) to be removed.toIndex
- the end index (exclusive) to be removed.public java.util.List<E> getInnerList()
ListModelList
getInnerList
in class ListModelList<E>
public int getSize()
ListModel
public E getElementAt(int j)
ListModel
getElementAt
in interface ListModel<E>
getElementAt
in class ListModelList<E>
public boolean add(E o)
add
in interface java.util.Collection<E>
add
in interface java.util.List<E>
add
in class ListModelList<E>
public void add(int index, E element)
add
in interface java.util.List<E>
add
in class ListModelList<E>
public boolean notifyChange(E element)
ListModelList
ListDataEvent.CONTENTS_CHANGED
.notifyChange
in class ListModelList<E>
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.List<E>
addAll
in class ListModelList<E>
public boolean addAll(int index, java.util.Collection<? extends E> c)
addAll
in interface java.util.List<E>
addAll
in class ListModelList<E>
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.List<E>
clear
in class ListModelList<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
contains
in interface java.util.List<E>
contains
in class ListModelList<E>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<E>
containsAll
in interface java.util.List<E>
containsAll
in class ListModelList<E>
public E get(int index)
get
in interface java.util.List<E>
get
in class ListModelList<E>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<E>
indexOf
in class ListModelList<E>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
isEmpty
in interface java.util.List<E>
isEmpty
in class ListModelList<E>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<E>
lastIndexOf
in class ListModelList<E>
public java.util.ListIterator<E> listIterator()
listIterator
in interface java.util.List<E>
listIterator
in class ListModelList<E>
public java.util.ListIterator<E> listIterator(int index)
listIterator
in interface java.util.List<E>
listIterator
in class ListModelList<E>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
remove
in interface java.util.List<E>
remove
in class ListModelList<E>
public E remove(int index)
remove
in interface java.util.List<E>
remove
in class ListModelList<E>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
removeAll
in interface java.util.List<E>
removeAll
in class ListModelList<E>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
retainAll
in interface java.util.List<E>
retainAll
in class ListModelList<E>
public java.util.Iterator<E> iterator()
public E set(int index, E element)
set
in interface java.util.List<E>
set
in class ListModelList<E>
public int size()
size
in interface java.util.Collection<E>
size
in interface java.util.List<E>
size
in class ListModelList<E>
public java.util.List<E> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<E>
subList
in class ListModelList<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.List<E>
toArray
in class ListModelList<E>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.List<E>
toArray
in class ListModelList<E>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<E>
equals
in interface java.util.List<E>
equals
in class ListModelList<E>
public int hashCode()
hashCode
in interface java.util.Collection<E>
hashCode
in interface java.util.List<E>
hashCode
in class ListModelList<E>
public java.lang.String toString()
toString
in class ListModelList<E>
public void sort(java.util.Comparator<E> cmpr, boolean ascending)
ListModelList
public void sort()
Sortable
sort
in interface Sortable<E>
sort
in class ListModelList<E>
Sortable.sort(Comparator, boolean)
public java.lang.String getSortDirection(java.util.Comparator<E> cmpr)
Sortable
Default: "natural".
getSortDirection
in interface Sortable<E>
getSortDirection
in class ListModelList<E>
public java.lang.Object clone()
clone
in class ListModelList<E>
public void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler
in interface javassist.util.proxy.Proxy
public ListModelList<E> getOriginObject()
FormProxyObject
getOriginObject
in interface FormProxyObject
public void resetFromOrigin()
FormProxyObject
resetFromOrigin
in interface FormProxyObject
public void submitToOrigin(BindContext ctx)
FormProxyObject
submitToOrigin
in interface FormProxyObject
public boolean isFormDirty()
FormProxyObject
isFormDirty
in interface FormProxyObject
public void setFormOwner(java.lang.Object owner, FormBinding binding)
FormProxyObject
setFormOwner
in interface FormProxyObject
owner
- the object associated with this form.public void setPath(java.lang.String property, ProxyNode parent)
FormProxyObject
setPath
in interface FormProxyObject
property
- p the propertyparent
- parent the parent proxy nodepublic void cacheSavePropertyBinding(java.lang.String property, SavePropertyBinding s)
FormProxyObject
cacheSavePropertyBinding
in interface FormProxyObject
property
- the property of save property bindings
- the save property bindingpublic java.util.Set<Pair<java.lang.String,SavePropertyBinding>> collectCachedSavePropertyBinding()
FormProxyObject
collectCachedSavePropertyBinding
in interface FormProxyObject
protected static boolean testEquals(java.lang.Object e, java.lang.Object o)
protected <T> T createProxyObject(T t)
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.