borland Packages  Class Hierarchy  jbcl.view Package  Index 

LabelView class

java.lang.Object
   +----java.awt.Component
           +----java.awt.Label
                   +----borland.jbcl.view.LabelView
                           +----borland.jbcl.control.LabelControl

About the LabelView class

Variables  Properties  Methods  Event Listeners

Implements SingletonModelListener, SingletonModelView, ImageObserver, MenuContainer, Serializable, EventListener

The LabelView component is a view element for developing new composite components. It requires a SingletonModel data model and a SingletonViewManager view manager.

The text property contains the string the label view displays. To prevent the user from modifying the string, set readOnly to true.


LabelView variables

Variables implemented in java.awt.Component

Variables implemented in java.awt.Label

LabelView properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.Label

Properties implemented in java.lang.Object

LabelView methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.awt.Label

Methods implemented in java.lang.Object

LabelView event listeners


LabelView properties

model

 public SingletonModel getModel()
 public void setModel(borland.jbcl.model.SingletonModel sm)

The singleton model that contains the data item displayed in LabelView.

preferredSize

 public Dimension getPreferredSize()

Returns the preferred size of LabelView.

readOnly

 public boolean isReadOnly()
 public void setReadOnly(boolean ro)

Determines whether the string held displayed in LabelView can be modified. If ro is true, the string cannot be modified.

text

 public void setText(java.lang.String text)

Contains the string displayed in the component.

writeModel

 public WritableSingletonModel getWriteModel()

Returns the writable singleton model for LabelView.


LabelView methods

postText()

  protected void postText()

Posts the string contained in the text property to the model.

updateText()

  protected void updateText()

Modifies the text property.


LabelView event listeners

This class 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.

component

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

focus

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

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

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 )