private fun createFieldMenu(): HtmlSelectOneMenu? { val field = HtmlSelectOneMenu() val children: MutableList<*> = field.getChildren() children.add(createSelectItem("Subject")) children.add(createSelectItem("Sender")) children.add(createSelectItem("Date")) children.add(createSelectItem("Priority")) children.add(createSelectItem("Status")) children.add(createSelectItem("To")) children.add(createSelectItem("Cc")) children.add(createSelectItem("To or Cc")) return field }
Creates the menu that allows the user to select a field .