fi.hut.tml.xsmiles.gui.components.havi
Class HaviCaption
java.lang.Object
fi.hut.tml.xsmiles.gui.components.general.ComponentBase
fi.hut.tml.xsmiles.gui.components.havi.HaviStylableComponent
fi.hut.tml.xsmiles.gui.components.havi.HaviCaption
- All Implemented Interfaces:
- XCaption, XComponent
- public class HaviCaption
- extends HaviStylableComponent
- implements XCaption
A caption object
- Author:
- Mikko Honkala
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase |
addActionListener, addFocusListener, addHelpListener, addMouseListener, getAddableComponent, getComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getPreferredSize, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBounds, setDefaultSize, setFocus, setFont, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom, sizeComponent, 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, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom |
caption
protected HaviCaption.NonFocusableLabel caption
- the caption component
labelMinSize
protected static final java.awt.Dimension labelMinSize
myMinSize
protected java.awt.Dimension myMinSize
textContent
protected java.lang.String textContent
textListeners
protected java.util.Vector textListeners
- the text listeners of this caption
HaviCaption
public HaviCaption(java.lang.String text)
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
ComponentBase
- return the minimum size for this component at zoom level 1.0
- Overrides:
getMinimumSize in class ComponentBase
setMinimumSize
public void setMinimumSize(java.awt.Dimension min)
- Description copied from interface:
XCaption
- set the minimum size of this component
- Specified by:
setMinimumSize in interface XCaption
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()
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
setEnabled
public void setEnabled(boolean value)
- Specified by:
setEnabled in interface XComponent- Overrides:
setEnabled in class ComponentBase
- Parameters:
value - Active or not active
X-Smiles 1.2