com.u2d.model
Class AbstractListEO
java.lang.Object
com.u2d.model.AbstractEObject
com.u2d.model.AbstractListEO
- All Implemented Interfaces:
- ChangeNotifier, EObject, Typed, Viewable, ListChangeNotifier, AppEventListener, ValidationNotifier, java.io.Serializable, javax.swing.ListModel
- Direct Known Subclasses:
- CriteriaListEO, SimpleListEO
public abstract class AbstractListEO
- extends AbstractEObject
- implements ListChangeNotifier, javax.swing.ListModel, AppEventListener, Typed
- Author:
- Eitan Suez
- See Also:
- Serialized Form
| Methods inherited from class com.u2d.model.AbstractEObject |
addChangeListener, addPostChangeListener, addValidationListener, currentUser, field, fireStateChanged, fireValidationException, fireValidationException, getView, hbmPersistor, makeCopy, parentObject, persistor, removeChangeListener, removePostChangeListener, removeValidationListener, setField, vmech |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_items
protected java.util.List _items
commandOrder
public static java.lang.String[] commandOrder
_commands
protected static Onion _commands
_tableModel
protected javax.swing.table.AbstractTableModel _tableModel
_listDataListenerList
protected transient javax.swing.event.EventListenerList _listDataListenerList
AbstractListEO
public AbstractListEO()
title
public Title title()
- Specified by:
title in interface EObject- Specified by:
title in class AbstractEObject
isEmpty
public abstract boolean isEmpty()
- Specified by:
isEmpty in interface EObject- Specified by:
isEmpty in class AbstractEObject
validate
public int validate()
- Specified by:
validate in interface EObject- Specified by:
validate in class AbstractEObject
iconSm
public javax.swing.Icon iconSm()
- Specified by:
iconSm in interface EObject
iconLg
public javax.swing.Icon iconLg()
- Specified by:
iconLg in interface EObject
commands
public Onion commands()
- Specified by:
commands in interface EObject- Specified by:
commands in class AbstractEObject
command
public Command command(java.lang.String commandName)
setValue
public void setValue(EObject eo)
- Specified by:
setValue in interface EObject- Specified by:
setValue in class AbstractEObject
type
public abstract ComplexType type()
- Specified by:
type in interface Typed
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getItems
public java.util.List getItems()
setItems
public void setItems(java.util.List items)
restoreItems
public void restoreItems(java.util.List items)
removeDeleteListeners
protected void removeDeleteListeners()
addDeleteListeners
protected void addDeleteListeners()
updateListeners
protected void updateListeners(boolean clear)
iterator
public java.util.Iterator iterator()
add
public void add(ComplexEObject item)
onEvent
public void onEvent(AppEvent evt)
- Specified by:
onEvent in interface AppEventListener
remove
public void remove(ComplexEObject item)
contains
public boolean contains(java.lang.Object item)
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAt in interface javax.swing.ListModel
first
public java.lang.Object first()
last
public java.lang.Object last()
getSize
public abstract int getSize()
- Specified by:
getSize in interface javax.swing.ListModel
getTotal
public abstract int getTotal()
tableModel
public javax.swing.table.TableModel tableModel()
tableModel
public javax.swing.table.TableModel tableModel(java.lang.String[] fieldNames)
tableModel
public javax.swing.table.TableModel tableModel(java.util.List fields)
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener l)
- Specified by:
addListDataListener in interface ListChangeNotifier- Specified by:
addListDataListener in interface javax.swing.ListModel
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener l)
- Specified by:
removeListDataListener in interface ListChangeNotifier- Specified by:
removeListDataListener in interface javax.swing.ListModel
fireContentsChanged
public void fireContentsChanged(java.lang.Object source,
int index0,
int index1)
- Specified by:
fireContentsChanged in interface ListChangeNotifier
fireIntervalAdded
public void fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
- Specified by:
fireIntervalAdded in interface ListChangeNotifier
fireIntervalRemoved
public void fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
- Specified by:
fireIntervalRemoved in interface ListChangeNotifier
jibxAdd
public void jibxAdd(java.lang.Object obj)
getPickView
public ListEView getPickView()
ExportToCSV
public void ExportToCSV(CommandInfo cmdInfo)
Open
public AbstractListEO Open(CommandInfo cmdInfo)
commandPrint
public Reportable commandPrint(CommandInfo cmdInfo)
setPickState
public void setPickState(Association association)
isPickState
public boolean isPickState()
setPickState
public void setPickState(Association association,
boolean inContext)
isInContext
public boolean isInContext()
- Returns:
- whether the list is intended for use in a greater
context. right now this is an evil hack that lets me conditionally
control whether list views should automatically close after
a 'pick' (in pick state) or not (so when i use this in a wizard
picking will not actually terminate my wizard!
pick
public void pick(ComplexEObject value)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
concat
public java.lang.String concat(java.lang.String delimiter)