Package com.utils.campo

Examples of com.utils.campo.Campo


    private void carregarCampos(Field[] campos, String classeBase) {
        for (Field field : campos) {
            if (!Modifier.isStatic(field.getModifiers())) {
                if (Campo.contemAnotacaoNecessaria(field)) {
                    comboBoxModelValor1.addItem(new Campo(MusicaS.class, classeBase + field.getName()));
                }else if(Campo.contemFilhos(field)){
                    carregarCampos(field.getType().getDeclaredFields(), classeBase + field.getName() + ".");
                }
            }
        }
View Full Code Here


                throw new IllegalStateException("Valor do segundo campo da condição não informado.");
            }
            Condicao condicao = new Condicao();
            OperadorComparativo operador = (OperadorComparativo) comboBoxModelOperadorComparativo.getSelectedItem();
            ValorCondicao valor1 = new ValorCondicao((Campo) jComboBox_Valor1.getSelectedItem());
            Campo campo = (Campo) jComboBox_Valor1.getSelectedItem();
            ValorCondicao valor2;
            if (campo.isInteger()) {
                valor2 = new ValorCondicao(Integer.valueOf(jTextField_Valor2.getText()));
            } else if (campo.isByte()) {
                valor2 = new ValorCondicao(Byte.valueOf(jTextField_Valor2.getText()));
            } else if (campo.isShort()) {
                valor2 = new ValorCondicao(Short.valueOf(jTextField_Valor2.getText()));
            } else if (campo.isLong()) {
                valor2 = new ValorCondicao(Long.valueOf(jTextField_Valor2.getText()));
            } else if (campo.isBoolean()) {
                if (jTextField_Valor2.getText().matches("[0]|[Nn][AaÃã][Oo]|[Ff][Aa][Ll][Ss][Ee]")) {
                    valor2 = new ValorCondicao(false);
                } else {
                    valor2 = new ValorCondicao(true);
                }
View Full Code Here

TOP

Related Classes of com.utils.campo.Campo

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.