All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.text.TextListView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----jp.kyasu.awt.KComponent
                   |
                   +----jp.kyasu.awt.text.TextView
                           |
                           +----jp.kyasu.awt.text.TextListView

public class TextListView
extends TextView
implements ListModelListener
The TextListView class implements a view of a MVC model for the text list. The model of the MVC model is a TextListModel object and the controller of the MVC model is a TextListController object.

Version:
12 Dec 1998
Author:
Kazuki YASUMATSU
See Also:
TextListModel, TextListController

Constructor Index

 o TextListView(TextListModel)
Constructs a text list view with the specified text list model.

Method Index

 o addNotify()
Notifies this view that it has been added to a container.
 o getController()
Returns the controller of this view.
 o getModel()
Returns the model of this view.
 o getPreferredSize()
Returns the preferred size of this view.
 o getRichText()
Returns the RichText object being viewed.
 o isLineSelectionVisible()
Tests if the line selection is visible.
 o listModelChanged(ListModelEvent)
Invoked when the list model has been changed.
 o setController(TextListController)
Sets the controller of this view.
 o setFont(Font)
Sets the font of this view.
 o setLineSelectionVisible(boolean)
Makes the line selection visible.

Constructors

 o TextListView
 public TextListView(TextListModel textListModel)
Constructs a text list view with the specified text list model.

Parameters:
textListModel - the text list model.

Methods

 o getRichText
 public RichText getRichText()
Returns the RichText object being viewed.

Overrides:
getRichText in class TextView
 o getModel
 public TextListModel getModel()
Returns the model of this view.

 o getController
 public TextListController getController()
Returns the controller of this view.

 o setController
 public void setController(TextListController controller)
Sets the controller of this view.

 o listModelChanged
 public void listModelChanged(ListModelEvent event)
Invoked when the list model has been changed.

See Also:
ListModelListener
 o isLineSelectionVisible
 public boolean isLineSelectionVisible()
Tests if the line selection is visible.

 o setLineSelectionVisible
 public synchronized void setLineSelectionVisible(boolean b)
Makes the line selection visible.

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this view.

Overrides:
getPreferredSize in class TextView
 o addNotify
 public void addNotify()
Notifies this view that it has been added to a container.

Overrides:
addNotify in class KComponent
 o setFont
 public void setFont(Font f)
Sets the font of this view.

Overrides:
setFont in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index