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
-
LabelGadget()
- Constructs a Label with no label.
-
LabelGadget(String)
- Constructs a Label with the specified label.
-
LabelGadget(String, int)
- Constructs a LabelGadget with the specified label and horizontal alignment
-
computeWrappedLabel()
- compueWrappedLabel
-
getLabel()
- Gets the label of the button.
-
getWrapLength()
- Gets the wrap lenth of the button.
-
isPossiblyDisabled()
- isPossiblyDisabled
-
paintDisabledForeground(GadgetGraphics, int, int, int, int)
- paintDisabledForeground
-
paintForeground(GadgetGraphics, int, int, int, int)
- paints the foreground
-
resetForegroundSize(GadgetGraphics)
- resets the foreground size
-
setLabel(String)
- Sets the button with the specified label.
-
setPossiblyDisabled(boolean)
- setPossiblyDisabled
-
setWrapLength(int)
- Sets the button with the specified wrap lenth.
-
toString()
- toString
LabelGadget
public LabelGadget()
- Constructs a Label with no label.
LabelGadget
public LabelGadget(String label)
- Constructs a Label with the specified label.
- Parameters:
- label - - the label of the button
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
getLabel
public String getLabel()
- Gets the label of the button.
- Returns:
- label
- See Also:
- setLabel
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
toString
public String toString()
- toString
- Returns:
- String
- Overrides:
- toString in class Object
isPossiblyDisabled
public boolean isPossiblyDisabled()
- isPossiblyDisabled
- Returns:
- boolean
setPossiblyDisabled
public void setPossiblyDisabled(boolean possiblyDisabled)
- setPossiblyDisabled
- Parameters:
- possiblyDisabled - new value for possiblyDisabled
getWrapLength
public int getWrapLength()
- Gets the wrap lenth of the button.
- Returns:
- wrapLength
- See Also:
- setWrapLength
setWrapLength
public void setWrapLength(int wrapLength)
- Sets the button with the specified wrap lenth.
- Parameters:
- wrapLength - new value for wrapLength
- See Also:
- getWrapLength
computeWrappedLabel
public void computeWrappedLabel()
- compueWrappedLabel
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
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
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