|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opt4j.viewer.Viewport
public class Viewport
The Viewport is a desktop for Widgets.
Widget| Field Summary | |
|---|---|
protected javax.swing.JDesktopPane |
desktop
|
protected static int |
OFFSET
|
protected javax.swing.JPanel |
panel
|
protected java.util.Map<Widget,javax.swing.JInternalFrame> |
widgets
|
| Constructor Summary | |
|---|---|
Viewport()
Constructs a Viewport for Widgets. |
|
| Method Summary | |
|---|---|
void |
addToDesktop(javax.swing.JInternalFrame inFrame)
Adds a JInternalFrame. |
void |
addWidget(Widget widget)
Adds a widget. |
protected javax.swing.JInternalFrame |
createInternalFrame(Widget widget)
Creates a widget as a JInternalFrame. |
javax.swing.JComponent |
get()
Returns the component. |
javax.swing.JInternalFrame |
getInternalFrame(Widget widget)
Returns the JInternalFrame of a Widget if it exists and
null otherwise. |
void |
init()
Initialization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final javax.swing.JDesktopPane desktop
protected final javax.swing.JPanel panel
protected static final int OFFSET
protected final java.util.Map<Widget,javax.swing.JInternalFrame> widgets
| Constructor Detail |
|---|
public Viewport()
Viewport for Widgets.
| Method Detail |
|---|
public void init()
public void addWidget(Widget widget)
widget - the widget to be addedprotected javax.swing.JInternalFrame createInternalFrame(Widget widget)
JInternalFrame.
widget - the widget
public void addToDesktop(javax.swing.JInternalFrame inFrame)
JInternalFrame.
inFrame - the JInternalFrame to be addedpublic javax.swing.JInternalFrame getInternalFrame(Widget widget)
JInternalFrame of a Widget if it exists and
null otherwise.
widget - the widget
public javax.swing.JComponent get()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||