1 | public void setAdapterFactory(AdapterFactory adapterFactory)↵ | | 1 | public void setAdapterFactory(AdapterFactory adapterFactory)↵
|
2 | {↵ | | 2 | {↵
|
3 | if (this.adapterFactory instanceof IChangeNotifier)↵ | | 3 | if (this.adapterFactory instanceof IChangeNotifier)↵
|
4 | {↵ | | 4 | {↵
|
5 | ((IChangeNotifier)this.adapterFactory).removeListener(this);↵ | | 5 | ((IChangeNotifier)this.adapterFactory).removeListener(this);↵
|
6 | }↵ | | 6 | }↵
|
|
7 | if (adapterFactory instanceof IChangeNotifier)↵ | | 7 | if (adapterFactory instanceof IChangeNotifier)↵
|
8 | {↵ | | 8 | {↵
|
9 | ((IChangeNotifier)adapterFactory).addListener(this);↵ | | 9 | ((IChangeNotifier)adapterFactory).addListener(this);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | this.adapterFactory = adapterFactory;↵ | | 11 | this.adapterFactory = adapterFactory;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | /**↵ | | 13 | /**↵
|
14 | * This returns the wrapped factory.↵ | | 14 | * Return the default font.↵
|
15 | */↵ | | 15 | */↵
|
16 | public AdapterFactory getAdapterFactory()↵ | | 16 | public Font getDefaultFont()↵
|
17 | {↵ | | 17 | {↵
|
18 | return adapterFactory; | | 18 | return defaultFont;
|