Class CdCheckbox


public class CdCheckbox extends InputControlDescription
Author:
GrahamWeatherup
  • Constructor Details

  • Method Details

    • makeControl

      public LoggerControl makeControl(LoggerForm loggerForm)
      Specified by:
      makeControl in class ControlDescription
    • extractXMLElementData

      public Object extractXMLElementData(Element el, String value)
      Description copied from class: ControlDescription
      Extract data values from an XML Element. Unlike the function that writes the elements using toString() this will have to be more complicated to create the correct type of data.
      Controls with non standard data types will have to override this.
      Overrides:
      extractXMLElementData in class ControlDescription
      Parameters:
      el - XML Element
      value - Value - quicker and easier for basic controls. Others may have to do a more complex extraction from the Element.
      Returns:
      Extracted object or null if data were null of there was a mismatch.
    • formatDataItem

      public Object formatDataItem(Object data)
      Description copied from class: ControlDescription
      format the data item, primarily used for the table of data.
      Overrides:
      formatDataItem in class ControlDescription
      Returns:
    • fromString

      public Object fromString(String data)
      Description copied from class: InputControlDescription
      Convert data in a string back into a valid object of the correct type for this form.
      Specified by:
      fromString in class InputControlDescription
      Parameters:
      data - string data, e.g. from a Json string.
      Returns:
      Obect in correct format