de.miethxml.hawron.gui.project
Interface ProjectViewComponent

All Superinterfaces:
ProjectComponent
All Known Implementing Classes:
ContextView, ProcessView, ProjectContextViewComponent, SimpleProcessView

public interface ProjectViewComponent
extends ProjectComponent

This interface describes a ViewComponent like the ProcessView or the ContextView.
Initialization:

Author:
Simon Mieth

Method Summary
 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 lang)
          Gives the title/label for the current language like "en" for english or "de" for german.
 javax.swing.JComponent getViewComponent()
          Gives the Component, which will be added to the ProjectView.This should be the main Component.
 void setEnabled(boolean state)
          The Defaultimplementation of the ProjectView use a JTabbedPane and each tab is a ProjectViewComponent.
 
Methods inherited from interface de.miethxml.hawron.project.ProjectComponent
setProject
 

Method Detail

getLabel

public java.lang.String getLabel(java.lang.String lang)
Gives the title/label for the current language like "en" for english or "de" for german.


getIcon

public javax.swing.Icon getIcon()
The accociated icon of this component.

Returns:
the icon or null

getViewComponent

public javax.swing.JComponent getViewComponent()
Gives the Component, which will be added to the ProjectView.This should be the main Component.


setEnabled

public void setEnabled(boolean state)
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.


getKey

public java.lang.String getKey()

getDockComponent

public javax.swing.JComponent getDockComponent()
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;