public TangoPanelTable(String str) { HorizontalPanel buttons = new HorizontalPanel(); panel.add(buttons); panel.setCellHorizontalAlignment(buttons, VerticalPanel.ALIGN_CENTER); flexTable = new FlexTable(); flexTable.setSize("100%", "100%"); panel.add(flexTable); flexTable.addStyleName("WordPanelTable-table"); flexTable.addStyleName("WordPanelTable-panel"); /* セルがクリックされた時の振る舞い */ flexTable.addTableListener( new TableListener() { public void onCellClicked(SourcesTableEvents sender, int row, int cell) { System.out.println("row=" + row + ", col=" + cell); } }); }
public void setUp(StoreSearchController searchController) { // controller = searchController; items.addTableListener(searchController); }