Class TradelistColumn

java.lang.Object
com.strategyquant.tradinglib.debug.Debugger
com.strategyquant.tradinglib.table.TableColumn
com.strategyquant.tradinglib.TradelistColumn

public abstract class TradelistColumn extends com.strategyquant.tradinglib.table.TableColumn
The Class DatabankColumn.
  • Field Summary

    Fields inherited from class com.strategyquant.tradinglib.table.TableColumn

    currencySymbol, Decimal2, Decimal2Pct, Decimal2Pips, Decimal2PL, Decimal4, Decimal5, HORIZONTAL_ALIGNMENT_CENTER, HORIZONTAL_ALIGNMENT_LEFT, HORIZONTAL_ALIGNMENT_RIGHT, Integer, Log, NOT_AVAILABLE, Text, Time
  • Constructor Summary

    Constructors
    Constructor
    Description
    TradelistColumn​(String columnName)
    Instantiates a new tradelist column.
    TradelistColumn​(String columnName, String formatType)
    Instantiates a new tradelist column.
    TradelistColumn​(String columnName, String formatType, boolean fontBold)
    Instantiates a new tradelist column.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the formatted value.
    abstract Object
    getValue​(Order order)
    Gets the value.
    boolean
    setValue​(Order order, double value)
    Sets the value.

    Methods inherited from class com.strategyquant.tradinglib.table.TableColumn

    getName, getNumericValue, getStatsValueName, getType, getWidth, isEditable, isFontBold, isSpecialValue, printPlValue, printPlValue, printsSpecialValue, printValue, setEditable, setName, setTooltip, setWidth

    Methods inherited from class com.strategyquant.tradinglib.debug.Debugger

    debug, fdebug

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TradelistColumn

      public TradelistColumn(String columnName)
      Instantiates a new tradelist column.
      Parameters:
      columnName - the column name
    • TradelistColumn

      public TradelistColumn(String columnName, String formatType)
      Instantiates a new tradelist column.
      Parameters:
      columnName - the column name
      formatType - the format type
    • TradelistColumn

      public TradelistColumn(String columnName, String formatType, boolean fontBold)
      Instantiates a new tradelist column.
      Parameters:
      columnName - the column name
      formatType - the format type
      fontBold - the font bold
  • Method Details

    • setValue

      public boolean setValue(Order order, double value) throws Exception
      Sets the value.
      Parameters:
      order - the order
      value - the value
      Returns:
      true, if successful
      Throws:
      Exception - the exception
    • getValue

      public abstract Object getValue(Order order) throws Exception
      Gets the value.
      Parameters:
      order - the order
      Returns:
      the value
      Throws:
      Exception - the exception
    • getFormattedValue

      public String getFormattedValue(Object value) throws Exception
      Gets the formatted value.
      Parameters:
      value - the value
      Returns:
      the formatted value
      Throws:
      Exception - the exception