org.archiviststoolkit.mydomain
Class ResourceTableWorkSurface

java.lang.Object
  extended by org.archiviststoolkit.mydomain.DomainTableWorkSurface
      extended by org.archiviststoolkit.mydomain.ResourceTableWorkSurface
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, WorkSurface

public class ResourceTableWorkSurface
extends DomainTableWorkSurface


Nested Class Summary
 
Nested classes/interfaces inherited from class org.archiviststoolkit.mydomain.DomainTableWorkSurface
DomainTableWorkSurface.DomainTableListEventListener
 
Field Summary
 
Fields inherited from class org.archiviststoolkit.mydomain.DomainTableWorkSurface
access, clazz, currentDomainObject, currentObjectSublist, currentRecordLock, dialog, eventListener, filterField, humanReadableSearchString, resultSet, resultSizeDisplay, rootComponent, scrollPane, selectedRow, showConfirmDialog, table
 
Constructor Summary
ResourceTableWorkSurface(java.lang.Class clazz, java.lang.String name, javax.swing.Icon icon)
          Constructor.
ResourceTableWorkSurface(java.lang.Class clazz, java.lang.String name, javax.swing.Icon icon, DomainTableFormat tableFormat)
          Constructor.
 
Method Summary
protected  void getCurrentDomainObjectFromDatabase(DomainObject domainObject)
           
protected  void setFilteredListWithCurrentDomainObject()
           
protected  void setSublistWithCurrentDomainObject()
           
protected  void updateListWithNewResultSet(java.util.Collection newResultSet)
           
protected  void updateRowCount()
           
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainTableWorkSurface
actionPerformed, addRecordLock, addToResultSet, clearCurrentRecordLock, closeLongSessionForPrinting, exportDublinCore, exportEAD, exportMARC, exportMETS, exportMODS, getClazz, getClazzForReport, getComponent, getCurrentDomainObject, getCurrentDomainObjectFromDatabase, getDomainEditor, getIcon, getName, getNewAction, getResultSet, getResultSetForPrinting, getSelectedRow, getSelectedRowCount, getTable, getTableFormat, getTooltip, init, merge, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, onDelete, onFindAll, onInsert, onRemoveGroup, onSearch, onUpdate, setCurrentDomainObject, setSelectedRow, updateColumns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTableWorkSurface

public ResourceTableWorkSurface(java.lang.Class clazz,
                                java.lang.String name,
                                javax.swing.Icon icon,
                                DomainTableFormat tableFormat)
Constructor.

Parameters:
clazz - the domain model class
name - the name of this worksurface
icon - the icon of this worksurface
tableFormat - the table format to use for the domain table

ResourceTableWorkSurface

public ResourceTableWorkSurface(java.lang.Class clazz,
                                java.lang.String name,
                                javax.swing.Icon icon)
Constructor.

Parameters:
clazz - the domain model class
name - the name of this worksurface
icon - the icon of this worksurface
Method Detail

updateListWithNewResultSet

protected void updateListWithNewResultSet(java.util.Collection newResultSet)
Overrides:
updateListWithNewResultSet in class DomainTableWorkSurface

getCurrentDomainObjectFromDatabase

protected void getCurrentDomainObjectFromDatabase(DomainObject domainObject)
                                           throws LookupException
Overrides:
getCurrentDomainObjectFromDatabase in class DomainTableWorkSurface
Throws:
LookupException

setSublistWithCurrentDomainObject

protected void setSublistWithCurrentDomainObject()
Overrides:
setSublistWithCurrentDomainObject in class DomainTableWorkSurface

setFilteredListWithCurrentDomainObject

protected void setFilteredListWithCurrentDomainObject()
Overrides:
setFilteredListWithCurrentDomainObject in class DomainTableWorkSurface

updateRowCount

protected void updateRowCount()
Overrides:
updateRowCount in class DomainTableWorkSurface