|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--marimba.gui.Widget
A generic widget implementation. This is the base class for all widgets in the marimba.gui package.
WidgetConstants| Field Summary | |
java.lang.String |
adapter
The name of the adapter class for this widget if this widget requires one. |
java.awt.Color |
background
The current background. |
byte[] |
clazz
The binary representation of the class that constitutes this widget. |
static java.awt.Color |
defaultBackground
The default background color of the widget. |
static java.awt.Font |
defaultFont
The default font of the widget. |
static java.awt.Color |
defaultForeground
The default foreground color of the widget. |
static java.awt.Color |
defaultHilite
The default hilite color, used to fill certain areas to hide the background. |
protected boolean |
directGraphics
If a widget is opaque and so its update method can be called, when directGraphics is true the update method is passed the screen graphics context. |
boolean |
disabled
A disabled widget does not accept any user input. |
int |
east
The number of pixels that the distance between the eatern side and this widget has to be. |
java.lang.Object |
editor
The editor for inline editing. |
boolean |
focus
When a widget has focus, a focus rectangle is usually drawn around it telling the user that keyboard input goes to that widget now. |
java.awt.Font |
font
The current font. |
java.awt.Color |
foreground
The current foreground. |
int |
height
The height of this widget. |
java.awt.Color |
hilite
The current hilite color. |
WidgetLayoutMgr |
layoutMgr
The layout manager for this widget. |
java.lang.String |
name
The name of the widget. |
int |
north
The number of pixels that the distance between the northern side and this widget has to be. |
int |
nwidgets
The number of widgets that are in this widget. |
Widget |
parent
The parent container of this class. |
java.lang.String |
script
The current script of the widget which reflects the current state of the widget. |
int |
south
The number of pixels that the distance between the southern side and this widget has to be. |
java.lang.String |
tip
The tip that is displayed under the mouse pointer when it is pointing at this widget for a while. |
protected boolean |
transparent
If a widget is transparent, the background behind this widget is still visible. |
int |
tx
The widget is translated in the x-direction using this value. |
int |
ty
The widget is translated in the y-direction using this value. |
boolean |
valid
If the widget is invalid, the next time the widget is repainted, the layout has to be redone. |
boolean |
visible
A widget can be made invisible. |
protected java.awt.Color |
wBackground
When wBackground is null, background is the inherited value. |
int |
west
The number of pixels that the distance between the western side and this widget has to be. |
protected java.awt.Font |
wFont
When wFont is null, font is the inherited value. |
protected java.awt.Color |
wForeground
When wForeground is null, foreground is the inherited value. |
protected java.awt.Color |
wHilite
When wHilite is null, hilite is the inherited value. |
Widget[] |
widgets
The widgets that are contained by this widget. |
int |
width
The width of this widget. |
java.lang.String |
wScript
This is the script which is currently being edited. |
protected java.lang.String |
wTip
When wTip is null, the tip is the inherited value. |
int |
x
The x-coordinate of the upper-left corner of this widget. |
int |
y
The y-coordinate of the upper-left corner of this widget. |
| Fields inherited from interface marimba.gui.WidgetConstants |
ALWAYS, ANYWHERE, APPLET, ASCENDING, BLINK, BLUE, BONGO_EVENT, BOTH, BOTTOM, BOXED, BUTTON, CENTER, CHAR, CHECK, COLLAPSE_EVENT, CONTENT, DESCENDING, DETACHED, DIAGONAL, DOWN, DRAG, EXCLUSIVE, EXPAND_EVENT, FILL, FILLED, GREEN, HORIZONTAL, INSIDE, INVISIBLE, JAVA_VERSION, JAVAOS, JDK10, JDK11, LAYERS, LEFT, LOWERED, MAC, MULTIPLE, NETCASTER, NETSCAPE, NEVER, NONE, NT, OPTIONAL, OS_ARCH, OS_NAME, OS_VERSION, OUTLINE, PAGE_DOWN, PAGE_EVENT, PAGE_UP, PATTERN, PC, PICTURE, PLAIN, PROPORTIONAL, RADIO, RAISED, RED, REST_EVENT, RIGHT, ROUNDED, SCALE, SCROLLBAR, SCROLLING, SOLID, SQUARE, TEXT_CHANGED_EVENT, TOP, TOPLEFT, TRUNCATE, UNDERLINE, UNIX, UP, VERTICAL, WAKE_EVENT, WIN95, WINDOWS, WORD |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Widget()
Construct a widget. |
|
| Method Summary | |
void |
action()
Execute the action associated with this widget. |
boolean |
action(java.awt.Event evt,
java.lang.Object what)
By default a widget calls this function when a action event occurs. |
void |
add(int pos,
Widget w)
Add a widget at a given position. |
void |
add(Widget w)
Add a widget to this widget: a widget can contain any number of other widgets. |
void |
adjustFont(java.lang.String family)
More of the same. |
void |
adjustFont(java.lang.String family,
int style,
int size)
Set certain characteristics of the widget's font, but do not change the other characteristics thereof. |
void |
applyProperties(PropertyList list)
Apply new properties to an object. |
void |
audioLoop(java.lang.String src)
Play an audio clip looped. |
void |
audioLoop(java.net.URL url)
Play the audio clip at the given url looped. |
void |
audioPlay(java.lang.String src)
Play an audio clip. |
void |
audioPlay(java.net.URL url)
Play an audio clip using a url. |
void |
audioStop(java.lang.String src)
Stop an audio clip. |
void |
audioStop(java.net.URL url)
Stop the audio clip with the given url. |
java.awt.Rectangle |
bounds()
Deprecated. As of Bongo version 1.1. |
void |
clearFocus()
Remove the character focus. |
void |
clearPopups()
Clear any popups associated with this widget. |
java.lang.Object |
clone()
Return a clone of this widget. |
boolean |
contains(int px,
int py)
Checks whether this widget "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this widget. |
boolean |
contains(java.awt.Point p)
Checks whether this widget "contains" the specified point, where x and y in the point are defined to be relative to the coordinate system of this widget. |
java.awt.Image |
createImage(java.awt.image.ImageProducer producer)
Creates an image from the specified image producer. |
java.awt.Image |
createImage(int width,
int height)
Creates an off-screen drawable Image, which can be used for double buffering. |
Widget |
currentFocus()
Get the widget that has the current focus. |
void |
destroy()
Called to destroy a widget. |
void |
disable()
Disable the widget. |
void |
disable(boolean disabled)
Deprecated. As of Bongo version 1.1. |
void |
enable()
Enable the widget. |
Widget |
findWidget(java.lang.String nm)
Find a widget in this container. |
void |
firstFocus()
Assign the focus to the first widget in this presentation. |
boolean |
focusInterest()
True if this widget is potentially interested in getting the focus. |
java.applet.AudioClip |
getAudioClip(java.lang.String src)
Get an audio clip. |
java.applet.AudioClip |
getAudioClipAt(java.net.URL url)
Get an audio clip using a url. |
java.awt.Color |
getBackground()
Get the background color. |
java.awt.Rectangle |
getBounds()
Get the bounds as a Rectangle object. |
CommandButtonWidget |
getCancelButton()
Get the cancel button, that wants to be executed if something is cancelled. |
void |
getChildProperties(PropertyList list)
Get the properties for the children of this widget. |
int |
getCursor()
Get the current mouse cursor of the presentation. |
Widget |
getDefaultButton()
Get the default button, which wants to be executed if something is done. |
java.lang.String |
getDescription()
Get a short description of the widget that consists of the widget name and class name. |
java.lang.String |
getEditor()
Get the name of the class that can be used for in-place editing. |
java.lang.String |
getEncoding()
Gets the character encoding of the widget. Java uses Unicode as its native character encoding; however, keyboard input arrives in 'native' format, which means that on a Greek computer I could never input anything but Greek even if I set my keyboard driver to another language. The supported character encodings depend on what Java supports. |
java.awt.Color |
getFocusColor()
Get the focus color, which is the standard color of the focus rectangle. |
java.awt.Font |
getFont()
Get the font of the widget. |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Get the metrics for a font. |
java.awt.Color |
getForeground()
Get the foreground color. |
java.awt.Color |
getHilite()
Get the hilite color. |
java.awt.Image |
getImage(java.lang.String src)
Get an image from a location. |
char[] |
getKey(char[] key)
Another way of getting a key. |
java.lang.String |
getKey(java.lang.String key)
Check whether the given string is a key and if that is true, get the key by asking the presentation for the value of that key. |
java.lang.String |
getKey(java.lang.String key,
boolean editMode)
Get the given key and do or don't let it assume edit mode. |
WidgetLayoutMgr |
getLayoutMgr()
Get the layout manager for this widget. |
java.util.Locale |
getLocale()
Gets the locale of the widget. |
java.awt.Point |
getLocation()
Get the current location of the widget as a Point object. |
java.lang.String |
getName()
Get the name. |
Widget |
getParent()
Return the widget's parent. |
java.awt.Frame |
getPlayerFrame()
Find the first parent frame in which this widget is playing; this can be several levels up in the Component and Widget hierarchy; this is very handy to get the top-level app/frame. |
PlayerPanel |
getPlayerPanel()
Get the PlayerPanel in which the presentation of this widget is being 'played'. |
java.awt.Dimension |
getPreferredSize()
Get the preferred size of this widget; when a widget is created it will initially have this size. |
Presentation |
getPresentation()
Get the presentation in which this widget is embedded. |
void |
getProperties(PropertyList list)
Get the properties of this widget, by setting them in the given PropertyList. |
java.awt.Color |
getSelBackground()
Get the selection background color. |
java.awt.Color |
getSelFocusColor()
Get the selection focus color, which is the color of the focus rectangle around the selection bar. |
java.awt.Color |
getSelForeground()
Get the selection foreground color. |
java.awt.Dimension |
getSize()
Get the size as a Dimension object. |
java.lang.String |
getText()
Get the text of the widget. |
java.lang.String |
getText(java.lang.String name)
Get the text of a named widget. |
java.lang.String |
getTip()
Get the help tip of the widget. |
java.lang.String |
getTip(int x,
int y)
Get the tip for a particular x,y location within the widget. |
java.awt.Font |
getTipFont()
Get the font for the tips in the widget. |
java.lang.Object |
getValue()
Get the value of the widget. |
java.lang.Object |
getValue(java.lang.String name)
Get the value of a named widget. |
Widget |
getWidget(java.lang.String name)
Get a widget by name. |
Widget |
getWidgetAt(int x,
int y)
Locate the topmost widget that contains the specified coordinate. |
Widget |
getWidgetAt(java.awt.Point p)
Locate the topmost widget that contains the specified point. |
java.lang.Class |
getWidgetClass()
Get the widget class for this widget. |
java.util.Vector |
getWidgetsAt(int x,
int y)
Locate all the widgets that intersect with the given point and append them to the vector, so that the front most ends up first. |
java.util.Vector |
getWidgetsAt(int x,
int y,
int width,
int height)
Locate all the widgets inside a rectangle. |
java.util.Vector |
getWidgetsAt(java.awt.Point p)
Locate all the widgets that intersect with the given point and append them to the vector, so that the front most ends up first. |
boolean |
gotFocus(java.awt.Event evt,
java.lang.Object what)
By default a widget calls this function when a gotFocus event occurs. |
void |
gotoPage(java.lang.String page)
Go to a page in the current folder. |
void |
gotoPage(java.lang.String name,
java.lang.String page)
Goto a page in a named folder. |
boolean |
handleEvent(java.awt.Event evt)
Lets the widget handle an event. |
boolean |
hasFocus()
True if the current widget has the focus. |
void |
hide()
Hide the widget. |
boolean |
imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int width,
int height)
Update the widget after more image data arrive. |
protected void |
inheritFont()
Inherit the font from the widget's parent. |
void |
init()
Called to initialize a widget. |
boolean |
inside(int px,
int py)
Deprecated. As of Bongo version 1.1. |
boolean |
inside(int px,
int py,
int pw,
int ph)
Check if this widget is inside a rectangle. |
void |
invalidate()
Invalidate the widget (the size has changed). |
boolean |
isDisabled()
Check if the widget is disabled. |
boolean |
isShowing()
Checks if this Widget is showing on screen. |
boolean |
isTransparent()
Check whether this widget is transparent. |
boolean |
isVisible()
Check if this widget is visible. |
boolean |
keyDown(java.awt.Event evt,
int key)
By default a widget calls this function when a keyDown event occurs. |
boolean |
keyUp(java.awt.Event evt,
int key)
By default a widget calls this function when a keyUp event occurs. |
void |
layout()
Lay out the widget. |
void |
list()
Print the widget for debugging. |
void |
list(java.io.PrintStream out,
int n)
Print the widget with indentation for debugging. |
Widget |
locateWidget(int x,
int y)
Deprecated. As of Bongo version 1.1. |
void |
locateWidgets(java.util.Vector v,
int x,
int y)
Deprecated. As of Bongo version 1.1. |
void |
locateWidgets(java.util.Vector v,
int x,
int y,
int width,
int height)
Deprecated. As of Bongo version 1.1. |
java.awt.Point |
location()
Deprecated. As of Bongo version 1.1. |
boolean |
lostFocus(java.awt.Event evt,
java.lang.Object what)
By default a widget calls this function when a lostFocus event occurs. |
boolean |
mouseDown(java.awt.Event evt,
int x,
int y)
By default a widget calls this function when a mouseDown event occurs. |
boolean |
mouseDrag(java.awt.Event evt,
int x,
int y)
By default a widget calls this function when a mouseDrag event occurs. |
boolean |
mouseEnter(java.awt.Event evt,
int x,
int y)
By default a widget calls this function when a mouseEnter event occurs. |
boolean |
mouseExit(java.awt.Event evt,
int x,
int y)
By default a widget calls this function when a mouseExit event occurs. |
boolean |
mouseMove(java.awt.Event evt,
int x,
int y)
By default a widget calls this function when a mouseMove event occurs. |
boolean |
mouseUp(java.awt.Event evt,
int x,
int y)
By default a widget calls this function when a mouseUp event occurs. |
void |
move(int x,
int y)
Deprecated. As of Bongo version 1.1. |
void |
nextFocus()
Assign the focus to the next widget that is located to the right or below the current focus. |
boolean |
overlap(int px,
int py,
int pw,
int ph)
Check if the widget overlaps with rectangle. |
void |
paint(java.awt.Graphics g)
Paint from scratch. |
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paint part of the screen. |
protected void |
paintAll(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paint everyting in the indicated area. |
void |
paramString(java.lang.StringBuffer buf)
Build a string describing the widget's parameters. |
boolean |
postEvent(java.awt.Event evt)
Post an event to this widget. |
void |
previousFocus()
Assign the focus to the previous widget that is located to the left or above the current focus. |
void |
remove()
Remove this widget from the parent. |
void |
remove(Widget w)
Remove a widget from this widget. |
protected void |
remove(Widget w,
int i)
Remove the widget, assuming that the given index is the index of the widget in the widgets array. |
void |
removeAll()
Remove all widgets from this widget. |
void |
repaint()
Repaint the entrire widget as soon as possible. |
void |
repaint(int x,
int y,
int width,
int height)
This will repaint the indicated area of the screen (local coordinates). |
void |
repaint(long tm)
Repaint this widget. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
This will repaint the indicated area of the screen (local coordinates). |
void |
repaintParent(long tm,
int x,
int y,
int width,
int height)
Repaint a part of the parent window. |
void |
replace(int pos,
Widget w)
Replace a widget at a given position. |
void |
replace(Widget newWidget)
Replace this widget with another widget. |
void |
replace(Widget oldWidget,
Widget newWidget)
Replace a widget by another widget. |
void |
requestFocus()
Ask the playerPanel for the focus. |
void |
resetCursor()
Reset the current cursor to the default cursor of the presentation. |
void |
reshape(int x,
int y,
int width,
int height)
Deprecated. As of Bongo version 1.1. |
void |
reshape(int x,
int y,
int width,
int height,
boolean repaint)
Deprecated. As of Bongo version 1.1. |
void |
resize(java.awt.Dimension d)
Deprecated. As of Bongo version 1.1. |
void |
resize(int width,
int height)
Deprecated. As of Bongo version 1.1. |
void |
rmove(int dx,
int dy)
Deprecated. As of Bongo version 1.1. This method has been removed, since it was not necessary. |
void |
rscroll(int dx,
int dy)
Scroll the contents of this widget, relative to their current location. |
void |
scroll(int tx,
int ty)
Scroll the contents of this widget to a certain location. |
void |
setAttach(int north,
int east,
int south,
int west)
Set the attachments of this widget to the given number of pixels. |
void |
setBackground(java.awt.Color c)
Set the background color of the widget. |
void |
setBounds(int x,
int y,
int width,
int height)
Reshape the widget to the specified bounding box. |
void |
setBounds(int x,
int y,
int width,
int height,
boolean repaint)
Reshape the widget and repaint/invalidate if the given boolean is true. |
void |
setCursor(int cursor)
Set the current mouse cursor in the presentation. |
void |
setDisabled(boolean disabled)
Disable the widget conditionally. |
void |
setEditor(java.lang.Object editor)
Set the editor for this widget. |
void |
setEncoding(java.lang.String encoding)
Sets the character encoding of the widget. |
void |
setFont(java.awt.Font f)
Set the font of the widget. |
void |
setForeground(java.awt.Color c)
Sets the foreground color of the widget. |
void |
setHilite(java.awt.Color c)
Sets the hilite color of the widget. |
void |
setLayoutMgr(WidgetLayoutMgr layoutMgr)
Set the layout manager for this widget. |
void |
setLocale(java.util.Locale locale)
Set the locale of the widget. |
void |
setLocation(int x,
int y)
Moves the Widget to a new location. |
void |
setName(java.lang.String name)
Set the name. |
void |
setProperties(PropertyList list)
Set the properties of this widget, by getting them from the given property list. |
void |
setSize(java.awt.Dimension d)
Resizes the widget to the specified dimension. |
void |
setSize(int width,
int height)
Resizes the widget to the specified width and height. |
void |
setText(java.lang.String text)
Set the text of a widget. |
void |
setText(java.lang.String name,
java.lang.String text)
Set the text of a named widget. |
void |
setTip(java.lang.String tip)
Set the tip of the widget. |
void |
setTipFont(java.awt.Font tipFont)
Set the font for the tips in the widget. |
protected void |
setTransparent(boolean transparent)
Set the transparency. |
void |
setValue(java.lang.Object value)
Set the value of the widget. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Set the value of a named widget. |
void |
setVisible(boolean visible)
Shows or hides the widget. |
void |
show()
Show the widget. |
void |
show(boolean visible)
Deprecated. As of Bongo version 1.1. |
java.awt.Dimension |
size()
Deprecated. As of Bongo version 1.1. |
void |
start()
Called to start a widget. |
void |
stop()
Called to stop a widget. |
void |
sync()
Sync the toolkit. |
long |
tick(long tm,
java.lang.Object arg)
The clock is ticking... |
void |
toBack()
Send this widget to the back. |
void |
toBack(Widget w)
Move a widget in this widget to the back. |
void |
toFront()
Bring this widget to the front. |
void |
toFront(Widget w)
Bring a widget in this widget to the front. |
java.lang.String |
toString()
Convert the widget to a string for debugging. |
void |
update(java.awt.Graphics g)
Update the widget. |
void |
validate()
Validate the widget. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.awt.Font defaultFont
public static final java.awt.Color defaultForeground
public static final java.awt.Color defaultBackground
public static final java.awt.Color defaultHilite
public java.lang.String name
getName(),
setName(java.lang.String),
findWidget(java.lang.String),
getWidget(java.lang.String)protected java.lang.String wTip
tippublic java.lang.String tip
getTip(),
setTip(java.lang.String)public boolean valid
validate(),
invalidate()protected boolean transparent
isTransparent(),
setTransparent(boolean)protected boolean directGraphics
transparentpublic boolean visible
isVisible(),
isShowing(),
setVisible(boolean)public boolean disabled
isDisabled(),
setDisabled(boolean)public boolean focus
getFocusColor(),
focusInterest(),
currentFocus(),
hasFocus(),
requestFocus(),
clearFocus(),
firstFocus(),
nextFocus(),
previousFocus()public int tx
scroll(int, int),
rscroll(int, int)public int ty
scroll(int, int),
rscroll(int, int)public int x
getLocation(),
setLocation(int, int)public int y
getLocation(),
setLocation(int, int)public int width
getSize(),
setSize(java.awt.Dimension)public int height
getSize(),
setSize(java.awt.Dimension)public int north
WidgetConstants.DETACHED,
setAttach(int, int, int, int)public int east
WidgetConstants.DETACHED,
setAttach(int, int, int, int)public int south
WidgetConstants.DETACHED,
setAttach(int, int, int, int)public int west
WidgetConstants.DETACHED,
setAttach(int, int, int, int)protected java.awt.Font wFont
fontpublic java.awt.Font font
getFont(),
setFont(java.awt.Font)protected java.awt.Color wForeground
foregroundpublic java.awt.Color foreground
getForeground(),
setForeground(java.awt.Color)protected java.awt.Color wBackground
backgroundpublic java.awt.Color background
getBackground(),
setBackground(java.awt.Color)protected java.awt.Color wHilite
hilitepublic java.awt.Color hilite
getHilite(),
setHilite(java.awt.Color)public Widget parent
getParent()public int nwidgets
widgetspublic Widget[] widgets
nwidgets,
getWidget(java.lang.String)public WidgetLayoutMgr layoutMgr
getLayoutMgr(),
setLayoutMgr(marimba.gui.WidgetLayoutMgr)public java.lang.Object editor
getEditor(),
setEditor(java.lang.Object)public java.lang.String wScript
scriptpublic java.lang.String script
wScript,
clazzpublic byte[] clazz
scriptpublic java.lang.String adapter
Provide the name of the class file which implements the interface marimba.gui.WidgetAdapter. Every lifecycle event in the adapter is guaranteed to be invoked by the corresponding lifecycle method of this widget.
This supports the MVC pattern withing the widget framework.
| Constructor Detail |
public Widget()
| Method Detail |
public void getProperties(PropertyList list)
"scrollbarForeground", "scrollbarHilite",
"scrollbarBackground". This allows users to set
possible scrollbar color separately.getProperties in interface PropertyObjectlist - The list in which the current state needs to be saved.setProperties(PropertyList)public void getChildProperties(PropertyList list)
public void setProperties(PropertyList list)
setProperties in interface PropertyObjectlist - The list that contains the new widget state.getProperties(PropertyList)public void applyProperties(PropertyList list)
public java.lang.Object clone()
clone in class java.lang.Objectpublic Widget getParent()
parentpublic java.awt.Dimension getPreferredSize()
public java.lang.String getName()
namepublic void setName(java.lang.String name)
namepublic java.lang.String getTip()
setTip(java.lang.String)
public java.lang.String getTip(int x,
int y)
x - the x-coordinate of the tipy - the y-coordinate of the tipsetTip(java.lang.String)public void setTip(java.lang.String tip)
tip - The string that is the tip.getTip(),
getTip(int, int)public java.awt.Font getTipFont()
setTipFont(java.awt.Font),
getTip()public void setTipFont(java.awt.Font tipFont)
tipFont - the font that the tips will usegetTipFont()public java.awt.Font getFont()
setFont(java.awt.Font)public void setFont(java.awt.Font f)
f - The font that will be used for the widget.getFont()
public void adjustFont(java.lang.String family,
int style,
int size)
public void adjustFont(java.lang.String family)
protected void inheritFont()
fontpublic java.awt.Color getForeground()
foregroundpublic void setForeground(java.awt.Color c)
c - the color to be used as foreground colorforegroundpublic java.awt.Color getBackground()
backgroundpublic void setBackground(java.awt.Color c)
c - the color to be used as background colorbackgroundpublic java.awt.Color getHilite()
hilitepublic void setHilite(java.awt.Color c)
c - the color to be used as hilite colorhilitepublic boolean isTransparent()
setTransparent(boolean)protected void setTransparent(boolean transparent)
isTransparent()public WidgetLayoutMgr getLayoutMgr()
layoutMgrpublic void setLayoutMgr(WidgetLayoutMgr layoutMgr)
layoutMgrpublic java.awt.Frame getPlayerFrame()
getPlayerPanel(),
getPresentation()public PlayerPanel getPlayerPanel()
#getFrame ,
getPresentation()public Presentation getPresentation()
#getFrame ,
getPlayerPanel()public java.lang.String getEditor()
editorpublic void setEditor(java.lang.Object editor)
editorpublic int getCursor()
Presentation.cursorpublic void setCursor(int cursor)
Presentation.cursorpublic void resetCursor()
Presentation.defaultCursorpublic java.util.Locale getLocale()
setLocale(java.util.Locale)public void setLocale(java.util.Locale locale)
locale - the localegetLocale()public java.lang.String getEncoding()
setEncoding(java.lang.String)public void setEncoding(java.lang.String encoding)
encoding - The IANA name or the direct name of the Java converter
for the character encoding. If null is given than the parent's
encoding will be used. By setting it to "system" the default
system encoding will be used.getEncoding(),
StringResourcespublic java.awt.FontMetrics getFontMetrics(java.awt.Font font)
font - the font that the font metrics are unknown ofpublic java.awt.Image getImage(java.lang.String src)
src - a relative path (relative to presentation base) or any other urlpublic boolean isDisabled()
setDisabled(boolean)public void enable()
isDisabled()public void disable()
isDisabled()public void setDisabled(boolean disabled)
isDisabled(),
enable(),
disable()public void disable(boolean disabled)
setDisabled(boolean)public boolean isVisible()
setVisible(boolean)public boolean isShowing()
setVisible(boolean)public void show()
setVisible(boolean)public void hide()
setVisible(boolean)public void setVisible(boolean visible)
visible - if true then shows, if false then hides the widgetisVisible(),
isShowing(),
show(),
hide()public void show(boolean visible)
setVisible(boolean)public java.lang.Object getValue()
public java.lang.Object getValue(java.lang.String name)
getWidget(java.lang.String)public void setValue(java.lang.Object value)
public void setValue(java.lang.String name,
java.lang.Object value)
getWidget(java.lang.String)public java.lang.String getText()
public java.lang.String getText(java.lang.String name)
getWidget(java.lang.String)public void setText(java.lang.String text)
public void setText(java.lang.String name,
java.lang.String text)
getWidget(java.lang.String)public void gotoPage(java.lang.String page)
FolderWidget.gotoPage(java.lang.String)
public void gotoPage(java.lang.String name,
java.lang.String page)
FolderWidget.gotoPage(java.lang.String),
getWidget(java.lang.String)
public boolean contains(int px,
int py)
x - the x coordinatey - the y coordinategetWidgetAt(int, int)
public boolean inside(int px,
int py)
contains(int, int)public boolean contains(java.awt.Point p)
p - the pointgetWidgetAt(int, int)
public boolean inside(int px,
int py,
int pw,
int ph)
pw - widthph - height
public boolean overlap(int px,
int py,
int pw,
int ph)
pw - widthph - height
public Widget getWidgetAt(int x,
int y)
public Widget locateWidget(int x,
int y)
getWidgetAt(int, int)public Widget getWidgetAt(java.awt.Point p)
p - the pointgetWidgetAt(int, int)
public java.util.Vector getWidgetsAt(int x,
int y)
public void locateWidgets(java.util.Vector v,
int x,
int y)
getWidgetsAt(int, int)public java.util.Vector getWidgetsAt(java.awt.Point p)
p - the pointgetWidgetsAt(int, int)
public java.util.Vector getWidgetsAt(int x,
int y,
int width,
int height)
public void locateWidgets(java.util.Vector v,
int x,
int y,
int width,
int height)
getWidgetsAt(int, int, int, int)
protected void paintAll(java.awt.Graphics g,
int x,
int y,
int width,
int height)
paint(java.awt.Graphics, int, int, int, int)
public void paint(java.awt.Graphics g,
int x,
int y,
int width,
int height)
public void paint(java.awt.Graphics g)
public void update(java.awt.Graphics g)
public void repaint()
public void repaint(long tm)
tm - The time to do the repaint.
public void repaint(int x,
int y,
int width,
int height)
public void repaintParent(long tm,
int x,
int y,
int width,
int height)
public void repaint(long tm,
int x,
int y,
int width,
int height)
public boolean imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverpublic java.awt.Image createImage(java.awt.image.ImageProducer producer)
producer - the image producer
public java.awt.Image createImage(int width,
int height)
width - the specified widthheight - the specified height
public long tick(long tm,
java.lang.Object arg)
tick in interface TimerClientTimerClientpublic void layout()
public void validate()
validpublic void invalidate()
validpublic java.awt.Point getLocation()
setLocation(int, int)public java.awt.Point location()
getLocation()
public void setLocation(int x,
int y)
x - the x coordinatey - the y coordinategetLocation(),
setBounds(int, int, int, int)
public void move(int x,
int y)
setLocation(int, int)public java.awt.Dimension getSize()
width,
heightpublic java.awt.Dimension size()
getSize()public void setSize(java.awt.Dimension d)
d - the widget dimensiongetSize(),
setBounds(int, int, int, int)public void resize(java.awt.Dimension d)
setSize(java.awt.Dimension)
public void setSize(int width,
int height)
width - the width of the widgetheight - the height of the widgetgetSize(),
setBounds(int, int, int, int)
public void resize(int width,
int height)
setSize(java.awt.Dimension)public java.awt.Rectangle getBounds()
setBounds(int, int, int, int),
x,
y,
width,
heightpublic java.awt.Rectangle bounds()
getBounds()
public void setBounds(int x,
int y,
int width,
int height)
x - the x coordinatey - the y coordinatewidth - the width of the widgetheight - the height of the widgetgetBounds(),
setLocation(int, int),
setSize(java.awt.Dimension)
public void setBounds(int x,
int y,
int width,
int height,
boolean repaint)
setBounds(int, int, int, int)
public void reshape(int x,
int y,
int width,
int height)
setBounds(int, int, int, int)
public void reshape(int x,
int y,
int width,
int height,
boolean repaint)
setBounds(int, int, int, int, boolean)
public void setAttach(int north,
int east,
int south,
int west)
public void scroll(int tx,
int ty)
tx,
ty
public void rscroll(int dx,
int dy)
tx,
typublic void add(Widget w)
w - the widget that is added to this widgetwidgets,
nwidgets
public void add(int pos,
Widget w)
pos - the position at which the widget must be added/insertedw - the widget that is added to this widgetwidgets,
nwidgetspublic void replace(Widget newWidget)
newWidget - the widget that will replace this widget in the parent
public void replace(Widget oldWidget,
Widget newWidget)
oldWidget - the widget that currently is added to this widgetnewWidget - the widget that will replace the old widget
public void replace(int pos,
Widget w)
pos - the index of the widget in the widgets array that is currently added to this widgetw - the widget that will replace the old widget at widgets[pos]public void remove()
widgets,
nwidgetspublic void remove(Widget w)
w - the widget that is currently added to this widget and will be removedwidgets,
nwidgets
protected void remove(Widget w,
int i)
w - the widget that is currently added to this widget and will be removedi - the position of the given widget in the widgets arraypublic void removeAll()
public void toFront()
public void toFront(Widget w)
w - the widget that is currently added to this widget and will be brought to the frontpublic void toBack()
public void toBack(Widget w)
w - the widget that is currently added to this widget and will be brought to the backpublic void init()
public void start()
public void stop()
public void destroy()
public Widget findWidget(java.lang.String nm)
nm - the (case sensitive) name of the widgetgetWidget(java.lang.String)public Widget getWidget(java.lang.String name)
name - the (case sensitive) name of the widgetfindWidget(java.lang.String)public java.applet.AudioClip getAudioClip(java.lang.String src)
src - a relative path (relative to presentation base) or any other urlpublic java.applet.AudioClip getAudioClipAt(java.net.URL url)
url - a relative url (relative to presentation base) or any other urlpublic void audioPlay(java.lang.String src)
src - a relative path (relative to presentation base) or any other urlpublic void audioPlay(java.net.URL url)
url - a relative url (relative to presentation base) or any other urlpublic void audioLoop(java.lang.String src)
src - a relative path (relative to presentation base) or any other urlpublic void audioLoop(java.net.URL url)
url - a relative url (relative to presentation base) or any other urlpublic void audioStop(java.lang.String src)
src - a relative path (relative to presentation base) or any other urlpublic void audioStop(java.net.URL url)
url - a relative url (relative to presentation base) or any other urlpublic java.awt.Color getSelForeground()
getSelBackground()public java.awt.Color getSelBackground()
getSelForeground()public java.awt.Color getSelFocusColor()
getFocusColor()public java.awt.Color getFocusColor()
getSelFocusColor()public Widget getDefaultButton()
getCancelButton()public CommandButtonWidget getCancelButton()
getDefaultButton()public boolean focusInterest()
focus,
requestFocus()public Widget currentFocus()
focuspublic boolean hasFocus()
focuspublic void requestFocus()
focus,
focusInterest()public void clearFocus()
focuspublic void firstFocus()
focuspublic void nextFocus()
focuspublic void previousFocus()
focuspublic void clearPopups()
public java.lang.String getKey(java.lang.String key)
key - the string (that might be a key) of which the value is returnedPresentation.findResourceKey(java.lang.String)
public java.lang.String getKey(java.lang.String key,
boolean editMode)
key - the string (that might be a key) of which the value is returnededitMode - specify whether edit mode should be assumed or notPresentation.findResourceKey(java.lang.String)public char[] getKey(char[] key)
key - the character array (that might be a key) of which the value is returnedpublic boolean postEvent(java.awt.Event evt)
evt - the event that needs to be posted to this widgethandleEvent(java.awt.Event)public boolean handleEvent(java.awt.Event evt)
evt - the event that needs to be handled by the widgetpostEvent(java.awt.Event)
public boolean mouseDown(java.awt.Event evt,
int x,
int y)
public boolean mouseDrag(java.awt.Event evt,
int x,
int y)
public boolean mouseUp(java.awt.Event evt,
int x,
int y)
public boolean mouseMove(java.awt.Event evt,
int x,
int y)
public boolean mouseEnter(java.awt.Event evt,
int x,
int y)
public boolean mouseExit(java.awt.Event evt,
int x,
int y)
public boolean keyDown(java.awt.Event evt,
int key)
public boolean keyUp(java.awt.Event evt,
int key)
public boolean action(java.awt.Event evt,
java.lang.Object what)
public boolean gotFocus(java.awt.Event evt,
java.lang.Object what)
public boolean lostFocus(java.awt.Event evt,
java.lang.Object what)
public void action()
public void sync()
public void paramString(java.lang.StringBuffer buf)
toString()public java.lang.Class getWidgetClass()
public java.lang.String getDescription()
public java.lang.String toString()
toString in class java.lang.ObjectparamString(java.lang.StringBuffer)public void list()
public void list(java.io.PrintStream out,
int n)
toString()
public void rmove(int dx,
int dy)
setLocation(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||