borland Packages  Class Hierarchy  jbcl.control Package  Index 

FieldControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----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, ColumnAware, DataChangeListener, DataSetAware, NavigationListener, ItemEditSite, ItemPaintSite, SingletonModel, SingletonModelListener, WritableSingletonModel, BlackBox, SingletonModelView, SingletonView, FocusListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener

The FieldControl component displays a single value of any data type. 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.

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 string is specified in the text property.

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 inherits much of its appearance and behavior from the FieldView component. For example, FieldView contributes alignment, autoEdit, selectable, and many other properties. FieldView also provides several methods. For more information, see FieldView.

If you need to display a specified string only and don't need a composite or data-aware control, consider using the TextControl component instead. If you want a composite, data-aware control that can display a string only, consider the TextFieldControl component.


FieldControl variables

Variables implemented in this class

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in borland.jbcl.view.FieldView

Variables implemented in com.sun.java.swing.JComponent

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 com.sun.java.swing.JComponent

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 com.sun.java.swing.JComponent

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

FieldControl event listeners


FieldControl variables

addNotifyCalled

  protected boolean addNotifyCalled

columnName

  protected String columnName

dataSet

  protected DataSet dataSet

textureName

  protected String textureName

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.

textureName

 public String getTextureName()
 public void setTextureName(java.lang.String path)
Determines the name of the Image file that is tiled on the background of the control to give the appearance of texture. Specify the file name and directory using the path parameter.

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)

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )

component

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

container

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

customItem

 public synchronized void addCustomItemListener(borland.jbcl.view.CustomItemListener l)
 public synchronized void removeCustomItemListener(borland.jbcl.view.CustomItemListener l)

focus

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

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

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )