Examples of DoubleBox


Examples of com.google.gwt.user.client.ui.DoubleBox

    grid.setWidget(2, 1, phoneField);
   
    Label lblCashBalance = new Label("Cash Balance");
    grid.setWidget(3, 0, lblCashBalance);
   
    cashBalanceField = new DoubleBox();
    this.cashBalanceField.setEnabled(false);
    this.cashBalanceField.setReadOnly(true);
    this.cashBalanceField.setAlignment(TextAlignment.RIGHT);
    grid.setWidget(3, 1, cashBalanceField);
    grid.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
View Full Code Here

Examples of com.google.gwt.user.client.ui.DoubleBox

        return clone;
    }

    @Override
    public Widget cloneDisplay(Map<String, Object> formData) {
        DoubleBox tb = new DoubleBox();
        populate(tb);
        Object input = getInputValue(formData);
        if (input != null) {
            String s = input.toString();
            tb.setValue(s.equals("") ? null : Double.valueOf(s));
        }
        if (getOutput() != null && getOutput().getName() != null) {
            tb.setName(getOutput().getName());
        }
        super.populateActions(tb.getElement());
        return tb;
    }
View Full Code Here

Examples of org.openpixi.pixi.physics.util.DoubleBox

    localSettings.setSimulationHeight(cellHeight * mypart.ysize());
  }


  private Interpolation createInterpolationIterator(SharedDataManager sharedDataManager) {
    DoubleBox zoneOfLocalInfluence = new DoubleBox(
        (Grid.INTERPOLATION_RADIUS - 1) * localSettings.getCellWidth(),
        localSettings.getSimulationWidth() -
            Grid.INTERPOLATION_RADIUS * localSettings.getCellWidth(),
        (Grid.INTERPOLATION_RADIUS - 1) * localSettings.getCellHeight(),
        localSettings.getSimulationHeight() -
View Full Code Here

Examples of org.openpixi.pixi.physics.util.DoubleBox

    return gridFactory.create();
  }


  private ParticleBoundaries createParticleBoundaries(SharedDataManager sharedDataManager) {
    DoubleBox simulationAreaInParticleDimensions = new DoubleBox(
        0, localSettings.getSimulationWidth(), 0, localSettings.getSimulationHeight());
    DoubleBox innerSimulationArea = new DoubleBox(
        0, localSettings.getSimulationWidth() - localSettings.getCellWidth(),
        0, localSettings.getSimulationHeight() - localSettings.getCellHeight());
    return new DistributedParticleBoundaries(
        simulationAreaInParticleDimensions, innerSimulationArea,
        localSettings.getParticleBoundary(), sharedDataManager);
View Full Code Here

Examples of org.openpixi.pixi.physics.util.DoubleBox

    // TODO make particles a generic list
    particles = (ArrayList<Particle>) settings.getParticles();
    f = settings.getForce();

    ParticleBoundaries particleBoundaries = new SimpleParticleBoundaries(
        new DoubleBox(tstep, width, tstep, height),
        settings.getParticleBoundary());
    mover = new ParticleMover(
        settings.getParticleSolver(),
        particleBoundaries,
        settings.getParticleIterator());
View Full Code Here

Examples of org.openpixi.pixi.physics.util.DoubleBox

    // TODO make particles a generic list
    particles = (ArrayList<Particle>) settings.getParticles();
    f = settings.getForce();

    ParticleBoundaries particleBoundaries = new SimpleParticleBoundaries(
        new DoubleBox(0, width, 0, height),
        settings.getParticleBoundary());
    mover = new ParticleMover(
        settings.getParticleSolver(),
        particleBoundaries,
        settings.getParticleIterator());
View Full Code Here

Examples of org.openpixi.pixi.physics.util.DoubleBox

   * Determines the border cells and the indices of the corresponding ghost cells at remote nodes.
   * Since the corresponding border and ghost cells must have the same order,
   * the ghost cells are registered once the ghost cell indices (border cells map) is exchanged.
   */
  private void setUpBorderCells(Cell[][] myCells) {
    DoubleBox simAreaDouble = new DoubleBox(
        0,
        settings.getSimulationWidth(),
        0,
        settings.getSimulationHeight());
    DoubleBox innerSimAreaDouble = new DoubleBox(
        settings.getCellWidth(),
        settings.getSimulationWidth() - settings.getCellWidth(),
        settings.getCellHeight(),
        settings.getSimulationHeight() - settings.getCellHeight());

View Full Code Here

Examples of org.zkoss.zul.Doublebox

        pccCodeTB.setText(var.getPccCode());
        venderCodeTB.setText(var.getVenderCode());

        Textbox insideCodeTB = (Textbox) getFellow("insideCode");
        Combobox priorityCB = (Combobox) getFellow("priority");
        Doublebox latestPriceTB = (Doublebox) getFellow("latestPrice");
        Intbox inventoryAmountTB = (Intbox) getFellow("inventoryAmount");
        Combobox systemTypeCB = (Combobox) getFellow("system");

        insideCodeTB.setText(var.getInsideCode());
        Iterator priorityIt = priorityCB.getItems().iterator();
        while (priorityIt.hasNext()) {
            Comboitem item = (Comboitem) priorityIt.next();

            String priorityStr = item.getValue().toString();
            if (var.getPriority() != null && var.getPriority().equals(priorityStr)) {
                priorityCB.setSelectedItem(item);
            }
        }
        latestPriceTB.setValue(var.getLatestPrice());
        inventoryAmountTB.setValue(var.getInventoryAmount());

        Iterator stItr = systemTypeCB.getItems().iterator();
        while (stItr.hasNext()) {
            Comboitem item = (Comboitem) stItr.next();
View Full Code Here

Examples of org.zkoss.zul.Doublebox

        obj.setPccCode(pccCodeTB.getText());
        obj.setVenderCode(venderCodeTB.getText());

        Textbox insideCodeTB = (Textbox) getFellow("insideCode");
        Combobox priorityCB = (Combobox) getFellow("priority");
        Doublebox latestPriceTB = (Doublebox) getFellow("latestPrice");
        Intbox inventoryAmountTB = (Intbox) getFellow("inventoryAmount");
        Combobox systemTypeCB = (Combobox) getFellow("system");
        obj.setInsideCode(insideCodeTB.getText());
        obj.setPriority(priorityCB.getSelectedItem().getValue().toString());
        obj.setLatestPrice(latestPriceTB.getValue());
        obj.setInventoryAmount(inventoryAmountTB.getValue());
        obj.setSystemType(systemTypeCB.getSelectedItem().getValue().toString());

        return obj;
    }
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.