Class marimba.gui.URLTextWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.URLTextWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.TextWidget
                   |
                   +----marimba.gui.URLTextWidget

public class URLTextWidget
extends TextWidget
A simple URL text widget.
Version:
1.13, 01/16/97
Author:
Klaas Waslander

Variable Index

 o align
Text can be aligned to the left, right or can be centered.
 o alignOptions
The possible options for the align.
 o changeCursor
The link can change the mouse cursor when the mouse is pointing at the link.
 o detectFollow
A link can detect whether it has been followed.
 o focusColor
The color used for the link when the mouse is pointing at the link.
 o followColor
The color used when the link has been followed.
 o followed
Detects whether this link has been followed.
 o selColor
The color to highlight the text with when the mouse is down.
 o text
The content of the textbox.
 o underlined
Detects whether the link is underlines.
 o url
The URL that this textbox points to.

Constructor Index

 o URLTextWidget()
Default constructor.
 o URLTextWidget(String)
Constructor with value.
 o URLTextWidget(String, String)
Constructor with value.

Method Index

 o action()
The url is being followed.
 o adjustSize()
Resizes this widget to the size of the text.
 o eventInText(Event)
Checks whether the coordinates of the given event are within the area where the text is.
 o getAlign()
Get the alignment of this widget.
 o getAlignOptions()
Get the possible options for align.
 o getChangeCursor()
Check whether the link changes the mouse cursor.
 o getDetectFollow()
Check whether the link detects whether it has been followed.
 o getLength()
Get the length of the text.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getText()
Get the value of the text.
 o getTextChars()
Return text characters.
 o getURL()
Get the value of the URL.
 o handleEvent(Event)
Handle an event.
 o isFollowed()
Check whether this link has been followed
 o isUnderlined()
Check whether the link should be underlined.
 o leftMargin()
Left margin.
 o paint(Graphics)
Paint the text widget.
 o rightMargin()
Right margin.
 o setAlign(int)
Set the style of this widget.
 o setChangeCursor(boolean)
Let the link change the mouse cursor or not.
 o setCursor(int)
Change the cursor in the current frame if changeCursor is set to true.
 o setDetectFollow(boolean)
A link can detect whether it has been followed.
 o setFollowed(boolean)
Set followed to true or false.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setText(String)
Set the value of the text.
 o setUnderlined(boolean)
Set underlined to true or false.
 o setURL(String)
Set the URL.
 o setValue(String, String)
Set the value.

Variables

 o alignOptions
  public static Options alignOptions
The possible options for the align.
See Also:
getAlignOptions, align
 o selColor
  public Color selColor
The color to highlight the text with when the mouse is down.
 o followColor
  public Color followColor
The color used when the link has been followed.
 o focusColor
  public Color focusColor
The color used for the link when the mouse is pointing at the link.
 o url
  public String url
The URL that this textbox points to.
See Also:
getURL, setURL
 o align
  public int align
Text can be aligned to the left, right or can be centered.
See Also:
getAlign, setAlign, alignOptions
 o detectFollow
  public boolean detectFollow
A link can detect whether it has been followed.
See Also:
getDetectFollow, setDetectFollow
 o followed
  public boolean followed
Detects whether this link has been followed.
See Also:
isFollowed, setFollowed
 o underlined
  public boolean underlined
Detects whether the link is underlines.
See Also:
isUnderlined, setUnderlined
 o changeCursor
  public boolean changeCursor
The link can change the mouse cursor when the mouse is pointing at the link. This does not work properly in channels, so by default it is disabled.
See Also:
getChangeCursor, setChangeCursor
 o text
  public char text[]
The content of the textbox.

Constructors

 o URLTextWidget
  public URLTextWidget()
Default constructor.
 o URLTextWidget
  public URLTextWidget(String text)
Constructor with value.
 o URLTextWidget
  public URLTextWidget(String text,
                       String url)
Constructor with value.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class TextWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class TextWidget
 o getLength
  public int getLength()
Get the length of the text.
Overrides:
getLength in class TextWidget
 o getText
  public String getText()
Get the value of the text.
Overrides:
getText in class Widget
 o setText
  public void setText(String text)
Set the value of the text.
Overrides:
setText in class Widget
 o getTextChars
  public char[] getTextChars()
Return text characters.
See Also:
text
 o setValue
  public void setValue(String label,
                       String url)
Set the value.
Parameters:
label - The label of this url.
url - The actual content of the url.
 o getAlignOptions
  public Options getAlignOptions()
Get the possible options for align.
See Also:
alignOptions
 o getAlign
  public int getAlign()
Get the alignment of this widget.
See Also:
align
 o setAlign
  public void setAlign(int align)
Set the style of this widget.
See Also:
align
 o getDetectFollow
  public boolean getDetectFollow()
Check whether the link detects whether it has been followed.
See Also:
detectFollow
 o setDetectFollow
  public void setDetectFollow(boolean detectFollow)
A link can detect whether it has been followed.
See Also:
detectFollow
 o isFollowed
  public boolean isFollowed()
Check whether this link has been followed
See Also:
followed
 o setFollowed
  public void setFollowed(boolean followed)
Set followed to true or false.
See Also:
followed
 o isUnderlined
  public boolean isUnderlined()
Check whether the link should be underlined.
See Also:
underlined
 o setUnderlined
  public void setUnderlined(boolean underlined)
Set underlined to true or false.
See Also:
underlined
 o getChangeCursor
  public boolean getChangeCursor()
Check whether the link changes the mouse cursor.
See Also:
changeCursor
 o setChangeCursor
  public void setChangeCursor(boolean changeCursor)
Let the link change the mouse cursor or not.
See Also:
changeCursor
 o leftMargin
  public int leftMargin()
Left margin.
See Also:
rightMargin
 o rightMargin
  public int rightMargin()
Right margin.
See Also:
leftMargin
 o getURL
  public String getURL()
Get the value of the URL.
See Also:
URL
 o setURL
  public void setURL(String url)
Set the URL.
See Also:
URL
 o adjustSize
  public void adjustSize()
Resizes this widget to the size of the text.
 o paint
  public void paint(Graphics g)
Paint the text widget.
Overrides:
paint in class Widget
 o setCursor
  public void setCursor(int cursor)
Change the cursor in the current frame if changeCursor is set to true.
Overrides:
setCursor in class Widget
 o eventInText
  protected boolean eventInText(Event evt)
Checks whether the coordinates of the given event are within the area where the text is.
Overrides:
eventInText in class TextWidget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle an event.
Overrides:
handleEvent in class TextWidget
 o action
  public void action()
The url is being followed. Followed is set to true if it is detected.
Overrides:
action in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index