version:
smartgwt-2.4
GWT-2.2.0
GAE-1.4.3
Hi all,
I make simple grid, but is not working.
code:
MysqlEditorInfoConstants.properties :
mysqlEngineTypes_array=MEMORY\\,MyISAM\\,BLACKHOLE\\,MRG_MYISAM\\,CSV\\,ARCHIVE\\,InnoDB
when I run it, all fields is in one line. look here http://2.2ajtaci.appspot.com/
can you tell me what I do wrong ?
Im try it with
but result is same,
thanks
smartgwt-2.4
GWT-2.2.0
GAE-1.4.3
Hi all,
I make simple grid, but is not working.
code:
Code:
public class TableInfo extends DynamicForm { private static final MysqlEditorInfoConstants CONSTANTS = GWT.create(MysqlEditorInfoConstants.class); private SelectItem collationBox; public TableInfo() { private ComboBoxItem collationBox; collationBox = new ComboBoxItem("collationBox", CONSTANTS.tableCollation_text()); collationBox.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse"); collationBox.setHint(CONSTANTS.tableCollationHelp_text()); String[] values = CONSTANTS.mysqlEngineTypes_array(); LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); for (int i=0;i<values.length;i++) { valueMap.put(i+"", values[i]); } collationBox.setValueMap(valueMap); collationBox.setShowHint(true); collationBox.setWidth(200); setFields(new FormItem[] { nameItem, collationBox, engineBox, commentArea}); } } public interface MysqlEditorInfoConstants extends Constants { String[] mysqlEngineTypes_array(); }
mysqlEngineTypes_array=MEMORY\\,MyISAM\\,BLACKHOLE\\,MRG_MYISAM\\,CSV\\,ARCHIVE\\,InnoDB
when I run it, all fields is in one line. look here http://2.2ajtaci.appspot.com/
can you tell me what I do wrong ?
Im try it with
Code:
collationBox.setValueMap(CONSTANTS.mysqlEngineTypes_array());
thanks
Comment