Examples of DTDataTypes52


Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

        //Ensure the Default Value has been updated to represent the column's
        //data-type. Legacy Default Values are all String-based and need to be
        //coerced to the correct type
        final DTCellValue52 defaultValue = editingCol.getDefaultValue();
        final DTDataTypes52 dataType = utilities.getDataType( editingPattern,
                                                              editingCol );
        utilities.assertDTCellValue( dataType,
                                     defaultValue );
        defaultValueWidgetContainer.setWidget( factory.getWidget( editingPattern,
                                                                  editingCol,
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

     *            CellValue for which value will be serialised
     * @return String representation of value
     */
    public String convertValueToString(TemplateDataColumn column,
                                       CellValue< ? > cv) {
        DTDataTypes52 dataType = getDataType( column );

        switch ( dataType ) {
            case BOOLEAN :
                return convertBooleanValueToString( cv );
            case DATE :
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

     */
    public CellValue< ? extends Comparable< ? >> makeCellValue(TemplateDataColumn column,
                                                               int iRow,
                                                               int iCol,
                                                               String initialValue) {
        DTDataTypes52 dataType = getDataType( column );
        CellValue< ? extends Comparable< ? >> cell = null;

        switch ( dataType ) {
            case BOOLEAN :
                Boolean b = Boolean.FALSE;
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

     *            UI CellValue to convert into Model CellValue
     * @return
     */
    public DTCellValue52 convertToDTModelCell(DTColumnConfig52 column,
                                              CellValue< ? > cell) {
        DTDataTypes52 dt = getDataType( column );
        DTCellValue52 dtCell = null;

        switch ( dt ) {
            case BOOLEAN :
                dtCell = new DTCellValue52( (Boolean) cell.getValue() );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

     */
    public CellValue< ? extends Comparable< ? >> makeCellValue(DTColumnConfig52 column,
                                                               int iRow,
                                                               int iCol,
                                                               DTCellValue52 dcv) {
        DTDataTypes52 dataType = getDataType( column );
        CellValue< ? extends Comparable< ? >> cell = null;

        //If this is a legacy Decision Table values are always String
        //so ensure that the appropriate DTCellValue field is populated
        assertDTCellValue( dataType,
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

    }

    // Derive the Data Type for a Condition or Action column
    private DTDataTypes52 derieveDataType(DTColumnConfig52 col) {

        DTDataTypes52 dataType = DTDataTypes52.STRING;
        String type = model.getType( col,
                                     sce );

        //Null means the field is free-format
        if ( type == null ) {
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

    }

    // Get the Data Type corresponding to a given column
    protected DTDataTypes52 getDataType(DTColumnConfig52 column) {

        DTDataTypes52 dataType = DTDataTypes52.STRING;

        if ( column instanceof RowNumberCol52 ) {
            dataType = DTDataTypes52.NUMERIC;

        } else if ( column instanceof AttributeCol52 ) {
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

     * @return A CellValue
     */
    public CellValue< ? extends Comparable< ? >> makeCellValue(T column,
                                                               int iRow,
                                                               int iCol) {
        DTDataTypes52 dataType = getDataType( column );
        CellValue< ? extends Comparable< ? >> cell = null;

        switch ( dataType ) {
            case BOOLEAN :
                cell = makeNewBooleanCellValue( iRow,
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

    public DynamicDataRow makeUIRowData() {
        DynamicDataRow data = new DynamicDataRow();
        List<BaseColumn> columns = model.getExpandedColumns();
        for ( BaseColumn column : columns ) {
            DTCellValue52 dcv = makeModelCellValue( column );
            DTDataTypes52 dataType = utilities.getDataType( column );
            utilities.assertDTCellValue( dataType,
                                         dcv );
            CellValue< ? extends Comparable< ? >> cell = convertModelCellValue( column,
                                                                                dcv );
            data.add( cell );
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52

     * @param column
     * @return
     */
    @Override
    public DTCellValue52 makeModelCellValue(BaseColumn column) {
        DTDataTypes52 dataType = utilities.getDataType( column );
        DTCellValue52 dcv = null;
        if ( column instanceof LimitedEntryCol ) {
            dcv = new DTCellValue52( Boolean.FALSE );
        } else if ( column instanceof AttributeCol52 ) {
            AttributeCol52 ac = (AttributeCol52) column;
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.