All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.LabelGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.DisplayGadget
                   |
                   +----dtai.gwt.LabelGadget

public class LabelGadget
extends DisplayGadget
LabelGadget


Constructor Index

 o LabelGadget()
Constructs a Label with no label.
 o LabelGadget(String)
Constructs a Label with the specified label.
 o LabelGadget(String, int)
Constructs a LabelGadget with the specified label and horizontal alignment

Method Index

 o computeWrappedLabel()
compueWrappedLabel
 o getLabel()
Gets the label of the button.
 o getWrapLength()
Gets the wrap lenth of the button.
 o isPossiblyDisabled()
isPossiblyDisabled
 o paintDisabledForeground(GadgetGraphics, int, int, int, int)
paintDisabledForeground
 o paintForeground(GadgetGraphics, int, int, int, int)
paints the foreground
 o resetForegroundSize(GadgetGraphics)
resets the foreground size
 o setLabel(String)
Sets the button with the specified label.
 o setPossiblyDisabled(boolean)
setPossiblyDisabled
 o setWrapLength(int)
Sets the button with the specified wrap lenth.
 o toString()
toString

Constructors

 o LabelGadget
 public LabelGadget()
Constructs a Label with no label.

 o LabelGadget
 public LabelGadget(String label)
Constructs a Label with the specified label.

Parameters:
label - - the label of the button
 o LabelGadget
 public LabelGadget(String label,
                    int horizAlign)
Constructs a LabelGadget with the specified label and horizontal alignment

Parameters:
label - - the label of the button
horizAlign - - horizontal alignment

Methods

 o getLabel
 public String getLabel()
Gets the label of the button.

Returns:
label
See Also:
setLabel
 o setLabel
 public void setLabel(String label)
Sets the button with the specified label.

Parameters:
label - - the label to set the button with
See Also:
getLabel
 o toString
 public String toString()
toString

Returns:
String
Overrides:
toString in class Object
 o isPossiblyDisabled
 public boolean isPossiblyDisabled()
isPossiblyDisabled

Returns:
boolean
 o setPossiblyDisabled
 public void setPossiblyDisabled(boolean possiblyDisabled)
setPossiblyDisabled

Parameters:
possiblyDisabled - new value for possiblyDisabled
 o getWrapLength
 public int getWrapLength()
Gets the wrap lenth of the button.

Returns:
wrapLength
See Also:
setWrapLength
 o setWrapLength
 public void setWrapLength(int wrapLength)
Sets the button with the specified wrap lenth.

Parameters:
wrapLength - new value for wrapLength
See Also:
getWrapLength
 o computeWrappedLabel
 public void computeWrappedLabel()
compueWrappedLabel

 o paintForeground
 protected void paintForeground(GadgetGraphics g,
                                int x,
                                int y,
                                int width,
                                int height)
paints the foreground

Parameters:
g - GadgetGraphics object for drawing
x - x coordinate
y - y coordinate
width - width
height - height
Overrides:
paintForeground in class DisplayGadget
 o paintDisabledForeground
 protected void paintDisabledForeground(GadgetGraphics g,
                                        int x,
                                        int y,
                                        int width,
                                        int height)
paintDisabledForeground

Parameters:
g - GadgetGraphics object for drawing
x - x coordinate
y - y coordinate
width - width
height - height
Overrides:
paintDisabledForeground in class DisplayGadget
 o resetForegroundSize
 protected void resetForegroundSize(GadgetGraphics g)
resets the foreground size

Parameters:
g - GadgetGraphics object for drawing
Overrides:
resetForegroundSize in class DisplayGadget

All Packages  Class Hierarchy  This Package  Previous  Next  Index