public class FXBlotterMessage extends Object implements SendableBlotterMessage
Instances of this class should be created using FXBlotterMessageFactory.createBlotterMessage(String)
or FXBlotterMessageFactory.createBlotterMessage(com.caplin.motif.fx.blotter.subject.FXBlotterSubjectInfo)
Modifier and Type | Field and Description |
---|---|
protected FXBlotter |
blotter |
protected Map<String,ContainerAction> |
containerActions |
protected boolean |
isImage |
protected String |
subject |
protected String |
username |
Modifier and Type | Method and Description |
---|---|
void |
addItem(FXBlotter blotter,
String itemId)
Adds an element to the top of the blotter.
|
void |
addItem(String itemId)
Adds an element to the top of the blotter.
|
FXBlotter |
getBlotter()
Returns the
FXBlotter object that this object was instantiated with. |
List<ContainerAction> |
getContainerActions()
A List of actions represented by
ContainerAction to be performed on the Container. |
String |
getSubject()
The subject for this Container
|
String |
getUsername()
The username for which this Container belongs to.
|
boolean |
isImage()
Returns the value of the image flag
|
void |
removeItem(FXBlotter blotter,
String itemId)
Removes the element from the blotter, with the item subject as created by the given
FXBlotter object |
void |
removeItem(String itemId)
Removes the element from the container with the specified item id
|
void |
setImage(boolean isImage)
Sets the image flag for this Container message.
|
protected final FXBlotter blotter
protected final String username
protected String subject
protected boolean isImage
protected final Map<String,ContainerAction> containerActions
public void setImage(boolean isImage)
setImage
in interface SendableBlotterMessage
isImage
- True if this message should be treated as an image, or false if it represents an update.public void addItem(String itemId)
Adds an element to the top of the blotter. This only adds the subject
and not the data. A data for the item should come as a request on
FXBlotterItemProvider.onItemRequest(com.caplin.motif.fx.blotter.subject.FXBlotterItemSubjectInfo)
itemId
- The id of the Record Item, to be part of the item subjectpublic void addItem(FXBlotter blotter, String itemId)
Adds an element to the top of the blotter. The item subject however is created using
the FXBlotter
object provided. Prefer this method over addItem(String)
if you have a Blotter with Record constituents with different item subjects.
This only adds the subject and not the data. A data for the item should come as a request on
FXBlotterItemProvider.onItemRequest(com.caplin.motif.fx.blotter.subject.FXBlotterItemSubjectInfo)
blotter
- The object containing the item regex, to be used when creating the item subject.itemId
- The id of the Record Item, to be part of the item subjectpublic void removeItem(String itemId)
Removes the element from the container with the specified item id
itemId
- The ID of the Record item.public void removeItem(FXBlotter blotter, String itemId)
Removes the element from the blotter, with the item subject as created by the given FXBlotter
object
blotter
- The object containing the item regex, to be used when creating the item subject.itemId
- The ID of the Record Itempublic FXBlotter getBlotter()
FXBlotter
object that this object was instantiated with.public boolean isImage()
SendableBlotterMessage
isImage
in interface SendableBlotterMessage
public String getSubject()
SendableBlotterMessage
getSubject
in interface SendableBlotterMessage
public String getUsername()
SendableBlotterMessage
getUsername
in interface SendableBlotterMessage
public List<ContainerAction> getContainerActions()
SendableBlotterMessage
ContainerAction
to be performed on the Container.getContainerActions
in interface SendableBlotterMessage
ContainerAction
to be performed on the Container.Copyright © 2015 Caplin Systems.