Examples of Cell


Examples of org.drools.examples.conway.Cell

     * @param tuple
     *            The matching tuple.
     */
    public void invoke(Tuple tuple)
    {
        Cell cell = (Cell) tuple.get( cellDeclaration );
        cell.queueNextCellState( CellState.DEAD );
    }
View Full Code Here

Examples of org.drools.examples.conway.Cell

     *         condition, else <code>false</code>.
     *
     */
    public boolean isAllowed(Tuple tuple)
    {
        Cell cell = (Cell) tuple.get( cellDeclaration );
        int numberOfLiveNeighborsCellHas = cell.getNumberOfLiveNeighbors();
        boolean isAllowed = ( numberOfLiveNeighborsCellHas < 2 );
        return isAllowed;
    }
View Full Code Here

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

                {
                    queryParams.put(BrowseParams.FILTER_VALUE[0], URLEncode(
                        singleEntry[0]));
                }
                // Create an entry in the table, and a linked entry
                Cell cell = singleTable.addRow().addCell();
                cell.addXref(super.generateURL(WITHDRAWN_URL_BASE, queryParams), singleEntry[0]);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.spi.memory.MemTable.Cell

  private final ColumnMatcher colId = new ColumnMatcher("id");

  public RepositoryKey get(RepositoryName name) throws DhtException,
      TimeoutException {
    Cell cell = table.get(name.asBytes(), colId.name());
    if (cell == null)
      return null;
    return RepositoryKey.fromBytes(cell.getValue());
  }
View Full Code Here

Examples of org.formulacompiler.spreadsheet.Spreadsheet.Cell

    final Map<String, Spreadsheet.Range> result = New.map();
    final SpreadsheetBinder binder = getBinder();
    for (Map.Entry<String, Spreadsheet.Range> def : defs.entrySet()) {
      final Spreadsheet.Range range = def.getValue();
      if (range instanceof Cell) {
        final Cell cell = (Cell) range;
        if (!binder.isInputCell( cell ) && !binder.isOutputCell( cell )) {
          result.put( def.getKey(), range );
        }
      }
    }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.event.TableEvent.Cell

   *
   * @param rowIndex the index of the highlighted row
   * @param cellIndex the index of the highlighted cell
   */
  public CellHighlightEvent(int rowIndex, int cellIndex) {
    this(new Cell(rowIndex, cellIndex));
  }
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.basic.Cell

        }
        if (selectedCellElement != null) {
            UIUtils.removeStyleName(selectedCellElement, options.getSelectionStyleName());
        }
        selectedCellElement = cellElement;
        selectedCell = new Cell(row, column);
        UIUtils.addStyleName(selectedCellElement, options.getSelectionStyleName());
        UIUtils.removeStyleName(selectedCellElement, options.getHoverStyleName());
        notifyCellSelected(row, column);
    }
View Full Code Here

Examples of org.hypertable.thriftgen.Cell

       
        if (_debug) {
            System.out.println("Doing delete for key: "+key);
        }
       
        Cell entry = new Cell();
        entry.key = new Key();
        entry.key.row = key;
        entry.key.flag = KeyFlag.DELETE_ROW;
       
        try {
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.Cell

     * @inheritDoc()
     */
    public void open() {
        // Fetch the current Cell, make sure it has the movable component and
        // turn everything on.
        Cell cell = editor.getCell();
        if (cell == null) {
            return;
        }

        // Store the values currently on the Cell. This will be used when we
        // go to restore the values later
        CellTransform transform = cell.getLocalTransform();
        originalTranslation = transform.getTranslation(null);
        originalRotation = transform.getRotation(null);
        originalScaling = transform.getScaling(null);

        // OWL issue #159: we are now up to date, no local changes have been made
        isLocalChangesMade = false;

        movableComponent = cell.getComponent(MovableComponent.class);
        if (movableComponent == null) {
            translationXTF.setEnabled(false);
            translationYTF.setEnabled(false);
            translationZTF.setEnabled(false);
            rotationXTF.setEnabled(false);
            rotationYTF.setEnabled(false);
            rotationZTF.setEnabled(false);
            scaleXTF.setEnabled(false);
        }

        // Listen for changes, if there is a movable component added or removed
        // update the state of the fields. It is ok if open() is called more
        // than once, this method call will not add duplicate listeners.
        cell.addComponentChangeListener(componentListener);

        // If it does not exist, attempt to add the movable component. Create
        // a suitable message using only the server-side movable component
        // class name and send over the cell channel.
        if (movableComponent == null) {
            String className = "org.jdesktop.wonderland.server.cell." +
                    "MovableComponentMO";
            CellServerComponentMessage cscm =
                    CellServerComponentMessage.newAddMessage(
                    cell.getCellID(), className);
            ResponseMessage response = cell.sendCellMessageAndWait(cscm);
            if (response instanceof ErrorMessage) {
                logger.log(Level.WARNING, "Unable to add movable component " +
                        "for Cell " + cell.getName() + " with ID " +
                        cell.getCellID(),
                        ((ErrorMessage) response).getErrorCause());
            }
        }

        // Listen for changes in the Cell's transform. It is ok if open() is
        // called more than once, this method call will not add duplicate
        // listeners.
        cell.addTransformChangeListener(transformListener);

        // Update the GUI, set local changes to true so that messages to the
        // movable component are NOT generated.
        setLocalChanges(true);
        try {
View Full Code Here

Examples of org.jdesktop.wonderland.common.wfs.CellList.Cell

        /*
         * Fetch an array of the names of the child cells. Check this is not
         * null, although this getChildren() should return an empty array
         * instead.
         */
        Cell childs[] = dir.getChildren();
        if (childs == null) {
            logger.fine("WFSLoader: no children in " + dir.getRelativePath());
            return;
        }
       
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.