DualListField에서 선택한 항목을 가져 오는 방법에 대해 알지 못합니다. 누군가 나를 도울 수 있습니까? 그래서 여기 DualListField에 대한 나의 코드가있다. 그리고 txtCat을 TextCell을 제외하고 선택된 항목의 컨테이너로 만들고 싶습니다. 그리고 또한 내가 선택한 항목이 최신 GXT3 버전 DualListField에서의 IDCategoryDualListField에서 선택한 항목을 가져 오는 방법은 무엇입니까?
final DualListField<Category, String> field = new DualListField<Category, String>(category, toCategory, catProp.strName(), txCell);
field.addValidator(new EmptyValidator<List<Category>>());
field.setEnableDnd(true);
field.setMode(Mode.INSERT);
vlc.add(new FieldLabel(field, "Categories"), new VerticalLayoutData(1, -1, new Margins(10)));
txtCat = new TextField();
txtCat.setEmptyText("Value");
txtCat.addFocusHandler(new FocusEvent.FocusHandler() {
@Override
public void onFocus(FocusEvent event) {
field.getFromStore();
}
});
vlc.add(new FieldLabel(txtCat, "Chosen Categories"), new VerticalLayoutData(-18, -1, new Margins(10)));
이 gwt 또는 gxt입니까? –
당신은 어떤 생각이 있습니까? –
[GWT에 DualListField 없음] (http://www.gwtproject.org/javadoc/latest/allclasses-noframe.html)이 있습니다. 커뮤니티는 사용자 정의 클래스 작동 방식을 알지 못합니다. –