fi.hut.tml.xsmiles.gui.components.awt
Class AWTSelectBoolean
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.AWTSelectBoolean
- All Implemented Interfaces:
- XComponent, XSelectBoolean
- public class AWTSelectBoolean
- extends AWTStylableComponent
- implements XSelectBoolean
An implementation of XSelectBoolean = a single checkbox
- Author:
- Mikko Honkala, awt mod juha
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase |
addActionListener, addFocusListener, addMouseListener, getAddableComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getMinimumSize, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeMouseListener, setBounds, setDefaultSize, setEnabled, setFocus, setFont, setForeground, setInputMode, 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, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setVisible, setZoom |
button
protected java.awt.Checkbox button
name
protected java.lang.String name
layoutDone
protected boolean layoutDone
stylindDone
protected boolean stylindDone
cachedStyle
protected org.w3c.dom.css.CSSStyleDeclaration cachedStyle
AWTSelectBoolean
public AWTSelectBoolean()
- A plain swing button
init
public void init()
- Overrides:
init in class AWTStylableComponent
createContent
public java.awt.Component createContent()
- creates the content component
getComponent
public java.awt.Component getComponent()
- Description copied from interface:
XComponent
- Return the visual component for this extension element
- Specified by:
getComponent in interface XComponent- Overrides:
getComponent in class ComponentBase
getDefaultBackgroundColor
public java.awt.Color getDefaultBackgroundColor()
- the default background color for this component
null = transparent.
- Overrides:
getDefaultBackgroundColor in class ComponentBase
setStyle
public void setStyle(org.w3c.dom.css.CSSStyleDeclaration a_style)
- Description copied from interface:
XComponent
- sets the CSS style for this component.
for components, which support this, all styling should be dont thru this
- Specified by:
setStyle in interface XComponent- Overrides:
setStyle in class ComponentBase
setStyleLater
public void setStyleLater(org.w3c.dom.css.CSSStyleDeclaration a_style)
setCaptionText
public void setCaptionText(java.lang.String text)
setLabel
public void setLabel(java.lang.String t)
addItemListener
public void addItemListener(java.awt.event.ItemListener al)
- Specified by:
addItemListener in interface XSelectBoolean
removeItemListener
public void removeItemListener(java.awt.event.ItemListener al)
- Specified by:
removeItemListener in interface XSelectBoolean
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelected in interface XSelectBoolean
getSelected
public boolean getSelected()
- Specified by:
getSelected in interface XSelectBoolean
X-Smiles 1.2