Package velox.api.layer1.messages
Class Layer1ApiUserMessageNotification
java.lang.Object
velox.api.layer1.messages.Layer1ApiUserMessageNotification
- All Implemented Interfaces:
velox.api.layer1.messages.EchoMessage
public class Layer1ApiUserMessageNotification
extends Object
implements velox.api.layer1.messages.EchoMessage
Can be used to print some text over chart with optional close icon
If message with
Messages need to be removed with this message (note that you need to do this in response for close icon pressed as well)
If message with
id was already present, displayed message will be updatedMessages need to be removed with this message (note that you need to do this in response for close icon pressed as well)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLayer1ApiUserMessageNotification(String alias, long id, String text, boolean isAdd, int minWidthPx, Runnable onMessageClosedCallback) -
Method Summary
-
Field Details
-
RESERVED_ID_HISTORICAL_DATA
public static final long RESERVED_ID_HISTORICAL_DATA -
alias
-
text
-
id
public final long id -
isAdd
public final boolean isAdd -
minWidthPx
public final int minWidthPx -
onMessageClosedCallback
-
-
Constructor Details
-
Layer1ApiUserMessageNotification
public Layer1ApiUserMessageNotification(String alias, long id, String text, boolean isAdd, int minWidthPx, Runnable onMessageClosedCallback) - Parameters:
alias- target alias of message, or null if notification is for all aliasesid- unique id of message (usegetNextId()to generate it first time)text-isAdd- if true, message is displayed (if message with this id is already displayed - it will be updated) otherwise message with this id will be removedminWidthPx- minimum width required to paint this stringonMessageClosedCallback- if not null, message will have cross icon, and callback will be called when it's pressed
-
-
Method Details