insensa.view.html
Class AbstractHtmlView

java.lang.Object
  extended by insensa.view.html.AbstractHtmlView
All Implemented Interfaces:
IHtmlView
Direct Known Subclasses:
HtmlCountValuesTable, HtmlCovAndCorTable, HtmlInfoReaderDataTable, HtmlSpearmanRankCorrelationTable, SpatialReferenceTable

public abstract class AbstractHtmlView
extends java.lang.Object
implements IHtmlView


Nested Class Summary
private  class AbstractHtmlView.MouseOnHtml
           
private  class AbstractHtmlView.SaveAsHtmlActionListener
           
 
Field Summary
protected  javax.swing.text.Element body
           
protected  javax.swing.text.html.HTMLDocument doc
           
protected  javax.swing.JEditorPane editorPane
           
protected  javax.swing.text.html.HTMLEditorKit kit
           
protected  javax.swing.JPopupMenu popupMenu
           
protected  javax.swing.JProgressBar progressBar
           
protected  javax.swing.JMenu save
           
private  javax.swing.JMenuItem saveAsHtml
           
protected  javax.swing.JScrollPane scrollPane
           
protected  javax.swing.text.html.StyleSheet styleSheet
           
 
Constructor Summary
AbstractHtmlView()
           
 
Method Summary
 javax.swing.JComponent getComponent()
           
 javax.swing.JComponent getDropTargetComponent()
           
private  void initComponents()
           
 void initProgressBar()
           
 void saveAsHtml(java.lang.String filename)
           
protected  void saveTableAsCsv(java.lang.String filename, javax.swing.text.Element tableElement)
           
 void startView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface insensa.view.html.IHtmlView
onDropObjects, refresh
 

Field Detail

editorPane

protected javax.swing.JEditorPane editorPane

scrollPane

protected javax.swing.JScrollPane scrollPane

kit

protected javax.swing.text.html.HTMLEditorKit kit

styleSheet

protected javax.swing.text.html.StyleSheet styleSheet

doc

protected javax.swing.text.html.HTMLDocument doc

body

protected javax.swing.text.Element body

popupMenu

protected javax.swing.JPopupMenu popupMenu

save

protected javax.swing.JMenu save

progressBar

protected javax.swing.JProgressBar progressBar

saveAsHtml

private javax.swing.JMenuItem saveAsHtml
Constructor Detail

AbstractHtmlView

public AbstractHtmlView()
Method Detail

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface IHtmlView
Returns:
See Also:
IHtmlView.getComponent()

getDropTargetComponent

public javax.swing.JComponent getDropTargetComponent()
Specified by:
getDropTargetComponent in interface IHtmlView
Returns:
See Also:
IHtmlView.getDropTargetComponent()

initComponents

private void initComponents()
                     throws java.io.IOException
Throws:
java.io.IOException

initProgressBar

public void initProgressBar()

saveAsHtml

public void saveAsHtml(java.lang.String filename)
                throws java.io.IOException,
                       javax.swing.text.BadLocationException
Specified by:
saveAsHtml in interface IHtmlView
Throws:
java.io.IOException
javax.swing.text.BadLocationException
See Also:
IHtmlView.saveAsHtml(java.lang.String)

saveTableAsCsv

protected void saveTableAsCsv(java.lang.String filename,
                              javax.swing.text.Element tableElement)
                       throws java.io.IOException,
                              javax.swing.text.BadLocationException
Parameters:
filename -
tableElement -
Throws:
java.io.IOException
javax.swing.text.BadLocationException

startView

public void startView()
               throws java.io.IOException
Specified by:
startView in interface IHtmlView
Throws:
java.io.IOException
See Also:
IHtmlView.startView()