All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.ComponentShell

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ComponentShell

public class ComponentShell
extends Gadget
ComponentShell


Constructor Index

 o ComponentShell()
ComponentShell
 o ComponentShell(Component)
ComponentShell

Method Index

 o add(Component)
add
 o getComponent()
Gets the component variable.
 o getMinimumSize()
Returns the mininimum size of this component.
 o getPreferredSize()
Returns the preferred size of this component.
 o isFocusTraversable()
Returns whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal.
 o notifyStateChange()
notifyStateChange
 o paint(GadgetGraphics)
Lays out the component.
 o repaint(int, int, int, int, boolean, boolean)
repaint
 o setBounds(int, int, int, int, boolean)
Sets the boundaries of the component
 o setEnabled(boolean)
Enables a component.
 o setFont(Font)
Sets the font of the component.
 o setForeground(Color)
Sets the foreground color.
 o setNormalBackground(Color)
Sets the background color.
 o setShell(GadgetShell)
Sets the GadgetShell
 o setVisible(boolean, boolean)
Shows or hides the component depending on the boolean flag b.

Constructors

 o ComponentShell
 public ComponentShell()
ComponentShell

 o ComponentShell
 public ComponentShell(Component component)
ComponentShell

Parameters:
component - value for Component

Methods

 o add
 public void add(Component component)
add

Parameters:
component - value for Component, and if there is a gadgetShell, it adds the given component
 o getComponent
 public Component getComponent()
Gets the component variable.

Returns:
Component
 o setShell
 protected void setShell(GadgetShell shell)
Sets the GadgetShell

Parameters:
shell - new value for the GadgetShell
Overrides:
setShell in class Gadget
 o setEnabled
 public void setEnabled(boolean b)
Enables a component.

Parameters:
b - is/is not Enabled
Overrides:
setEnabled in class Gadget
See Also:
isEnabled
 o setVisible
 public void setVisible(boolean b,
                        boolean invalidateParent)
Shows or hides the component depending on the boolean flag b.

Parameters:
b - if true, show the component; otherwise, hide the component.
invalidateParent - boolean
Overrides:
setVisible in class Gadget
See Also:
isVisible
 o setForeground
 public void setForeground(Color c)
Sets the foreground color.

Parameters:
c - the Color
Overrides:
setForeground in class Gadget
See Also:
getForeground
 o setNormalBackground
 public void setNormalBackground(Color c)
Sets the background color.

Parameters:
c - the Color
Overrides:
setNormalBackground in class Gadget
See Also:
getBackground
 o setFont
 public void setFont(Font f)
Sets the font of the component.

Parameters:
f - the font
Overrides:
setFont in class Gadget
See Also:
getFont
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Returns:
the preferred size as a Dimension
Overrides:
getPreferredSize in class Gadget
See Also:
getMinimumSize, GadgetLayoutManager
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the mininimum size of this component.

Returns:
the minimum size as a Dimension
Overrides:
getMinimumSize in class Gadget
See Also:
getPreferredSize, GadgetLayoutManager
 o paint
 public void paint(GadgetGraphics g)
Lays out the component. This is usually called when the component (more specifically, container) is validated.

Parameters:
g - the GadgetGraphics object to do the painting.
Overrides:
paint in class Gadget
See Also:
validate, GadgetLayoutManager
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height,
                       boolean invalidateParent)
Sets the boundaries of the component

Parameters:
x - x coordinate
y - y coordinate
width - width
height - height
invalidateParent - boolean
Overrides:
setBounds in class Gadget
 o repaint
 public void repaint(int x,
                     int y,
                     int width,
                     int height,
                     boolean setPaintFlag,
                     boolean forced)
repaint

Parameters:
x - x coordinate
y - y coordinate
width - width
height - height
setpaintFlag - boolean
forced - boolean
Overrides:
repaint in class Gadget
 o isFocusTraversable
 public boolean isFocusTraversable()
Returns whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal.

Returns:
is/is not traversable
Overrides:
isFocusTraversable in class Gadget
 o notifyStateChange
 public void notifyStateChange()
notifyStateChange

Overrides:
notifyStateChange in class Gadget

All Packages  Class Hierarchy  This Package  Previous  Next  Index