UniVista.support.screens
Class TextScreenObject

java.lang.Object
  |
  +--UniVista.support.screens.ScreenObject
        |
        +--UniVista.support.screens.TextScreenObject
All Implemented Interfaces:
java.lang.Cloneable, PropertyEditorUI, java.io.Serializable

public class TextScreenObject
extends ScreenObject
implements java.lang.Cloneable, java.io.Serializable

encapsulates a JLabel for use with Screens for dipslaying text

See Also:
Serialized Form

Fields inherited from class UniVista.support.screens.ScreenObject
boundsRect, isDesigning, isPropertyEditorUI, isReadOnly, myDragger, propertyFrame
 
Constructor Summary
TextScreenObject()
          construct a new TextScreenObject
TextScreenObject(java.lang.String text)
          Construct a new TextScreenObject with initial text.
 
Method Summary
 java.lang.Object clone()
          clone a TextScreenObject
 void destroyUI()
          destroy the user interface
 void duplicate(TextScreenObject toDup)
          duplicate the values of another TextScreenObject into this one
 java.awt.Rectangle getPreferredBounds()
          Suggest a desired bounds.
 java.lang.String getText()
          retrive the displayed string
 javax.swing.JComponent getUI()
          return the UI component
 void setDesignMode(boolean id)
          move the object into design mode
 void setText(java.lang.String newText)
          set the string used for the text
 javax.swing.JComponent setupUI()
          set up the user interface element and return it
 
Methods inherited from class UniVista.support.screens.ScreenObject
accept, acceptPEUI, addActionListener, duplicate, finalize, fireActionEvent, getBounds, getDesignMode, getReadOnly, implementsPropertyEditorUI, insertPEUI, rejectPEUI, removePEUI, revert, setBounds, setReadOnly, setupPEUI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextScreenObject

public TextScreenObject()
construct a new TextScreenObject

TextScreenObject

public TextScreenObject(java.lang.String text)
Construct a new TextScreenObject with initial text.
Method Detail

clone

public java.lang.Object clone()
clone a TextScreenObject
Overrides:
clone in class ScreenObject

destroyUI

public void destroyUI()
destroy the user interface
Overrides:
destroyUI in class ScreenObject

duplicate

public void duplicate(TextScreenObject toDup)
duplicate the values of another TextScreenObject into this one

getPreferredBounds

public java.awt.Rectangle getPreferredBounds()
Suggest a desired bounds.
Overrides:
getPreferredBounds in class ScreenObject

getText

public java.lang.String getText()
retrive the displayed string

getUI

public javax.swing.JComponent getUI()
return the UI component
Overrides:
getUI in class ScreenObject

setDesignMode

public void setDesignMode(boolean id)
move the object into design mode
Overrides:
setDesignMode in class ScreenObject

setText

public void setText(java.lang.String newText)
set the string used for the text

setupUI

public javax.swing.JComponent setupUI()
set up the user interface element and return it
Overrides:
setupUI in class ScreenObject