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

Variable Index

 o closeBox
The window can have a closeBox, which hides the window.
 o closeDown
 o INCLOSE
 o INDRAG
 o INSIZE
 o moveable
The window can be moveable or stay on one position.
 o mwhere
 o mx
 o my
 o resizable
A window widget can allow resizing or disable it.
 o sizeBox
The window can have a sizebox, which is displayed in the right bottom corner and with which the window can be resized.
 o title
The title of this window, which is displayed in the titlebar.
 o titleColor
The color of the title bar.
 o titleFont
The font of the title.

Constructor Index

 o WindowWidget()

Method Index

 o findResizeArea(Event)
Check in which resize area of the Window the event occured.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getText()
Get the title.
 o getTitle()
Get the title.
 o getTitleColor()
Get the color of the title bar.
 o getTitleFont()
Get the font of the title.
 o handleEvent(Event)
HandleEvent
 o hasCloseBox()
Check whether the window displays a close button in the upper right corner, in the title bar.
 o hasSizeBox()
Check whether the window uses the resize box.
 o isMoveable()
Check whether the window is moveable.
 o isResizable()
Check whether this window is resizable.
 o layout()
Layout the widget itself.
 o newContent()
Allocate the content.
 o paint(Graphics, int, int, int, int)
Paint the outline.
 o paramString(StringBuffer)
Debugging.
 o setCloseBox(boolean)
Display or do not display the close box.
 o setLabel(String)
Set the title.
 o setMoveable(boolean)
Allow or prevent moving the window.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setResizable(boolean)
Make this window resizable or not resizable.
 o setSizeBox(boolean)
Enable or disable the use of a resize box in this window.
 o setText(String)
Set the title.
 o setTitleColor(Color)
Set the color of the title bar.
 o setTitleFont(Font)
Set the font of the title.

Variables

 o INDRAG
  public final static int INDRAG
 o INCLOSE
  public final static int INCLOSE
 o INSIZE
  public final static int INSIZE
 o title
  public String title
The title of this window, which is displayed in the titlebar.
See Also:
getText, setText
 o titleFont
  public Font titleFont
The font of the title.
See Also:
getTitleFont, setTitleFont, title
 o titleColor
  public Color titleColor
The color of the title bar.
See Also:
getTitleColor, setTitleColor
 o moveable
  public boolean moveable
The window can be moveable or stay on one position.
See Also:
isMoveable, setMoveable
 o closeBox
  public boolean closeBox
The window can have a closeBox, which hides the window.
See Also:
hasCloseBox, setCloseBox
 o 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
 o resizable
  public boolean resizable
A window widget can allow resizing or disable it.
See Also:
isResizable, setResizable
 o mx
  public int mx
 o my
  public int my
 o mwhere
  public int mwhere
 o closeDown
  public boolean closeDown

Constructors

 o WindowWidget
  public WindowWidget()

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class Widget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ContainerWidget
 o newContent
  public Widget newContent()
Allocate the content.
Overrides:
newContent in class ContainerWidget
 o getText
  public String getText()
Get the title.
Overrides:
getText in class Widget
See Also:
title
 o setText
  public void setText(String title)
Set the title.
Overrides:
setText in class Widget
See Also:
title
 o getTitle
  public String getTitle()
Get the title.
See Also:
getText
 o setLabel
  public void setLabel(String title)
Set the title.
See Also:
setText
 o getTitleFont
  public Font getTitleFont()
Get the font of the title.
See Also:
titleFont
 o 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
 o getTitleColor
  public Color getTitleColor()
Get the color of the title bar.
See Also:
titleColor
 o 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
 o isMoveable
  public boolean isMoveable()
Check whether the window is moveable.
See Also:
moveable
 o setMoveable
  public void setMoveable(boolean moveable)
Allow or prevent moving the window.
See Also:
moveable
 o isResizable
  public boolean isResizable()
Check whether this window is resizable.
See Also:
resizable
 o setResizable
  public void setResizable(boolean resizable)
Make this window resizable or not resizable.
See Also:
resizable
 o hasCloseBox
  public boolean hasCloseBox()
Check whether the window displays a close button in the upper right corner, in the title bar.
See Also:
closeBox
 o setCloseBox
  public void setCloseBox(boolean closeBox)
Display or do not display the close box.
See Also:
closeBox
 o hasSizeBox
  public boolean hasSizeBox()
Check whether the window uses the resize box.
See Also:
sizeBox
 o setSizeBox
  public void setSizeBox(boolean sizeBox)
Enable or disable the use of a resize box in this window.
See Also:
sizeBox
 o layout
  public void layout()
Layout the widget itself.
Overrides:
layout in class ContainerWidget
 o paint
  public void paint(Graphics g,
                    int x,
                    int y,
                    int wd,
                    int ht)
Paint the outline.
Overrides:
paint in class Widget
 o 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
 o handleEvent
  public boolean handleEvent(Event evt)
HandleEvent
Overrides:
handleEvent in class Widget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index