fi.hut.tml.xsmiles.gui.components.awt
Class AWTCaption

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.general.ComponentBase
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
          extended byfi.hut.tml.xsmiles.gui.components.awt.AWTCaption
All Implemented Interfaces:
XCaption, XComponent

public class AWTCaption
extends AWTStylableComponent
implements XCaption

A caption object

Author:
Mikko Honkala, juha (mod from SwingCaption)

Nested Class Summary
 class AWTCaption.NonFocusableLabel
          non - focusable TextField to be used as a caption
 
Field Summary
protected  AWTCaption.NonFocusableLabel caption
          the caption component
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
hiddenFrame
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, minSize, style
 
Constructor Summary
AWTCaption(java.lang.String text)
           
 
Method Summary
 void addTextListener(java.awt.event.TextListener tl)
           
 java.awt.Color getDefaultBackgroundColor()
          the default background color for this type of component null = transparent.
 java.lang.String getText()
           
 void init()
          super is called always after init, so it can finish up
 boolean isCaption()
           
 void removeTextListener(java.awt.event.TextListener tl)
           
 void setMinimumSize(java.awt.Dimension min)
          set the minimum size of this component
 void setText(java.lang.String text)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
addHelpListener, createHint, getHiddenFrame, getPreferredSize, removeHelpListener, setBackground, setHintRecursively, setHintText, sizeComponent
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addActionListener, addFocusListener, addMouseListener, getAddableComponent, getComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getMinimumSize, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeMouseListener, setBounds, setDefaultSize, setEnabled, setFocus, setFont, setForeground, setInputMode, setStyle, setVisible, setZoom, sizeComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom
 

Field Detail

caption

protected AWTCaption.NonFocusableLabel caption
the caption component

Constructor Detail

AWTCaption

public AWTCaption(java.lang.String text)
Method Detail

init

public void init()
super is called always after init, so it can finish up

Overrides:
init in class AWTStylableComponent

getDefaultBackgroundColor

public java.awt.Color getDefaultBackgroundColor()
Description copied from class: ComponentBase
the default background color for this type of component null = transparent.

Overrides:
getDefaultBackgroundColor in class ComponentBase

isCaption

public boolean isCaption()
Overrides:
isCaption in class AWTStylableComponent

setMinimumSize

public void setMinimumSize(java.awt.Dimension min)
set the minimum size of this component

Specified by:
setMinimumSize in interface XCaption

getText

public java.lang.String getText()
Specified by:
getText in interface XCaption

setText

public void setText(java.lang.String text)
Specified by:
setText in interface XCaption

addTextListener

public void addTextListener(java.awt.event.TextListener tl)
Specified by:
addTextListener in interface XCaption

removeTextListener

public void removeTextListener(java.awt.event.TextListener tl)
Specified by:
removeTextListener in interface XCaption


X-Smiles 1.2