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
-
align
- Text can be aligned to the left, right or can be centered.
-
alignOptions
- The possible options for the align.
-
changeCursor
- The link can change the mouse cursor when the mouse
is pointing at the link.
-
detectFollow
- A link can detect whether it has been followed.
-
focusColor
- The color used for the link when the mouse is pointing at the link.
-
followColor
- The color used when the link has been followed.
-
followed
- Detects whether this link has been followed.
-
selColor
- The color to highlight the text with when the mouse is down.
-
text
- The content of the textbox.
-
underlined
- Detects whether the link is underlines.
-
url
- The URL that this textbox points to.
-
URLTextWidget()
- Default constructor.
-
URLTextWidget(String)
- Constructor with value.
-
URLTextWidget(String, String)
- Constructor with value.
-
action()
- The url is being followed.
-
adjustSize()
- Resizes this widget to the size of the text.
-
eventInText(Event)
- Checks whether the coordinates of the given event are
within the area where the text is.
-
getAlign()
- Get the alignment of this widget.
-
getAlignOptions()
- Get the possible options for align.
-
getChangeCursor()
- Check whether the link changes the mouse cursor.
-
getDetectFollow()
- Check whether the link detects whether it has been followed.
-
getLength()
- Get the length of the text.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getText()
- Get the value of the text.
-
getTextChars()
- Return text characters.
-
getURL()
- Get the value of the URL.
-
handleEvent(Event)
- Handle an event.
-
isFollowed()
- Check whether this link has been followed
-
isUnderlined()
- Check whether the link should be underlined.
-
leftMargin()
- Left margin.
-
paint(Graphics)
- Paint the text widget.
-
rightMargin()
- Right margin.
-
setAlign(int)
- Set the style of this widget.
-
setChangeCursor(boolean)
- Let the link change the mouse cursor or not.
-
setCursor(int)
- Change the cursor in the current frame if changeCursor is set to true.
-
setDetectFollow(boolean)
- A link can detect whether it has been followed.
-
setFollowed(boolean)
- Set followed to true or false.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setText(String)
- Set the value of the text.
-
setUnderlined(boolean)
- Set underlined to true or false.
-
setURL(String)
- Set the URL.
-
setValue(String, String)
- Set the value.
alignOptions
public static Options alignOptions
- The possible options for the align.
- See Also:
- getAlignOptions, align
selColor
public Color selColor
- The color to highlight the text with when the mouse is down.
followColor
public Color followColor
- The color used when the link has been followed.
focusColor
public Color focusColor
- The color used for the link when the mouse is pointing at the link.
url
public String url
- The URL that this textbox points to.
- See Also:
- getURL, setURL
align
public int align
- Text can be aligned to the left, right or can be centered.
- See Also:
- getAlign, setAlign, alignOptions
detectFollow
public boolean detectFollow
- A link can detect whether it has been followed.
- See Also:
- getDetectFollow, setDetectFollow
followed
public boolean followed
- Detects whether this link has been followed.
- See Also:
- isFollowed, setFollowed
underlined
public boolean underlined
- Detects whether the link is underlines.
- See Also:
- isUnderlined, setUnderlined
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
text
public char text[]
- The content of the textbox.
URLTextWidget
public URLTextWidget()
- Default constructor.
URLTextWidget
public URLTextWidget(String text)
- Constructor with value.
URLTextWidget
public URLTextWidget(String text,
String url)
- Constructor with value.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class TextWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class TextWidget
getLength
public int getLength()
- Get the length of the text.
- Overrides:
- getLength in class TextWidget
getText
public String getText()
- Get the value of the text.
- Overrides:
- getText in class Widget
setText
public void setText(String text)
- Set the value of the text.
- Overrides:
- setText in class Widget
getTextChars
public char[] getTextChars()
- Return text characters.
- See Also:
- text
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.
getAlignOptions
public Options getAlignOptions()
- Get the possible options for align.
- See Also:
- alignOptions
getAlign
public int getAlign()
- Get the alignment of this widget.
- See Also:
- align
setAlign
public void setAlign(int align)
- Set the style of this widget.
- See Also:
- align
getDetectFollow
public boolean getDetectFollow()
- Check whether the link detects whether it has been followed.
- See Also:
- detectFollow
setDetectFollow
public void setDetectFollow(boolean detectFollow)
- A link can detect whether it has been followed.
- See Also:
- detectFollow
isFollowed
public boolean isFollowed()
- Check whether this link has been followed
- See Also:
- followed
setFollowed
public void setFollowed(boolean followed)
- Set followed to true or false.
- See Also:
- followed
isUnderlined
public boolean isUnderlined()
- Check whether the link should be underlined.
- See Also:
- underlined
setUnderlined
public void setUnderlined(boolean underlined)
- Set underlined to true or false.
- See Also:
- underlined
getChangeCursor
public boolean getChangeCursor()
- Check whether the link changes the mouse cursor.
- See Also:
- changeCursor
setChangeCursor
public void setChangeCursor(boolean changeCursor)
- Let the link change the mouse cursor or not.
- See Also:
- changeCursor
leftMargin
public int leftMargin()
- Left margin.
- See Also:
- rightMargin
rightMargin
public int rightMargin()
- Right margin.
- See Also:
- leftMargin
getURL
public String getURL()
- Get the value of the URL.
- See Also:
- URL
setURL
public void setURL(String url)
- Set the URL.
- See Also:
- URL
adjustSize
public void adjustSize()
- Resizes this widget to the size of the text.
paint
public void paint(Graphics g)
- Paint the text widget.
- Overrides:
- paint in class Widget
setCursor
public void setCursor(int cursor)
- Change the cursor in the current frame if changeCursor is set to true.
- Overrides:
- setCursor in class Widget
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
handleEvent
public boolean handleEvent(Event evt)
- Handle an event.
- Overrides:
- handleEvent in class TextWidget
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