fi.hut.tml.xsmiles.gui.components.awt
Class AWTContainer
java.lang.Object
fi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption
fi.hut.tml.xsmiles.gui.components.awt.AWTComponent
fi.hut.tml.xsmiles.gui.components.awt.AWTContainer
- All Implemented Interfaces:
- XComponent, XContainer
- public class AWTContainer
- extends AWTComponent
- implements XContainer
The only addition is add and remove Utilize the ComponentWithContainer, which already is a container
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption |
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getDefaultBackgroundColor, getHeight, getMinimumSize, getSize, getStyle, getWidth, getX, getY, layoutComponent, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setCaptionStyle, setCaptionText, setEnabled, setFocus, setFont, setForeground, setStyle, setVisible |
| 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, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible |
AWTContainer
public AWTContainer()
getActionable
public boolean getActionable()
- By default components are inactive
- Overrides:
getActionable in class ComponentWithCaption
- Returns:
- Is can compnent be active?
setActionable
public void setActionable(boolean a)
- Overrides:
setActionable in class ComponentWithCaption
- Parameters:
a - The value of actionable
remove
public void remove(XComponent c)
- Specified by:
remove in interface XContainer
- Parameters:
c - Remove component c
removeAll
public void removeAll()
- Remove all components from conatiner.
- Specified by:
removeAll in interface XContainer
add
public void add(XComponent comp)
- Specified by:
add in interface XContainer
- Parameters:
comp - The component to be added
setZoom
public void setZoom(double zoom)
- Returns the approximate size of this extension element
- Specified by:
setZoom in interface XComponent- Overrides:
setZoom in class ComponentWithCaption
add
public void add(java.awt.Component c)
- Specified by:
add in interface XContainer
- Parameters:
c - The component to be added
remove
public void remove(java.awt.Component c)
- Specified by:
remove in interface XContainer
- Parameters:
c - The component to be added
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled in interface XComponent
- Returns:
X-Smiles 1.2