marimba.gui
Class GroupWidget

java.lang.Object
  |
  +--marimba.gui.Widget
        |
        +--marimba.gui.ContainerWidget
              |
              +--marimba.gui.GroupWidget
All Implemented Interfaces:
java.awt.image.ImageObserver, PropertyObject, TimerClient, WidgetConstants
Direct Known Subclasses:
AbstractPopupMenu, conga.gui.BaseControllerGroupWidget, DividerWidget, HotGroupWidget, LayoutGroupWidget, PageWidget, PopupWidget, Presentation, TableContent, ToolbarContent, TreeNodeWidget, VisualWidget

public class GroupWidget
extends ContainerWidget

Group widget container.
All widgets are containers, this widget however adds painting of the container background.

Version:
1.41, 12/12/97
Author:
Arthur van Hoff

Field Summary
 boolean editing
          Enables or disables the use of the inline editor.
 int fillMode
          The fillMode of this group.
It can be none, solid or pattern.
protected static Options fillOptions
          The possible options for the fillMode.
 int lineMode
          The type of line that is being displayed.
It can be none, solid, raised or lowered.
protected static Options lineOptions
          The possible options for the lineMode.
 java.lang.String patsrc
          The source of the pattern.
 Pattern pattern
          The pattern for the background.
protected  int prevtx
           
protected  int prevty
           
 
Fields inherited from class marimba.gui.ContainerWidget
content
 
Fields inherited from class marimba.gui.Widget
adapter, background, clazz, defaultBackground, defaultFont, defaultForeground, defaultHilite, directGraphics, disabled, east, editor, focus, font, foreground, height, hilite, layoutMgr, name, north, nwidgets, parent, script, south, tip, transparent, tx, ty, valid, visible, wBackground, west, wFont, wForeground, wHilite, widgets, width, wScript, wTip, x, y
 
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
GroupWidget()
           
 
Method Summary
 boolean getEditing()
          Check whether the inline editor is being used.
 java.lang.String getEditor()
          Get the name of the class that can be used for in-place editing.
 int getFillMode()
          Get the fill mode.
static Options getFillOptions()
          Get the possible options for the fillMode.
 int getLineMode()
          Get the line mode.
static Options getLineOptions()
          Get the possible options for the lineMode.
 Pattern getPattern()
          Get the pattern.
 java.lang.String getPatternSource()
          Get the source of the pattern.
 void getProperties(PropertyList list)
          Get the properties.
 void init()
          Initialize this group widget.
 void paint(java.awt.Graphics g, int cx, int cy, int cw, int ch)
          Paint the background
 void paramString(java.lang.StringBuffer buf)
          Parameters.
 void setEditing(boolean useEditor)
          Enable or disable the use of the inline editor.
 void setFillMode(int fillMode)
          Set the fill mode.
 void setLineMode(int lineMode)
          Set the line mode.
 void setPattern(java.lang.String src)
          Set the pattern and patternsource using the given source.
 void setProperties(PropertyList list)
          Set the properties.
 void update(java.awt.Graphics g)
          Update.
protected  void updateArea(java.awt.Graphics g, int x, int y, int width, int height)
          Update a portion of the widget.
 void waitForPattern()
          Wait for the pattern of this container to arrive...
 
Methods inherited from class marimba.gui.ContainerWidget
findInFocus, findWidget, firstInFocus, getChildProperties, getContent, getPreferredSize, layout, newContent, nextInFocus, previousInFocus
 
Methods inherited from class marimba.gui.Widget
action, action, add, add, adjustFont, adjustFont, applyProperties, audioLoop, audioLoop, audioPlay, audioPlay, audioStop, audioStop, bounds, clearFocus, clearPopups, clone, contains, contains, createImage, createImage, currentFocus, destroy, disable, disable, enable, firstFocus, focusInterest, getAudioClip, getAudioClipAt, getBackground, getBounds, getCancelButton, getCursor, getDefaultButton, getDescription, getEncoding, getFocusColor, getFont, getFontMetrics, getForeground, getHilite, getImage, getKey, getKey, getKey, getLayoutMgr, getLocale, getLocation, getName, getParent, getPlayerFrame, getPlayerPanel, getPresentation, getSelBackground, getSelFocusColor, getSelForeground, getSize, getText, getText, getTip, getTip, getTipFont, getValue, getValue, getWidget, getWidgetAt, getWidgetAt, getWidgetClass, getWidgetsAt, getWidgetsAt, getWidgetsAt, gotFocus, gotoPage, gotoPage, handleEvent, hasFocus, hide, imageUpdate, inheritFont, inside, inside, invalidate, isDisabled, isShowing, isTransparent, isVisible, keyDown, keyUp, list, list, locateWidget, locateWidgets, locateWidgets, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, overlap, paint, paintAll, postEvent, previousFocus, remove, remove, remove, removeAll, repaint, repaint, repaint, repaint, repaintParent, replace, replace, replace, requestFocus, resetCursor, reshape, reshape, resize, resize, rmove, rscroll, scroll, setAttach, setBackground, setBounds, setBounds, setCursor, setDisabled, setEditor, setEncoding, setFont, setForeground, setHilite, setLayoutMgr, setLocale, setLocation, setName, setSize, setSize, setText, setText, setTip, setTipFont, setTransparent, setValue, setValue, setVisible, show, show, size, start, stop, sync, tick, toBack, toBack, toFront, toFront, toString, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

