borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
java.lang.Object +----java.awt.Component +----java.awt.TextComponent +----java.awt.TextField +----borland.jbcl.view.TextFieldView +----borland.jbcl.control.TextFieldControl
Variables Constructors Properties Methods Event Listeners
Implements SingletonModelListener, SingletonView, MenuContainer, ImageObserver, Serializable, EventListener
The TextFieldView component is a view element for developing new composite components that display a single line of text. It requires a SingletonModel data model and a SingletonViewManager view manager.
protected boolean locateOnly
protected boolean postOnFocusLost
Specifies whether changes to the data displayed in the component are posted to the model whenever the component loses focus.
public TextFieldView()
Constructs a TextFieldView. Calls java.awt.TextField(), then enables AWT focus and key events.
public SingletonModel getModel() public void setModel(borland.jbcl.model.SingletonModel sm)
Specifies the model object that manages the component's data item.
public boolean isPostOnFocusLost() public void setPostOnFocusLost(boolean post)
Specifies whether changes to the data displayed in the component are posted to the model whenever the component loses focus.
public boolean isReadOnly() public void setReadOnly(boolean ro)
Specifies whether the user may change the data displayed in the component at runtime. readOnly also returns true if the model is not writable.
public void setText(java.lang.String text)
public SingletonViewManager getViewManager() public void setViewManager(borland.jbcl.model.SingletonViewManager svm)
public WritableSingletonModel getWriteModel()
Read-only property that specifies the model object used for writing data. writeModel is null if readOnly is true or the model is not writable.
public boolean canSet(boolean startingEdit)
If true, indicates that the field is being edited.
protected void postText()
Posts (writes) data displayed in the component to the data item in the model.
protected void processFocusEvent(java.awt.event.FocusEvent e)
Parameters:
Overrides: java.awt.Component.processFocusEvent(FocusEvent)
protected void processKeyEvent(java.awt.event.KeyEvent e)
Parameters:
Overrides: java.awt.Component.processKeyEvent(KeyEvent)
protected void updateText()
Refreshes the display of the data in the component from the data item.
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)