protected void selectContent(AttributeSet attr) throws IOException {
  Object model=attr.getAttribute(StyleConstants.ModelAttribute);
  incrIndent();
  if (model instanceof OptionListModel) {
    OptionListModel<Option> listModel=(OptionListModel<Option>)model;
    int size=listModel.getSize();
    for (int i=0; i < size; i++) {
      Option option=listModel.getElementAt(i);
      writeOption(option);
    }
  }
 else   if (model instanceof OptionComboBoxModel) {
    OptionComboBoxModel<Option> comboBoxModel=(OptionComboBoxModel<Option>)model;
    int size=comboBoxModel.getSize();
    for (int i=0; i < size; i++) {
      Option option=comboBoxModel.getElementAt(i);
      writeOption(option);
    }
  }
  decrIndent();
}

protected void selectContent ( AttributeSet attr ) throws IOException { Object model = attr . getAttribute ( StyleConstants . ModelAttribute ) ; incrIndent ( ) ; if ( model instanceof OptionListModel ) { OptionListModel < Option > listModel = ( OptionListModel < Option > ) model ; int size = listModel . getSize ( ) ; for ( int i = 0 ; i < size ; i ++ ) { Option option = listModel . getElementAt ( i ) ; writeOption ( option ) ; } } else if ( model instanceof OptionComboBoxModel ) { OptionComboBoxModel < Option > comboBoxModel = ( OptionComboBoxModel < Option > ) model ; int size = comboBoxModel . getSize ( ) ; for ( int i = 0 ; i < size ; i ++ ) { Option option = comboBoxModel . getElementAt ( i ) ; writeOption ( option ) ; } } decrIndent ( ) ; }
writes out the content of the select form element .