prevtx

protected int prevtx

prevty

protected int prevty

fillOptions

protected static Options fillOptions
The possible options for the fillMode.
See Also:
getFillOptions(), fillMode

lineOptions

protected static Options lineOptions
The possible options for the lineMode.
See Also:
getLineOptions(), lineMode

lineMode

public int lineMode
The type of line that is being displayed.
It can be none, solid, raised or lowered.
See Also:
getLineMode(), setLineMode(int), lineOptions

fillMode

public int fillMode
The fillMode of this group.
It can be none, solid or pattern.
See Also:
getFillMode(), setFillMode(int), fillOptions

patsrc

public java.lang.String patsrc
The source of the pattern.
See Also:
getPatternSource(), setPattern(java.lang.String)

pattern

public Pattern pattern
The pattern for the background.
See Also:
getPattern(), setPattern(java.lang.String)

editing

public boolean editing
Enables or disables the use of the inline editor.
See Also:
getEditor(), getEditing(), setEditing(boolean)
Constructor Detail

GroupWidget

public GroupWidget()
Method Detail

getProperties

public void getProperties(PropertyList list)
Get the properties.
Overrides:
getProperties in class Widget
Following copied from class: marimba.gui.Widget
Parameters:
list - The list in which the current state needs to be saved.
See Also:
Widget.setProperties(PropertyList)

setProperties

public void setProperties(PropertyList list)
Set the properties.
Overrides:
setProperties in class ContainerWidget
Following copied from class: marimba.gui.Widget
Parameters:
list - The list that contains the new widget state.
See Also:
Widget.getProperties(PropertyList)

init

public void init()
Initialize this group widget.
Overrides:
init in class Widget

getFillOptions

public static Options getFillOptions()
Get the possible options for the fillMode.
See Also:
fillOptions

getLineOptions

public static Options getLineOptions()
Get the possible options for the lineMode.
See Also:
lineOptions

getEditor

public java.lang.String getEditor()
Get the name of the class that can be used for in-place editing. This inline editor of the GroupWidget can be disabled by setting inline editing to true or false.
Overrides:
getEditor in class Widget
See Also:
editing

getEditing

public boolean getEditing()
Check whether the inline editor is being used.
See Also:
editing

setEditing

public void setEditing(boolean useEditor)
Enable or disable the use of the inline editor.
See Also:
editing

getLineMode

public int getLineMode()
Get the line mode.
See Also:
lineMode

setLineMode

public void setLineMode(int lineMode)
Set the line mode.
See Also:
lineMode

getFillMode

public int getFillMode()
Get the fill mode.
See Also:
fillMode

setFillMode

public void setFillMode(int fillMode)
Set the fill mode.
See Also:
fillMode

getPattern

public Pattern getPattern()
Get the pattern.
See Also:
pattern

getPatternSource

public java.lang.String getPatternSource()
Get the source of the pattern.
See Also:
patsrc

setPattern

public void setPattern(java.lang.String src)
Set the pattern and patternsource using the given source.
See Also:
pattern, patsrc

paint

public void paint(java.awt.Graphics g,
                  int cx,
                  int cy,
                  int cw,
                  int ch)
Paint the background
Overrides:
paint in class Widget

update

public void update(java.awt.Graphics g)
Update. Remember the translation (tx and ty).
Overrides:
update in class Widget

updateArea

protected void updateArea(java.awt.Graphics g,
                          int x,
                          int y,
                          int width,
                          int height)
Update a portion of the widget.

waitForPattern

public void waitForPattern()
Wait for the pattern of this container to arrive...

paramString

public void paramString(java.lang.StringBuffer buf)
Parameters.
Overrides:
paramString in class Widget
Following copied from class: marimba.gui.Widget
See Also:
Widget.toString()