• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ChangedEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



ChangedEvent类属于com.smartgwt.client.widgets.form.fields.events包,在下文中一共展示了ChangedEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getTimeSlotSelector

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
public DynamicForm getTimeSlotSelector() {
    DynamicForm form = new DynamicForm();

    final SelectItem selectedRange = new SelectItem("statRange", "");
    LinkedHashMap<String, String> nodeLineValues = new LinkedHashMap<String, String>();
    for (Model.StatHistory.Range r : Model.StatHistory.Range.values()) {
        nodeLineValues.put("" + r.getChar(), r.getString());
    }
    selectedRange.setDefaultValue("" + Model.StatHistory.Range.MINUTE_1.getChar());
    selectedRange.setValueMap(nodeLineValues);

    selectedRange.addChangedHandler(new ChangedHandler() {
        @Override
        public void onChanged(ChangedEvent event) {
            timeRange = Model.StatHistory.Range.create(selectedRange.getValueAsString().charAt(0));
            loadTable.removeRows(0, loadTable.getNumberOfRows());
            reload();
        }
    });

    form.setItems(selectedRange);
    form.setHeight(24);
    form.setWidth(40);

    return form;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:27,代码来源:MBeanChart.java


示例2: onChanged

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
@Override
public void onChanged(ChangedEvent event) {
    ListGridRecord r = selectCatalog.getSelectedRecord();
    String lastFieldSelection = selectField.getValueAsString();
    Record[] fields = r.getAttributeAsRecordArray(BibliographicCatalogResourceApi.CATALOG_FIELDS);
    LinkedHashMap<String, String> fieldMap = new LinkedHashMap<String, String>();
    for (Record field : fields) {
        String fId = field.getAttribute(BibliographicCatalogResourceApi.CATALOG_FIELD_ID);
        String fTitle = field.getAttribute(BibliographicCatalogResourceApi.CATALOG_FIELD_TITLE);
        fTitle = fTitle == null || fId.equals(fTitle) ? FIELD_TYPE_TITLES.get(fId) : fTitle;
        fTitle = fTitle == null ? fId : fTitle;
        fieldMap.put(fId, fTitle);
    }
    if (!fieldMap.containsKey(lastFieldSelection)) {
        if (fieldMap.isEmpty()) {
            lastFieldSelection = null;
        } else {
            lastFieldSelection = fieldMap.keySet().iterator().next();
        }
    }
    selectField.setValueMap(fieldMap);
    selectField.setValue(lastFieldSelection);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:24,代码来源:CatalogBrowser.java


示例3: getPreviewZoomer

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
/**
 * Gets widget to zoom image in the preview panel.
 * @return
 */
public Canvas getPreviewZoomer() {
    SelectItem zoomItem = createZoomForm();
    zoomItem.addChangedHandler(new ChangedHandler() {

        @Override
        public void onChanged(ChangedEvent event) {
            onZoomChange(event);
        }
    });
    DynamicForm form = new DynamicForm();
    form.setValuesManager(zoomValues);
    form.setFields(zoomItem);
    form.setLayoutAlign(Alignment.CENTER);
    return form;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:20,代码来源:DigitalObjectPreview.java


示例4: getWindowZoomer

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
/**
 * Gets widget to zoom image in the window.
 * @return
 */
public Canvas getWindowZoomer() {
    SelectItem zoomItem = createZoomForm();
    zoomItem.setHeight(15);
    zoomItem.setPickerIconSrc("[SKIN]/headerIcons/zoom.png");
    zoomItem.setPickerIconHeight(15);
    zoomItem.setPickerIconWidth(15);
    zoomItem.addChangedHandler(new ChangedHandler() {

        @Override
        public void onChanged(ChangedEvent event) {
            onZoomChange(event);
        }
    });
    DynamicForm form = new DynamicForm();
    form.setValuesManager(zoomValues);
    form.setFields(zoomItem);
    form.setLayoutAlign(Alignment.CENTER);
    return form;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:24,代码来源:DigitalObjectPreview.java


示例5: YoutubeObjectEditor

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
public YoutubeObjectEditor() {
	form = new DynamicForm();
	videoText = new TextItem(YoutubeObject.YOUTUBE_URL, constants.youtubeURL()+" http://www.youtube.com/watch?v=");

       videoText.addChangedHandler(new ChangedHandler() {
           @Override
           public void onChanged(ChangedEvent event) {
               String url = ""+event.getValue();
               if (url.contains("youtube.com/watch?v=")) {
                   url = url.substring(url.indexOf("=")+1);
                   videoText.setValue(url);
               }
               if (url.contains("youtu.be/")) {
                   url = url.substring(url.indexOf(".be/")+4);
                   videoText.setValue(url);
               }
               if (url.contains("www.youtube.com/share_popup?v=")) {
                   url = url.substring(url.indexOf("=")+1);
                   videoText.setValue(url);
               }
           }
       });
	form.setFields(videoText);
	form.setWidth100();
	addMember(form);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:YoutubeObjectEditor.java


示例6: ProximityDependencyEditor

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
public ProximityDependencyEditor(Tab mapTab) {
		this.mapTab = mapTab;
		createRadiusTextEdit();
		createLatTextEdit();
		createLngTextEdit();
		setPadding(10);
        radiusTextItem.addChangedHandler(new ChangedHandler() {
            @Override
            public void onChanged(ChangedEvent event) {
                try {
                int value = Integer.parseInt(""+event.getValue());
                if (circle != null) circle.setRadius(value);
                onSave();
                } catch (Exception e) {
                }
            }
        });
		form = new DynamicForm();
		form.setFields(radiusTextItem, latTextItem, lngTextItem);
//		addMember(radiusSlider);
		addMember(form);
		
//		setWidth100();
		ProximityDependencyEditor.this.setVisibility(Visibility.HIDDEN);

	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:ProximityDependencyEditor.java


示例7: initSetTimeField

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void initSetTimeField() {
	selectTimeTextItem = new TextItem(TIMEDELTA_DEP);
	selectTimeTextItem.setTitle("time delta");
	selectTimeTextItem.setWrapTitle(false);
	selectTimeTextItem.setStartRow(true);
	selectTimeTextItem.addChangedHandler(new ChangedHandler() {
		
		@Override
		public void onChanged(ChangedEvent event) {
			onSave();

			
		}
	});
	
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:17,代码来源:TimeDepEditor.java


示例8: initHasDependency

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void initHasDependency() {
	hasDependencyCheckboxItem = new CheckboxItem("hasDep", constants.hasDependency());
	hasDependencyCheckboxItem.addChangedHandler(new ChangedHandler() {
		
		@Override
		public void onChanged(ChangedEvent event) {
			hasDependency = (Boolean) event.getValue();
			redraw();
			
		}
	});
       hasDependencyCheckboxItem.setShowIfCondition(new FormItemIfFunction() {
           @Override
           public boolean execute(FormItem item, Object value, DynamicForm form) {
               return showHasDependencyCheckBox;
           }
       });
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:19,代码来源:ActionForm.java


示例9: initScope

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void initScope() {
	selectScope = new SelectItem(SCOPE_DEP);
	selectScope.setTitle(constants.scope());
	selectScope.setValueMap(createScopeDependencyValues());
	if (selectScope.getValue() == null)
		selectScope.setValue(0);
	selectScope.setShowIfCondition(hasDependencyFuction);

	// selectScope.setShowIfCondition(formIf);
	selectScope.setStartRow(true);
	selectScope.addChangedHandler(new ChangedHandler() {
		
		@Override
		public void onChanged(ChangedEvent event) {
			if (saveToTree) onSave();
			
		}
	});
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:20,代码来源:ActionForm.java


示例10: initRole

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void initRole() {

		selectRole = new SelectItem(ROLE_DEP);
		selectRole.setTitle(constants.role());
		selectRole.setValueField(GameRoleModel.ROLE_FIELD);
		selectRole.setDisplayField(GameRoleModel.ROLE_FIELD);
		selectRole.setOptionDataSource(GameRolesDataSource.getInstance());
		selectRole.setAllowEmptyValue(true);
		selectRole.setShowIfCondition(hasDependencyFuction);

		selectRole.setStartRow(true);
		selectRole.addChangedHandler(new ChangedHandler() {
			
			@Override
			public void onChanged(ChangedEvent event) {
				if (saveToTree) onSave();
				
			}
		});
	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:21,代码来源:ActionForm.java


示例11: initLayerShow

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void initLayerShow() {
	layerShow.setTitle(MESSAGES.layerActionsShowLayer());
	layerShow.setTooltip(MESSAGES.layerActionsShowLayerToolTip());
	layerShow.setTitleOrientation(TitleOrientation.LEFT);
	if (vectorLayer != null) {
		layerShow.setValue(vectorLayer.isVisible());
	} else {
		layerShow.setValue(rasterLayer.isVisible());
	}
	layerShow.addChangedHandler(new ChangedHandler() {

		public void onChanged(ChangedEvent event) {
			if (vectorLayer != null) {
				vectorLayer.setVisible(layerShow.getValueAsBoolean());
			} else {
				rasterLayer.setVisible(layerShow.getValueAsBoolean());
			}
		}
	});
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:21,代码来源:LayerActions.java


示例12: addItemChangedHandler

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
@Override
public HandlerRegistration addItemChangedHandler(ItemChangedHandler handler) {
	MultiHandlerRegistration registration = new MultiHandlerRegistration();
	// Due to custom made FormItems, we can't set the handler on the form anymore...
	final ItemChangedHandler itemChangedHandler = handler;
	registration.addRegistration(manager.addHandler(ItemChangedEvent.getType(), handler));
	for (final FormItem formItem : formWidget.getFields()) {
		ChangedHandler h = new ChangedHandler() {

			public void onChanged(ChangedEvent event) {
				itemChangedHandler.onItemChanged(new ItemChangedEvent(formItem.getJsObj()));
			}
		};
		registration.addRegistration(formItem.addChangedHandler(h));
	}
	return registration;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:18,代码来源:DefaultFeatureForm.java


示例13: createActivateChangedHandler

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
protected ChangedHandler createActivateChangedHandler(final ListGridRecord ruleRecord) {
    return new ChangedHandler() {
        @Override
        public void onChanged(ChangedEvent event) {
            CheckboxItem checkbox = (CheckboxItem) event.getSource();
            boolean checked = checkbox.getValueAsBoolean().booleanValue();
            String uuid = ruleRecord.getAttribute(UUID);
            String medium = ruleRecord.getAttribute(MEDIUM);
            String format = ruleRecord.getAttribute(FORMAT);
            ruleRecord.setAttribute(SUBSCRIBED, checked);
            if(checked) {
                getMainEventBus().fireEvent(new SubscribeEvent(currentSession(), uuid, medium, format));
            } else {
                getMainEventBus().fireEvent(new UnsubscribeEvent(currentSession(), uuid, medium, format));
            }
        }
    };
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:SubscriptionListGrid.java


示例14: setEntryOperatorRuleItem

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void setEntryOperatorRuleItem() {
    this.entryOperatorItem = new SelectItem();
    this.entryOperatorItem.setWidth(this.entryItemWidth);
    this.entryOperatorItem.setTitle(i18n.operator());
    this.entryOperatorItem.setTitleOrientation(TitleOrientation.TOP);
    this.entryOperatorItem.setValueMap(getMathSymbols());
    this.entryOperatorItem.setDefaultValue(">");
    this.entryOperatorItem.setTextAlign(Alignment.CENTER);
    this.entryOperatorItem.addChangedHandler(new ChangedHandler() {
        public void onChanged(ChangedEvent event) {
            if (exitOperatorItem != null) {
                TextItem exitOperatorTextItem = (TextItem) event.getSource();
                exitOperatorItem.setValue(getInverse(exitOperatorTextItem.getValueAsString()));
            }
        }
    });
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:18,代码来源:CreateSimpleRuleLayout.java


示例15: createInformationFieldForSelectedStation

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private Canvas createInformationFieldForSelectedStation() {
        VLayout layout = new VLayout();
        timeseriesInfoHTMLPane = new HTMLPane();
        phenomenonBox = new SelectItem(i18n.phenomenonLabel());
        phenomenonBox.addChangedHandler(new ChangedHandler() {
			@Override
			public void onChanged(ChangedEvent event) {
				String category = (String) event.getItem().getValue();
				controller.loadTimeseriesByCategory(category);
			}
		});
        DynamicForm form = new DynamicForm();
        form.setItems(phenomenonBox);
//        phenomenonInfoLabel = new Label();
//        phenomenonInfoLabel.setAutoHeight();
        stationInfoLabel = new Label();
        stationInfoLabel.setAutoHeight();
//        layout.addMember(phenomenonInfoLabel);
        layout.addMember(form);
        layout.addMember(stationInfoLabel);
        layout.addMember(timeseriesInfoHTMLPane);
        return layout;
    }
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:24,代码来源:StationSelector.java


示例16: createFilterCategorySelectionGroup

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
FormItem createFilterCategorySelectionGroup(String serviceUrl) {
	if (stationFilterGroups.containsKey(serviceUrl)) {
		RadioGroupItem selector = stationFilterGroups.get(serviceUrl);
		return selector;
	}
	RadioGroupItem radioGroup = new RadioGroupItem("sosDataSource");
	radioGroup.setShowTitle(false);
	radioGroup.addChangedHandler(new ChangedHandler() {
		@Override
		public void onChanged(ChangedEvent event) {
			Object value = event.getValue();
			if (value != null) {
				hideInfoWindow();
				controller.setStationFilter(value.toString());
				controller.updateContentUponStationFilter();
			}
		}
	});

	stationFilterGroups.put(serviceUrl, radioGroup);
	return radioGroup;
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:23,代码来源:StationSelector.java


示例17: bindControlHandlers

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private void bindControlHandlers() {

        controls.getInputsClickable().addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                eventBus.fireEvent(new DisplayInputsDialogEvent());
            }
        });

        controls.actorSelector().addChangedHandler(new ChangedHandler() {
            public void onChanged(ChangedEvent changedEvent) {
               model.setActor(controls.getActor());
            }
        });
        
    }
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:16,代码来源:SimulatorPresenter.java


示例18: createFeatureCheckbox

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
private CheckboxItem createFeatureCheckbox(final Feature feature,
		boolean initValue,final VersionManagement versionManagement,
		final MarkerManagement markerManagement) {
	final CheckboxItem newCheckBox = new CheckboxItem(
			feature.getName(), feature.getName());
	newCheckBox.setPrompt(feature.getDescription());
	newCheckBox.setAlign(Alignment.LEFT);
	newCheckBox.setValue(initValue);
	newCheckBox.addChangedHandler(new ChangedHandler() {

		@Override
		public void onChanged(ChangedEvent event) {
			boolean activated = newCheckBox.getValueAsBoolean();
			versionManagement.saveEvent(new FeatureEvent(
					versionManagement, feature, activated));
			if(activated) {
				versionManagement.activateFeature(feature);
				markerManagement.activateFeature(feature);
			} else {
				versionManagement.deactivateFeature(feature);
				markerManagement.deactivateFeature(feature);

			}
		}
	});

	return newCheckBox;
}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:29,代码来源:MarkerControlDynamicForm.java


示例19: buildTargetSelect

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
protected void buildTargetSelect() {
    this.targetSelect = new SelectItem();
    this.targetSelect.setShowTitle(false);
    this.targetSelect.setValueMap(SelectionTarget.toStringArray());
    this.targetSelect.setValue(SelectionTarget.JOB_TARGET.label);
    this.targetSelect.addChangedHandler(new ChangedHandler() {
        public void onChanged(ChangedEvent event) {
            targetSelectChangedHandler();
        }
    });
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:12,代码来源:AbstractSelectedTargetView.java


示例20: fromDateChangedHandler

import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; //导入依赖的package包/类
protected void fromDateChangedHandler(ChangedEvent event) {
    if (dateRangeIsValid()) {
        resetDatesCanvasBackgroundColor();
        ((TasksCentricNavigationController) this.controller).changeFromDate(getTime(event));
    } else {
        highlightDates();
    }
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:9,代码来源:TasksCentricNavigationView.java



注:本文中的com.smartgwt.client.widgets.form.fields.events.ChangedEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SchemaValidationFeature类代码示例发布时间:2022-05-23
下一篇:
Java DecoderException类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap