borland Packages  Class Hierarchy  jbcl.view Package  Index 

TextAreaView component

java.lang.Object
   +----java.awt.Component
           +----java.awt.TextComponent
                   +----java.awt.TextArea
                           +----borland.jbcl.view.TextAreaView
                                   +----borland.jbcl.control.TextAreaControl

About the TextAreaView component

Variables  Constructors  Properties  Methods  Event Listeners

Implements SingletonModelListener, SingletonModelView, ImageObserver, MenuContainer, Serializable, EventListener

The TextAreaView component is a view element for developing new composite components that display multiple lines of text in a scrolling region. It requires a SingletonModel data model and a SingletonViewManager view manager.

Set the data in the text area view using the text property. The readOnly property determines whether the text can be edited; it if is true, the text cannot be edited.

To save the data in the view, call the postText() method. If postOnLostFocus is true, the text is posted to the model when the view loses the focus.


TextAreaView variables

Variables implemented in this class

Variables implemented in java.awt.Component

Variables implemented in java.awt.TextArea

Variables implemented in java.awt.TextComponent

TextAreaView constructors

TextAreaView properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.TextArea

Properties implemented in java.awt.TextComponent

Properties implemented in java.lang.Object

TextAreaView methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.awt.TextArea

Methods implemented in java.awt.TextComponent

Methods implemented in java.lang.Object

TextAreaView event listeners


TextAreaView variables

model

  protected transient SingletonModel model

modelMulticaster

  protected transient SingletonModelMulticaster modelMulticaster

postOnFocusLost

  protected boolean postOnFocusLost

preferredHeight

  protected int preferredHeight

preferredWidth

  protected int preferredWidth

readOnly

  protected boolean readOnly

writeModel

  protected transient WritableSingletonModel writeModel

TextAreaView constructors

TextAreaView()

  public TextAreaView()
Constructs a TextAreaView.

TextAreaView properties

model

 public SingletonModel getModel()
 public void setModel(borland.jbcl.model.SingletonModel sm)

Specifies the model object that manages the component's data item.

postOnFocusLost

 public boolean isPostOnFocusLost()
 public void setPostOnFocusLost(boolean post)

Specifies whether changes to the data displayed in the component are posted to the model whenever the component loses focus.

preferredHeight

 public int getPreferredHeight()
 public void setPreferredHeight(int preferredHeight)
Determines the preferred height of the text area view.

preferredSize

 public Dimension getPreferredSize()
Returns the preferred size of the text area view.

preferredWidth

 public int getPreferredWidth()
 public void setPreferredWidth(int preferredWidth)
Determines the preferred width of the text area view.

readOnly

 public boolean isReadOnly()
 public void setReadOnly(boolean ro)

Specifies whether the user may change the data displayed in the component at runtime. The readOnly property also returns true if the model is not writable.

text

 public void setText(java.lang.String text)
Sets the text that appears in the text area view.

writeModel

 public WritableSingletonModel getWriteModel()
A read-only property that specifies the model object used for writing data. writeModel is null if readOnly is true or the model is not writable.


TextAreaView methods

append(java.lang.String)

  public void append(java.lang.String text)

Overrides: java.awt.TextArea.append(java.lang.String) Appends the specified text to the TextAreaView. Specify the text to be appended as the value of the text parameter.

postText()

  protected void postText()

Posts (writes) data displayed in the component to the data item.

processFocusEvent(java.awt.event.FocusEvent)

  protected void processFocusEvent(java.awt.event.FocusEvent e)

Handles the posting of changed data when the component loses focus, if postOnFocusLost is true.

Overrides:
java.awt.Component.processFocusEvent(FocusEvent)

processKeyEvent(java.awt.event.KeyEvent)

  protected void processKeyEvent(java.awt.event.KeyEvent e)

Handles the the following keys when they are released:

Overrides:
java.awt.Component.processKeyEvent(KeyEvent)

setSuperText(java.lang.String)

  protected void setSuperText(java.lang.String text)

updateText()

  protected void updateText()
Refreshes the display of the data in the component from the data item.


TextAreaView event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events. For information on the JBCL event sets, see Events in JBCL.

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

model

 public void addModelListener(borland.jbcl.model.SingletonModelListener l)
 public void removeModelListener(borland.jbcl.model.SingletonModelListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

text

 public synchronized void addTextListener(java.awt.event.TextListener )
 public void removeTextListener(java.awt.event.TextListener )