Package org.cspoker.common.elements.table

Examples of org.cspoker.common.elements.table.TableList


   * updates its display status according to the received {@link TableList}.
   */
  public void refreshTables() {
    availableGameTables.clearAll();
    availableGameTables.setItemCount(0);
    TableList tl;
    java.util.List<DetailedHoldemTable> tables = new ArrayList<DetailedHoldemTable>();
    try {
      tl = context.getTableList();
      for (Table t : tl.getTables()) {
        tables.add(context.getHoldemTableInformation(t.getId()));
      }
    } catch (RemoteException e) {
      getClientCore().handleRemoteException(e);
    } catch (IllegalActionException exception) {
View Full Code Here


    Collection<PokerTable> currentTables = tables.values();
    Set<Table> tableList = new TreeSet<Table>();
    for (PokerTable table : currentTables) {
      tableList.add(table.getShortTableInformation());
    }
    return new TableList(new ArrayList<Table>(tableList));
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.table.TableList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.