예제 #1
0
  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);
          }
        });
  }
예제 #2
0
 public void setUp(StoreSearchController searchController) {
   //		controller = searchController;
   items.addTableListener(searchController);
 }