|
|||||||||
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 | |
---|---|
(package private) class |
DomainTableWorkSurface.LookupWorkerRunnable
|
Field Summary | |
---|---|
(package private) org.hibernate.Session |
longSessionForPrinting
|
(package private) int |
rowCount
|
Constructor Summary | |
---|---|
DomainTableWorkSurface(java.lang.Class clazz,
java.lang.String name,
javax.swing.Icon icon)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
do something useful when an event occurs. |
void |
addToResultSet(DomainObject domainObject)
|
void |
closeLongSessionForPrinting()
|
void |
exportEAD()
|
void |
exportMARC()
|
java.lang.Class |
getClazz()
|
javax.swing.JComponent |
getComponent()
Get the underlying component 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 |
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. |
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. |
void |
updateColumns()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.hibernate.Session longSessionForPrinting
int rowCount
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 worksurfaceMethod Detail |
---|
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
public final void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
actionEvent
- the event to processpublic 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 final void onSearch()
public final void onFindAll()
public java.util.Collection getResultSet()
public java.util.ArrayList<DomainObject> getResultSetForPrinting(InfiniteProgressPanel progressPanel, ATReport report) throws PersistenceException, LookupException, UnsupportedClassException
PersistenceException
LookupException
UnsupportedClassException
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |