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
-
ComponentShell()
- ComponentShell
-
ComponentShell(Component)
- ComponentShell
-
add(Component)
- add
-
getComponent()
- Gets the component variable.
-
getMinimumSize()
- Returns the mininimum size of this component.
-
getPreferredSize()
- Returns the preferred size of this component.
-
isFocusTraversable()
- Returns whether this component can be traversed
using Tab or Shift-Tab keyboard focus traversal.
-
notifyStateChange()
- notifyStateChange
-
paint(GadgetGraphics)
- Lays out the component.
-
repaint(int, int, int, int, boolean, boolean)
- repaint
-
setBounds(int, int, int, int, boolean)
- Sets the boundaries of the component
-
setEnabled(boolean)
- Enables a component.
-
setFont(Font)
- Sets the font of the component.
-
setForeground(Color)
- Sets the foreground color.
-
setNormalBackground(Color)
- Sets the background color.
-
setShell(GadgetShell)
- Sets the GadgetShell
-
setVisible(boolean, boolean)
- Shows or hides the component depending on the boolean flag b.
ComponentShell
public ComponentShell()
- ComponentShell
ComponentShell
public ComponentShell(Component component)
- ComponentShell
- Parameters:
- component - value for Component
add
public void add(Component component)
- add
- Parameters:
- component - value for Component, and if there
is a gadgetShell, it adds the given component
getComponent
public Component getComponent()
- Gets the component variable.
- Returns:
- Component
setShell
protected void setShell(GadgetShell shell)
- Sets the GadgetShell
- Parameters:
- shell - new value for the GadgetShell
- Overrides:
- setShell in class Gadget
setEnabled
public void setEnabled(boolean b)
- Enables a component.
- Parameters:
- b - is/is not Enabled
- Overrides:
- setEnabled in class Gadget
- See Also:
- isEnabled
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
setForeground
public void setForeground(Color c)
- Sets the foreground color.
- Parameters:
- c - the Color
- Overrides:
- setForeground in class Gadget
- See Also:
- getForeground
setNormalBackground
public void setNormalBackground(Color c)
- Sets the background color.
- Parameters:
- c - the Color
- Overrides:
- setNormalBackground in class Gadget
- See Also:
- getBackground
setFont
public void setFont(Font f)
- Sets the font of the component.
- Parameters:
- f - the font
- Overrides:
- setFont in class Gadget
- See Also:
- getFont
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
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
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
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
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
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
notifyStateChange
public void notifyStateChange()
- notifyStateChange
- Overrides:
- notifyStateChange in class Gadget
All Packages Class Hierarchy This Package Previous Next Index