Package org.pentaho.ui.xul.binding

Examples of org.pentaho.ui.xul.binding.Binding


   */
  public void setBindings()
  {
    // update the gui based on the selection
    getBindingFactory().setBindingType(Binding.Type.ONE_WAY);
    final Binding typeBinding = getBindingFactory().createBinding(NEW_WIZARD_FILE_RB_ID, SELECTED_PROPERTY_NAME, SELECT_LOOK_AND_FEEL_DECK_ID, SELECTED_INDEX_PROPERTY_NAME, new BooleanToIntegerBindingConverter());
    final Binding templatesBinding = getBindingFactory().createBinding(this, TEMPLATES_PROPERTY_NAME, AVAILABLE_TEMPLATES_LB_ID, ELEMENTS_PROPERTY_NAME);
    getBindingFactory().createBinding(this, SELECTED_TEMPLATE_PROPERTY_NAME, TEMPLATE_IMAGE_ID, SOURCE_PROPERTY_NAME, new SelectedTemplateToImageConverter());
   
    // update both the gui and the model
    getBindingFactory().setBindingType(Binding.Type.BI_DIRECTIONAL);
    final Binding selectedTemplateBinding = getBindingFactory().createBinding(AVAILABLE_TEMPLATES_LB_ID, SELECTED_INDEX_PROPERTY_NAME, this, SELECTED_TEMPLATE_PROPERTY_NAME);
    getBindingFactory().createBinding(this, START_FROM_FILE_PROPERTY_NAME, NEW_WIZARD_FILE_RB_ID, NOT_SELECTED_PROPERTY_NAME);
    getBindingFactory().createBinding(this, FILENAME_PROPERTY_NAME, WIZARD_FILENAME_TB_ID, VALUE_PROPERTY_NAME);
    try
    {
      typeBinding.fireSourceChanged();
      templatesBinding.fireSourceChanged();
      selectedTemplateBinding.fireSourceChanged();
    }
    catch (Exception e)
    {
      if (getDesignTimeContext() != null) {
        getDesignTimeContext().error(e);
View Full Code Here


   */
  public void setBindings()
  {
    // update the gui based on the selection
    getBindingFactory().setBindingType(Binding.Type.ONE_WAY);
    final Binding typeBinding = getBindingFactory().createBinding(NEW_WIZARD_FILE_RB_ID, SELECTED_PROPERTY_NAME, SELECT_LOOK_AND_FEEL_DECK_ID, SELECTED_INDEX_PROPERTY_NAME, new BooleanToIntegerBindingConverter());
    final Binding templatesBinding = getBindingFactory().createBinding(this, TEMPLATES_PROPERTY_NAME, AVAILABLE_TEMPLATES_LB_ID, ELEMENTS_PROPERTY_NAME);
    getBindingFactory().createBinding(this, SELECTED_TEMPLATE_PROPERTY_NAME, TEMPLATE_IMAGE_ID, SOURCE_PROPERTY_NAME, new SelectedTemplateToImageConverter());
   
    // update both the gui and the model
    getBindingFactory().setBindingType(Binding.Type.BI_DIRECTIONAL);
    final Binding selectedTemplateBinding = getBindingFactory().createBinding(AVAILABLE_TEMPLATES_LB_ID, SELECTED_INDEX_PROPERTY_NAME, this, SELECTED_TEMPLATE_PROPERTY_NAME);
    getBindingFactory().createBinding(this, START_FROM_FILE_PROPERTY_NAME, NEW_WIZARD_FILE_RB_ID, NOT_SELECTED_PROPERTY_NAME);
    getBindingFactory().createBinding(this, FILENAME_PROPERTY_NAME, WIZARD_FILENAME_TB_ID, VALUE_PROPERTY_NAME);
    try
    {
      typeBinding.fireSourceChanged();
      templatesBinding.fireSourceChanged();
      selectedTemplateBinding.fireSourceChanged();
    }
    catch (Exception e)
    {
      if (getDesignTimeContext() != null) {
        getDesignTimeContext().error(e);
View Full Code Here

TOP

Related Classes of org.pentaho.ui.xul.binding.Binding

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.