Package net.pleso.framework.client.ui.custom.controls.data

Examples of net.pleso.framework.client.ui.custom.controls.data.EnumComboBoxDataControl.bind()


        // Creating control.
        EnumComboBoxDataControl ctrl = new EnumComboBoxDataControl(item
            .getEnum());
        // Binding row and column to control.
        ctrl.bind(dataRow, item.getDataColumn());
        addedControl = ctrl;
      } else
      // If this is range edit item.
      if (items[i] instanceof IEditRangeFormItem) {
        // Interface type cast.
View Full Code Here


            .getHighBoundDataColumn());

        // If this is date range.
        if (valueLow instanceof DBDate && valueHigh instanceof DBDate) {
          DateRangeControl ctrl = new DateRangeControl();
          ctrl.bind(dataRow, item.getLowBoundDataColumn(), item
              .getHighBoundDataColumn());
          addedControl = ctrl;
        }
        // If this is floats range.
        else if (valueLow instanceof DBFloat
View Full Code Here

        }
        // If this is floats range.
        else if (valueLow instanceof DBFloat
            && valueHigh instanceof DBFloat) {
          FloatRangeControl ctrl = new FloatRangeControl();
          ctrl.bind(dataRow, item.getLowBoundDataColumn(), item
              .getHighBoundDataColumn());
          addedControl = ctrl;
        }
        // If this is time range.
        else if (valueLow instanceof DBStringTime
View Full Code Here

        }
        // If this is time range.
        else if (valueLow instanceof DBStringTime
            && valueHigh instanceof DBStringTime) {
          TimeRangeControl ctrl = new TimeRangeControl();
          ctrl.bind(dataRow, item.getLowBoundDataColumn(), item
              .getHighBoundDataColumn());
          addedControl = ctrl;
        } else
          throw new NotImplementedFeatureException(
              "There is no implementation to edit range of types "
View Full Code Here

          else if (value instanceof DBFloat)
            ctrl = new FloatDataControl();
        }

        // Binding row and column to control.
        ctrl.bind(dataRow, item.getDataColumn());
        addedControl = (IBindableDataControl) ctrl;

      }
      // If this is read only information enumeration item.
      else if (items[i] instanceof IInfoEnumColumnFormItem) {
View Full Code Here

      else if (items[i] instanceof IInfoEnumColumnFormItem) {
        // Creating control.
        InfoDataControl ctrl = new InfoDataControl(
            ((IInfoEnumColumnFormItem) items[i]).getEnum());
        // Binding row and column to control.
        ctrl.bind(dataRow, ((IInfoFormItem) items[i]).getDataColumn());
        addedControl = ctrl;
      } else
      // If this is read only information item.
      if (items[i] instanceof IInfoFormItem) {
        // Creating control.
View Full Code Here

      // If this is read only information item.
      if (items[i] instanceof IInfoFormItem) {
        // Creating control.
        InfoDataControl ctrl = new InfoDataControl();
        // Binding row and column to control.
        ctrl.bind(dataRow, ((IInfoFormItem) items[i]).getDataColumn());
        addedControl = ctrl;
      } else
        // Throwing exception for unknown item type.
        throw new NotImplementedFeatureException(
            "Can't build control for type "
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.