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

FieldControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Panel
                           +----borland.jbcl.view.BeanPanel
                                   +----borland.jbcl.view.FieldView
                                           +----borland.jbcl.control.FieldControl
                                                   +----borland.jbcl.control.ImageControl

About the FieldControl component

Variables  Constructors  Properties  Methods  Event Listeners

Implements AccessListener, DataChangeListener, NavigationListener, ItemEditSite, ItemPaintSite, SingletonModel, SingletonModelListener, WritableSingletonModel, BlackBox, SingletonView, MenuContainer, FocusListener, KeyListener, ImageObserver, Serializable, EventListener

The FieldControl is a graphical user interface element that has a single value. Use a FieldControl when you want to display a single value in your application. This value can be any single value by itself, or a value stored in a DataSet.

The FieldControl is a composite component that follows the model-view architecture and uses a Singleton data model. Use the Singleton data model if you want to display a specified value.

The FieldControl can also derive its value from a DataSet. In such cases, the data source of this value is specified by its columnName and dataSet properties. The current row position of the DataSet determines the row from which the specified Column value is extracted.


FieldControl variables

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in java.awt.Component

FieldControl constructors

FieldControl properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.BeanPanel

Properties implemented in borland.jbcl.view.FieldView

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

FieldControl methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.BeanPanel

Methods implemented in borland.jbcl.view.FieldView

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

FieldControl event listeners


FieldControl constructors

FieldControl()

  public FieldControl()
Constructs a FieldControl component with properties set to default values.


FieldControl properties

columnName

 public String getColumnName()
 public void setColumnName(java.lang.String newColumnName)
Stores the string name of the Column in the DataSet which contains the data to display in the FieldControl.

See also: dataSet

dataSet

 public DataSet getDataSet()
 public void setDataSet(borland.jbcl.dataset.DataSet newDataSet)
Specifies the borland.jbcl.dataset.DataSet object that contains the data to display in the FieldControl. The value from the current row and column of the DataSet is used.

model

 public void setModel(borland.jbcl.model.SingletonModel model)
The Singleton model object for the FieldControl.

text

 public synchronized String getText()
 public synchronized void setText(java.lang.String text)
The string text to display in the FieldControl.

FieldControl methods

addNotify()

  public void addNotify()

Overrides: java.awt.Panel.addNotify()

processKeyPressed(java.awt.event.KeyEvent)

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

Parameters:

e
The KeyEvent event object.

Overrides: borland.jbcl.view.FieldView.processKeyPressed(KeyEvent)


FieldControl 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)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

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

key

 public void addKeyListener(java.awt.event.KeyListener l)
 public 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)