@compass-framework/core 1.2.11 → 1.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,8 @@ import { ArrayList, Implements, XML } from "@compass-framework/library";
2
2
  import { IWindow } from "./IWindow";
3
3
  import { Resources } from "./Resources";
4
4
  import { View } from "./View";
5
- import { ViewGroup } from "./ViewGroup";
6
5
  import { WindowContext } from "./WindowContext";
6
+ import { ViewGroup } from "./ViewGroup";
7
7
  import { WindowManager } from "./WindowManager";
8
8
  import { Configuration } from "./Configuration";
9
9
 
@@ -27,7 +27,9 @@ export declare class ApplicationWindow implements IWindow {
27
27
 
28
28
  public onConfigurationChanged(configuration: Configuration): void;
29
29
 
30
- public getContentView(): ViewGroup;
30
+ public getDecorView(): ViewGroup;
31
+
32
+ public getContentView(): View;
31
33
 
32
34
  public getLayoutParams(): WindowManager.LayoutParams;
33
35
 
@@ -36,4 +38,6 @@ export declare class ApplicationWindow implements IWindow {
36
38
  public getWindowContext(): WindowContext;
37
39
 
38
40
  public setContentXML(xml: XML): void;
41
+
42
+ public setContentView(view: View): void;
39
43
  }
@@ -1,16 +1,17 @@
1
1
  import { ArrayList, InterfaceTemplate, XML } from "@compass-framework/library";
2
2
  import { Resources } from "./Resources";
3
3
  import { View } from "./View";
4
+ import { ViewGroup } from "./ViewGroup";
4
5
  import { WindowContext } from "./WindowContext";
5
6
  import { WindowManager } from "./WindowManager";
6
7
 
7
8
  export interface IWindow {
8
- findViewById(id: number): View;
9
- findViewById(id: string): View;
9
+ findViewsByTag(tag: string): ArrayList<View>;
10
10
 
11
11
  findViewByTag(tag: string): View;
12
12
 
13
- findViewsByTag(tag: string): ArrayList<View>;
13
+ findViewById(id: number): View;
14
+ findViewById(id: string): View;
14
15
 
15
16
  onCreate(): void;
16
17
 
@@ -18,11 +19,17 @@ export interface IWindow {
18
19
 
19
20
  onDestroy(): void;
20
21
 
22
+ getLayoutParams(): WindowManager.LayoutParams;
23
+
21
24
  getWindowContext(): WindowContext;
22
25
 
26
+ getDecorView(): ViewGroup;
27
+
28
+ getContentView(): View;
29
+
23
30
  getResources(): Resources;
24
31
 
25
- getLayoutParams(): WindowManager.LayoutParams;
32
+ setContentView(view: View): void;
26
33
 
27
34
  setContentXML(xml: XML): void;
28
35
  }
@@ -5,6 +5,7 @@ import { IWindow } from "./IWindow";
5
5
  import { WindowContext } from "./WindowContext";
6
6
  import { WindowManager } from "./WindowManager";
7
7
  import { Configuration } from "./Configuration";
8
+ import { ViewGroup } from "./ViewGroup";
8
9
 
9
10
  @Implements(IWindow)
10
11
  export declare class PopupWindow implements IWindow {
@@ -35,10 +36,14 @@ export declare class PopupWindow implements IWindow {
35
36
 
36
37
  public update(x: number, y: number, width: number, height: number): void;
37
38
 
38
- public getWindowContext(): WindowContext;
39
+ public getDecorView(): ViewGroup;
40
+
41
+ public getContentView(): View;
39
42
 
40
43
  public getResources(): Resources;
41
44
 
45
+ public getWindowContext(): WindowContext;
46
+
42
47
  public getLayoutParams(): WindowManager.LayoutParams;
43
48
 
44
49
  public setContentXML(xml: XML): void;
@@ -1,9 +1,12 @@
1
+ import { ApplicationFrameContext } from "./ApplicationFrameContext";
1
2
  import { Context } from "./Context";
2
3
  import { ICursor } from "./ICursor";
3
- import { ApplicationFrameContext } from "./ApplicationFrameContext";
4
+ import { IWindow } from "./IWindow";
4
5
 
5
6
  export declare class WindowContext extends Context {
6
7
  public getApplicationFrameContext(): ApplicationFrameContext;
7
8
 
9
+ public getWindow(): IWindow;
10
+
8
11
  public getWindowCursor(): ICursor;
9
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",