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
-
TextListView(TextListModel)
- Constructs a text list view with the specified text list model.
-
addNotify()
- Notifies this view that it has been added to a container.
-
getController()
- Returns the controller of this view.
-
getModel()
- Returns the model of this view.
-
getPreferredSize()
- Returns the preferred size of this view.
-
getRichText()
- Returns the
RichText
object being viewed.
-
isLineSelectionVisible()
- Tests if the line selection is visible.
-
listModelChanged(ListModelEvent)
- Invoked when the list model has been changed.
-
setController(TextListController)
- Sets the controller of this view.
-
setFont(Font)
- Sets the font of this view.
-
setLineSelectionVisible(boolean)
- Makes the line selection visible.
TextListView
public TextListView(TextListModel textListModel)
- Constructs a text list view with the specified text list model.
- Parameters:
- textListModel - the text list model.
getRichText
public RichText getRichText()
- Returns the
RichText
object being viewed.
- Overrides:
- getRichText in class TextView
getModel
public TextListModel getModel()
- Returns the model of this view.
getController
public TextListController getController()
- Returns the controller of this view.
setController
public void setController(TextListController controller)
- Sets the controller of this view.
listModelChanged
public void listModelChanged(ListModelEvent event)
- Invoked when the list model has been changed.
- See Also:
- ListModelListener
isLineSelectionVisible
public boolean isLineSelectionVisible()
- Tests if the line selection is visible.
setLineSelectionVisible
public synchronized void setLineSelectionVisible(boolean b)
- Makes the line selection visible.
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of this view.
- Overrides:
- getPreferredSize in class TextView
addNotify
public void addNotify()
- Notifies this view that it has been added to a container.
- Overrides:
- addNotify in class KComponent
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