1 | public class HtmlViewerPanelListenerEvent extends EventObject↵ | | 1 | public class ObjectTreeListenerEvent extends EventObject
↵
|
2 | {↵ | | 2 | {
↵
|
3 | /** The <CODE>HtmlViewerPanel</CODE> involved. */↵ | | 3 | /** The <CODE>ObjectTree</CODE> involved. */
↵
|
4 | private HtmlViewerPanel _pnl;↵ | | 4 | private ObjectTree _tree;↵
|
| | | 5 |
↵
|
5 | /**↵ | | 6 | /**
↵
|
6 | * Ctor.↵ | | 7 | * Ctor.
↵
|
7 | *↵ | | 8 | *
↵
|
8 | * @param source The <CODE>HtmlViewerPanel</CODE> that change has↵ | | 9 | * @param source The <CODE>ObjectTree</CODE> that change has↵
|
9 | * happened to.↵ | | 10 | happened to.
↵
|
10 | * ↵ | | 11 | *
↵
|
11 | * @throws IllegalArgumentException↵ | | 12 | * @throws IllegalArgumentException
↵
|
12 | * Thrown if <TT>null</TT>HtmlViewerPanel/TT> passed.↵ | | 13 | * Thrown if <TT>null</TT>ObjectTree/TT> passed.
↵
|
13 | */↵ | | 14 | */
↵
|
14 | HtmlViewerPanelListenerEvent(HtmlViewerPanel source)↵ | | 15 | ObjectTreeListenerEvent(ObjectTree source)
↵
|
15 | {↵ | | 16 | {
↵
|
16 | super(checkParams(source));↵ | | 17 | super(checkParams(source));
↵
|
17 | _pnl = source;↵ | | 18 | _tree = source;
↵
|
18 | }↵ | | 19 | }↵
|
| | | 20 |
↵
|
19 | /**↵ | | 21 | /**
↵
|
20 | * Return the <CODE>HtmlViewerPanel</CODE>.↵ | | 22 | * Return the <CODE>ObjectTree</CODE>.
↵
|
21 | */↵ | | 23 | */
↵
|
22 | public HtmlViewerPanel getHtmlViewerPanel()↵ | | 24 | public ObjectTree getObjectTree()
↵
|
23 | {↵ | | 25 | {
↵
|
24 | return _pnl;↵ | | 26 | return _↵
|
25 | }↵ | | 27 | tree;↵
|
| | | 28 | }↵
|
| | | 29 |
↵
|
26 | private static HtmlViewerPanel checkParams(HtmlViewerPanel source)↵ | | 30 | private static ObjectTree checkParams(ObjectTree source)
↵
|
27 | {↵ | | 31 | {
↵
|
28 | if (source == null)↵ | | 32 | if (source == null)
↵
|
29 | {↵ | | 33 | {
↵
|
30 | throw new IllegalArgumentException("HtmlViewerPanel == null");↵ | | 34 | throw new IllegalArgumentException("ObjectTree == null");
↵
|
31 | }↵ | | 35 | }
↵
|
32 | return source | | 36 | return source
|