fi.hut.tml.xsmiles.gui.components.awt
Class AWTCaption
java.lang.Object
fi.hut.tml.xsmiles.gui.components.general.ComponentBase
fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
fi.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)
|
Constructor Summary |
AWTCaption(java.lang.String text)
|
| 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 |
caption
protected AWTCaption.NonFocusableLabel caption
- the caption component
AWTCaption
public AWTCaption(java.lang.String text)
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