borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

TextFieldControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.TextComponent
                   +----java.awt.TextField
                           +----borland.jbcl.view.TextFieldView
                                   +----borland.jbcl.control.TextFieldControl
                                           +----borland.jbcl.control.LocatorControl

About the TextFieldControl component

Variables  Constructors  Properties  Methods  Event Listeners

Implements AccessListener, DataChangeListener, NavigationListener, SingletonModel, SingletonModelListener, WritableSingletonModel, BlackBox, SingletonView, MenuContainer, ImageObserver, Serializable, EventListener

TextFieldControl is a graphical user interface element for displaying and editing a line of text. It is designed to function similarly to java.awt.TextField but provides the greater flexibility of model-view composition.

While a TextFieldControl displays a single line of text, a TextAreaControl displays multiple lines of text and is scrollable, and is therefore more suitable for displaying large amounts of text.


TextFieldControl variables

Variables implemented in borland.jbcl.view.TextFieldView

Variables implemented in java.awt.Component

Variables implemented in java.awt.TextComponent

TextFieldControl constructors

TextFieldControl properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.TextFieldView

Properties implemented in java.awt.Component

Properties implemented in java.awt.TextComponent

Properties implemented in java.awt.TextField

Properties implemented in java.lang.Object

TextFieldControl methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.TextFieldView

Methods implemented in java.awt.Component

Methods implemented in java.awt.TextComponent

Methods implemented in java.awt.TextField

Methods implemented in java.lang.Object

TextFieldControl event listeners


TextFieldControl constructors

TextFieldControl()

  public TextFieldControl()
Constructs a TextFieldControl component with default properties.


TextFieldControl properties

columnName

 public String getColumnName()
 public void setColumnName(java.lang.String newColumnName)

Stores the name of the Column in the DataSet that contains the data to display in the TextFieldControl.

dataSet

 public DataSet getDataSet()
 public void setDataSet(borland.jbcl.dataset.DataSet newDataSet)
The dataSet property specifies a borland.jbcl.dataset.DataSet object that provides the data to display in the TextFieldControl.

model

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

Checks for recursive model creation, then calls super.setModel(), which is jbcl.view.TextFieldView.setModel().


TextFieldControl methods

addNotify()

  public void addNotify()
Creates the control's peer for the platform.

Overrides: java.awt.TextField.addNotify()

processKeyEvent(java.awt.event.KeyEvent)

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

Calls super.processKeyEvent(e), posts the text, then does the following actions in the DataSet that supplies the text field control.

Insert key
Changes insert mode.
Delete key
Deletes the row.
PageDown key
Moves to the next row.
PageUp key
Moves to the previous row.

Overrides: borland.jbcl.view.TextFieldView.processKeyEvent(KeyEvent)


TextFieldControl 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.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

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

focus

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

key

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

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 l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

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

text

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