    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class netscape.samples.simple.ShowTextCustomizer

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----netscape.samples.simple.ShowTextCustomizer

public class ShowTextCustomizer
extends Panel
implements Customizer, KeyListener

Note: Images may be missing from the JavaDocs generated.

Do not be alarmed: this is intentional and should not impact the usability of the JavaDocs as a reference.

##

backgroundColor
textColor
textFont

##

ShowTextCustomizer()
  The constructor initializes basic properties of this customizer class.

##

addPropertyChangeListener(PropertyChangeListener)
getPreferredSize()
  Returns the preferred size for our customizer
keyPressed(KeyEvent)
  Forces a repaint on keypresses
keyReleased(KeyEvent)
  On a key release event, set the property of the bean to match the value the user specified in the textfield
keyTyped(KeyEvent)
  Forces a repaint on keystrokes
paint(Graphics)
  Paints a preview of what will appear in the main ShowText class using the message specified, using an algorithm similar to the one used in ShowText
preferredSize()
  Old method used only for older layout managers
removePropertyChangeListener(PropertyChangeListener)
setObject(Object)
  This is called by the tool inspecting ShowText at design time just before instantiating the customizer and displaying it to the user.

##

textFont

     public Font textFont

textColor

     public Color textColor

backgroundColor

     public Color backgroundColor

##

ShowTextCustomizer

     public ShowTextCustomizer()

  The constructor initializes basic properties of this customizer class.

##

setObject

     public void setObject(Object obj)

  This is called by the tool inspecting ShowText at design time just before instantiating the customizer and displaying it to the user.

  The textfield used is initialized to the value of the property it controls.

paint

     public void paint(Graphics g)

  Paints a preview of what will appear in the main ShowText class using the message specified, using an algorithm similar to the one used in ShowText

  Overrides:
    paint in class Container

getPreferredSize

     public Dimension getPreferredSize()

  Returns the preferred size for our customizer

  Overrides:
    getPreferredSize in class Container

keyTyped

     public void keyTyped(KeyEvent e)

  Forces a repaint on keystrokes

keyPressed

     public void keyPressed(KeyEvent e)

  Forces a repaint on keypresses

keyReleased

     public void keyReleased(KeyEvent e)

  On a key release event, set the property of the bean to match the value the user specified in the textfield

preferredSize

     public Dimension preferredSize()

  Old method used only for older layout managers

  Overrides:
    preferredSize in class Container

addPropertyChangeListener

     public void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

     public void removePropertyChangeListener(PropertyChangeListener listener)

    All Packages  Class Hierarchy  This Package  Previous  Next  Index