borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
java.lang.Object +----java.awt.Component +----java.awt.TextComponent +----java.awt.TextField +----borland.jbcl.view.TextFieldView +----borland.jbcl.control.TextFieldControl +----borland.jbcl.control.LocatorControl
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.
public TextFieldControl()Constructs a TextFieldControl component with default properties.
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.
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.
public void setModel(borland.jbcl.model.SingletonModel sm)
Checks for recursive model creation, then calls super.setModel(), which is jbcl.view.TextFieldView.setModel().
public void addNotify()Creates the control's peer for the platform.
Overrides: java.awt.TextField.addNotify()
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.
Overrides: borland.jbcl.view.TextFieldView.processKeyEvent(KeyEvent)
public synchronized void addActionListener(java.awt.event.ActionListener l) public synchronized void removeActionListener(java.awt.event.ActionListener l)
public synchronized void addComponentListener(java.awt.event.ComponentListener l) public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener l) public synchronized void removeFocusListener(java.awt.event.FocusListener l)
public synchronized void addKeyListener(java.awt.event.KeyListener l) public synchronized 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 l) public synchronized void removeMouseListener(java.awt.event.MouseListener l)
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
public synchronized void addTextListener(java.awt.event.TextListener l) public void removeTextListener(java.awt.event.TextListener l)