I´ve just noticed, from my previous post (http://forums.smartclient.com/showthread.php?t=7994), that the custom form item I´ve created is interfering the tab order of the main form.
See the sample code below. "formPanel" is my main form, which have some items, including my custom form item. Notice that the third component is my custom component.
Just to remember, my custom form item is:
So, the focus goes from cbTiposAutor (first main form item) to the first component of my custom form item (tiPesquisar). Another tab makes the focus go to cbAutores (my second main form item), and another one makes it go to the second component of my custom form item (cbListaItens). After that, focus continues in the expected order.
Is that the expected behaviour? It seems the fact that my custom item contains a form affects the tab order, don´t? I think it is desired that the tab order would be cbTiposAutor -> cbAutores -> tiPesquisar -> cbListaItens
[],
Matheus
See the sample code below. "formPanel" is my main form, which have some items, including my custom form item. Notice that the third component is my custom component.
Code:
formPanel = new DynamicForm(); (...) cbTiposAutor = new ComboBoxItem("tipo_autor", "Tipo de autor"); cbAutores = new ComboBoxItem("auutores", "Autor"); cbTiposProposicao = new AlmComboBoxItem("tipo_proposicao", "Tipo de proposição"); ementa = new TextAreaItem("ementa", "Ementa"); data = new DateItem("data_entrega", "Data da Entrega"); formPanel.setFields(cbTiposAutor,cbAutores,cbTiposProposicao,ementa, data )
Code:
public class AlmComboBoxItem extends CanvasItem { DynamicForm form; TextItem tiPesquisar; ComboBoxItem cbListaItens; public AlmComboBoxItem(String name, String title) { super(String name, String title); tiPesquisar = new TextItem("Pesquisar", "pesquisar"); tiPesquisar.setShowTitle(false); cbListaItens = new ComboBoxItem("Lista", "lista"); cbListaItens.setShowTitle(false); form = new DynamicForm(); form.setNumCols(2); form.setItems(tiPesquisar, cbListaItens); this.setCanvas(form); } (...) }
Is that the expected behaviour? It seems the fact that my custom item contains a form affects the tab order, don´t? I think it is desired that the tab order would be cbTiposAutor -> cbAutores -> tiPesquisar -> cbListaItens
[],
Matheus
Comment