This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsap.ui.core.message.d.ts
115 lines (101 loc) · 3.48 KB
/
sap.ui.core.message.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
declare namespace sap.ui.core.message {
class Message extends sap.ui.base.Object {
/**
*
* @param mParameters a map which contains the following parameter properties:
* {string} [mParameters.id] The message id: will be defaulted if no id is set
* {string} [mParameters.message] The message text
* {string} [mParameters.description] The message description
* {sap.ui.core.MessageType} [mParameters.type] The message type
* {string} [mParameters.code] The message code
* {sap.ui.core.message.Messageprocessor} [mParameters.processor]
* {string} [mParameters.target] The message target: The syntax MessageProcessor dependent. Read the documentation of the respective MessageProcessor.
* {boolean} [mParameters.persistent] Sets message persistent: If persistent is set true the message lifecycle controlled by Application
*/
constructor(mParameters?: {
id?: string;
message?: string;
description?: string;
type?: sap.ui.core.MessageType;
code?: string;
processor?: MessageProcessor;
target?: string;
persistent?: boolean;
});
}
class MessageManager extends sap.ui.base.EventProvider {
/**
* Add messages to MessageManager
*/
addMessages(vMessages: Message|Message[]);
/**
* Get the MessageModel
*/
getMessageModel();
/**
* Register MessageProcessor
*/
registerMessageProcessor(oProcessor: MessageProcessor);
/**
* Register ManagedObject: Validation and Parse errors are handled by the MessageManager for this object
*/
registerObject(oObject, bHandleValidation);
/**
* Remove all messages
*/
removeAllMessages();
/**
* Remove given Messages
*/
removeMessages(vMessages);
/**
* Deregister MessageProcessor
*/
unregisterMessageProcessor(oProcessor: MessageProcessor);
/**
* Unregister ManagedObject
*/
unregisterObject(oObject);
}
class ControlMessageProcessor extends MessageProcessor {
/**
* Check Messages and update controls with messages
*/
checkMessages();
/**
* Set Messages to check
*/
setMessages(vMessages);
}
class MessageProcessor extends sap.ui.base.EventProvider {
/**
* Attach event-handler fnFunction to the 'messageChange' event of this sap.ui.core.message.MessageProcessor.
*/
attachMessageChange(fnFunction, oListener?);
attachMessageChange(oData, fnFunction, oListener?);
/**
* Implement in inheriting classes
*/
checkMessage();
/**
* Destroys the MessageProcessor Instance
*/
destroy();
/**
* Detach event-handler fnFunction from the 'sap.ui.core.message.MessageProcessor' event of this sap.ui.core.message.MessageProcessor.
*/
detachMessageChange(fnFunction, oListener);
/**
* Fire event messageChange to attached listeners.
*/
fireMessageChange(mArguments?);
/**
* Returns the ID of the MessageProcessor instance
*/
getId();
/**
* Implement in inheriting classes
*/
setMessages(vMessages);
}
}