documenter.control
Class DocGeneratorGui

java.lang.Object
  extended by documenter.control.DocGeneratorGui
All Implemented Interfaces:
DocGeneratorView

public class DocGeneratorGui
extends java.lang.Object
implements DocGeneratorView

View class of DocGenerator tool MVC implementation. Implements view interface. Presents status of the model which is an istance of documenter.engine.DocGeneratorModel. Serves as a access point to the instance of documenter.control.DocGeneratorGuiControler for users.

Author:
Misio

Constructor Summary
DocGeneratorGui(DocGeneratorModel model)
          Creates instance which will present the status the particular Model instance.
 
Method Summary
 org.eclipse.swt.widgets.Button getAddSources()
           
 org.eclipse.swt.widgets.Button getGenerateDocs()
           
 org.eclipse.swt.widgets.Shell getShell()
           
 org.eclipse.swt.widgets.Text getText()
           
 org.eclipse.swt.widgets.Button getViewDocumentation()
           
 void open()
          Open the View window
 void refreshGeneratorView(java.util.ArrayList<java.lang.String> filenames)
          Adds filenames to the component which displays selected files list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocGeneratorGui

public DocGeneratorGui(DocGeneratorModel model)
Creates instance which will present the status the particular Model instance.

Parameters:
model - Object which status is to be presented by this view.
Method Detail

getShell

public org.eclipse.swt.widgets.Shell getShell()
Returns:
The shell component of the View object.

getAddSources

public org.eclipse.swt.widgets.Button getAddSources()
Returns:
The button for adding source files

getGenerateDocs

public org.eclipse.swt.widgets.Button getGenerateDocs()
Returns:
The button for generating documentation files

getText

public org.eclipse.swt.widgets.Text getText()
Returns:
Text component for entering the documentation project name

getViewDocumentation

public org.eclipse.swt.widgets.Button getViewDocumentation()
Returns:
The button for opening the system default browser and viewing the generated documentation

open

public void open()
Open the View window


refreshGeneratorView

public void refreshGeneratorView(java.util.ArrayList<java.lang.String> filenames)
Adds filenames to the component which displays selected files list

Specified by:
refreshGeneratorView in interface DocGeneratorView
Parameters:
filenames - List of source schema files