Class FWFormTableOption

java.lang.Object
net.simplace.pipe.formcomponents.choice.FWFormOption
net.simplace.pipe.formcomponents.choice.FWFormTableOption

public class FWFormTableOption extends FWFormOption
Used by FWTableChoiceSubComponent to store selectable options and their attributes in a TableModel. This class works different FWFormOption:
  • It has no value, because table contains multiple columns (in contrast to the other choice components); the representing selection value column is defined by FWTableChoiceSubComponent
  • It has no text, because table has not (yet) a leading column to display a row text
  • It has no image, because table not (yet) supports image rendering
The reason why this class inherits FWFormOption is to maintain the instances in FWChoiceFormComponent without any special cases. There are two ways to construct a FWFormTableOption:
  1. Specifying XML-Element in constructor: In this case the table column values are extracted from element children:
  2. Specifying ResultSet or ResultSetMetaData in constructor: In this case the table column values are determined from element children:
Author:
Martin Schmitz