|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.drivers.ui.internal.ViewerRegistry
org.eclipse.tptp.platform.report.birt).
public class ViewerRegistry
A ViewerRegistry is a registry collecting SWTViewer objects and their name. A ViewerRegistry stores only one instance of SWTViewer if two SWTViewers are equals. Before to store a new SWTViewer the registry checks if the SWTViewer doesn't exist in the registry by calling the method contains.
SWTViewer,
contains(org.eclipse.tptp.platform.report.drivers.ui.internal.SWTViewer)| Field Summary | |
|---|---|
static Signal |
sgn_putViewer
Deprecated. This signal is emitted each time a new viewer is added to this registry. |
static Signal |
sgn_removeViewer
Deprecated. This signal is emitted each time a viewer is removed to this registry. |
| Constructor Summary | |
|---|---|
ViewerRegistry()
Deprecated. Creates an empty ViewerRegistry. |
|
| Method Summary | |
|---|---|
void |
clear()
Deprecated. Clears the registry |
boolean |
contains(java.lang.String name)
Deprecated. Returns true if the viewer name is already stored in the registry. |
boolean |
contains(SWTViewer v)
Deprecated. Returns true if the SWTViewer is already stored in the registry. |
SWTViewer |
getViewer(java.lang.String name)
Deprecated. Returns the registered viewer named name |
java.util.Iterator |
iterator()
Deprecated. Returns an iterator to access to all colors. |
boolean |
putViewer(java.lang.String key,
SWTViewer v)
Deprecated. Put the color in the registry only if color isn't already stored. |
void |
removeViewer(java.lang.String name)
Deprecated. Remove the color if stored in registry. |
void |
updateViewer(SWTViewer viewer)
Deprecated. Update the viewer |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Signal sgn_putViewer
public static final Signal sgn_removeViewer
| Constructor Detail |
|---|
public ViewerRegistry()
| Method Detail |
|---|
public void clear()
clear in interface IDRegistrypublic java.util.Iterator iterator()
iterator in interface IDRegistrypublic boolean contains(SWTViewer v)
public boolean contains(java.lang.String name)
public void removeViewer(java.lang.String name)
public void updateViewer(SWTViewer viewer)
viewer - updated viewer
public boolean putViewer(java.lang.String key,
SWTViewer v)
public SWTViewer getViewer(java.lang.String name)
name - name of the researched viewer
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
widgetDisposed in interface org.eclipse.swt.events.DisposeListener
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||