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