Package com.portal.app.cc
Interface PNotesDisplayer
public interface PNotesDisplayer
An interface that wraps the component used to display existing notes
for an account. Customers can create their own notes viewer wrapped
in this interface, and simply update the notes.displayer property
to point at the new implementation.
- Version:
- %version: 1 % %date_modified: Thu Aug 16 10:38:48 2001 %
- Author:
- kapono
-
Method Summary
Modifier and TypeMethodDescriptionDetermines the component used to display notes.void
Called to display the first line of notes.void
Called after retrieving notes from Portal.
-
Method Details
-
getDisplayComponent
Component getDisplayComponent()Determines the component used to display notes. Note that the component will be placed within a JScrolledPane by the notes framework, so do not do that yourself.- Returns:
- The Component instance that will be displaying the notes.
-
scrollToTop
void scrollToTop()Called to display the first line of notes. In most Swing components adding text results in the last line of text being displayed. This method should force the display back to the top. -
setText
Called after retrieving notes from Portal. The passed in text represents the notes text to display.
Your implementation may choose to parse this text and display it in a different format (HTML for example).- Parameters:
The
- notes text from Portal
-