Class GridCommand

All Implemented Interfaces:
Command

public class GridCommand extends AbstractCommand
The command implements a grid with dynamic columns and rows
Author:
Leonid Vysochyn
  • Field Details

  • Constructor Details

    • GridCommand

      public GridCommand()
    • GridCommand

      public GridCommand(String headers, String data)
    • GridCommand

      public GridCommand(String headers, String data, String props, Area headerArea, Area bodyArea)
    • GridCommand

      public GridCommand(String headers, String data, Area headerArea, Area bodyArea)
  • Method Details

    • getName

      public String getName()
      Returns:
      command name
    • getHeaders

      public String getHeaders()
    • setHeaders

      public void setHeaders(String headers)
    • getData

      public String getData()
    • setData

      public void setData(String data)
    • getProps

      public String getProps()
    • setProps

      public void setProps(String props)
    • getFormatCells

      public String getFormatCells()
    • setFormatCells

      public void setFormatCells(String formatCells)
      Parameters:
      formatCells - Comma-separated list of format type cells, e.g. formatCells="Double:E1, Date:F1"
    • addArea

      public Command addArea(Area area)
      Description copied from interface: Command
      Adds an area to this command
      Specified by:
      addArea in interface Command
      Overrides:
      addArea in class AbstractCommand
      Parameters:
      area - to be added area
      Returns:
      this command instance
    • applyAt

      public Size applyAt(CellRef cellRef, Context context)
      Description copied from interface: Command
      Applies a command at the given cell reference
      Parameters:
      cellRef - cell reference where the command must be applied
      context - bean context to use
      Returns:
      size of enclosing command area after transformation