@Override public void setPlatform(Platform platform) { Image image = new Image(Utils.getPlatformIcon(platform)); image.setTitle(Utils.getPlatformText(platform)); image.getElement().getStyle().setVerticalAlign(VerticalAlign.MIDDLE); Label label = new Label(Utils.getPlatformText(platform)); targetPlatformPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); targetPlatformPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); targetPlatformPanel.add(image); targetPlatformPanel.setCellWidth(image, "32px"); targetPlatformPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); targetPlatformPanel.add(label); label.getElement().getStyle().setPaddingLeft(8, Unit.PX); }
public PainelPesquisarView() { hpPainelPesquisar = new HorizontalPanel(); hpPainelPesquisar.setStyleName("hpPainelPesquisar"); tbPesquisar = new TextBox(); tbPesquisar.setStyleName("tbPesquisar"); btnPesquisar = new Button(""); btnPesquisar.setStyleName("btnPesquisar"); hpPainelPesquisar.add(tbPesquisar); hpPainelPesquisar.add(btnPesquisar); hpPainelPesquisar.setCellWidth(tbPesquisar, "38%"); hpPainelLabelContatos = new HorizontalPanel(); hpPainelLabelContatos.setStyleName("hpPainelLabelContatos"); lbContatos = new Label("Contatos"); lbContatos.setStyleName("lbContatos"); hpPainelLabelContatos.add(lbContatos); hpPainelLabelContatos.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER); hpPainelLabelContatos.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE); vpPainelPesquisar = new VerticalPanel(); vpPainelPesquisar.setStyleName("vpPainelPesquisar"); vpPainelPesquisar.add(hpPainelPesquisar); vpPainelPesquisar.add(hpPainelLabelContatos); initWidget(vpPainelPesquisar); }
/** * Create an options panel that allows users to select a widget and reposition it. * * @return the new options panel */ private Widget createOptionsBar() { // Create a panel to move components around HorizontalPanel optionsBar = new HorizontalPanel(); optionsBar.setSpacing(5); optionsBar.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); // Add a title optionsBar.add(new HTML("<b>Animate Logos</b>")); // Add start button startButton = new Button("Start"); startButton.addClickListener( new ClickListener() { public void onClick(Widget sender) { animation.run(2000); } }); optionsBar.add(startButton); // Add cancel button cancelButton = new Button("Cancel"); cancelButton.addClickListener( new ClickListener() { public void onClick(Widget sender) { animation.cancel(); } }); optionsBar.add(cancelButton); // Return the options bar return optionsBar; }
public WeaponsView() { DecoratorPanel contentTableDecorator = new DecoratorPanel(); initWidget(contentTableDecorator); contentTableDecorator.setWidth("100%"); contentTableDecorator.setWidth("15em"); contentTable = new FlexTable(); contentTable.setWidth("100%"); contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListContainer"); contentTable.getCellFormatter().setWidth(0, 0, "100%"); contentTable.getFlexCellFormatter().setVerticalAlignment(0, 0, DockPanel.ALIGN_TOP); HorizontalPanel hPanel = new HorizontalPanel(); hPanel.setBorderWidth(0); hPanel.setSpacing(0); hPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT); addButton = new Button("增加"); hPanel.add(addButton); deleteButton = new Button("删除"); hPanel.add(deleteButton); contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListMenu"); contentTable.setWidget(0, 0, hPanel); contactsTable = new FlexTable(); contactsTable.setCellSpacing(0); contactsTable.setCellPadding(0); contactsTable.setWidth("100%"); contactsTable.addStyleName("contacts-ListContents"); contactsTable.getColumnFormatter().setWidth(0, "15px"); contentTable.setWidget(1, 0, contactsTable); contentTableDecorator.add(contentTable); }
/** * Creates an empty dialog box specifying its "auto-hide" property. It should not be shown until * its child widget has been added using {@link #add(Widget)}. * * @param autoHide <code>true</code> if the dialog should be automatically hidden when the user * clicks outside of it * @param modal <code>true</code> if keyboard and mouse events for widgets not contained by the * dialog should be ignored */ public MyDialogBox(boolean autoHide, boolean modal) { super(autoHide, modal); dock = new HorizontalPanel(); dock.add(caption); HorizontalPanel hp = new HorizontalPanel(); hp.setSpacing(0); dock.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT); listener = new DialogListener(this); minimiseBtn.addClickListener(listener); maximiseBtn.addClickListener(listener); closeBtn.addClickListener(listener); hp.add(minimiseBtn); hp.add(maximiseBtn); hp.add(closeBtn); dock.add(hp); panel.add(dock); panel.setHeight("100%"); panel.setSpacing(0); sp = new ScrollPanel(); panel.add(sp); super.setWidget(panel); setStyleName("gwt-DialogBox"); dock.setStyleName("Caption"); caption.addMouseListener(this); }
/** * Skeleton of toolbar creation * * @return */ protected Widget buildStepBar() { HorizontalPanel uiToolbar = new HorizontalPanel(); uiToolbar.setStylePrimaryName("blockSteps"); uiToolbar.setWidth("100%"); uiToolbar.setHorizontalAlignment(ALIGN_RIGHT); uiToolbar.setVerticalAlignment(ALIGN_MIDDLE); // Build stepBar int nbSteps = controller.getNbViews(); Grid table = new Grid(1, nbSteps); table.setCellSpacing(3); Image currentImg = null; for (int i = 0; i < nbSteps; i++) { if (i == stepNumber) { currentImg = new Image("img/red_round_button.jpg"); } else if (i < stepNumber) { currentImg = new Image("img/green_round_tick.jpg"); } else { currentImg = new Image("img/green_round_button.jpg"); } table.setWidget(0, i, currentImg); } uiToolbar.add(table); return uiToolbar; }
BarcodeDialogBox(String projectName, String appInstallUrl) { super(false, true); setStylePrimaryName("ode-DialogBox"); setText(MESSAGES.barcodeTitle(projectName)); ClickHandler buttonHandler = new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); } }; Button cancelButton = new Button(MESSAGES.cancelButton()); cancelButton.addClickHandler(buttonHandler); Button okButton = new Button(MESSAGES.okButton()); okButton.addClickHandler(buttonHandler); Image barcodeImage = new Image(appInstallUrl); HorizontalPanel buttonPanel = new HorizontalPanel(); buttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER); HTML warningLabel = new HTML( MESSAGES.barcodeWarning( Ode.getInstance().getUser().getUserEmail(), "<a href=\"" + Ode.APP_INVENTOR_DOCS_URL + "/learn/userfaq.html\" target=\"_blank\">", "</a>")); warningLabel.setWordWrap(true); warningLabel.setWidth("200px"); // set width to get the text to wrap HorizontalPanel warningPanel = new HorizontalPanel(); warningPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT); warningPanel.add(warningLabel); // The cancel button is removed from the panel since it has no meaning in this // context. But the logic is still here in case we want to restore it, and as // an example of how to code this stuff in GWT. // buttonPanel.add(cancelButton); buttonPanel.add(okButton); buttonPanel.setSize("100%", "24px"); VerticalPanel contentPanel = new VerticalPanel(); contentPanel.add(barcodeImage); contentPanel.add(buttonPanel); contentPanel.add(warningPanel); // contentPanel.setSize("320px", "100%"); add(contentPanel); }
/** * Skeleton of toolbar creation * * @return */ protected Widget buildToolbar() { HorizontalPanel uiToolbar = new HorizontalPanel(); uiToolbar.setStylePrimaryName("blockAction"); uiToolbar.setWidth("100%"); uiToolbar.setHorizontalAlignment(ALIGN_RIGHT); uiToolbar.setVerticalAlignment(ALIGN_MIDDLE); uiToolbar.setSpacing(10); uiToolbar.setHeight("60px"); uiToolbar.add(buildStepToolbar()); return uiToolbar; }
@Override public void setFeatures(List<Feature> features) { for (int i = 0; i < features.size(); i++) { Feature feature = features.get(i); Image image = new Image(Utils.getFeatureIcon(feature)); image.setTitle(Utils.getFeatureText(feature)); image.getElement().getStyle().setVerticalAlign(VerticalAlign.MIDDLE); Label label = new Label(Utils.getFeatureText(feature)); featuresPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); featuresPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); featuresPanel.add(image); featuresPanel.setCellWidth(image, "32px"); featuresPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); featuresPanel.add(label); if (i < features.size() - 1) { label.getElement().getStyle().setPaddingRight(10, Unit.PX); } label.getElement().getStyle().setPaddingLeft(8, Unit.PX); } }
// Invoked by the constructor of the super class protected void initPanel() { if (!initialized) { this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); hourRadio = new RadioButtonTimeFrame( RADIO_TIME_FRAME_GROUP, "Last ¤ hours", DateTimeUtils.getMillisPerHour(), 1); dayRadio = new RadioButtonTimeFrame( RADIO_TIME_FRAME_GROUP, "Last ¤ days", DateTimeUtils.getMillisPerDay(), 1); weekRadio = new RadioButtonTimeFrame( RADIO_TIME_FRAME_GROUP, "Last ¤ weeks", DateTimeUtils.getMillisPerWeek(), 1); monthRadio = new RadioButtonTimeFrame( RADIO_TIME_FRAME_GROUP, "Last ¤ months", DateTimeUtils.getMillisPerMonth(), 1); noValue = new RadioButtonTimeFrame(RADIO_TIME_FRAME_GROUP, "noValue"); noValue.setChecked(true); noValue.setVisible(false); fromDateTextBox = new TextBox(); toDateTextBox = new TextBox(); fromDateLabel = new Label("Fra dato: "); toDateLabel = new Label("Til dato: "); HorizontalPanel fromToPanel = new HorizontalPanel(); fromToPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); fromToPanel.add(fromDateLabel); fromToPanel.add(fromDateTextBox); fromToPanel.add(toDateLabel); fromToPanel.add(toDateTextBox); // Adding these input widgets, will also // attach a click listener or change listener, since // this method is overridden in the parent class. this.add(hourRadio); this.add(dayRadio); this.add(weekRadio); this.add(monthRadio); this.add(noValue); this.add(fromToPanel); initialized = true; } }
@Inject public LOBSelectionPanel300x250(LineOfBusinessConfiguration config) { super(config); panelMaker = new LineOfBusinessPanels300x250(); AbsolutePanel panel = new AbsolutePanel(); try { panel.add(getSelector(), 165, 0); } catch (Exception e) { System.err.println("You must implement a Selector for this size!"); } panel.setPixelSize(260, 220); if (config.getLinesOfBusiness().size() <= 0) { System.err.println("Cant build a search form with no LOBs!"); } else { Iterator<LOBEnum> lobIter = config.getLinesOfBusiness().iterator(); while (lobIter.hasNext()) { try { LOB lob = lobIter.next().getLineOfBusinessPanel(panelMaker); addLOBPanel(lob); if (!config.getDefaultLOB().equals(lob.getEnumName())) { lob.setVisible(false); } panel.insert(lob, 3, 60, 0); } catch (Exception e) { System.err.println( "Check that you are instantiating the right size of LOBSelection Panel for your Widget size."); } } } SearchFormSearchButton searchButton = new SearchFormSearchButton(config, 92, 33); HorizontalPanel searchPanel = new HorizontalPanel(); searchPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); searchPanel.setWidth("258px"); getSearchFocusPanel().add(searchButton); searchPanel.add(getSearchFocusPanel()); panel.add(searchPanel, 0, 178); initWidget(panel); }
/** Initializes and assembles all commands into buttons in the toolbar. */ public Toolbar() { buttonMap = new HashMap<String, TextButton>(); dropDownButtonMap = new HashMap<String, DropDownButton>(); leftButtons = new HorizontalPanel(); leftButtons.setSpacing(4); rightButtons = new HorizontalPanel(); rightButtons.setSpacing(4); rightButtons.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT); HorizontalPanel toolbar = new HorizontalPanel(); toolbar.add(leftButtons); // this nesting keeps buttons left aligned toolbar.add(rightButtons); toolbar.setCellHorizontalAlignment(rightButtons, HorizontalPanel.ALIGN_RIGHT); toolbar.setWidth("100%"); toolbar.setStylePrimaryName("ya-Toolbar"); initWidget(toolbar); }
@Override public Widget asWidget() { if (widget == null) { widget = new HorizontalPanel(); int barHeight = 210; int topPadding = 50; int barWidth = 250; int right = 5; widget.getElement().getStyle().setPosition(Position.FIXED); widget.getElement().getStyle().setRight(right, Unit.PX); widget.getElement().getStyle().setTop(topPadding, Unit.PX); widget.getElement().getStyle().setHeight(barHeight, Unit.PX); widget.getElement().getStyle().setWidth(barWidth, Unit.PX); widget.getElement().getStyle().setVerticalAlign(VerticalAlign.MIDDLE); widget.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); widget.setVisible(false); initializeStatusPanel(); widget.add(statusPanel); } return widget; }
/** Creates the gui. */ private void createGUI() { if (editlogin == null) { setText(M.users.menuAddUser()); } else { setText(M.users.titleEditUser()); } setAnimationEnabled(true); setGlassEnabled(true); String addText = M.users.btnAdd(); if (editlogin != null) { addText = M.users.btnUpdate(); } Button btnAdd = new Button(addText); btnAdd.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { if (editlogin == null) { createUser(); } else { updateUser(); } } }); Button btnCancel = new Button(M.users.btnCancel()); btnCancel.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { EditUserDialog.this.hide(); } }); VerticalPanel vpanel = new VerticalPanel(); // vpanel.setWidth("400px"); FlexTable layout = new FlexTable(); layout.setCellSpacing(6); layout.setHTML(0, 0, M.users.fullName()); name = new TextBox(); name.setText(user.getUsername()); layout.setWidget(0, 1, name); layout.setHTML(1, 0, M.users.login()); login = new TextBox(); login.setText(user.getLogin()); if (editlogin != null) { login.setReadOnly(true); } layout.setWidget(1, 1, login); layout.setHTML(2, 0, M.users.password()); password = new TextBox(); password.setText(""); layout.setWidget(2, 1, password); layout.setHTML(3, 0, M.users.isactive()); isactive = new CheckBox(); isactive.setValue(user.isActive()); layout.setWidget(3, 1, isactive); layout.setHTML(4, 0, M.users.access()); UserRole role = user.getUserrole(); FlexTable access = new FlexTable(); access.setCellSpacing(6); access.setHTML(0, 0, M.users.isadmin()); isadmin = new CheckBox(); isadmin.setValue(role.isAdmin()); access.setWidget(0, 1, isadmin); access.setHTML(1, 0, M.users.isdocuments()); isdocuments = new CheckBox(); isdocuments.setValue(role.isDocuments()); access.setWidget(1, 1, isdocuments); access.setHTML(2, 0, M.users.isfinances()); isfinances = new CheckBox(); isfinances.setValue(role.isFinances()); access.setWidget(2, 1, isfinances); access.setHTML(3, 0, M.users.ismanager()); ismanager = new CheckBox(); ismanager.setValue(role.isManager()); access.setWidget(3, 1, ismanager); layout.setWidget(4, 1, access); vpanel.add(layout); HorizontalPanel buttons = new HorizontalPanel(); buttons.setWidth("100%"); buttons.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); HorizontalPanel bcontainer = new HorizontalPanel(); bcontainer.add(btnAdd); bcontainer.add(btnCancel); bcontainer.setSpacing(5); buttons.add(bcontainer); vpanel.add(buttons); setWidget(vpanel); /* * setPopupPosition( (Ballance_autosauler_net.mainpanel.getOffsetWidth() * / 2 - 200), 100); */ show(); }
public SeleccionCatalogoPopupPanel( CatalogoClient catalogo, Label catalogLabel, Label openCatalogLabel, EditorActivityPopupPanel yo) { super(true); Catalogo = catalogo; LPrivate = catalogLabel; LPublic = openCatalogLabel; Father = yo; GeneralPanel = new AbsolutePanel(); setAnimationEnabled(true); HorizontalPanel PanelActivityH = new HorizontalPanel(); PanelActivity = new VerticalPanel(); EditorZone = new SimplePanel(); EditorZone.setHeight(Constants.TAMANO_PANEL_EDICION); EditorZone.setVisible(false); PanelActivity.add(EditorZone); PanelActivity.add(PanelActivityH); PanelActivityH.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); PanelActivityH.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); PanelActivityH.setSpacing(4); GeneralPanel.add(PanelActivity, 0, 0); setWidget(GeneralPanel); GeneralPanel.setSize( Window.getClientWidth() + Constants.PX, Window.getClientHeight() + Constants.PX); // PanelActivityH.setSize("100%", "100%"); // PanelActivity.setSize("100%", "100%"); PanelActivity.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); PanelActivity.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); SelectTeacherCatalogButton = new Button(SeleccionCatalogoPopupPanel.BOTTON_TEACHER_CATALOG); SelectTeacherCatalogButton.setSize("100%", "100%"); SelectTeacherCatalogButton.addMouseDownHandler( new MouseDownHandler() { public void onMouseDown(MouseDownEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterPush"); } }); SelectTeacherCatalogButton.addMouseOutHandler( new MouseOutHandler() { public void onMouseOut(MouseOutEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenter"); } }); SelectTeacherCatalogButton.addMouseOverHandler( new MouseOverHandler() { public void onMouseOver(MouseOverEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterOver"); } }); SelectTeacherCatalogButton.setStyleName("gwt-ButtonCenter"); SelectTeacherCatalogButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { LPrivate.setText("Teacher Catalog :" + Catalogo.getCatalogName()); LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto(ConstantsInformation.LOADING); bookReaderServiceHolder.loadCatalogById( Catalogo.getId(), new AsyncCallback<CatalogoClient>() { @Override public void onSuccess(CatalogoClient result) { LoadingPanel.getInstance().hide(); Father.setSelectedCatalog(result); Father.setPanel_Selecion_Default_Visibility(true); hide(); } @Override public void onFailure(Throwable caught) { LoadingPanel.getInstance().hide(); Window.alert(ConstantsError.ERROR_LOADING_CATALOG); hide(); } }); } }); PanelActivityH.add(SelectTeacherCatalogButton); SelectOpenCatalogButton = new Button(SeleccionCatalogoPopupPanel.BOTTON_OPEN_CATALOG); SelectOpenCatalogButton.setSize("100%", "100%"); SelectOpenCatalogButton.addMouseDownHandler( new MouseDownHandler() { public void onMouseDown(MouseDownEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterPush"); } }); SelectOpenCatalogButton.addMouseOutHandler( new MouseOutHandler() { public void onMouseOut(MouseOutEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenter"); } }); SelectOpenCatalogButton.addMouseOverHandler( new MouseOverHandler() { public void onMouseOver(MouseOverEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterOver"); } }); SelectOpenCatalogButton.setStyleName("gwt-ButtonCenter"); SelectOpenCatalogButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { LPublic.setText("Open Catalog :" + Catalogo.getCatalogName()); Father.setSelectedCatalogPublic(Catalogo); hide(); } }); PanelActivityH.add(SelectOpenCatalogButton); PanelEdicion = new AbsolutePanel(); }
public ResizableDialogBox( final String headerText, String okText, String cancelText, final Widget content, final boolean modal) { this.content = content; boundaryPanel = new AbsolutePanel() { public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (!modal && event.getTypeInt() == Event.ONCLICK) { hide(); } } }; boundaryPanel.setSize( "100%", Window.getClientHeight() + Window.getScrollTop() + "px"); // $NON-NLS-1$ //$NON-NLS-2$ boundaryPanel.setVisible(true); RootPanel.get().add(boundaryPanel, 0, 0); boundaryPanel.sinkEvents(Event.ONCLICK); boundaryPanel .getElement() .getStyle() .setProperty("cursor", "wait"); // $NON-NLS-1$ //$NON-NLS-2$ // initialize window controller which provides drag and resize windows WindowController windowController = new WindowController(boundaryPanel); // content wrapper Button ok = new Button(okText); ok.setStylePrimaryName("pentaho-button"); ok.getElement().setAttribute("id", "okButton"); // $NON-NLS-1$ //$NON-NLS-2$ ok.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { if (validatorCallback == null || (validatorCallback != null && validatorCallback.validate())) { try { if (callback != null) { callback.okPressed(); } } catch (Throwable dontCare) { } hide(); } } }); final HorizontalPanel dialogButtonPanel = new HorizontalPanel(); dialogButtonPanel.setSpacing(2); dialogButtonPanel.add(ok); if (cancelText != null) { Button cancel = new Button(cancelText); cancel.setStylePrimaryName("pentaho-button"); cancel.getElement().setAttribute("id", "cancelButton"); // $NON-NLS-1$ //$NON-NLS-2$ cancel.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { try { if (callback != null) { callback.cancelPressed(); } } catch (Throwable dontCare) { } hide(); } }); dialogButtonPanel.add(cancel); } HorizontalPanel dialogButtonPanelWrapper = new HorizontalPanel(); if (okText != null && cancelText != null) { dialogButtonPanelWrapper.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); } else { dialogButtonPanelWrapper.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); } dialogButtonPanelWrapper.setStyleName("dialogButtonPanel"); // $NON-NLS-1$ dialogButtonPanelWrapper.setWidth("100%"); // $NON-NLS-1$ dialogButtonPanelWrapper.add(dialogButtonPanel); Grid dialogContent = new Grid(2, 1); dialogContent.setCellPadding(0); dialogContent.setCellSpacing(0); dialogContent.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP); dialogContent .getCellFormatter() .setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_LEFT); // add content dialogContent.setWidget(0, 0, content); dialogContent.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP); // add button panel dialogContent.setWidget(1, 0, dialogButtonPanelWrapper); dialogContent.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_BOTTOM); dialogContent.setWidth("100%"); // $NON-NLS-1$ dialogContent.setHeight("100%"); // $NON-NLS-1$ windowPanel = new WindowPanel(windowController, headerText, dialogContent, true); }
private Widget makeWordSearch() { // Make some radio buttons, all in one group. final RadioButton standardRadio = new RadioButton("tipPretrage", "Standardna riječ"); RadioButton dialectRadio = new RadioButton("tipPretrage", "Dijalektna riječ"); dialectRadio.setValue(true); FlowPanel form = new FlowPanel(); form.setStyleName("form-search"); FlowPanel innerForm = new FlowPanel(); innerForm.setStyleName("inner-form-search"); HorizontalPanel hp = new HorizontalPanel(); Label lblRijec = new Label("Riječ:"); lblRijec.setStyleName("form-label"); hp.add(lblRijec); rijec = new TextBox(); rijec.setStyleName("search-query"); hp.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE); hp.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER); hp.add(rijec); innerForm.add(hp); HorizontalPanel hpMisto = new HorizontalPanel(); Label lblMisto = new Label("Lokacija:"); lblMisto.setStyleName("form-label"); hpMisto.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE); hpMisto.add(lblMisto); misto = new TextBox(); misto.setStyleName("search-query"); hpMisto.add(misto); innerForm.add(hpMisto); form.add(innerForm); FlowPanel panel = new FlowPanel(); panel.setStyleName("form-search"); panel.add(standardRadio); panel.add(dialectRadio); panel.add(form); FlowPanel op = new FlowPanel(); op.setStyleName("kontrole"); Button searchBtn = new Button( "Traži", new ClickHandler() { @Override public void onClick(ClickEvent event) { bartInstance.table.setRowCount(0); if (standardRadio.getValue()) { bartInstance.searchWord(rijec.getText(), 0, misto.getText()); } else { bartInstance.searchDialectWord(rijec.getText(), 0, misto.getText()); } hide(); } }); op.add(searchBtn); Button closeBtn = new Button( "Odustani", new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); } }); op.add(closeBtn); searchBtn.setStyleName("btn btn-primary btn-large padded-right"); closeBtn.setStyleName("btn btn-primary btn-large"); panel.add(op); return panel; }
public void onModuleLoad() { TabLayoutPanel tabLayoutPanel = new TabLayoutPanel(2.5, Unit.EM); final SplitLayoutPanel splitLayoutPanel = new SplitLayoutPanel(); final HorizontalPanel hPanel = new HorizontalPanel(); hPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); hPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); hPanel.setSpacing(10); hPanel.add(new HTML("HQMF Viewer.")); Button processHQMFButton = new Button("Process HQMF."); processHQMFButton.addStyleName("sendButton"); hPanel.add(processHQMFButton); hPanel.add(new HTML("\t(For some reason, works only in IE right now.)")); final VerticalPanel summaryVerticalPanel = new VerticalPanel(); summaryVerticalPanel.setSpacing(3); processHQMFButton.setStyleName("summaryVPanel"); summaryVerticalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); summaryVerticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); splitLayoutPanel.addNorth(hPanel, 50); splitLayoutPanel.addWest(summaryVerticalPanel, 0); final RichTextArea textArea = new RichTextArea(); textArea.setTitle("Paste your HQMF XML here."); textArea.setText("Paste your HQMF XML here."); textArea.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { if (textArea.getText().length() < 30 && textArea.getText().equals("Paste your HQMF XML here.")) { textArea.setText(""); } } }); textArea.addStyleName("boxsizingBorder"); textArea.setWidth("100%"); textArea.setHeight("100%"); processHQMFButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { processHQMF(textArea, splitLayoutPanel, summaryVerticalPanel); splitLayoutPanel.remove(hPanel); splitLayoutPanel.setWidgetSize(summaryVerticalPanel, 200); splitLayoutPanel.setWidgetToggleDisplayAllowed(summaryVerticalPanel, true); } }); splitLayoutPanel.add(textArea); MySplitLayoutPanel mySplitPanel = new MySplitLayoutPanel(); final VerticalPanel testVerticalPanel = new VerticalPanel(); testVerticalPanel.setSpacing(3); testVerticalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); testVerticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); // final RichTextArea testtextArea = getSmartTextArea(); // final AceEditor testtextArea = getAceEditor(); AceEditor aceTxtArea = new AceEditor(); aceTxtArea.setWidth("100%"); aceTxtArea.setHeight("100%"); mySplitPanel.addEast(testVerticalPanel, 0); mySplitPanel.add(aceTxtArea); // mySplitPanel.add(testtextArea); aceTxtArea.startEditor(); setAceEditorProperties(aceTxtArea); mySplitPanel.setWidgetToggleDisplayAllowed(testVerticalPanel, true); tabLayoutPanel.add(mySplitPanel, "test CQL Editor."); tabLayoutPanel.add(splitLayoutPanel, "HQMF Viewer"); RootLayoutPanel.get().add(tabLayoutPanel); }
/** * Creates a new widget. This class needs access to certain fields and methods on the application * enclosing it. * * @param parent the host application */ public RichTextWidget(final GWTNote parent) { super(); VerticalPanel top = new VerticalPanel(); top.setWidth("100%"); HorizontalPanel header = new HorizontalPanel(); top.add(header); header.setWidth("100%"); header.add(new Label("GWT GearsNote")); header.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); status = new Label("Ready"); header.add(status); this.bodyWidget = new RichTextArea(); bodyWidget.addKeyboardListener( new KeyboardListenerAdapter() { @Override public void onKeyPress(Widget sender, char keyCode, int modifiers) { String newText = bodyWidget.getText(); if (((newText == null) && (curText != null)) || ((newText != null) && !newText.equals(curText))) { curText = newText; } } }); HorizontalPanel controls = new HorizontalPanel(); RichTextToolbar tb = new RichTextToolbar(this.bodyWidget); name = new TextBox(); name.setText("default"); name.setEnabled(false); nameEdit = new PushButton("Edit"); nameEdit.addClickListener( new ClickListener() { public void onClick(Widget sender) { String curName = name.getText(); boolean doNotify = !oldName.equals(curName); if (!nameEditable) { // if becoming editable, store off current value oldName = curName; } if (nameEditable && (curName == null || "".equals(curName))) { // if becoming un-editable, check to make sure it's valid Window.alert("The note name cannot be blank. Please try again."); nameEdit.setText(oldName); return; } // if all else is good, just flip the state nameEditable = !nameEditable; name.setEnabled(nameEditable); nameEdit.getUpFace().setText((nameEditable ? "Confirm" : "Edit")); if (doNotify) { notifyNameListeners(); } } }); nameEdit.addStyleName("edit-button"); options = new ListBox(); controls.add(tb); options.addItem("default"); options.setSelectedIndex(0); options.addChangeListener( new ChangeListener() { public void onChange(Widget sender) { String newName = options.getItemText(options.getSelectedIndex()); name.setText(newName); notifyNameListeners(); } }); HorizontalPanel tmp = new HorizontalPanel(); tmp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); tmp.add(new Label("Note name:")); tmp.add(name); tmp.add(nameEdit); tmp.add(options); controls.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); controls.setWidth("100%"); controls.add(tmp); top.add(controls); top.add(bodyWidget); this.bodyWidget.setWidth("100%"); top.setCellHeight(bodyWidget, ((int) (Window.getClientHeight() * .75)) + "px"); this.bodyWidget.setHeight("100%"); initWidget(top); }
private void init() { setModal(true); setAnimationEnabled(true); ensureDebugId("cwDialogBox"); setText("New Recipe"); // Create a table to layout the content VerticalPanel dialogContents = new VerticalPanel(); setWidget(dialogContents); HorizontalPanel namePanel = new HorizontalPanel(); namePanel.setSpacing(6); namePanel.add(new Label("Name:")); nameTextBox = new TextBox(); nameTextBox.setWidth("600px"); namePanel.add(nameTextBox); HorizontalPanel categoriesPanel = new HorizontalPanel(); categoriesPanel.setSpacing(6); categoriesPanel.add(new Label("Category")); category.addItem("Fish"); category.addItem("Meat"); category.addItem("Poultry"); categoriesPanel.add(category); categoriesPanel.add(new Label("Cuisine")); cuisine.addItem("American"); cuisine.addItem("Mexican"); cuisine.addItem("Italian"); categoriesPanel.add(cuisine); categoriesPanel.add(new Label("Occasion")); occasion.addItem("Easter"); occasion.addItem("Summer"); occasion.addItem("Thanksgiving"); categoriesPanel.add(occasion); categoriesPanel.add(new Label("Serves")); serves.addItem("1"); serves.addItem("4"); serves.addItem("12"); serves.setItemSelected(1, true); categoriesPanel.add(serves); ingredients = new TextArea(); ingredients.setTitle("Ingredients"); ingredients.setHeight("200px"); ingredients.setWidth("600px"); Label ingredientsLabel = new Label("Ingredients"); directions = new TextArea(); directions.setTitle("Directions"); directions.setHeight("200px"); directions.setWidth("600px"); Label directionsLabel = new Label("Directions"); FlexTable grid = new FlexTable(); grid.setWidget(0, 0, ingredientsLabel); grid.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP); grid.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP); grid.setWidget(0, 1, ingredients); dialogContents.add(namePanel); grid.setWidget(1, 0, directionsLabel); grid.setWidget(1, 1, directions); dialogContents.setCellHeight(namePanel, "50px"); dialogContents.add(categoriesPanel); dialogContents.setCellHeight(namePanel, "50px"); dialogContents.add(grid); // Add a close button at the bottom of the dialog Button closeButton = new Button( "Close", new ClickHandler() { public void onClick(ClickEvent event) { hide(); } }); Button createButton = new Button( "Create Recipe", new ClickHandler() { public void onClick(ClickEvent event) { GWT.log("Creating Recipe: " + nameTextBox.getText(), null); addRecipe( new RecipeTO( nameTextBox.getText(), category.getValue(category.getSelectedIndex()), cuisine.getValue(cuisine.getSelectedIndex()), occasion.getValue(occasion.getSelectedIndex()), serves.getValue(serves.getSelectedIndex()), ingredients.getText(), directions.getText())); hide(); } }); Button saveButton = new Button( "Save Recipe", new ClickHandler() { public void onClick(ClickEvent event) { GWT.log("Updating Recipe: " + nameTextBox.getText(), null); updateRecipe( new RecipeTO( nameTextBox.getText(), category.getValue(category.getSelectedIndex()), cuisine.getValue(cuisine.getSelectedIndex()), occasion.getValue(occasion.getSelectedIndex()), serves.getValue(serves.getSelectedIndex()), ingredients.getText(), directions.getText())); hide(); mainView.loadRecipes(); RootPanel.get("stockList").remove(0); RootPanel.get("stockList").add(mainView); History.newItem("hoho"); } }); HorizontalPanel buttonPanel = new HorizontalPanel(); buttonPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); // Display update or create button if recipe exists and is being edited if (recipeExists) { buttonPanel.add(saveButton); } else { buttonPanel.add(createButton); } buttonPanel.add(closeButton); dialogContents.add(buttonPanel); // Return the dialog box }
private DisclosurePanel createCommentPostPanel() { DisclosurePanel postCommentDisclosurePanel = new DisclosurePanel("Post Comment"); postCommentDisclosurePanel.setWidth("100%"); postCommentDisclosurePanel.setOpen(true); VerticalPanel postCommentPanel = new VerticalPanel(); postCommentPanel.setWidth("100%"); // create text area for comment final TextArea commentTextArea = new TextArea(); commentTextArea.setVisibleLines(3); commentTextArea.setWidth("500px"); // create textfield for email address (if not logged in) final TextBox emailTextField = new TextBox(); emailTextField.setVisibleLength(60); // create button panel HorizontalPanel buttonPanelWrapper = new HorizontalPanel(); buttonPanelWrapper.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); buttonPanelWrapper.setWidth("500px"); HorizontalPanel buttonPanel = new HorizontalPanel(); // create buttons final Button submitButton = new Button("Submit"); submitButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { String commentStr = commentTextArea.getText(); if (commentStr == null || "".equals(commentStr.trim())) { return; } Comment comment = new Comment(); comment.setGlobalRead(true); comment.setOwner(permissibleObject.getOwner()); comment.setAuthor(AuthenticationHandler.getInstance().getUser()); comment.setComment(commentStr); comment.setParent(permissibleObject); comment.setEmail(emailTextField.getText()); submitButton.setEnabled(false); submitComment(comment); } }); final Button clearButton = new Button("Clear"); clearButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { commentTextArea.setText(""); submitButton.setEnabled(true); } }); // add buttons buttonPanel.add(clearButton); buttonPanel.add(submitButton); buttonPanelWrapper.add(buttonPanel); // add panels if (AuthenticationHandler.getInstance().getUser() == null) { postCommentPanel.add(new Label("Email:")); postCommentPanel.add(emailTextField); } postCommentPanel.add(new Label("Comment:")); postCommentPanel.add(commentTextArea); postCommentPanel.add(buttonPanelWrapper); postCommentDisclosurePanel.setContent(postCommentPanel); return postCommentDisclosurePanel; }
public void onModuleLoad() { RootPanel RootTXOriginal = RootPanel.get(); RootPanel RootMenu = RootPanel.get("Menu"); RootTXOriginal.setSize("100%", "100%"); RootMenu.setStyleName("Root"); RootTXOriginal.setStyleName("Root"); YO = this; MenuBar menuBar = new MenuBar(false); RootMenu.add(menuBar); menuBar.setWidth("100%"); MenuItem menuItem = new MenuItem("GroupAdministration", false, (Command) null); menuItem.setHTML("Users Administrator"); menuItem.setEnabled(false); menuBar.addItem(menuItem); MenuItemSeparator separator = new MenuItemSeparator(); menuBar.addSeparator(separator); MenuItem mntmBack = new MenuItem( "Back", false, new Command() { public void execute() { Controlador.change2Administrator(); } }); menuBar.addItem(mntmBack); MenuItem AddLots = new MenuItem( "Masive add", false, new Command() { public void execute() { PanelAddMasibo PAM = new PanelAddMasibo(YO); PAM.setVisible(true); PAM.center(); } }); AddLots.setHTML("Masive add"); menuBar.addItem(AddLots); HorizontalSplitPanel horizontalSplitPanel = new HorizontalSplitPanel(); RootTXOriginal.add(horizontalSplitPanel, 0, 25); horizontalSplitPanel.setSize("100%", "100%"); VerticalPanel verticalPanel = new VerticalPanel(); horizontalSplitPanel.setLeftWidget(verticalPanel); verticalPanel.setSize("100%", ""); SimplePanel simplePanel = new SimplePanel(); verticalPanel.add(simplePanel); HorizontalPanel horizontalPanel = new HorizontalPanel(); horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); horizontalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); simplePanel.setWidget(horizontalPanel); horizontalPanel.setSize("100%", "100%"); textBox = new TextBox(); textBox.setVisibleLength(50); horizontalPanel.add(textBox); textBox.setWidth("90%"); Button btnNewButton = new Button("New button"); btnNewButton.setText("+"); btnNewButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenter"); } }); btnNewButton.addMouseDownHandler( new MouseDownHandler() { public void onMouseDown(MouseDownEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterPush"); } }); btnNewButton.addMouseOutHandler( new MouseOutHandler() { public void onMouseOut(MouseOutEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenter"); } }); btnNewButton.addMouseOverHandler( new MouseOverHandler() { public void onMouseOver(MouseOverEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterOver"); } }); btnNewButton.setStyleName("gwt-ButtonCenter"); btnNewButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { String S = ClearText(textBox.getText()); if (isValidEmail(S)) addText(S); else Window.alert(ErrorConstants.ERROR_NO_EMAIL_VALIDO + S); textBox.setText(""); } private native boolean isValidEmail(String email) /*-{ var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid return !reg1.test(email) && reg2.test(email); }-*/; }); horizontalPanel.add(btnNewButton); btnNewButton.setWidth("66px"); btnNewButton.setHTML("+"); verticalPanel_1 = new VerticalPanel(); verticalPanel.add(verticalPanel_1); verticalPanel_1.setWidth("100%"); SaveNewUsers = new Button("Save New Users"); SaveNewUsers.setVisible(false); SaveNewUsers.addClickHandler( new ClickHandler() { private AsyncCallback<Boolean> callback; public void onClick(ClickEvent event) { Pilallamada = new Stack<UserApp>(); int Elementos_a_salvar = verticalPanel_1.getWidgetCount(); for (int i = 0; i < Elementos_a_salvar; i++) { Widget Uno = verticalPanel_1.getWidget(i); Button Dos = (Button) Uno; String Nombre = Dos.getText(); Pilallamada.add(new UserApp(Nombre, Constants.STUDENT)); } if (!Pilallamada.isEmpty()) { callback = new AsyncCallback<Boolean>() { public void onFailure(Throwable caught) { Window.alert("The user could not be saved at this moment"); LoadingPanel.getInstance().hide(); } public void onSuccess(Boolean result) { LoadingPanel.getInstance().hide(); if (!result) Window.alert( "The user " + Pilallamada.peek().getEmail() + " already exists (if you do not see him/her it's because he may be administrator)"); Pilallamada.pop(); if (!Pilallamada.isEmpty()) { LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto("Saving..."); bookReaderServiceHolder.saveUser(Pilallamada.peek(), callback); } else { refreshPanel(); } } }; LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto("Saving..."); bookReaderServiceHolder.saveUser(Pilallamada.peek(), callback); } verticalPanel_1.clear(); SaveNewUsers.setVisible(false); } }); SaveNewUsers.addMouseDownHandler( new MouseDownHandler() { public void onMouseDown(MouseDownEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonBottonSavePush"); } }); SaveNewUsers.addMouseOutHandler( new MouseOutHandler() { public void onMouseOut(MouseOutEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonBottonSave"); } }); SaveNewUsers.addMouseOverHandler( new MouseOverHandler() { public void onMouseOver(MouseOverEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonBottonSaveOver"); } }); SaveNewUsers.setStyleName("gwt-ButtonBottonSave"); // SaveNewUsers.setStyleName("gwt-MenuItemMio"); verticalPanel.add(SaveNewUsers); SaveNewUsers.setSize("100%", "100%"); ScrollPanel scrollPanel = new ScrollPanel(); horizontalSplitPanel.setRightWidget(scrollPanel); scrollPanel.setSize("100%", "100%"); stackPanel_1 = new StackPanelMio(); scrollPanel.setWidget(stackPanel_1); // simplePanel.add(stackPanel_1); stackPanel_1.setBotonTipo(new BotonesStackPanelUsersMio("prototipo", new VerticalPanel())); stackPanel_1.setBotonClick( new ClickHandler() { public void onClick(ClickEvent event) { Long Nombre = ((BotonesStackPanelUsersMio) event.getSource()).getEntidad().getID(); LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto("Loading..."); bookReaderServiceHolder.loadUserById( Nombre, new AsyncCallback<UserApp>() { public void onFailure(Throwable caught) { LoadingPanel.getInstance().hide(); } public void onSuccess(UserApp result) { LoadingPanel.getInstance().hide(); if (result.getGroupIds() == null) result.setGroupIds(new ArrayList<Long>()); if (!result.getGroupIds().isEmpty()) if (Window.confirm( InformationConstants.ARE_YOU_SURE_DELETE_USER + result.getGroupIds().size() + InformationConstants.ARE_YOU_SURE_DELETE_USER2)) remove(result.getId()); else { } else { if (Window.confirm( "Are you sure you want to delete this user?, he is not a member of any group")) remove(result.getId()); } } }); } private void remove(Long userId) { LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto("Deleting..."); bookReaderServiceHolder.deleteUserApp( userId, new AsyncCallback<Integer>() { public void onFailure(Throwable caught) { LoadingPanel.getInstance().hide(); Window.alert("Sorry but the user could not be removed, try again later"); } public void onSuccess(Integer result) { LoadingPanel.getInstance().hide(); refreshPanel(); } }); } }); LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto("Loading..."); bookReaderServiceHolder.getUsersApp( new AsyncCallback<ArrayList<UserApp>>() { public void onFailure(Throwable caught) { LoadingPanel.getInstance().hide(); } public void onSuccess(ArrayList<UserApp> result) { LoadingPanel.getInstance().hide(); if (result.size() < 10) { for (UserApp User1 : result) { String Bienvenida; if ((User1.getName() != null) && (!User1.getName().isEmpty())) Bienvenida = User1.getName(); else Bienvenida = User1.getEmail(); EntidadUser E = new EntidadUser(Bienvenida, User1.getId()); stackPanel_1.addBotonLessTen(E); } } else { for (UserApp User1 : result) { String Bienvenida; if ((User1.getName() != null) && (!User1.getName().isEmpty())) Bienvenida = User1.getName(); else Bienvenida = User1.getEmail(); EntidadUser E = new EntidadUser(Bienvenida, User1.getId()); stackPanel_1.addBoton(E); } } stackPanel_1.setSize("100%", "100%"); stackPanel_1.ClearEmpty(); } }); stackPanel_1.setSize("100%", "100%"); }
/* * Creates the panel of audit fields. * * @return the panel of audit fields. */ public VerticalPanel createContent() { final VerticalPanel panel = new VerticalPanel(); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); add(panel); final Label auditLabel = new Label(CONSTANTS.auditLabel()); auditLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel()); panel.add(auditLabel); final Label closeButton = new Label(); closeButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); } }); closeButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose()); panel.add(closeButton); final HorizontalPanel content = new HorizontalPanel(); content.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.add(content); final VerticalPanel form = new VerticalPanel(); content.add(form); // ----------------------------------------------- // Audit Date field // ----------------------------------------------- dateField = new DateField(this, null, CONSTANTS.dateLabel(), tab++); dateField.setHelpText(CONSTANTS.dateHelp()); form.add(dateField); // ----------------------------------------------- // Audit Name field // ----------------------------------------------- nameField = new SuggestField( this, null, new NameIdAction(Service.ATTRIBUTE), CONSTANTS.nameLabel(), 20, tab++); nameField.setState(AbstractRoot.getOrganizationid()); nameField.setType(Value.Type.AuditName.name()); nameField.setHelpText(CONSTANTS.nameHelp()); final Image nameButton = new Image(AbstractField.BUNDLE.plus()); nameButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { if (AbstractRoot.noOrganizationid()) { AbstractField.addMessage( Level.ERROR, AbstractField.CONSTANTS.errOrganizationid(), nameField); } else { ValuePopup.getInstance() .show( Value.Type.AuditName, CONSTANTS.nameLabel(), AbstractRoot.getOrganizationid(), nameField); } } }); nameButton.setTitle(CONSTANTS.namebuttonHelp()); nameField.addButton(nameButton); form.add(nameField); // ----------------------------------------------- // Rating range with one anchor slider // ----------------------------------------------- ratingField = new RatingField(this, null, CONSTANTS.ratingLabel(), 10, tab++) {}; ratingField.setLo(CONSTANTS.ratingLo()); ratingField.setHi(CONSTANTS.ratingHi()); ratingField.setDefaultValue(5); ratingField.setHelpText(CONSTANTS.ratingHelp()); form.add(ratingField); // ----------------------------------------------- // Comment field // ----------------------------------------------- notesField = new TextAreaField(this, null, CONSTANTS.notesLabel(), tab++); notesField.setFieldStyle(CSS.notesField()); notesField.setMaxLength(255); notesField.setHelpText(CONSTANTS.notesHelp()); form.add(notesField); form.add(createCommands()); onRefresh(); return panel; }
public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); RootPanel RootMenu = RootPanel.get("Menu"); MenuBar menuBar = new MenuBar(false); RootMenu.add(menuBar); MenuItem CloseBoton = new MenuItem( "Close", false, new Command() { public void execute() { if (ActualUser.getUser().getProfile().equals(Constants.PROFESSOR)) Controlador.change2Administrator(); else if (ActualUser.getUser().getProfile().equals(Constants.STUDENT)) Controlador.change2MyActivities(); } }); menuBar.addItem(CloseBoton); SimplePanel simplePanel = new SimplePanel(); rootPanel.add(simplePanel, 0, 25); simplePanel.setSize("100%", "100%"); DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.EM); simplePanel.setWidget(dockLayoutPanel); dockLayoutPanel.setSize("100%", "100%"); VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); dockLayoutPanel.addWest(verticalPanel, 32.2); verticalPanel.setSize("100%", "100%"); HorizontalPanel horizontalPanel_1 = new HorizontalPanel(); horizontalPanel_1.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); horizontalPanel_1.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); verticalPanel.add(horizontalPanel_1); horizontalPanel_1.setWidth("100%"); VerticalPanel PanelCampos = new VerticalPanel(); PanelCampos.setSpacing(10); horizontalPanel_1.add(PanelCampos); PanelCampos.setWidth("100%"); HorizontalPanel horizontalPanel_2 = new HorizontalPanel(); horizontalPanel_2.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); PanelCampos.add(horizontalPanel_2); horizontalPanel_2.setWidth("100%"); Label lblNewLabel = new Label("Nombre"); horizontalPanel_2.add(lblNewLabel); NameText = new TextBox(); NameText.setMaxLength(25); NameText.setVisibleLength(25); horizontalPanel_2.add(NameText); NameText.setWidth("90%"); String Nombre = ""; if ((ActualUser.getUser().getName() != null) && (!ActualUser.getUser().getName().isEmpty())) Nombre = ActualUser.getUser().getName(); NameText.setText(Nombre); HorizontalPanel horizontalPanel_3 = new HorizontalPanel(); horizontalPanel_3.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); PanelCampos.add(horizontalPanel_3); horizontalPanel_3.setWidth("100%"); Label lblNewLabel_1 = new Label("Apellidos"); horizontalPanel_3.add(lblNewLabel_1); ApellidosText = new TextBox(); ApellidosText.setVisibleLength(25); ApellidosText.setMaxLength(120); horizontalPanel_3.add(ApellidosText); ApellidosText.setWidth("90%"); String Apellido = ""; if ((ActualUser.getUser().getLastName() != null) && (!ActualUser.getUser().getLastName().isEmpty())) Apellido = ActualUser.getUser().getLastName(); ApellidosText.setText(Apellido); HorizontalPanel horizontalPanel_4 = new HorizontalPanel(); horizontalPanel_4.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); horizontalPanel_4.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); PanelCampos.add(horizontalPanel_4); horizontalPanel_4.setWidth("100%"); SimplePanel simplePanel_1 = new SimplePanel(); horizontalPanel_4.add(simplePanel_1); Button btnNewButton = new Button("Save"); simplePanel_1.setWidget(btnNewButton); btnNewButton.setSize("100%", "100%"); btnNewButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenter"); } }); btnNewButton.addMouseDownHandler( new MouseDownHandler() { public void onMouseDown(MouseDownEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterPush"); } }); btnNewButton.addMouseOutHandler( new MouseOutHandler() { public void onMouseOut(MouseOutEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenter"); } }); btnNewButton.addMouseOverHandler( new MouseOverHandler() { public void onMouseOver(MouseOverEvent event) { ((Button) event.getSource()).setStyleName("gwt-ButtonCenterOver"); } }); btnNewButton.setStyleName("gwt-ButtonCenter"); btnNewButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { UserApp AU = ActualUser.getUser(); AU.setName(NameText.getText()); AU.setLastName(ApellidosText.getText()); LoadingPanel.getInstance().center(); LoadingPanel.getInstance().setLabelTexto("Updating..."); bookReaderServiceHolder.saveUser( AU, new AsyncCallback<Boolean>() { public void onSuccess(Boolean result) { bookReaderServiceHolder.loadUserById( ActualUser.getUser().getId(), new AsyncCallback<UserApp>() { public void onSuccess(UserApp result) { ActualUser.setUser(result); bookReaderServiceHolder.updateRenameOfUser( result.getId(), new AsyncCallback<Void>() { public void onSuccess(Void result) { LoadingPanel.getInstance().hide(); if (ActualUser.getUser() .getProfile() .equals(Constants.PROFESSOR)) Controlador.change2Administrator(); else if (ActualUser.getUser() .getProfile() .equals(Constants.STUDENT)) Controlador.change2MyActivities(); } public void onFailure(Throwable caught) { LoadingPanel.getInstance().hide(); Window.alert( "I can refresh the old anotations, please re-save your name to fix it"); } }); } public void onFailure(Throwable caught) { Window.alert( "I can reload the update User, if you want to show the new userInformation please reload the page"); LoadingPanel.getInstance().hide(); } }); } public void onFailure(Throwable caught) { Window.alert("Error updating User."); LoadingPanel.getInstance().hide(); } }); } }); VerticalPanel verticalPanel_1 = new VerticalPanel(); verticalPanel_1.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); dockLayoutPanel.add(verticalPanel_1); verticalPanel_1.setSize("100%", "100%"); HorizontalPanel horizontalPanel = new HorizontalPanel(); horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); horizontalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); verticalPanel_1.add(horizontalPanel); Image image = new Image("Logo.jpg"); horizontalPanel.add(image); }
private void showAddItemAttributeDialog(final VkMenuBarHorizontal menuBar) { final DialogBox origDialog = new DialogBox(); DOM.setStyleAttribute(origDialog.getElement(), "zIndex", Integer.toString(Integer.MAX_VALUE)); final VerticalPanel dialog = new VerticalPanel(); origDialog.add(dialog); origDialog.setText("Provide html for item name and JS to execute on its click"); dialog.setWidth("100%"); dialog.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER); DOM.setStyleAttribute(origDialog.getElement(), "zIndex", Integer.MAX_VALUE + ""); HorizontalPanel nameHp = new HorizontalPanel(); nameHp.setWidth("100%"); dialog.add(nameHp); nameHp.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT); nameHp.add(new Label("Name HTML:")); nameHp.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT); nameHp.setCellWidth(nameHp.getWidget(0), "35%"); final TextArea nameTextArea = new TextArea(); nameHp.add(nameTextArea); nameTextArea.setSize("300px", "100px"); Timer t = new Timer() { @Override public void run() { VkDesignerUtil.centerDialog(dialog); nameTextArea.setFocus(true); } }; t.schedule(100); HorizontalPanel jsHp = new HorizontalPanel(); jsHp.setWidth("100%"); dialog.add(jsHp); jsHp.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT); jsHp.add(new Label("Command Js:")); jsHp.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT); jsHp.setCellWidth(jsHp.getWidget(0), "35%"); final VkEventTextArea jsTextArea = new VkEventTextArea(); jsTextArea.setSize("300px", "100px"); jsHp.add(jsTextArea); HorizontalPanel buttonsPanel = new HorizontalPanel(); dialog.add(buttonsPanel); Button saveButton = new Button("Save"); buttonsPanel.add(saveButton); saveButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { menuBar.getCommandJs().put(menuBar.getItemCount(), jsTextArea.getText()); addMenuItem(menuBar, nameTextArea.getText(), jsTextArea.getText()); origDialog.hide(); } }); Button cancelButton = new Button("Cancel"); buttonsPanel.add(cancelButton); cancelButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { origDialog.hide(); } }); origDialog.center(); origDialog.setPopupPosition(origDialog.getPopupLeft() + 1, origDialog.getPopupTop()); }
public DialogCarma(KarmaHome home, KarmaUser user) { super(false, true); this.homeParent = home; this.user = user; setHTML(CONSTANTS.this_html()); VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); setWidget(verticalPanel); verticalPanel.setWidth("100%"); HorizontalPanel horizontalPanel = new HorizontalPanel(); horizontalPanel.setSpacing(5); verticalPanel.add(horizontalPanel); horizontalPanel.setWidth("100%"); VerticalPanel verticalPanel_2 = new VerticalPanel(); horizontalPanel.add(verticalPanel_2); verticalPanel_2.setSize("260", "110"); Grid grid_1 = new Grid(3, 2); verticalPanel_2.add(grid_1); grid_1.setSize("", "100"); Label label_10 = new Label(CONSTANTS.label_10_text()); grid_1.setWidget(0, 0, label_10); grid_1.getCellFormatter().setWidth(0, 0, "100"); listTypes = new ListBox(); grid_1.setWidget(0, 1, listTypes); grid_1.getCellFormatter().setWidth(0, 1, "150"); listTypes.setWidth("100%"); ClientUtils.fillTypes(listTypes); Label label_11 = new Label(CONSTANTS.label_11_text()); grid_1.setWidget(1, 0, label_11); tbPlate = new TextBox(); tbPlate.setVisibleLength(10); grid_1.setWidget(1, 1, tbPlate); tbPlate.setWidth("100%"); cbxForeign = new CheckBox(CONSTANTS.cbxForeign_text()); grid_1.setWidget(2, 0, cbxForeign); cbxForeign.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { showCountries(); } }); listCountry = new ListBox(); grid_1.setWidget(2, 1, listCountry); listCountry.setWidth("100%"); listCountry.setVisible(false); ClientUtils.fillCountries(listCountry); VerticalPanel verticalPanel_6 = new VerticalPanel(); horizontalPanel.add(verticalPanel_6); verticalPanel_6.setSize("260", "110"); Grid grid_2 = new Grid(3, 2); verticalPanel_6.add(grid_2); grid_2.setSize("", "100"); Label label_15 = new Label(CONSTANTS.label_15_text()); grid_2.setWidget(0, 0, label_15); grid_2.getCellFormatter().setWidth(0, 0, "50"); date = new DateBox(); date.setFormat(new DefaultFormat(DateTimeFormat.getFormat("yyyy-MM-dd HH:mm"))); grid_2.setWidget(0, 1, date); grid_2.getCellFormatter().setWidth(0, 1, "200"); date.setWidth("100%"); date.addValueChangeHandler( new ValueChangeHandler<Date>() { @Override public void onValueChange(ValueChangeEvent<Date> event) { Date d = event.getValue(); if (d.after(new Date()) || d.before(new Date(System.currentTimeMillis() - 31536000000L))) { date.setValue(new Date()); MsgMan.getInstance().showError(CONSTANTS.error_date1(), date); } } }); Label label_16 = new Label(CONSTANTS.label_16_text()); grid_2.setWidget(1, 0, label_16); taNotes = new TextArea(); taNotes.addKeyPressHandler( new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { updateCounter(); } }); taNotes.setSize("100%", "50"); grid_2.setWidget(1, 1, taNotes); lblCounter = new Label("New label"); lblCounter.addStyleName("counter"); grid_2.setWidget(2, 1, lblCounter); grid_2.getCellFormatter().setHorizontalAlignment(2, 1, HasHorizontalAlignment.ALIGN_RIGHT); HorizontalPanel horizontalPanel_3 = new HorizontalPanel(); horizontalPanel_3.setSpacing(5); horizontalPanel_3.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); verticalPanel.add(horizontalPanel_3); verticalPanel.setCellHorizontalAlignment( horizontalPanel_3, HasHorizontalAlignment.ALIGN_CENTER); btnPuntuar = new Button("New button"); horizontalPanel_3.add(btnPuntuar); btnPuntuar.setText(CONSTANTS.btnPuntuar_text()); btnPuntuar.setWidth("100"); Button btnCancel = new Button("New button"); horizontalPanel_3.add(btnCancel); btnCancel.setText(CONSTANTS.btnCancel_text()); btnCancel.setWidth("100"); btnPuntuar.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { makeKarma(); } }); btnCancel.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { DialogCarma.this.hide(); } }); updateCounter(); }
public com.google.gwt.user.client.ui.Widget createAndBindUi( final com.rhiscom.bpm.console.client.ui.quadrature.CuadraturaPagosCMRViewImpl owner) { com.rhiscom.bpm.console.client.ui.quadrature.CuadraturaPagosCMRViewImpl_BinderImpl_GenBundle clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = (com.rhiscom.bpm.console.client.ui.quadrature .CuadraturaPagosCMRViewImpl_BinderImpl_GenBundle) GWT.create( com.rhiscom.bpm.console.client.ui.quadrature .CuadraturaPagosCMRViewImpl_BinderImpl_GenBundle.class); com.rhiscom.bpm.console.client.ui.quadrature.CuadraturaPagosCMRViewImpl_BinderImpl_GenCss_style style = clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style(); java.lang.String domId0 = com.google.gwt.dom.client.Document.get().createUniqueId(); com.google.gwt.user.client.ui.Label title = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HTMLPanel htmlPanel = new com.google.gwt.user.client.ui.HTMLPanel( template .html1( "" + style.titleBackground() + "", "" + style.titleBackgroundPosition() + "", domId0) .asString()); com.google.gwt.user.client.ui.Label lblError = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel3 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label6 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.ListBox sucursalSeleccionada = (com.google.gwt.user.client.ui.ListBox) GWT.create(com.google.gwt.user.client.ui.ListBox.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel5 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label8 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.datepicker.client.DateBox dateOfBusinessDateBox = owner.dateOfBusinessDateBox; com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel7 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Button filterButton = (com.google.gwt.user.client.ui.Button) GWT.create(com.google.gwt.user.client.ui.Button.class); com.google.gwt.user.client.ui.Button excelButton = (com.google.gwt.user.client.ui.Button) GWT.create(com.google.gwt.user.client.ui.Button.class); com.google.gwt.user.client.ui.Label f_Label10 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblVersionPOS = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel9 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label14 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label f_Label15 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel13 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label18 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblPagoNormal = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel17 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label20 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblPagoRepactado = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel19 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label22 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblPagoAnulado = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel21 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label24 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalPagos = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel23 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel16 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel12 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label27 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label f_Label28 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel26 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label30 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalAbonos = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel29 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label32 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalAbonoNormal = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel31 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel33 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label35 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalAbonosSCTFA = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel34 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel25 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label38 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label f_Label39 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel37 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label41 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTrx217 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel40 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label43 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTrx402 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel42 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label45 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel44 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label47 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalCRCMR = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel46 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel36 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel11 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label51 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label f_Label52 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel50 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label54 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalPagosSAT = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel53 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label56 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalAnulacionesSAT = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel55 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label58 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel57 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label60 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalFinalSAT = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel59 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel49 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label63 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label f_Label64 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel62 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.Label f_Label66 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalPagosRSAT = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel65 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label68 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalAnulacionesRSAT = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel67 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label70 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel69 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.Label f_Label72 = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.Label lblTotalFinalRSAT = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel71 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel61 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel73 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel48 = (com.google.gwt.user.client.ui.HorizontalPanel) GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel2 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 = (com.google.gwt.user.client.ui.VerticalPanel) GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class); title.setStyleName("" + style.title() + ""); title.setText("Cuadratura Pagos CMR"); htmlPanel.setWidth("100%"); f_VerticalPanel2.add(htmlPanel); f_HorizontalPanel3.setHorizontalAlignment( com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER); lblError.setStyleName("lblError"); lblError.setHorizontalAlignment( com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER); lblError.setWidth("99%"); lblError.setText("Debe ingresar fecha de negocio"); lblError.setHeight("20px"); f_HorizontalPanel3.add(lblError); f_HorizontalPanel3.setWidth("100%"); f_VerticalPanel2.add(f_HorizontalPanel3); f_Label6.setWidth("100px"); f_Label6.setText("Sucursal"); f_Label6.setHeight(""); f_VerticalPanel5.add(f_Label6); sucursalSeleccionada.setWidth("100px"); sucursalSeleccionada.setHeight("25px"); f_VerticalPanel5.add(sucursalSeleccionada); f_HorizontalPanel4.add(f_VerticalPanel5); f_Label8.setText("Fecha de negocio"); f_VerticalPanel7.add(f_Label8); f_VerticalPanel7.add(dateOfBusinessDateBox); f_HorizontalPanel4.add(f_VerticalPanel7); filterButton.setText("Buscar"); f_HorizontalPanel4.add(filterButton); excelButton.setText("Exportar"); f_HorizontalPanel4.add(excelButton); f_Label10.setText("Versión"); f_VerticalPanel9.add(f_Label10); lblVersionPOS.setStyleName("" + style.secondTitle() + ""); lblVersionPOS.setWidth("100px"); lblVersionPOS.setHeight("25px"); f_VerticalPanel9.add(lblVersionPOS); f_HorizontalPanel4.add(f_VerticalPanel9); f_HorizontalPanel4.setStyleName("" + style.filters() + ""); f_HorizontalPanel4.setWidth("100%"); f_VerticalPanel2.add(f_HorizontalPanel4); f_Label14.setStyleName("" + style.secondTitle() + ""); f_Label14.setText("PLACUAD"); f_VerticalPanel13.add(f_Label14); f_Label15.setStyleName("" + style.secondTitle() + ""); f_Label15.setWidth("100%"); f_Label15.setText("CMR"); f_VerticalPanel13.add(f_Label15); f_VerticalPanel13.setWidth("100%"); f_VerticalPanel12.add(f_VerticalPanel13); f_Label18.setHorizontalAlignment( com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT); f_Label18.setWidth("215px"); f_Label18.setText("Pago Normal"); f_Label18.setHeight("25px"); f_HorizontalPanel17.add(f_Label18); f_HorizontalPanel17.setCellVerticalAlignment( f_Label18, com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_MIDDLE); lblPagoNormal.setWidth("100px"); lblPagoNormal.setHeight("25px"); f_HorizontalPanel17.add(lblPagoNormal); f_HorizontalPanel17.setCellHorizontalAlignment( lblPagoNormal, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel17.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel17.setWidth("100%"); f_VerticalPanel16.add(f_HorizontalPanel17); f_Label20.setWidth("215px"); f_Label20.setText("Pago Repactado"); f_Label20.setHeight("25px"); f_HorizontalPanel19.add(f_Label20); lblPagoRepactado.setWidth("100px"); lblPagoRepactado.setHeight("25px"); f_HorizontalPanel19.add(lblPagoRepactado); f_HorizontalPanel19.setCellHorizontalAlignment( lblPagoRepactado, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel19.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel19.setWidth("100%"); f_VerticalPanel16.add(f_HorizontalPanel19); f_Label22.setWidth("215px"); f_Label22.setText("Pagos Anulados"); f_Label22.setHeight("25px"); f_HorizontalPanel21.add(f_Label22); lblPagoAnulado.setWidth("100px"); lblPagoAnulado.setHeight("25px"); f_HorizontalPanel21.add(lblPagoAnulado); f_HorizontalPanel21.setCellHorizontalAlignment( lblPagoAnulado, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel21.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel21.setWidth("100%"); f_VerticalPanel16.add(f_HorizontalPanel21); f_Label24.setStyleName("" + style.redTitle() + ""); f_Label24.setWidth("215px"); f_Label24.setText("Total Pagos"); f_Label24.setHeight("25px"); f_HorizontalPanel23.add(f_Label24); lblTotalPagos.setStyleName("" + style.redTitle() + ""); lblTotalPagos.setWidth("100px"); lblTotalPagos.setHeight("25px"); f_HorizontalPanel23.add(lblTotalPagos); f_HorizontalPanel23.setCellHorizontalAlignment( lblTotalPagos, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel23.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel23.setWidth("100%"); f_VerticalPanel16.add(f_HorizontalPanel23); f_VerticalPanel16.setWidth("100%"); f_VerticalPanel12.add(f_VerticalPanel16); f_VerticalPanel12.setStyleName("" + style.borderDecorator() + ""); f_VerticalPanel12.setWidth("350px"); f_HorizontalPanel11.add(f_VerticalPanel12); f_Label27.setStyleName("" + style.secondTitle() + ""); f_Label27.setText("SCTFA"); f_VerticalPanel26.add(f_Label27); f_Label28.setStyleName("" + style.secondTitle() + ""); f_Label28.setWidth("100%"); f_Label28.setText("CMR"); f_VerticalPanel26.add(f_Label28); f_VerticalPanel26.setWidth("100%"); f_VerticalPanel25.add(f_VerticalPanel26); f_Label30.setWidth("215px"); f_Label30.setText("Total Abonos"); f_Label30.setHeight("25px"); f_HorizontalPanel29.add(f_Label30); f_HorizontalPanel29.setCellWidth(f_Label30, "150px"); f_HorizontalPanel29.setCellHeight(f_Label30, "25px"); lblTotalAbonos.setWidth("100px"); lblTotalAbonos.setHeight("25px"); f_HorizontalPanel29.add(lblTotalAbonos); f_HorizontalPanel29.setCellHorizontalAlignment( lblTotalAbonos, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel29.setCellWidth(lblTotalAbonos, "150px"); f_HorizontalPanel29.setCellHeight(lblTotalAbonos, "25px"); f_HorizontalPanel29.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel29.setWidth("100%"); f_VerticalPanel25.add(f_HorizontalPanel29); f_Label32.setWidth("215px"); f_Label32.setText("Total Anulación Abono Normal"); f_Label32.setHeight("25px"); f_HorizontalPanel31.add(f_Label32); lblTotalAbonoNormal.setHorizontalAlignment( com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); lblTotalAbonoNormal.setWidth("100px"); lblTotalAbonoNormal.setHeight("25px"); f_HorizontalPanel31.add(lblTotalAbonoNormal); f_HorizontalPanel31.setCellHorizontalAlignment( lblTotalAbonoNormal, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel31.setCellWidth(lblTotalAbonoNormal, "150px"); f_HorizontalPanel31.setCellHeight(lblTotalAbonoNormal, "25px"); f_HorizontalPanel31.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel31.setWidth("100%"); f_VerticalPanel25.add(f_HorizontalPanel31); f_HorizontalPanel33.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel33.setWidth("100%"); f_HorizontalPanel33.setHeight("25px"); f_VerticalPanel25.add(f_HorizontalPanel33); f_Label35.setStyleName("" + style.redTitle() + ""); f_Label35.setWidth("215px"); f_Label35.setText("Total Abonos"); f_Label35.setHeight("25px"); f_HorizontalPanel34.add(f_Label35); f_HorizontalPanel34.setCellWidth(f_Label35, "198px"); f_HorizontalPanel34.setCellHeight(f_Label35, "25px"); lblTotalAbonosSCTFA.setStyleName("" + style.redTitle() + ""); lblTotalAbonosSCTFA.setWidth("100px"); lblTotalAbonosSCTFA.setHeight("25px"); f_HorizontalPanel34.add(lblTotalAbonosSCTFA); f_HorizontalPanel34.setCellHorizontalAlignment( lblTotalAbonosSCTFA, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel34.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel34.setWidth("100%"); f_VerticalPanel25.add(f_HorizontalPanel34); f_VerticalPanel25.setStyleName("" + style.borderDecorator() + ""); f_VerticalPanel25.setWidth("350px"); f_HorizontalPanel11.add(f_VerticalPanel25); f_VerticalPanel36.setHorizontalAlignment( com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT); f_Label38.setStyleName("" + style.secondTitle() + ""); f_Label38.setText("CRCMR"); f_VerticalPanel37.add(f_Label38); f_Label39.setStyleName("" + style.secondTitle() + ""); f_Label39.setText("CMR"); f_VerticalPanel37.add(f_Label39); f_VerticalPanel37.setWidth("100%"); f_VerticalPanel36.add(f_VerticalPanel37); f_Label41.setWidth("215px"); f_Label41.setText("TRX 217 y 238"); f_Label41.setHeight("25px"); f_HorizontalPanel40.add(f_Label41); lblTrx217.setWidth("100px"); lblTrx217.setHeight("25px"); f_HorizontalPanel40.add(lblTrx217); f_HorizontalPanel40.setCellHorizontalAlignment( lblTrx217, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel40.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel40.setWidth("100%"); f_VerticalPanel36.add(f_HorizontalPanel40); f_Label43.setWidth("215px"); f_Label43.setText("TRX 402 y 401"); f_Label43.setHeight("25px"); f_HorizontalPanel42.add(f_Label43); lblTrx402.setWidth("100px"); lblTrx402.setHeight("25px"); f_HorizontalPanel42.add(lblTrx402); f_HorizontalPanel42.setCellHorizontalAlignment( lblTrx402, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel42.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel42.setWidth("100%"); f_VerticalPanel36.add(f_HorizontalPanel42); f_Label45.setWidth("40%"); f_Label45.setHeight("25px"); f_HorizontalPanel44.add(f_Label45); f_HorizontalPanel44.setCellHorizontalAlignment( f_Label45, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel44.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel44.setWidth("100%"); f_VerticalPanel36.add(f_HorizontalPanel44); f_Label47.setStyleName("" + style.redTitle() + ""); f_Label47.setWidth("215px"); f_Label47.setText("Total Abonos"); f_Label47.setHeight("25px"); f_HorizontalPanel46.add(f_Label47); lblTotalCRCMR.setStyleName("" + style.redTitle() + ""); lblTotalCRCMR.setWidth("100px"); lblTotalCRCMR.setHeight("25px"); f_HorizontalPanel46.add(lblTotalCRCMR); f_HorizontalPanel46.setCellHorizontalAlignment( lblTotalCRCMR, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel46.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel46.setWidth("100%"); f_VerticalPanel36.add(f_HorizontalPanel46); f_VerticalPanel36.setStyleName("" + style.borderDecorator() + ""); f_VerticalPanel36.setWidth("350px"); f_HorizontalPanel11.add(f_VerticalPanel36); f_HorizontalPanel11.setSpacing(2); f_HorizontalPanel11.setWidth("100%"); f_VerticalPanel2.add(f_HorizontalPanel11); f_VerticalPanel2.setCellWidth(f_HorizontalPanel11, "100%"); f_Label51.setStyleName("" + style.secondTitle() + ""); f_Label51.setText(""); f_VerticalPanel50.add(f_Label51); f_Label52.setStyleName("" + style.secondTitle() + ""); f_Label52.setText("SAT"); f_VerticalPanel50.add(f_Label52); f_VerticalPanel50.setWidth("100%"); f_VerticalPanel49.add(f_VerticalPanel50); f_Label54.setWidth("215px"); f_Label54.setText("TRX 217 y 238"); f_Label54.setHeight("25px"); f_HorizontalPanel53.add(f_Label54); lblTotalPagosSAT.setWidth("100px"); lblTotalPagosSAT.setHeight("25px"); f_HorizontalPanel53.add(lblTotalPagosSAT); f_HorizontalPanel53.setCellHorizontalAlignment( lblTotalPagosSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel53.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel53.setWidth("100%"); f_VerticalPanel49.add(f_HorizontalPanel53); f_Label56.setWidth("215px"); f_Label56.setText("TRX 402 y 401"); f_Label56.setHeight("25px"); f_HorizontalPanel55.add(f_Label56); lblTotalAnulacionesSAT.setWidth("100px"); lblTotalAnulacionesSAT.setHeight("25px"); f_HorizontalPanel55.add(lblTotalAnulacionesSAT); f_HorizontalPanel55.setCellHorizontalAlignment( lblTotalAnulacionesSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel55.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel55.setWidth("100%"); f_VerticalPanel49.add(f_HorizontalPanel55); f_Label58.setWidth("40%"); f_Label58.setHeight("25px"); f_HorizontalPanel57.add(f_Label58); f_HorizontalPanel57.setCellHorizontalAlignment( f_Label58, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel57.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel57.setWidth("100%"); f_VerticalPanel49.add(f_HorizontalPanel57); f_Label60.setStyleName("" + style.redTitle() + ""); f_Label60.setWidth("215px"); f_Label60.setText("Total Abonos"); f_Label60.setHeight("25px"); f_HorizontalPanel59.add(f_Label60); lblTotalFinalSAT.setStyleName("" + style.redTitle() + ""); lblTotalFinalSAT.setWidth("100px"); lblTotalFinalSAT.setHeight("25px"); f_HorizontalPanel59.add(lblTotalFinalSAT); f_HorizontalPanel59.setCellHorizontalAlignment( lblTotalFinalSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel59.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel59.setWidth("100%"); f_VerticalPanel49.add(f_HorizontalPanel59); f_VerticalPanel49.setStyleName("" + style.borderDecorator() + ""); f_VerticalPanel49.setWidth("350px"); f_HorizontalPanel48.add(f_VerticalPanel49); f_Label63.setStyleName("" + style.secondTitle() + ""); f_Label63.setText(""); f_VerticalPanel62.add(f_Label63); f_Label64.setStyleName("" + style.secondTitle() + ""); f_Label64.setText("RSAT"); f_VerticalPanel62.add(f_Label64); f_VerticalPanel62.setWidth("100%"); f_VerticalPanel61.add(f_VerticalPanel62); f_Label66.setWidth("215px"); f_Label66.setText("TRX 217 y 238"); f_Label66.setHeight("25px"); f_HorizontalPanel65.add(f_Label66); lblTotalPagosRSAT.setWidth("100px"); lblTotalPagosRSAT.setHeight("25px"); f_HorizontalPanel65.add(lblTotalPagosRSAT); f_HorizontalPanel65.setCellHorizontalAlignment( lblTotalPagosRSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel65.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel65.setWidth("100%"); f_VerticalPanel61.add(f_HorizontalPanel65); f_Label68.setWidth("215px"); f_Label68.setText("TRX 402 y 401"); f_Label68.setHeight("25px"); f_HorizontalPanel67.add(f_Label68); lblTotalAnulacionesRSAT.setWidth("100px"); lblTotalAnulacionesRSAT.setHeight("25px"); f_HorizontalPanel67.add(lblTotalAnulacionesRSAT); f_HorizontalPanel67.setCellHorizontalAlignment( lblTotalAnulacionesRSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel67.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel67.setWidth("100%"); f_VerticalPanel61.add(f_HorizontalPanel67); f_Label70.setWidth("40%"); f_Label70.setHeight("25px"); f_HorizontalPanel69.add(f_Label70); f_HorizontalPanel69.setCellHorizontalAlignment( f_Label70, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel69.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel69.setWidth("100%"); f_VerticalPanel61.add(f_HorizontalPanel69); f_Label72.setStyleName("" + style.redTitle() + ""); f_Label72.setWidth("215px"); f_Label72.setText("Total Abonos"); f_Label72.setHeight("25px"); f_HorizontalPanel71.add(f_Label72); lblTotalFinalRSAT.setStyleName("" + style.redTitle() + ""); lblTotalFinalRSAT.setWidth("100px"); lblTotalFinalRSAT.setHeight("25px"); f_HorizontalPanel71.add(lblTotalFinalRSAT); f_HorizontalPanel71.setCellHorizontalAlignment( lblTotalFinalRSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT); f_HorizontalPanel71.setStyleName("" + style.borderSimple() + ""); f_HorizontalPanel71.setWidth("100%"); f_VerticalPanel61.add(f_HorizontalPanel71); f_VerticalPanel61.setStyleName("" + style.borderDecorator() + ""); f_VerticalPanel61.setWidth("350px"); f_HorizontalPanel48.add(f_VerticalPanel61); f_VerticalPanel73.setHorizontalAlignment( com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT); f_VerticalPanel73.setWidth("350px"); f_HorizontalPanel48.add(f_VerticalPanel73); f_HorizontalPanel48.setSpacing(2); f_HorizontalPanel48.setWidth("100%"); f_VerticalPanel2.add(f_HorizontalPanel48); f_VerticalPanel2.setWidth("100%"); f_VerticalPanel1.add(f_VerticalPanel2); f_VerticalPanel1.setWidth("100%"); UiBinderUtil.TempAttachment attachRecord0 = UiBinderUtil.attachToDom(htmlPanel.getElement()); com.google.gwt.user.client.Element domId0Element = com.google.gwt.dom.client.Document.get().getElementById(domId0).cast(); attachRecord0.detach(); htmlPanel.addAndReplaceElement(title, domId0Element); final com.google.gwt.event.dom.client.ClickHandler handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames1 = new com.google.gwt.event.dom.client.ClickHandler() { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { owner.onClickCSV(event); } }; filterButton.addClickHandler(handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames1); final com.google.gwt.event.dom.client.ClickHandler handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames2 = new com.google.gwt.event.dom.client.ClickHandler() { public void onClick(com.google.gwt.event.dom.client.ClickEvent event) { owner.onClickExcel(event); } }; excelButton.addClickHandler(handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames2); owner.filterButton = filterButton; owner.lblError = lblError; owner.lblPagoAnulado = lblPagoAnulado; owner.lblPagoNormal = lblPagoNormal; owner.lblPagoRepactado = lblPagoRepactado; owner.lblTotalAbonoNormal = lblTotalAbonoNormal; owner.lblTotalAbonos = lblTotalAbonos; owner.lblTotalAbonosSCTFA = lblTotalAbonosSCTFA; owner.lblTotalAnulacionesRSAT = lblTotalAnulacionesRSAT; owner.lblTotalAnulacionesSAT = lblTotalAnulacionesSAT; owner.lblTotalCRCMR = lblTotalCRCMR; owner.lblTotalFinalRSAT = lblTotalFinalRSAT; owner.lblTotalFinalSAT = lblTotalFinalSAT; owner.lblTotalPagos = lblTotalPagos; owner.lblTotalPagosRSAT = lblTotalPagosRSAT; owner.lblTotalPagosSAT = lblTotalPagosSAT; owner.lblTrx217 = lblTrx217; owner.lblTrx402 = lblTrx402; owner.lblVersionPOS = lblVersionPOS; owner.sucursalSeleccionada = sucursalSeleccionada; clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style().ensureInjected(); return f_VerticalPanel1; }