de.miethxml.hawron.gui.process
Class SimpleProcessView

java.lang.Object
  extended byde.miethxml.hawron.gui.process.SimpleProcessView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, org.apache.avalon.framework.activity.Initializable, javax.swing.event.ListSelectionListener, LocaleListener, ProjectComponent, ProjectConfigListener, ProjectViewComponent, org.apache.avalon.framework.service.Serviceable

public class SimpleProcessView
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener, LocaleListener, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Initializable, ProjectViewComponent, ProjectConfigListener

Author:
Simon Mieth

Constructor Summary
SimpleProcessView()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void configChanged(Project project)
           
 javax.swing.JComponent getDockComponent()
          This JPanel will be added to the left InfoPanel and will be activated with this ProjectViewComponent.
 javax.swing.Icon getIcon()
          The accociated icon of this component.
 java.lang.String getKey()
           
 java.lang.String getLabel(java.lang.String localeKey)
          Gives the title/label for the current language like "en" for english or "de" for german.
 Project getProject()
           
 javax.swing.JComponent getViewComponent()
          Gives the Component, which will be added to the ProjectView.This should be the main Component.
 void init()
           
 void initialize()
           
 void langChanged()
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 void setEnabled(boolean state)
          The Defaultimplementation of the ProjectView use a JTabbedPane and each tab is a ProjectViewComponent.
 void setProject(Project project)
           
 void setProjectView(TabbedProjectView pv)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProcessView

public SimpleProcessView()
Method Detail

getProject

public Project getProject()
Returns:
Returns the project.

setProject

public void setProject(Project project)
Specified by:
setProject in interface ProjectComponent
Parameters:
project - The project to set.

setProjectView

public void setProjectView(TabbedProjectView pv)

initialize

public void initialize()
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable

actionPerformed

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

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

langChanged

public void langChanged()
Specified by:
langChanged in interface LocaleListener

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

getDockComponent

public javax.swing.JComponent getDockComponent()
Description copied from interface: ProjectViewComponent
This JPanel will be added to the left InfoPanel and will be activated with this ProjectViewComponent. If you dont need this feature, simple return null;

Specified by:
getDockComponent in interface ProjectViewComponent

getViewComponent

public javax.swing.JComponent getViewComponent()
Description copied from interface: ProjectViewComponent
Gives the Component, which will be added to the ProjectView.This should be the main Component.

Specified by:
getViewComponent in interface ProjectViewComponent

getKey

public java.lang.String getKey()
Specified by:
getKey in interface ProjectViewComponent

getLabel

public java.lang.String getLabel(java.lang.String localeKey)
Description copied from interface: ProjectViewComponent
Gives the title/label for the current language like "en" for english or "de" for german.

Specified by:
getLabel in interface ProjectViewComponent

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: ProjectViewComponent
The accociated icon of this component.

Specified by:
getIcon in interface ProjectViewComponent
Returns:
the icon or null

init

public void init()

setEnabled

public void setEnabled(boolean state)
Description copied from interface: ProjectViewComponent
The Defaultimplementation of the ProjectView use a JTabbedPane and each tab is a ProjectViewComponent. If the user activate a tab setEnabled(true) will be called at this ProjectViewComponent. If you want to react, do it here.

Specified by:
setEnabled in interface ProjectViewComponent

configChanged

public void configChanged(Project project)
Specified by:
configChanged in interface ProjectConfigListener