public class ListModelMapProxy<K,V> extends ListModelMap<K,V> implements javassist.util.proxy.Proxy, FormProxyObject, java.io.Serializable
AbstractListModel.DefaultSelectionControl<E>_map_selectionINTERNAL_EVENT| Constructor and Description |
|---|
ListModelMapProxy(ListModelMap<K,V> origin,
java.lang.annotation.Annotation[] callerAnnots) |
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
addSelection(java.util.Map.Entry<K,V> obj) |
boolean |
addToSelection(java.util.Map.Entry<K,V> 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 |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
V |
get(java.lang.Object key) |
int |
getActivePage()
Returns the active page (starting from 0).
|
java.util.Map.Entry<K,V> |
getElementAt(int j)
Returns the entry (Map.Entry) at the specified index.
|
java.util.Map<K,V> |
getInnerMap()
Get the inner real Map.
|
ListModelMap<K,V> |
getOriginObject()
Returns the origin object.
|
int |
getPageCount()
Returns the number of pages.
|
int |
getPageSize()
Returns the number of items per page.
|
java.util.Set<java.util.Map.Entry<K,V>> |
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<java.util.Map.Entry<K,V>> cmpr)
Returns the sort direction of this model for the given comparator.
|
int |
hashCode() |
int |
indexOf(java.lang.Object o)
Returns the index of the specified object based on the entry
(Map.Entry).
|
int |
indexOfKey(java.lang.Object o)
Returns the index of the specified object based on the key.
|
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.Set<K> |
keySet() |
void |
onDataChange(java.lang.Object o) |
void |
onDirtyChange() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
remove(java.lang.Object key) |
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 |
removeSelection(java.lang.Object obj) |
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object.
|
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.Set<java.util.Map.Entry<K,V>> selection) |
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<java.util.Map.Entry<K,V>> cmpr,
boolean ascending)
Sorts the data.
|
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.String |
toString() |
java.util.Collection<V> |
values() |
fireSelectionEvent, readSelection, writeSelectionfireEvent, isMultiple, newEmptySelection, removeAllSelection, retainAllSelection, setSelectionpublic ListModelMapProxy(ListModelMap<K,V> origin, java.lang.annotation.Annotation[] callerAnnots)
public void addListDataListener(ListDataListener l)
AbstractListModeladdListDataListener in interface ListModel<java.util.Map.Entry<K,V>>addListDataListener in class AbstractListModel<java.util.Map.Entry<K,V>>public void removeListDataListener(ListDataListener l)
AbstractListModelremoveListDataListener in interface ListModel<java.util.Map.Entry<K,V>>removeListDataListener in class AbstractListModel<java.util.Map.Entry<K,V>>public java.util.Set<java.util.Map.Entry<K,V>> getSelection()
AbstractListModelgetSelection in interface Selectable<java.util.Map.Entry<K,V>>getSelection in class AbstractListModel<java.util.Map.Entry<K,V>>public boolean isSelected(java.lang.Object obj)
AbstractListModelisSelected in interface Selectable<java.util.Map.Entry<K,V>>isSelected in class AbstractListModel<java.util.Map.Entry<K,V>>public boolean isSelectionEmpty()
AbstractListModelisSelectionEmpty in interface Selectable<java.util.Map.Entry<K,V>>isSelectionEmpty in class AbstractListModel<java.util.Map.Entry<K,V>>public boolean addToSelection(java.util.Map.Entry<K,V> obj)
AbstractListModelIf this represents a change to the current selection then notify each ListDataListener, including UI.
addToSelection in interface Selectable<java.util.Map.Entry<K,V>>addToSelection in class AbstractListModel<java.util.Map.Entry<K,V>>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)
AbstractListModelIf this represents a change to the current selection then notify each ListDataListener, including UI.
removeFromSelection in interface Selectable<java.util.Map.Entry<K,V>>removeFromSelection in class AbstractListModel<java.util.Map.Entry<K,V>>obj - the object to be remove from selection.public void clearSelection()
AbstractListModelIf this represents a change to the current selection then notify each ListDataListener, including UI.
clearSelection in interface Selectable<java.util.Map.Entry<K,V>>clearSelection in class AbstractListModel<java.util.Map.Entry<K,V>>public void setMultiple(boolean multiple)
AbstractListModelsetMultiple in interface Selectable<java.util.Map.Entry<K,V>>setMultiple in class AbstractListModel<java.util.Map.Entry<K,V>>public void setSelectionControl(SelectionControl ctrl)
SelectablesetSelectionControl in interface Selectable<java.util.Map.Entry<K,V>>setSelectionControl in class AbstractListModel<java.util.Map.Entry<K,V>>public SelectionControl getSelectionControl()
SelectablegetSelectionControl in interface Selectable<java.util.Map.Entry<K,V>>getSelectionControl in class AbstractListModel<java.util.Map.Entry<K,V>>public void addSelection(java.util.Map.Entry<K,V> obj)
addSelection in class ListModelMap<K,V>public void removeSelection(java.lang.Object obj)
removeSelection in class ListModelMap<K,V>public int getPageSize()
PageableDefault: 20.
getPageSize in interface PageablegetPageSize in class AbstractListModel<java.util.Map.Entry<K,V>>public void setPageSize(int size)
throws WrongValueException
PageablesetPageSize in interface PageablesetPageSize in class AbstractListModel<java.util.Map.Entry<K,V>>WrongValueExceptionpublic int getPageCount()
PageablegetPageCount in interface PageablegetPageCount in class AbstractListModel<java.util.Map.Entry<K,V>>public int getActivePage()
PageablegetActivePage in interface PageablegetActivePage in class AbstractListModel<java.util.Map.Entry<K,V>>public void setActivePage(int pg)
throws WrongValueException
PageablesetActivePage in interface PageablesetActivePage in class AbstractListModel<java.util.Map.Entry<K,V>>WrongValueExceptionpublic void addPagingEventListener(PagingListener l)
PageableModeladdPagingEventListener in interface PageableModeladdPagingEventListener in class AbstractListModel<java.util.Map.Entry<K,V>>public void removePagingEventListener(PagingListener l)
PageableModelremovePagingEventListener in interface PageableModelremovePagingEventListener in class AbstractListModel<java.util.Map.Entry<K,V>>public java.util.Map<K,V> getInnerMap()
ListModelMapgetInnerMap in class ListModelMap<K,V>public int getSize()
ListModelpublic java.util.Map.Entry<K,V> getElementAt(int j)
ListModelMapgetElementAt in interface ListModel<java.util.Map.Entry<K,V>>getElementAt in class ListModelMap<K,V>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<K,V>containsKey in class ListModelMap<K,V>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<K,V>containsValue in class ListModelMap<K,V>public boolean equals(java.lang.Object o)
public java.lang.String toString()
toString in class ListModelMap<K,V>public int hashCode()
public boolean isEmpty()
public V get(java.lang.Object key)
public V remove(java.lang.Object key)
public void clear()
public java.util.Set<K> keySet()
public java.util.Collection<V> values()
public int indexOfKey(java.lang.Object o)
ListModelMapindexOfKey in class ListModelMap<K,V>o - the key to look forpublic int indexOf(java.lang.Object o)
ListModelMapindexOf in class ListModelMap<K,V>o - the object to look for. It must be an instance of Map.Entry.public int size()
public void sort(java.util.Comparator<java.util.Map.Entry<K,V>> cmpr, boolean ascending)
ListModelMappublic void sort()
Sortablesort in interface Sortable<java.util.Map.Entry<K,V>>sort in class ListModelMap<K,V>Sortable.sort(Comparator, boolean)public java.lang.String getSortDirection(java.util.Comparator<java.util.Map.Entry<K,V>> cmpr)
SortableDefault: "natural".
getSortDirection in interface Sortable<java.util.Map.Entry<K,V>>getSortDirection in class ListModelMap<K,V>public java.lang.Object clone()
clone in class ListModelMap<K,V>public ListModelMap<K,V> getOriginObject()
FormProxyObjectgetOriginObject in interface FormProxyObjectpublic void onDirtyChange()
public void onDataChange(java.lang.Object o)
protected void setDirty(boolean d)
public void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler in interface javassist.util.proxy.Proxypublic boolean isFormDirty()
FormProxyObjectisFormDirty in interface FormProxyObjectpublic void resetFromOrigin()
FormProxyObjectresetFromOrigin in interface FormProxyObjectpublic void submitToOrigin(BindContext ctx)
FormProxyObjectsubmitToOrigin in interface FormProxyObjectprotected static boolean testEquals(java.lang.Object e,
java.lang.Object o)
public void setFormOwner(java.lang.Object owner,
FormBinding binding)
FormProxyObjectsetFormOwner in interface FormProxyObjectowner - the object associated with this form.public void cacheSavePropertyBinding(java.lang.String property,
SavePropertyBinding s)
FormProxyObjectcacheSavePropertyBinding in interface FormProxyObjectproperty - the property of save property bindings - the save property bindingpublic java.util.Set<Pair<java.lang.String,SavePropertyBinding>> collectCachedSavePropertyBinding()
FormProxyObjectcollectCachedSavePropertyBinding in interface FormProxyObjectpublic void setPath(java.lang.String property,
ProxyNode parent)
FormProxyObjectsetPath in interface FormProxyObjectproperty - p the propertyparent - parent the parent proxy nodeCopyright © 2005-2024 Potix Corporation. All Rights Reserved.