com.borland.primetime.teamdev.frontend
Class HistoryViewer
java.lang.Object
|
+--com.borland.primetime.viewer.AbstractNodeViewer
|
+--com.borland.primetime.teamdev.frontend.HistoryViewer
- All Implemented Interfaces:
- NodeViewer
- public class HistoryViewer
- extends AbstractNodeViewer
NodeViewer that adds the "History" tab to the content manager.
This NodeViewer
instantiates a HistoryViewerComponent
to display
the revision history for a file.
- See Also:
HistoryViewerComponent
,
HistoryViewerFactory
Method Summary |
javax.swing.JComponent |
createStructureComponent()
Creates the UI component (bogus, at this point) to display in the Structure
Pane of the Browser. |
javax.swing.JComponent |
createViewerComponent()
Creates the UI component (an HistoryViewerComponent) to display in the Browser. |
java.lang.String |
getViewerDescription()
Get the description of this NodeViewer for the ContentView tab tooltip. |
java.lang.String |
getViewerTitle()
Returns a user-friendly display string for this node viewer. |
void |
viewerActivated(boolean requestFocus)
This method is called after getViewerComponent(...) has returned a
Component that has been placed in the correct location in the Browser,
getStructureComponent(...) has returned a Component that has been placed
in the correct location in the Browser, and the tab has switched to view
the new viewer. |
void |
viewerDeactivated()
This method is called after a viewer is successfully deactivated. |
Methods inherited from class com.borland.primetime.viewer.AbstractNodeViewer |
addPropertyChangeListener, browserActivated, browserDeactivated, firePropertyChange, getContext, getStructureComponent, getViewerComponent, getViewerIcon, releaseViewer, removePropertyChangeListener, viewerDeactivating, viewerNodeChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistoryViewer
public HistoryViewer(Context context)
getViewerTitle
public java.lang.String getViewerTitle()
- Description copied from interface:
NodeViewer
Returns a user-friendly display string for this node viewer. This is
the text that will appear on the tab along the bottom of the ContentView
for this node. This value should be resourced.
- Following copied from interface:
com.borland.primetime.ide.NodeViewer
- Returns:
- The user-friendly title to be displayed on the tab for this
NodeViewer.
getViewerDescription
public java.lang.String getViewerDescription()
- Description copied from class:
AbstractNodeViewer
- Get the description of this NodeViewer for the ContentView tab tooltip.
- Overrides:
getViewerDescription
in class AbstractNodeViewer
- Following copied from class:
com.borland.primetime.viewer.AbstractNodeViewer
- Returns:
- Returns description or null.
createViewerComponent
public javax.swing.JComponent createViewerComponent()
- Creates the UI component (an HistoryViewerComponent) to display in the Browser.
- Overrides:
createViewerComponent
in class AbstractNodeViewer
- Returns:
- the HistoryViewerComponent to display in the browser.
createStructureComponent
public javax.swing.JComponent createStructureComponent()
- Creates the UI component (bogus, at this point) to display in the Structure
Pane of the Browser.
- Overrides:
createStructureComponent
in class AbstractNodeViewer
- Returns:
- the bogus component to display in the structure pane.
viewerActivated
public void viewerActivated(boolean requestFocus)
- Description copied from class:
AbstractNodeViewer
This method is called after getViewerComponent(...) has returned a
Component that has been placed in the correct location in the Browser,
getStructureComponent(...) has returned a Component that has been placed
in the correct location in the Browser, and the tab has switched to view
the new viewer.
- Overrides:
viewerActivated
in class AbstractNodeViewer
- Following copied from class:
com.borland.primetime.viewer.AbstractNodeViewer
- Parameters:
requestFocus
- True if the viewer component should requestFocus at
this point.
viewerDeactivated
public void viewerDeactivated()
- Description copied from class:
AbstractNodeViewer
This method is called after a viewer is successfully deactivated. This
may be called multiple times in situations where the content management
is not sure that a given viewer was notified.
- Overrides:
viewerDeactivated
in class AbstractNodeViewer