org.kabeja.ui.impl
Class ProcessingRunViewComponent

java.lang.Object
  extended by org.kabeja.ui.impl.ProcessingRunViewComponent
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, Component, DXFDocumentChangeEventProvider, ProcessingUIComponent, PropertiesListener, Serviceable, ViewComponent

public class ProcessingRunViewComponent
extends java.lang.Object
implements ViewComponent, Serviceable, java.awt.event.ActionListener, PropertiesListener, DXFDocumentChangeEventProvider


Field Summary
protected  boolean autogenerateOutput
           
protected  java.lang.String baseDir
           
protected  DXFDocument doc
           
protected  boolean initialized
           
protected  java.util.ArrayList listeners
           
protected  boolean locked
           
protected  javax.swing.JTextArea logView
           
protected  ProcessingManager manager
           
protected  javax.swing.JPanel pipelinePanel
           
protected  java.lang.String processingPipeline
           
protected  java.util.Map properties
           
protected  java.io.File sourceFile
           
protected  javax.swing.JTabbedPane tabbedPane
           
protected  javax.swing.JComponent view
           
protected  java.util.List viewComponents
           
 
Fields inherited from interface org.kabeja.ui.ViewComponent
SERVICE
 
Fields inherited from interface org.kabeja.ui.event.DXFDocumentChangeEventProvider
SERVICE
 
Constructor Summary
ProcessingRunViewComponent()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addDXFDocumentChangeListener(DXFDocumentChangeListener listener)
           
protected  void chooseInput()
           
protected  void fireDXFDocumentChangeEvent()
           
 java.lang.String getTitle()
           
 javax.swing.JComponent getView()
           
protected  void initialize()
           
protected  void log(java.lang.String msg)
           
protected  void logException(java.lang.Exception e)
           
protected  void parseFile(java.io.File f, Parser parser)
           
protected  void process()
           
protected  void processFile(DXFDocument doc, java.io.File f)
           
 void processInput(java.io.File file)
           
protected  void propagateDXFDocument(DXFDocument doc)
           
 void propertiesChanged(java.util.Map props)
          Will be called every time the properties have changed
 void removeDXFDocumentChangeListener(DXFDocumentChangeListener listener)
           
 void setProcessingManager(ProcessingManager manager)
          Set the current @see ProcessingManager of the application.
 void setServiceManager(ServiceManager manager)
          Set the @see ServiceManager of the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tabbedPane

protected javax.swing.JTabbedPane tabbedPane

view

protected javax.swing.JComponent view

pipelinePanel

protected javax.swing.JPanel pipelinePanel

locked

protected boolean locked

initialized

protected boolean initialized

viewComponents

protected java.util.List viewComponents

processingPipeline

protected java.lang.String processingPipeline

logView

protected javax.swing.JTextArea logView

manager

protected ProcessingManager manager

baseDir

protected java.lang.String baseDir

sourceFile

protected java.io.File sourceFile

doc

protected DXFDocument doc

autogenerateOutput

protected boolean autogenerateOutput

properties

protected java.util.Map properties

listeners

protected java.util.ArrayList listeners
Constructor Detail

ProcessingRunViewComponent

public ProcessingRunViewComponent()
Method Detail

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface ViewComponent
Returns:
the title of the component

getView

public javax.swing.JComponent getView()
Specified by:
getView in interface ViewComponent
Returns:
the view of this component

initialize

protected void initialize()

setProcessingManager

public void setProcessingManager(ProcessingManager manager)
Description copied from interface: ProcessingUIComponent
Set the current @see ProcessingManager of the application. Could be called multiple times.

Specified by:
setProcessingManager in interface ProcessingUIComponent

setServiceManager

public void setServiceManager(ServiceManager manager)
Description copied from interface: Serviceable
Set the @see ServiceManager of the application.

Specified by:
setServiceManager in interface Serviceable

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

process

protected void process()

processFile

protected void processFile(DXFDocument doc,
                           java.io.File f)

chooseInput

protected void chooseInput()

parseFile

protected void parseFile(java.io.File f,
                         Parser parser)
                  throws java.lang.Exception
Throws:
java.lang.Exception

propagateDXFDocument

protected void propagateDXFDocument(DXFDocument doc)
                             throws java.lang.Exception
Throws:
java.lang.Exception

logException

protected void logException(java.lang.Exception e)

log

protected void log(java.lang.String msg)

propertiesChanged

public void propertiesChanged(java.util.Map props)
Description copied from interface: PropertiesListener
Will be called every time the properties have changed

Specified by:
propertiesChanged in interface PropertiesListener
Parameters:
props - changed Properties

addDXFDocumentChangeListener

public void addDXFDocumentChangeListener(DXFDocumentChangeListener listener)
Specified by:
addDXFDocumentChangeListener in interface DXFDocumentChangeEventProvider

removeDXFDocumentChangeListener

public void removeDXFDocumentChangeListener(DXFDocumentChangeListener listener)
Specified by:
removeDXFDocumentChangeListener in interface DXFDocumentChangeEventProvider

fireDXFDocumentChangeEvent

protected void fireDXFDocumentChangeEvent()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

processInput

public void processInput(java.io.File file)