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

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTComponent
          extended byfi.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


Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTComponent
fInputMode
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.ComponentWithCaption
axis, caption, container, content, currentZoom, layoutDone, X_AXIS, Y_AXIS
 
Constructor Summary
AWTContainer()
           
 
Method Summary
 void add(java.awt.Component c)
           
 void add(XComponent comp)
           
 boolean getActionable()
          By default components are inactive
 boolean getEnabled()
           
 void remove(java.awt.Component c)
           
 void remove(XComponent c)
           
 void removeAll()
          Remove all components from conatiner.
 void setActionable(boolean a)
           
 void setZoom(double zoom)
          Returns the approximate size of this extension element
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTComponent
addCaption, createHint, init, setHintText, setInputMode, sizeComponent
 
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
 

Constructor Detail

AWTContainer

public AWTContainer()
Method Detail

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