Class marimba.gui.WindowWidget
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.WindowWidget
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ContainerWidget
|
+----marimba.gui.WindowWidget
- public class WindowWidget
- extends ContainerWidget
This group has an outline and potentially a label.
- Version:
- 1.14, 12/17/96
- Author:
- Arthur van Hoff
-
closeBox
- The window can have a closeBox, which hides the window.
-
closeDown
-
-
INCLOSE
-
-
INDRAG
-
-
INSIZE
-
-
moveable
- The window can be moveable or stay on one position.
-
mwhere
-
-
mx
-
-
my
-
-
resizable
- A window widget can allow resizing or disable it.
-
sizeBox
- The window can have a sizebox, which is displayed in
the right bottom corner and with which the window can
be resized.
-
title
- The title of this window, which is displayed in the titlebar.
-
titleColor
- The color of the title bar.
-
titleFont
- The font of the title.
-
WindowWidget()
-
-
findResizeArea(Event)
- Check in which resize area of the Window the event occured.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getText()
- Get the title.
-
getTitle()
- Get the title.
-
getTitleColor()
- Get the color of the title bar.
-
getTitleFont()
- Get the font of the title.
-
handleEvent(Event)
- HandleEvent
-
hasCloseBox()
- Check whether the window displays a close button
in the upper right corner, in the title bar.
-
hasSizeBox()
- Check whether the window uses the resize box.
-
isMoveable()
- Check whether the window is moveable.
-
isResizable()
- Check whether this window is resizable.
-
layout()
- Layout the widget itself.
-
newContent()
- Allocate the content.
-
paint(Graphics, int, int, int, int)
- Paint the outline.
-
paramString(StringBuffer)
- Debugging.
-
setCloseBox(boolean)
- Display or do not display the close box.
-
setLabel(String)
- Set the title.
-
setMoveable(boolean)
- Allow or prevent moving the window.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setResizable(boolean)
- Make this window resizable or not resizable.
-
setSizeBox(boolean)
- Enable or disable the use of a resize box in this window.
-
setText(String)
- Set the title.
-
setTitleColor(Color)
- Set the color of the title bar.
-
setTitleFont(Font)
- Set the font of the title.
INDRAG
public final static int INDRAG
INCLOSE
public final static int INCLOSE
INSIZE
public final static int INSIZE
title
public String title
- The title of this window, which is displayed in the titlebar.
- See Also:
- getText, setText
titleFont
public Font titleFont
- The font of the title.
- See Also:
- getTitleFont, setTitleFont, title
titleColor
public Color titleColor
- The color of the title bar.
- See Also:
- getTitleColor, setTitleColor
moveable
public boolean moveable
- The window can be moveable or stay on one position.
- See Also:
- isMoveable, setMoveable
closeBox
public boolean closeBox
- The window can have a closeBox, which hides the window.
- See Also:
- hasCloseBox, setCloseBox
sizeBox
public boolean sizeBox
- The window can have a sizebox, which is displayed in
the right bottom corner and with which the window can
be resized.
- See Also:
- hasSizeBox, setSizeBox
resizable
public boolean resizable
- A window widget can allow resizing or disable it.
- See Also:
- isResizable, setResizable
mx
public int mx
my
public int my
mwhere
public int mwhere
closeDown
public boolean closeDown
WindowWidget
public WindowWidget()
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class Widget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class ContainerWidget
newContent
public Widget newContent()
- Allocate the content.
- Overrides:
- newContent in class ContainerWidget
getText
public String getText()
- Get the title.
- Overrides:
- getText in class Widget
- See Also:
- title
setText
public void setText(String title)
- Set the title.
- Overrides:
- setText in class Widget
- See Also:
- title
getTitle
public String getTitle()
- Get the title.
- See Also:
- getText
setLabel
public void setLabel(String title)
- Set the title.
- See Also:
- setText
getTitleFont
public Font getTitleFont()
- Get the font of the title.
- See Also:
- titleFont
setTitleFont
public void setTitleFont(Font titleFont)
- Set the font of the title. If null is passed,
the font is set to the default font.
- See Also:
- titleFont
getTitleColor
public Color getTitleColor()
- Get the color of the title bar.
- See Also:
- titleColor
setTitleColor
public void setTitleColor(Color titleColor)
- Set the color of the title bar. If null is passed,
the color is set to the default color.
- See Also:
- titleColor
isMoveable
public boolean isMoveable()
- Check whether the window is moveable.
- See Also:
- moveable
setMoveable
public void setMoveable(boolean moveable)
- Allow or prevent moving the window.
- See Also:
- moveable
isResizable
public boolean isResizable()
- Check whether this window is resizable.
- See Also:
- resizable
setResizable
public void setResizable(boolean resizable)
- Make this window resizable or not resizable.
- See Also:
- resizable
hasCloseBox
public boolean hasCloseBox()
- Check whether the window displays a close button
in the upper right corner, in the title bar.
- See Also:
- closeBox
setCloseBox
public void setCloseBox(boolean closeBox)
- Display or do not display the close box.
- See Also:
- closeBox
hasSizeBox
public boolean hasSizeBox()
- Check whether the window uses the resize box.
- See Also:
- sizeBox
setSizeBox
public void setSizeBox(boolean sizeBox)
- Enable or disable the use of a resize box in this window.
- See Also:
- sizeBox
layout
public void layout()
- Layout the widget itself.
- Overrides:
- layout in class ContainerWidget
paint
public void paint(Graphics g,
int x,
int y,
int wd,
int ht)
- Paint the outline.
- Overrides:
- paint in class Widget
findResizeArea
protected int findResizeArea(Event evt)
- Check in which resize area of the Window the event occured.
- Returns:
- LEFT, RIGHT, TOP, BOTTOM, INSIZE or NONE
handleEvent
public boolean handleEvent(Event evt)
- HandleEvent
- Overrides:
- handleEvent in class Widget
paramString
public void paramString(StringBuffer buf)
- Debugging.
- Overrides:
- paramString in class Widget
All Packages Class Hierarchy This Package Previous Next Index