|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.archiviststoolkit.mydomain.DomainTableWorkSurface
public class DomainTableWorkSurface
A worksurface which can display a domain table.
Nested Class Summary | |
---|---|
protected class |
DomainTableWorkSurface.DomainTableListEventListener
|
Field Summary | |
---|---|
protected DomainAccessObject |
access
|
protected java.lang.Class |
clazz
The class of this worksurface. |
protected DomainObject |
currentDomainObject
|
protected java.util.List<DomainObject> |
currentObjectSublist
event list that hosts the issues |
protected RecordLocks |
currentRecordLock
|
protected DomainEditor |
dialog
the sortable table model. |
protected DomainTableWorkSurface.DomainTableListEventListener |
eventListener
|
protected javax.swing.JTextField |
filterField
|
protected java.lang.String |
humanReadableSearchString
|
protected java.util.Collection<DomainObject> |
resultSet
|
protected javax.swing.JLabel |
resultSizeDisplay
|
protected javax.swing.JPanel |
rootComponent
The root component of this worksurface. |
protected javax.swing.JScrollPane |
scrollPane
|
protected int |
selectedRow
|
static boolean |
showConfirmDialog
Variable to see if to display the confirm dialog that comes up on save button press |
protected DomainSortableTable |
table
The JTable used to render internally. |
Constructor Summary | |
---|---|
DomainTableWorkSurface()
|
|
DomainTableWorkSurface(java.lang.Class clazz,
java.lang.String name,
javax.swing.Icon icon)
Constructor. |
|
DomainTableWorkSurface(java.lang.Class clazz,
java.lang.String name,
javax.swing.Icon icon,
DomainTableFormat tableFormat)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
do something useful when an event occurs. |
void |
addRecordLock(DomainObject domainObject)
Method to to set the record lock for this object |
void |
addToResultSet(DomainObject domainObject)
|
void |
clearCurrentRecordLock()
Method to clear the current record lock |
void |
closeLongSessionForPrinting()
|
void |
exportEAD()
|
void |
exportMARC()
|
java.lang.Class |
getClazz()
|
javax.swing.JComponent |
getComponent()
Get the underlying component for this worksurface. |
DomainObject |
getCurrentDomainObject()
Synchonized method to prevent a saved thread and on update thread from having simultanoues access to the current domain object |
DomainObject |
getCurrentDomainObjectFromDatabase()
Method to return the currently selected domain object. |
protected void |
getCurrentDomainObjectFromDatabase(DomainObject domainObject)
|
DomainEditor |
getDomainEditor()
Method to return the domain editor for this worksurface. |
javax.swing.Icon |
getIcon()
Get the icon associated with this worksurface. |
java.lang.String |
getName()
Get the name of this worksurface. |
ConcreteAction |
getNewAction()
get the action which creates. |
java.util.Collection |
getResultSet()
|
java.util.ArrayList<DomainObject> |
getResultSetForPrinting(InfiniteProgressPanel progressPanel,
ATReport report)
|
int |
getSelectedRow()
Method to return the selected row. |
int |
getSelectedRowCount()
|
javax.swing.JTable |
getTable()
Get the JTable used for this worksurface. |
DomainTableFormat |
getTableFormat()
|
java.lang.String |
getTooltip()
Get the tooltip string for this worksurface. |
protected void |
init(java.lang.Class clazz,
java.lang.String name,
javax.swing.Icon icon,
DomainTableFormat tableFormat)
|
void |
merge()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Deals with a double click and therefore edit event on the table. |
void |
mouseEntered(java.awt.event.MouseEvent e)
mouse has entered the component. |
void |
mouseExited(java.awt.event.MouseEvent e)
mouse has left the component. |
void |
mousePressed(java.awt.event.MouseEvent evt)
called when the mouse is pressed. |
void |
mouseReleased(java.awt.event.MouseEvent evt)
called when the mouse is released. |
void |
onDelete()
|
void |
onFindAll()
|
void |
onInsert()
on insert display a blank editor and insert the results. |
void |
onRemoveGroup(int[] selectedIndexes)
onRemoveGroup delete a specific domain object. |
void |
onSearch()
|
void |
onUpdate()
onUpdate show the appropriate editor. |
protected void |
setCurrentDomainObject(DomainObject domainObject)
|
protected void |
setFilteredListWithCurrentDomainObject()
|
boolean |
setSelectedRow(int newSelectedRow)
Method to set the new selected row. |
protected void |
setSublistWithCurrentDomainObject()
|
void |
updateColumns()
|
protected void |
updateListWithNewResultSet(java.util.Collection newResultSet)
|
protected void |
updateRowCount()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean showConfirmDialog
protected java.lang.Class clazz
protected javax.swing.JTextField filterField
protected DomainSortableTable table
protected javax.swing.JPanel rootComponent
protected javax.swing.JScrollPane scrollPane
protected DomainTableWorkSurface.DomainTableListEventListener eventListener
protected javax.swing.JLabel resultSizeDisplay
protected java.lang.String humanReadableSearchString
protected DomainEditor dialog
protected DomainAccessObject access
protected DomainObject currentDomainObject
protected int selectedRow
protected java.util.Collection<DomainObject> resultSet
protected java.util.List<DomainObject> currentObjectSublist
protected RecordLocks currentRecordLock
Constructor Detail |
---|
public DomainTableWorkSurface(java.lang.Class clazz, java.lang.String name, javax.swing.Icon icon)
clazz
- the domain model classname
- the name of this worksurfaceicon
- the icon of this worksurfacepublic DomainTableWorkSurface(java.lang.Class clazz, java.lang.String name, javax.swing.Icon icon, DomainTableFormat tableFormat)
clazz
- the domain model classname
- the name of this worksurfaceicon
- the icon of this worksurfacetableFormat
- the table format to use for the domain tablepublic DomainTableWorkSurface()
Method Detail |
---|
protected void init(java.lang.Class clazz, java.lang.String name, javax.swing.Icon icon, DomainTableFormat tableFormat)
public final ConcreteAction getNewAction()
public final void mousePressed(java.awt.event.MouseEvent evt)
mousePressed
in interface java.awt.event.MouseListener
evt
- the mouse eventpublic final void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased
in interface java.awt.event.MouseListener
evt
- the mouse eventpublic final void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- the mouse eventpublic final void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- the eventpublic final void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- the eventpublic final javax.swing.JTable getTable()
public final javax.swing.Icon getIcon()
getIcon
in interface WorkSurface
public final java.lang.String getName()
getName
in interface WorkSurface
public final javax.swing.JComponent getComponent()
getComponent
in interface WorkSurface
public final java.lang.String getTooltip()
getTooltip
in interface WorkSurface
protected void updateRowCount()
public final void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
actionEvent
- the event to processprotected void setFilteredListWithCurrentDomainObject()
protected void setSublistWithCurrentDomainObject()
public void onDelete()
public final void onUpdate()
public final void onRemoveGroup(int[] selectedIndexes)
selectedIndexes
- the indexes of the domain objectspublic final void onInsert()
public void addToResultSet(DomainObject domainObject)
public void onSearch()
public final void onFindAll()
protected void updateListWithNewResultSet(java.util.Collection newResultSet)
public java.util.Collection getResultSet()
public java.util.ArrayList<DomainObject> getResultSetForPrinting(InfiniteProgressPanel progressPanel, ATReport report) throws PersistenceException, LookupException, UnsupportedClassException, ReportExecutionException
PersistenceException
LookupException
UnsupportedClassException
ReportExecutionException
public int getSelectedRowCount()
public void closeLongSessionForPrinting()
public DomainTableFormat getTableFormat()
public java.lang.Class getClazz()
public void updateColumns()
public void exportMARC()
public void exportEAD()
public void merge()
protected void getCurrentDomainObjectFromDatabase(DomainObject domainObject) throws LookupException
LookupException
public DomainObject getCurrentDomainObject()
protected void setCurrentDomainObject(DomainObject domainObject)
public DomainObject getCurrentDomainObjectFromDatabase()
public void addRecordLock(DomainObject domainObject)
domainObject
- The record to add a lock forpublic void clearCurrentRecordLock()
public boolean setSelectedRow(int newSelectedRow)
newSelectedRow
- The new selected row
public int getSelectedRow()
public DomainEditor getDomainEditor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |