当前位置: 首页>>代码示例>>Java>>正文


Java BigDecimalField类代码示例

本文整理汇总了Java中jfxtras.labs.scene.control.BigDecimalField的典型用法代码示例。如果您正苦于以下问题:Java BigDecimalField类的具体用法?Java BigDecimalField怎么用?Java BigDecimalField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BigDecimalField类属于jfxtras.labs.scene.control包,在下文中一共展示了BigDecimalField类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: markInvalidFields

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
private void markInvalidFields(List<Pair<JSONObjectEntity, List<Error>>> occuredErrors) {
    setBorder();
    String error;
    List<Error> errorList=occuredErrors.get(0).getValue();
    for(int x=0;x<errorList.size();x++) {
        error = errorList.get(x).getKey().toString();
        if (error.equals(MusicalWorkProperty.CONDUCTOR.toString())) {
            _composerField.setStyle("-fx-border-color: red");
        }
        if (error.equals(MusicalWorkProperty.TITLE.toString())) {
            _nameField.setStyle("-fx-border-color: red");
        }
        if (error.equals(MusicalWorkProperty.INSTRUMENTATION.toString())) {
            for (BigDecimalField field : _decimalFields) {
                field.setStyle("-fx-border-color: red");
            }
        }
    }
}
 
开发者ID:ITB15-S4-GroupD,项目名称:Planchester,代码行数:20,代码来源:MusicalWorkManagement.java

示例2: reset

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
private void reset() {
    _instrumentationTable.getSelectionModel().clearSelection();
    _instrumentationTable.setDisable(false);
    _editButton.setDisable(true);
    _deleteButton.setDisable(true);
    _updateButton.setVisible(false);
    _addButton.setVisible(true);
    _cancelButton.setText("Clear");
    for (BigDecimalField field : _decimalFields) {
        field.setNumber(new BigDecimal(0));
        field.setStyle("-fx-border-color: transparent");
    }

    TeamF.client.helper.gui.InstrumentationHelper.resetSpecialInstrumentation(_specialInstrumentationEntityList, _specialInstrumentationContent);
    _specialInstrumentationEntityList.clear();
    SpecialInstrumentationEntity instrumentationEntityDefault = new SpecialInstrumentationEntity(0, _specialInstrumentationSectionGroupComboBox, _specialInstrumentationInstrumentTypeComboBox,_specialInstrumentationNumberField,_specialInstrumentationContent);
    _specialInstrumentationEntityList.add(instrumentationEntityDefault);
}
 
开发者ID:ITB15-S4-GroupD,项目名称:Planchester,代码行数:19,代码来源:InstrumentationManagement.java

示例3: markInvalidFields

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
private void markInvalidFields(List<Pair<JSONObjectEntity, List<Error>>> occuredErrors) {
    //setBorder();
    String error;
    List<Error> errorList=occuredErrors.get(0).getValue();
    for(int x=0;x<errorList.size();x++) {
        error = errorList.get(x).getKey().toString();
        if (error.equals(InstrumentationError.ALLZERO.toString())) {
            for (BigDecimalField field : _decimalFields) {
                field.setStyle("-fx-border-color: red");
            }
        }

    }
}
 
开发者ID:ITB15-S4-GroupD,项目名称:Planchester,代码行数:15,代码来源:InstrumentationManagement.java

示例4: validate

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
protected void validate(List<? extends Control> fields) {
    for (Control field : fields) {
        if(field instanceof TextField) {
            validate(((TextField) field).getText(), field);
        } else if(field instanceof BigDecimalField) {
            validate(((BigDecimalField) field).getText(), field);
        }
    }
}
 
开发者ID:ITB15-S4-GroupD,项目名称:Planchester,代码行数:10,代码来源:BasePage.java

示例5: BigDecimalFieldSkin

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
public BigDecimalFieldSkin(BigDecimalField control) {
    super(control);
    this.CONTROL = control;
    createNodes();
    initFocusSimulation();
    getSkinnable().requestLayout();
}
 
开发者ID:robovm,项目名称:robovm-samples,代码行数:8,代码来源:BigDecimalFieldSkin.java

示例6: setNumberfieldWidth

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
private void setNumberfieldWidth(){
    for(BigDecimalField field: _decimalFields){
        field.setMaxWidth(60);
    }
}
 
开发者ID:ITB15-S4-GroupD,项目名称:Planchester,代码行数:6,代码来源:MusicalWorkManagement.java

示例7: setBorder

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
private void setBorder() {
    for (BigDecimalField field : _decimalFields) {
        field.setStyle("-fx-border-color: green");
    }
}
 
开发者ID:ITB15-S4-GroupD,项目名称:Planchester,代码行数:6,代码来源:InstrumentationManagement.java

