public class ViewersManager
extends java.lang.Object
ImageComponent
class and has the
responsibility to open, close, relocate the various instances of the
ViewerFrame
class, that take care of painting the image in the mapped
data base field, each of them painting different record content.
The main simple task of the manager is to open a ViewerFrame instance for displaying the image contained in the ('large') blob field managed by the ImageComponent, for the current (currently selected) record in the DataAccessPanel.
When the ImageComponent object is hosted in a DataScrollingPanel instance, say X the database field managed by the ImageComponent, the class has also the ability to open as many ViewerFrame objects as the rows are in the managed data grid, each showing the image in X that occurs at a different record.
It is also responsible to populate the 'window' menu with the titles of the added windows (the viewers') synchronizing its content with the actual life of them.
Furthermore it can dispose various Viewers as tiles (up to 16) or as in a stack, and, even, collectively close them.
Its management methods are (also) invoked by the ViewerFrame instances themselves, like in a scenario in which the coordinated resource asks to be coordinated. Actually this derived from the needs to make available the management ability from the inside of the viewer currently active.
ImageComponent
,
ViewerFrame
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.Long,ViewerFrame> |
m_viewersMap |
Constructor and Description |
---|
ViewersManager(Term term) |
ViewersManager(Term term,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
protected DataAccessDialog |
dataDialog() |
void |
doCloseViewer(boolean removeComponent,
long viewerIdentity,
boolean removeViewerFromMap) |
void |
doCloseViewers(long viewerIndentity,
boolean removeViewerFromMap) |
protected void |
openDocument(byte[] bytes) |
void |
stackViewers() |
void |
tileViewers() |
long |
viewerIdentity() |
protected java.lang.String |
viewerTitle() |
public java.util.Map<java.lang.Long,ViewerFrame> m_viewersMap
public ViewersManager(Term term)
public ViewersManager(Term term, java.lang.String fieldName)
protected DataAccessDialog dataDialog()
public void doCloseViewer(boolean removeComponent, long viewerIdentity, boolean removeViewerFromMap)
public void doCloseViewers(long viewerIndentity, boolean removeViewerFromMap)
protected void openDocument(byte[] bytes)
public void stackViewers()
public void tileViewers()
public long viewerIdentity()
protected java.lang.String viewerTitle()