|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--marimba.gui.Widget
|
+--marimba.gui.ContainerWidget
Container widget. All widgets are containers, but this widget has a getContent() field that returns the actual container that contains the child widgets. The content can be practically any widget.
| Field Summary | |
Widget |
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 | |
ContainerWidget()
Create the container, and create the content area if necessary. |
|
| Method Summary | |
protected void |
findInFocus(boolean forward)
Assign the focus to the previous or next widget in this container. |
Widget |
findWidget(java.lang.String name)
Find the widget in the content. |
void |
firstInFocus()
Assign the focus to the first widget within this container. |
void |
getChildProperties(PropertyList list)
Don't save the children of this container if the container has a content area. |
Widget |
getContent()
Get the container that holds the child widgets. |
java.awt.Dimension |
getPreferredSize()
Get the preferred size of containers. |
void |
layout()
Default layout algorithm simply fits the content area to the entire container. |
protected Widget |
newContent()
Create the content for this container. |
void |
nextInFocus()
Assign the focus to the next widget that is located in this container and to the right or below the current focus. |
void |
previousInFocus()
Assign the focus to the previous widget that is located within this container and to the left or above the current focus. |
void |
setProperties(PropertyList list)
Set the properties. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Widget content
| Constructor Detail |
public ContainerWidget()
| Method Detail |
public void getChildProperties(PropertyList list)
getChildProperties in class Widgetpublic void setProperties(PropertyList list)
setProperties in class Widgetmarimba.gui.Widgetlist - The list that contains the new widget state.Widget.getProperties(PropertyList)public java.awt.Dimension getPreferredSize()
getPreferredSize in class Widgetpublic Widget getContent()
protected Widget newContent()
public void layout()
layout in class Widgetpublic void firstInFocus()
public void nextInFocus()
public void previousInFocus()
protected void findInFocus(boolean forward)
public Widget findWidget(java.lang.String name)
findWidget in class Widgetmarimba.gui.Widgetnm - the (case sensitive) name of the widgetWidget.getWidget(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||