示例8: initComponents

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
@Override
public void initComponents()
{  
    veiculoTypes = FXCollections.observableArrayList(VeiculoType.asArray());
    
    accord = new Accordion();
    paneGerais = new TitledPane();
    paneGerais.setText("Dados Gerais do Veiculo");
    paneComuns = new TitledPane();
    paneComuns.setText("Dados Comuns do Veiculo");
    paneEspecificas = new TitledPane();
    paneEspecificas.setText("Dados Especificos do Veiculo");
    
    cmbTipos = new ComboBox(veiculoTypes);
    cmbMarcas = new ComboBox();
    cmbModelos = new ComboBox();
    cmbCores = new ComboBox();
    txtPlaca = new TextField();
    txtPlaca.setPromptText("ABC-1234");
    txtChassi = new TextField();
    txtChassi.setPromptText("9BGRD08X04G117974");
    txtCilindradas = new TextField();
    txtCilindradas.setPromptText("1500cc/1.5L");
    txtCarroceria = new TextField();
    txtCarroceria.setPromptText("Sedan/Pick-Up/Hatchback");
    nmbAnoFabricacao = new NumberTextField();
    nmbAnoFabricacao.setBegin(2000);
    
    spinnerQuilometragem = new BigDecimalField(BigDecimal.ZERO,
            new BigDecimal(10000), NumberFormat.getInstance());
    spinnerNumeroEixos = new BigDecimalField(BigDecimal.ZERO);
    spinnerNumeroMarchas = new BigDecimalField(BigDecimal.ZERO); 
    spinnerPotenciaCV = new BigDecimalField(BigDecimal.ZERO
            , new BigDecimal(100), NumberFormat.getInstance());
    spinnerAnoFabricacao = new BigDecimalField(new BigDecimal(2012));
    spinnerValor = new BigDecimalField(BigDecimal.ZERO, 
            new BigDecimal(1000), new DecimalFormat(PrimaryStage.DECIMAL_FORMAT));
    
    spinnerNumAssentos = new BigDecimalField(BigDecimal.ZERO);//!
    spinnerNumPortas = new BigDecimalField(BigDecimal.ZERO);//!
    spinnerCapcMaxCarga = new BigDecimalField(BigDecimal.ZERO, //!
            new BigDecimal(5000), new DecimalFormat(PrimaryStage.DECIMAL_FORMAT));
    
    salvar = new Button();
    salvar.setDisable(true);
    limpar = new Button();
    limpar.setText("Limpar!");
    limpar.setId("dark-blue");
    
    addMarca = new Button();
    addMarca.setId("btn-add");
    addModelo = new Button();
    addModelo.setId("btn-add");
    addModelo.setDisable(true);
    addCor = new Button();
    addCor.setId("btn-add");
    
    popMarca = new NewPopOver(new NovaMarcaPane(this));
    
    popCor = new NewPopOver(new NovaCorPane(this));  
    
    warningPlaca = new NewPopOver(new WarningPane("Já existe um Veiculo com"
            + " essa Placa!"));
    warningPlaca.setDetachable(false);
    warningPlaca.setDetached(false);
    warningPlaca.setAutoHide(true);
    
    hBox = new HBox();
    hBox.setSpacing(15);
    hBox.getChildren().addAll(salvar, limpar);

    titulo = new Label("Novo Veiculo");
    titulo.setId("title");
    
    accord.getPanes().addAll(paneGerais, paneComuns, paneEspecificas);
    accord.setExpandedPane(paneGerais);

    carregaDados();
}
 
开发者ID:vfreitas-,项目名称:ShopCarFX-2.0,代码行数:80,代码来源:NovoVeiculoPane.java

示例9: getSpinnerContrattempo

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
/**
 * @return the spinnerContrattempo
 */
public BigDecimalField getSpinnerContrattempo() {
  return spinnerContrattempo;
}
 
开发者ID:abju,项目名称:SimulatoreCVS,代码行数:7,代码来源:SpartitoOptionBarController.java

示例10: setSpinnerContrattempo

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
/**
 * @param spinnerContrattempo the spinnerContrattempo to set
 */
public void setSpinnerContrattempo(BigDecimalField spinnerContrattempo) {
  this.spinnerContrattempo = spinnerContrattempo;
}
 
开发者ID:abju,项目名称:SimulatoreCVS,代码行数:7,代码来源:SpartitoOptionBarController.java

示例11: getControl

import jfxtras.labs.scene.control.BigDecimalField; //导入依赖的package包/类
public BigDecimalField getControl() {return CONTROL;} 
开发者ID:robovm,项目名称:robovm-samples,代码行数:2,代码来源:BigDecimalFieldSkin.java


注:本文中的jfxtras.labs.scene.control.BigDecimalField类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。