|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.gui.custom.InfoGroupContainer
An InfoGropContainer is needed for showing InfoGorups. When InfoGroups are closed, they are accessible for re-opening in the bottom of the container as a Button
| Nested Class Summary | |
|---|---|
private static class |
InfoGroupContainer.LabelUpdater
A Runnable implementation used for Thread-safe updating of Labels |
private static class |
InfoGroupContainer.ProgBarUpdater
A Runnable implementation used for Thread-safe updating of ProgressBars |
private static class |
InfoGroupContainer.TextUpdater
A Runnable implementation used for Thread-safe updating of Text fields |
| Field Summary | |
|---|---|
private org.eclipse.swt.widgets.Composite |
buttonComp
The Composite containing the re-open Buttons |
private java.util.HashMap |
buttons
The map containing all re-open Buttons |
private org.eclipse.swt.widgets.Display |
display
The Display to use for thread-safe updating |
private org.eclipse.swt.widgets.Group |
group
The main group surrounding all |
private org.eclipse.swt.widgets.Composite |
groupComp
The Composite containing the InfoGroups |
private static InfoGroupContainer.LabelUpdater |
labelUpdater
Runnable for Thread-indipendent update operations |
private InfoGroup |
lastgroup
The last opened InfoGroup |
private static InfoGroupContainer.ProgBarUpdater |
progBarUpdater
Runnable for Thread-indipendent update operations |
private static InfoGroupContainer.TextUpdater |
textUpdater
Runnable for Thread-indipendent update operations |
| Constructor Summary | |
|---|---|
InfoGroupContainer(org.eclipse.swt.widgets.Composite parent)
Construct a new InfoGroupContainer without headline |
|
InfoGroupContainer(org.eclipse.swt.widgets.Composite parent,
java.lang.String headline)
Construct a new InfoGroupContainer without headline |
|
| Method Summary | |
|---|---|
(package private) void |
close(InfoGroup g)
Close the specified InfoGroup. |
org.eclipse.swt.widgets.Composite |
getComposite()
Get the main Composite of this InfoGroupContainer |
(package private) org.eclipse.swt.widgets.Composite |
getGroupComp()
Get the Composite which contains the InfoGroup instances |
InfoGroup |
newGroup(java.lang.String name)
Create and return a new InfoGroup which is added to this container |
(package private) void |
open(InfoGroup g)
Open the specified InfoGroup. |
void |
update(org.eclipse.swt.widgets.Label l,
java.lang.String text)
Update a Labelīs content. |
void |
update(org.eclipse.swt.widgets.ProgressBar b,
int selection)
Update a ProgressBar. |
void |
update(org.eclipse.swt.widgets.ProgressBar b,
int min,
int max,
int selection)
Update a ProgressBar. |
void |
update(org.eclipse.swt.widgets.Text t,
java.lang.String text)
Update a Text fieldīs content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.eclipse.swt.widgets.Composite buttonComp
private java.util.HashMap buttons
private final org.eclipse.swt.widgets.Display display
private org.eclipse.swt.widgets.Group group
private org.eclipse.swt.widgets.Composite groupComp
private static final InfoGroupContainer.LabelUpdater labelUpdater
private InfoGroup lastgroup
private static final InfoGroupContainer.ProgBarUpdater progBarUpdater
private static final InfoGroupContainer.TextUpdater textUpdater
| Constructor Detail |
|---|
public InfoGroupContainer(org.eclipse.swt.widgets.Composite parent)
parent - The parent Composite
public InfoGroupContainer(org.eclipse.swt.widgets.Composite parent,
java.lang.String headline)
parent - The parent Compositeheadline - The headline of this InfoGroupContainer| Method Detail |
|---|
void close(InfoGroup g)
g - The InfoGroup being closedpublic org.eclipse.swt.widgets.Composite getComposite()
org.eclipse.swt.widgets.Composite getGroupComp()
public InfoGroup newGroup(java.lang.String name)
name - The name of the group
void open(InfoGroup g)
g - The InfoGroup being opened
public void update(org.eclipse.swt.widgets.Label l,
java.lang.String text)
l - The Label to update.text - The new content of the Label
public void update(org.eclipse.swt.widgets.ProgressBar b,
int selection)
b - The ProgressBar to updateselection - The new value for the ProgressBarīs selection
public void update(org.eclipse.swt.widgets.ProgressBar b,
int min,
int max,
int selection)
b - The ProgressBar to updatemin - The new value for the ProgressBarīs minimummax - The new value for the ProgressBarīs maximumselection - The new value for the ProgressBarīs selection
public void update(org.eclipse.swt.widgets.Text t,
java.lang.String text)
t - The Text field to updatetext - The new content of the Text field
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||