Interface ViewTab
-
public interface ViewTab
An interface implemented by classes that can add a tab to the project information area displayed at the bottom ofProjectView
s. New view tab types are registered usingProjectView.registerViewTab(ca.cgjennings.apps.arkham.project.ViewTab)
.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Component
createViewForProject(ProjectView v, Project p)
Returns a component that will display the content of this tab.java.lang.String
getLabel()
Returns the label that will be used for tabs of this type.java.lang.String
getViewTabName()
Returns a unique identifier for this view tab.
-
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
Returns the label that will be used for tabs of this type.- Returns:
- the tab's label text
-
getViewTabName
java.lang.String getViewTabName()
Returns a unique identifier for this view tab.- Returns:
- a unique ID string
-
createViewForProject
java.awt.Component createViewForProject(ProjectView v, Project p)
Returns a component that will display the content of this tab. If this method returnsnull
, then nothing will be added to the view for this project.- Parameters:
v
- the view that this tab will appear inp
- the project that will be displayed in the view- Returns:
- a component that will display the content of the tab for this project
-
-