Examples of Table


Examples of org.cipango.console.Table

   
    ObjectName sessionManager = (ObjectName) _connection.getAttribute(ConsoleFilter.SERVER, "sessionManager");
    add(new PropertiesPrinter(sessionManager, "sip.callSessions", _connection));
    ObjectName[] contexts = PrinterUtil.getSipAppContexts(_connection);
   
    Table table = new Table(_connection, contexts, "sip.applicationSessions");
    for (Header header : table.getHeaders())
    {
      int index = header.getName().indexOf("Sip application sessions");
      if (index != -1)
        header.setName(header.getName().substring(0, index));
    }
View Full Code Here

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

   * Returns a short description for this table: #id and name.
   *
   * @return A short description for this table: #id and name.
   */
  public Table getShortTableInformation() {
    return new Table(getTableId(), getName());
  }
View Full Code Here

Examples of org.datanucleus.store.rdbms.table.Table

                    storeDataMgr.getManagedStoreData().toArray(new RDBMSStoreData[storeDataMgr.size()]);
                for (int i=0; i<rdbmsStoreData.length; i++)
                {
                    if (rdbmsStoreData[i].hasTable())
                    {
                        Table t = (Table)rdbmsStoreData[i].getDatastoreContainerObject();
                        if (t instanceof DatastoreClass)
                        {
                            ((RDBMSPersistenceHandler)persistenceHandler).removeRequestsForTable((DatastoreClass)t);
                        }

                        // Any classes managed by their own table needing initialising
                        if (!t.isInitialized())
                        {
                            t.initialize(clr);
                            recentlyInitiliased.add(t);
                            if (t instanceof ViewImpl)
                            {
                                viewsToValidate.add(t);
                            }
View Full Code Here

Examples of org.drools.planner.examples.manners2009.domain.Table

            int tableListSize = readIntegerValue("Tables:");
            int seatsPerTable = readIntegerValue("SeatsPerTable:");
            List<Table> tableList = new ArrayList<Table>(tableListSize);
            List<Seat> seatList = new ArrayList<Seat>(tableListSize * seatsPerTable);
            for (int i = 0; i < tableListSize; i++) {
                Table table = new Table();
                table.setId((long) i);
                table.setTableIndex(i);
                List<Seat> tableSeatList = new ArrayList<Seat>(seatsPerTable);
                Seat firstSeat = null;
                Seat previousSeat = null;
                for (int j = 0; j < seatsPerTable; j++) {
                    Seat seat = new Seat();
                    seat.setId((long) ((i * seatsPerTable) + j));
                    seat.setTable(table);
                    seat.setSeatIndexInTable(j);
                    if (previousSeat != null) {
                        seat.setLeftSeat(previousSeat);
                        previousSeat.setRightSeat(seat);
                    } else {
                        firstSeat = seat;
                    }
                    tableSeatList.add(seat);
                    seatList.add(seat);
                    previousSeat = seat;
                }
                firstSeat.setLeftSeat(previousSeat);
                previousSeat.setRightSeat(firstSeat);
                table.setSeatList(tableSeatList);
                tableList.add(table);
            }
            manners2009.setTableList(tableList);
            manners2009.setSeatList(seatList);
        }
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Table

      Division deleted = body.addInteractiveDivision("group-confirm-delete",
          contextPath+"/admin/epeople",Division.METHOD_POST,"primary administrative groups");
      deleted.setHead(T_head);
      deleted.addPara(T_para);
     
      Table table = deleted.addTable("groups-list",groups.size() + 1, 3);
        Row header = table.addRow(Row.ROLE_HEADER);
        header.addCell().addContent(T_column1);
        header.addCell().addContent(T_column2);
        header.addCell().addContent(T_column3);
        header.addCell().addContent(T_column4);
       
      for (Group group : groups)
      { 
        Row row = table.addRow();
        row.addCell().addContent(group.getID());
          row.addCell().addContent(group.getName());
          row.addCell().addContent(group.getMembers().length);
          row.addCell().addContent(group.getMemberGroups().length);
      }
View Full Code Here

Examples of org.eclipse.sapphire.samples.sqlschema.Table

    @Override
    protected String compute()
    {
        final Column column = context( Column.class );
        final Table table = column.nearest( Table.class );
       
        for( final ForeignKey fk : table.getForeignKeys() )
        {
            for( final ForeignKey.ColumnAssociation fkcol : fk.getColumnAssociations() )
            {
                final String name = fkcol.getLocalColumn().content();
               
View Full Code Here

Examples of org.eclipse.swt.widgets.Table

    } else if (focus instanceof Tree) {
      Tree tree= (Tree)focus;
      clientArea= tree.getClientArea();
      result= computeMenuLocation(tree);
    } else if (focus instanceof Table) {
      Table table= (Table)focus;
      clientArea= table.getClientArea();
      result= computeMenuLocation(table);
    }
    if (result == null) {
      result= focus.toControl(cursorLocation);
    }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.Table

    String d = CHAPTER_HEAD + tableStart + row +"td["+ dataString + DNL+dataString2+
      CLOSE_BRACKET + "td[]" + CLOSE_BRACKET + CLOSE_BRACKET;
    XdocFile file = getDoc(d);
    EList<TextOrMarkup> textOrMarkup = file.getMainSection().getContents();
    assertEquals(1, textOrMarkup.size());
    Table t = (Table)textOrMarkup.get(0).getContents().get(0);
    assertEquals(1, t.getRows().size());
    EList<TableData> data = t.getRows().get(0).getData();
    assertEquals(2, data.size());
    TableData td = data.get(0);
    EList<TextOrMarkup> contents = td.getContents();
    assertEquals(2, contents.size());
    TextPart text = (TextPart)contents.get(0).getContents().get(0);
View Full Code Here

Examples of org.elasticsearch.common.Table

        });
    }

    @Override
    Table getTableWithHeader(final RestRequest request) {
        Table table = new Table();
        table.startHeaders();
        table.addCell("id", "default:false;alias:nodeId;desc:unique node id");
        table.addCell("pid", "default:false;alias:p;desc:process id");
        table.addCell("host", "alias:h;desc:host name");
        table.addCell("ip", "alias:i;desc:ip address");
        table.addCell("port", "default:false;alias:po;desc:bound transport port");

        final String[] requestedPools = fetchSortedPools(request, DEFAULT_THREAD_POOLS);
        for (String pool : SUPPORTED_NAMES) {
            String poolAlias = THREAD_POOL_TO_ALIAS.get(pool);
            boolean display = false;
            for (String requestedPool : requestedPools) {
                if (pool.equals(requestedPool)) {
                    display = true;
                    break;
                }
            }

            String defaultDisplayVal = Boolean.toString(display);
            table.addCell(
                    pool + ".type",
                    "alias:" + poolAlias + "t;default:false;desc:" + pool + " thread pool type"
            );
            table.addCell(
                    pool + ".active",
                    "alias:" + poolAlias + "a;default:" + defaultDisplayVal + ";text-align:right;desc:number of active " + pool + " threads"
            );
            table.addCell(
                    pool + ".size",
                    "alias:" + poolAlias + "s;default:false;text-align:right;desc:number of " + pool + " threads"
            );
            table.addCell(
                    pool + ".queue",
                    "alias:" + poolAlias + "q;default:" + defaultDisplayVal + ";text-align:right;desc:number of " + pool + " threads in queue"
            );
            table.addCell(
                    pool + ".queueSize",
                    "alias:" + poolAlias + "qs;default:false;text-align:right;desc:maximum number of " + pool + " threads in queue"
            );
            table.addCell(
                    pool + ".rejected",
                    "alias:" + poolAlias + "r;default:" + defaultDisplayVal + ";text-align:right;desc:number of rejected " + pool + " threads"
            );
            table.addCell(
                    pool + ".largest",
                    "alias:" + poolAlias + "l;default:false;text-align:right;desc:highest number of seen active " + pool + " threads"
            );
            table.addCell(
                    pool + ".completed",
                    "alias:" + poolAlias + "c;default:false;text-align:right;desc:number of completed " + pool + " threads"
            );
            table.addCell(
                    pool + ".min",
                    "alias:" + poolAlias + "mi;default:false;text-align:right;desc:minimum number of " + pool + " threads"
            );
            table.addCell(
                    pool + ".max",
                    "alias:" + poolAlias + "ma;default:false;text-align:right;desc:maximum number of " + pool + " threads"
            );
            table.addCell(
                    pool + ".keepAlive",
                    "alias:" + poolAlias + "k;default:false;text-align:right;desc:" + pool + " thread keep alive time"
            );
        }

        table.endHeaders();
        return table;
    }
View Full Code Here

Examples of org.encog.examples.nonlinear.basicstrategy.blackjack.Table

     * System.out.print(" "); System.out.print(hardValue(i));
     *
     * System.out.println(); }
     */

    Table table = new Table(1, new Dealer());
    table.addPlayer(new Player(1000));
    table.addPlayer(new Player(1000));
    table.addPlayer(new Player(1000));
    table.addPlayer(new Player(1000));
    table.addPlayer(new Player(1000));
    for (int i = 0; i < 10; i++) {
      table.play();
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.