public FolderSelectionWidget( final Map<String, String> batchClassesNameMap, final HandlerManager eventBus) { super(); initWidget(BINDER.createAndBindUi(this)); mainPanel.addStyleName(FolderManagementConstants.OPTIONS_BOX); batchClassSelectionListBox.setWidth(_150PX); batchClassSelectionListBox.addStyleName(FolderManagementConstants.CUSTOM_LIST_BOX); if (null != batchClassesNameMap && !batchClassesNameMap.isEmpty()) { Set<Entry<String, String>> entrySet = batchClassesNameMap.entrySet(); for (Entry<String, String> entry : entrySet) { batchClassSelectionListBox.addItem(entry.getKey()); } fireEventForFolderSelection(batchClassesNameMap, eventBus); batchClassSelectionListBox.addChangeHandler( new ChangeHandler() { @Override public void onChange(ChangeEvent event) { fireEventForFolderSelection(batchClassesNameMap, eventBus); } }); } else { eventBus.fireEvent(new BatchClassChangeEvent()); } }
@Inject public ContactsViewImpl(final ContactsPresenter presenter) { super(); this.presenter = presenter; presenter.setView(this); add(usersOnline); usersOnline.addStyleName("contacts"); }
public CreateMemberView(LocalizationConstants constants) { this.constants = constants; importantDisclosurePanel = new DisclosurePanel(constants.importantInformations()); importantDisclosurePanel.setContent(createMemberPanel); importantDisclosurePanel.setOpen(true); importantDisclosurePanel.setStyleName("disclosurePanel"); bankAccountDisclosurePanel = new DisclosurePanel(constants.accountInformations()); bankAccountDisclosurePanel.setContent(bankAccountPanel); bankAccountDisclosurePanel.setOpen(true); bankAccountDisclosurePanel.setStyleName("disclosurePanel"); additionalDisclosurePanel = new DisclosurePanel(constants.additionalInformations()); additionalDisclosurePanel.setContent(createMemberPanel2); additionalDisclosurePanel.setStyleName("AdditionalisclosurePanel"); header = new Label("Mitglied anlegen"); header.setStyleName("formHeader2"); wrapper.add(header); wrapper.add(importantDisclosurePanel); wrapper.add(bankAccountDisclosurePanel); wrapper.add(additionalDisclosurePanel); wrapper.addStyleName("memberCreateWrapper"); initWidget(wrapper); sendButton.setText(constants.send()); pictureUploadPanel = new HorizontalPanel(); pictureUploadLabel = new Label(constants.picture() + ": "); defaultUploader = new MultiUploader(FileInputType.LABEL); pictureUploadPanel.add(pictureUploadLabel); pictureUploadPanel.add(defaultUploader); image = new PreloadedImage(); image.setWidth("75px"); wrapper.add(sendButton); HorizontalPanel forenameInputPanel = new HorizontalPanel(); forenameLabel = new Label(constants.forename() + ":* "); forenameTextBox = new TextBox(); forenameInputPanel.add(forenameLabel); forenameInputPanel.add(forenameTextBox); validator = new DefaultValidationProcessor(); HorizontalPanel surnameInputPanel = new HorizontalPanel(); surnameLabel = new Label(constants.surname() + ":* "); surnameTextBox = new TextBox(); surnameInputPanel.add(surnameLabel); surnameInputPanel.add(surnameTextBox); barcodeInputPanel = new HorizontalPanel(); barcodeLabel = new Label(constants.barcode() + ":* "); barcodeTextBox = new TextBox(); barcodeInputPanel.add(barcodeLabel); barcodeInputPanel.add(barcodeTextBox); HorizontalPanel streetInputPanel = new HorizontalPanel(); streetLabel = new Label(constants.street() + ":* "); streetTextBox = new TextBox(); streetInputPanel.add(streetLabel); streetInputPanel.add(streetTextBox); HorizontalPanel zipcodeInputPanel = new HorizontalPanel(); zipcodeLabel = new Label(constants.zipcode() + ":* "); zipcodeTextBox = new TextBox(); zipcodeInputPanel.add(zipcodeLabel); zipcodeInputPanel.add(zipcodeTextBox); HorizontalPanel cityInputPanel = new HorizontalPanel(); cityLabel = new Label(constants.city() + ":* "); cityTextBox = new TextBox(); cityInputPanel.add(cityLabel); cityInputPanel.add(cityTextBox); HorizontalPanel phoneInputPanel = new HorizontalPanel(); phoneLabel = new Label(constants.phone() + ":* "); phoneTextBox = new TextBox(); phoneInputPanel.add(phoneLabel); phoneInputPanel.add(phoneTextBox); HorizontalPanel mobilephoneInputPanel = new HorizontalPanel(); mobilephoneLabel = new Label(constants.mobilephone() + ": "); mobilephoneTextBox = new TextBox(); mobilephoneInputPanel.add(mobilephoneLabel); mobilephoneInputPanel.add(mobilephoneTextBox); HorizontalPanel accountOwnerForenameInputPanel = new HorizontalPanel(); VerticalPanel likeAbovePanel = new VerticalPanel(); likeAbovePanel.setStyleName("likeAbovePanel"); accountOwnerForenameLabel = new Label(constants.forename() + ":* "); accountOwnerForenameTextBox = new TextBox(); likeAbove = new CheckBox(constants.likeAbove()); accountOwnerForenameInputPanel.add(accountOwnerForenameLabel); accountOwnerForenameInputPanel.add(likeAbovePanel); likeAbovePanel.add(accountOwnerForenameTextBox); likeAbovePanel.add(likeAbove); HorizontalPanel accountOwnerSurnameInputPanel = new HorizontalPanel(); VerticalPanel likeAbovePanel2 = new VerticalPanel(); likeAbovePanel2.setStyleName("likeAbovePanel"); accountOwnerSurnameLabel = new Label(constants.surname() + ":* "); accountOwnerSurnameTextBox = new TextBox(); likeAbove2 = new CheckBox(constants.likeAbove()); accountOwnerSurnameInputPanel.add(accountOwnerSurnameLabel); accountOwnerSurnameInputPanel.add(likeAbovePanel2); likeAbovePanel2.add(accountOwnerSurnameTextBox); likeAbovePanel2.add(likeAbove2); HorizontalPanel accountNumberInputPanel = new HorizontalPanel(); accountNumberLabel = new Label(constants.accountNumber() + ":* "); accountNumberTextBox = new TextBox(); accountNumberInputPanel.add(accountNumberLabel); accountNumberInputPanel.add(accountNumberTextBox); HorizontalPanel bankNumberInputPanel = new HorizontalPanel(); bankNumberLabel = new Label(constants.bankNumber() + ":* "); bankNumberTextBox = new TextBox(); bankNumberInputPanel.add(bankNumberLabel); bankNumberInputPanel.add(bankNumberTextBox); HorizontalPanel bankNameInputPanel = new HorizontalPanel(); bankNameLabel = new Label(constants.bankName() + ":* "); bankNameTextBox = new TextBox(); bankNameInputPanel.add(bankNameLabel); bankNameInputPanel.add(bankNameTextBox); HorizontalPanel faxInputPanel = new HorizontalPanel(); faxLabel = new Label(constants.fax() + ": "); faxTextBox = new TextBox(); faxInputPanel.add(faxLabel); faxInputPanel.add(faxTextBox); HorizontalPanel emailInputPanel = new HorizontalPanel(); emailLabel = new Label(constants.email() + ": "); emailTextBox = new TextBox(); emailInputPanel.add(emailLabel); emailInputPanel.add(emailTextBox); HorizontalPanel homepageInputPanel = new HorizontalPanel(); homepageLabel = new Label(constants.homepage() + ": "); homepageTextBox = new TextBox(); homepageInputPanel.add(homepageLabel); homepageInputPanel.add(homepageTextBox); HorizontalPanel birthInputPanel = new HorizontalPanel(); birthLabel = new Label(constants.birth() + ":* "); birthTextBox1 = new ListBox(); birthTextBox2 = new ListBox(); birthTextBox3 = new ListBox(); birthTextBox1.addStyleName("birthDayTextBox"); birthTextBox2.addStyleName("birthMonthTextBox"); birthTextBox3.addStyleName("birthYearTextBox"); birthTextBox1.addItem(constants.day()); for (Integer i = 1; i < 32; i++) { if (i < 10) { birthTextBox1.addItem("0" + i.toString() + "."); } else { birthTextBox1.addItem(i.toString() + "."); } } birthTextBox2.addItem(constants.month()); birthTextBox2.addItem(constants.january()); birthTextBox2.addItem(constants.february()); birthTextBox2.addItem(constants.march()); birthTextBox2.addItem(constants.april()); birthTextBox2.addItem(constants.may()); birthTextBox2.addItem(constants.june()); birthTextBox2.addItem(constants.july()); birthTextBox2.addItem(constants.august()); birthTextBox2.addItem(constants.september()); birthTextBox2.addItem(constants.october()); birthTextBox2.addItem(constants.november()); birthTextBox2.addItem(constants.december()); birthTextBox3.addItem(constants.year()); for (Integer i = 2008; i > 1960; i--) { birthTextBox3.addItem(i.toString()); } birthInputPanel.add(birthLabel); birthInputPanel.add(birthTextBox1); birthInputPanel.add(birthTextBox2); birthInputPanel.add(birthTextBox3); HorizontalPanel diseasesInputPanel = new HorizontalPanel(); diseasesLabel = new Label(constants.diseases() + ": "); diseasesTextBox = new TextArea(); diseasesInputPanel.add(diseasesLabel); diseasesInputPanel.add(diseasesTextBox); // TODO HorizontalPanel beltsizeInputPanel = new HorizontalPanel(); beltsizeLabel = new Label(constants.beltsize() + ":* "); beltsizeListBox = new ListBox(); beltsizeListBox.addItem("<auswählen>"); beltsizeListBox.addItem("200"); beltsizeListBox.addItem("220"); beltsizeListBox.addItem("240"); beltsizeListBox.addItem("260"); beltsizeListBox.addItem("280"); beltsizeListBox.addItem("300"); beltsizeListBox.setWidth("255px"); beltsizeInputPanel.add(beltsizeLabel); beltsizeInputPanel.add(beltsizeListBox); HorizontalPanel noteInputPanel = new HorizontalPanel(); noteLabel = new Label(constants.note() + ": "); noteTextBox = new TextArea(); noteInputPanel.add(noteLabel); noteInputPanel.add(noteTextBox); for (int i = 0; i < 15; i++) { courseList.add(new CourseSelectorWidget()); } createMemberPanel.add(forenameInputPanel); createMemberPanel.add(surnameInputPanel); createMemberPanel.add(barcodeInputPanel); createMemberPanel.add(streetInputPanel); createMemberPanel.add(zipcodeInputPanel); createMemberPanel.add(cityInputPanel); createMemberPanel.add(birthInputPanel); createMemberPanel.add(phoneInputPanel); createMemberPanel.add(mobilephoneInputPanel); bankAccountPanel.add(accountOwnerForenameInputPanel); bankAccountPanel.add(accountOwnerSurnameInputPanel); bankAccountPanel.add(accountNumberInputPanel); bankAccountPanel.add(bankNameInputPanel); bankAccountPanel.add(bankNumberInputPanel); createMemberPanel2.add(faxInputPanel); createMemberPanel2.add(emailInputPanel); createMemberPanel2.add(homepageInputPanel); createMemberPanel2.add(homepageInputPanel); createMemberPanel.add(beltsizeInputPanel); createMemberPanel2.add(diseasesInputPanel); createMemberPanel2.add(noteInputPanel); courseSelectorWrapper = new VerticalPanel(); createMemberPanel.add(courseSelectorWrapper); courseSelectorWrapper.add(courseList.get(0).getCourseSelector()); courseList.get(0).setCourseLabel(1); courseList.get(0).noDeleteButton(); newCourseSelectorLabel = new Label("Weiteren Kurs hinzufügen"); newCourseSelectorLabel.setStyleName("addNewCourseSelctorLabel"); courseSelectorWrapper.add(newCourseSelectorLabel); createMemberPanel.add(pictureUploadPanel); }