borland Packages Class Hierarchy jbcl.control Package Index
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
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.
protected boolean addNotifyCalled
protected String columnName
protected DataSet dataSet
protected String textureName
public FieldControl()
Constructs a FieldControl component with properties set to default values.
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
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.
public void setModel(borland.jbcl.model.SingletonModel model)
The singleton model object for the FieldControl.
public synchronized String getText() public synchronized void setText(java.lang.String text)
The string text to display in the FieldControl.
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.
public void addNotify()
Overrides: java.awt.Panel.addNotify()
protected void processKeyPressed(java.awt.event.KeyEvent e)
Parameters:
Overrides: borland.jbcl.view.FieldView.processKeyPressed(KeyEvent)
public synchronized void addActionListener(java.awt.event.ActionListener l) public synchronized void removeActionListener(java.awt.event.ActionListener l)
public void addAncestorListener(com.sun.java.swing.event.AncestorListener ) public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addContainerListener(java.awt.event.ContainerListener ) public void removeContainerListener(java.awt.event.ContainerListener )
public synchronized void addCustomItemListener(borland.jbcl.view.CustomItemListener l) public synchronized void removeCustomItemListener(borland.jbcl.view.CustomItemListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public void addKeyListener(java.awt.event.KeyListener l) public void removeKeyListener(java.awt.event.KeyListener l)
public void addModelListener(borland.jbcl.model.SingletonModelListener l) public void removeModelListener(borland.jbcl.model.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 addVetoableChangeListener(java.beans.VetoableChangeListener ) public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )