Class BlotterItem

    • Constructor Detail

      • BlotterItem

        public BlotterItem​(java.lang.String uniqueId)
        Parameters:
        uniqueId - Unique identifier for this blotter item. This id is used when removing items from the BlotterChannel and in the callback in BlotterChannelListener.
    • Method Detail

      • getUniqueId

        public java.lang.String getUniqueId()
        Returns:
        uniqueId The uniqueId this BlotterItem was instantiated with.
      • getParent

        public BlotterItem getParent()
        Returns:
        uniqueId The parent of this BlotterItem.
      • setParentItem

        public void setParentItem​(BlotterItem parentItem)
        Parameters:
        parentItem - The parent of this BlotterItem. To change the parent of the BlotterItem, the item must be removed and resent.
      • getField

        public java.lang.String getField​(java.lang.String name)
        Parameters:
        name - Key associated with a value
        Returns:
        Value of this field
      • setField

        public void setField​(java.lang.String name,
                             java.lang.String value)
        Parameters:
        name - Field name associate with a value. These must be present in the fields.conf used to configure the DataSource.
        value - Value to send associated with this field name
      • getFields

        public java.util.Map<java.lang.String,​java.lang.String> getFields()
        Returns:
        A map containing all fields present on this BlotterItem.
      • setFields

        public void setFields​(java.util.Map<java.lang.String,​java.lang.String> fieldMap)
        Parameters:
        fieldMap - Map of fields and values for this BlotterItem. The field names must be present in the fields.conf used to configure the DataSource.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        String containing this BlotterItem's uniqueId and fields.
      • toRecordItem

        public com.caplin.container.RecordItem toRecordItem​(BlotterConfiguration configuration,
                                                            java.lang.String username,
                                                            java.lang.String parameters)
      • getHexEncodedUniqueId

        public java.lang.String getHexEncodedUniqueId()
        Returns:
        Unique identifier for this blotter item encoded in hex.