jbcl.control Package
java.lang.Object +----java.awt.Component +----java.awt.TextComponent +----java.awt.TextArea +----com.borland.jbcl.view.TextAreaView +----com.borland.jbcl.control.TextAreaControl
Variables Constructors Properties Methods Event Listeners
Implements AccessListener, ColumnAware, DataChangeListener, DataSetAware, SingletonModel, SingletonModelListener, WritableSingletonModel, BlackBox, SingletonModelView, ImageObserver, MenuContainer, Serializable, EventListener
The TextAreaControl
is a graphical user interface element for displaying
and editing large amounts of text. While a TextFieldControl
displays a single line of text, a TextAreaControl
displays multiple
lines of text and is scrollable. It is designed to function similarly to
java.awt.TextArea
but provides the greater flexibility of model-view composition.
public TextAreaControl()Constructs a
TextAreaControl
component with default properties.
public String getColumnName() public void setColumnName(String newColumnName)Stores the name of the
Column
in the DataSet
that contains
the data to display in the TextAreaControl
.
public DataSet getDataSet() public void setDataSet(DataSet newDataSet)Specifies a
com.borland.dx.dataset.DataSet
object that provides the data to display in the
TextAreaControl
.
public void setModel(SingletonModel sm)
Specifies the model object that manages the component's data item.
This setter checks for recursive model creation, then calls jbcl.view.TextAreaView.setModel()
.
public void setText(String text)Sets the text in the control.
public void addNotify()Creates the peer control appropriate for the platform.
Overrides: java.awt.TextArea.addNotify()
protected void postText()Writes the text to the data item.
Overrides: com.borland.jbcl.view.TextAreaView.postText()
protected void processKeyEvent(KeyEvent e)
Calls super.processKeyEvent(), then checks for insert, pageDown, and pageUp keys, to turn off Insert mode, go to the next row, or go to the prior row of the DataSet
that provides the text to display.
Overrides: com.borland.jbcl.view.TextAreaView.processKeyEvent(KeyEvent)
protected void updateText()
Overrides: com.borland.jbcl.view.TextAreaView.updateText()
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener ) public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public void addModelListener(SingletonModelListener l) public void removeModelListener(SingletonModelListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener ) public synchronized void removeMouseListener(java.awt.event.MouseListener )
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener ) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener ) public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )
public synchronized void addTextListener(java.awt.event.TextListener ) public synchronized void removeTextListener(java.awt.event.TextListener )