List of usage examples for com.google.gwt.user.client.ui FlexTable FlexTable
public FlexTable()
From source file:com.vimukti.accounter.setup.client.LicenseDetailsPage.java
License:Open Source License
@Override protected Widget createControls() { FlexTable table = new FlexTable(); this.serverIDLabel = new HTML(); this.licenseKey = new TextArea(); licenseKey.setSize("350px", "130px"); table.setWidget(0, 0, createTitle("Server ID")); table.setWidget(0, 1, serverIDLabel); table.setWidget(2, 0, createTitle("License Key", true)); table.setWidget(2, 1, addTag(licenseKey, "If you are a new user, you can <a target='_blank' href='http://www.accounterlive.com/main/managelicense?gen=true'>generate an license key.</a> <br/> Or, if you have already one, <a target='_blank' href='http://www.accounterlive.com/main/managelicense'>you can retrieve it.</a>")); table.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP); return table; }
From source file:com.webgocommerce.client.model.ContentForm.java
private void init() { flexTable = new FlexTable(); flexTable.setCellPadding(0); flexTable.setCellSpacing(0); add(flexTable); }
From source file:com.webgocommerce.client.model.JBorderLayout.java
private void initComponents() { pnlContenedor = new FlexTable(); pnlNorte = new FlowPanel(); pnlCenter = new FlexTable(); pnlOeste = new FlowPanel(); pnlEste = new FlowPanel(); pnlCentro = new FlowPanel(); pnlSur = new FlowPanel(); pnlContenedor.setWidget(0, 0, pnlNorte); pnlContenedor.setWidget(1, 0, pnlCenter); pnlContenedor.setWidget(2, 0, pnlSur); pnlCenter.setWidget(0, 0, pnlOeste); pnlCenter.setWidget(0, 1, pnlCentro); pnlCenter.setWidget(0, 2, pnlEste);//w w w.j av a 2s . co m this.initWidget(pnlContenedor); }
From source file:com.webgocommerce.client.model.ToolBarButton.java
private void initComponents() { pnlContenedor = new FlexTable(); header = new HeaderMenu(); lblTitulo = new Label("TITULO"); header.setCenterWidget(lblTitulo);//from ww w .j ava 2 s .c o m pnlSlide = new DeckPanel(); pnlSlide.setAnimationEnabled(true); pnlContenedor.setWidget(0, 0, header); pnlContenedor.setWidget(2, 0, pnlSlide); cellFormatter = pnlContenedor.getFlexCellFormatter(); initWidget(pnlContenedor); }
From source file:com.webgocommerce.client.uiutil.Notification.java
private void initComponents() { pnlContenedor = new FlexTable(); img = new Image(); lblMsg = new HTML("Mensaje"); //btnOper=new Button("Aceptar"); pnlContenedor.setWidget(0, 0, img);/*from ww w . j a v a 2s. c o m*/ pnlContenedor.setWidget(0, 1, lblMsg); //pnlContenedor.setWidget(1, 0, btnOper); FlexTable.FlexCellFormatter cellFormatter = pnlContenedor.getFlexCellFormatter(); //cellFormatter.setColSpan(1, 0, 2); cellFormatter.getElement(0, 0).getStyle().setPadding(10, Style.Unit.PX); cellFormatter.getElement(0, 1).getStyle().setPadding(10, Style.Unit.PX); //cellFormatter.getElement(1, 0).getStyle().setPadding(10, Style.Unit.PX); this.setWidget(pnlContenedor); }
From source file:com.webgocommerce.client.uiutil.PopupProgress.java
private void initComponents() { pnlContenedor = new FlexTable(); lblMsg = new Label("Tenga paciencia, ejecutando tarea..."); barra = new ProgressBar(); barra.setVisible(true);/*from www . ja va2 s.c o m*/ pnlContenedor.setWidget(0, 0, lblMsg); pnlContenedor.setWidget(1, 0, barra); this.setWidget(pnlContenedor); }
From source file:com.webgocommerce.client.uiutil.TabClose.java
private void initComponents() { pnlHor = new FlexTable(); lblTitulo = new Label(titulo); btnClose = new Button(); pnlHor.setWidget(0, 0, lblTitulo);//w ww . jav a 2 s . c o m pnlHor.setWidget(0, 1, btnClose); initWidget(pnlHor); }
From source file:com.webgocommerce.client.uiutil.UIBuscarCliente.java
private void initComponents() { pnlFiltro = new FlexTable(); progreso = new ProgressBar(); lstFiltro = new ListBox(); lstFiltro.addItem("Descripcion"); lstFiltro.addItem("Nro. Doc"); txtBuscar = new MSearchBox(); txtBuscar.getElement().setPropertyString("placeholder", "escriba aqui"); pnlFiltro.setWidget(0, 0, lstFiltro); pnlFiltro.setWidget(0, 1, txtBuscar); grid = new GridCliente(); grid.setMinimumTableWidth(1024, Style.Unit.PX); pnlGuardar = new FlowPanel(); btnGuardar = new Button("Seleccionar"); pnlGuardar.add(btnGuardar);//from ww w . j ava 2s. c om btnGuardar.setConfirm(true); this.getPnlTabla().add(grid); this.getPnlTabla().add(grid.getPager()); this.getPnlTabla().add(pnlGuardar); this.getPnlBusqueda().add(pnlFiltro); this.getPnlBotones().setVisible(false); Window.addResizeHandler(new ResizeHandler() { @Override public void onResize(ResizeEvent event) { reCalcularWindows(); } }); }
From source file:com.webgocommerce.client.uiutil.UIControlVenta.java
private void initComponents() { pnlContenedor = new FlexTable(); lblCantidad = new UILabel("Cantidad"); txtCantidad = new TextBox(); lblPrecio = new UILabel("Precio"); txtPrecio = new UIInputPrecio(); btnAgregar = new Button("(F2) Agregar"); btnQuitar = new Button("(Shift) Quitar"); btnGenerar = new Button("(F4) Generar"); btnNuevo = new Button("(F8) Nuevo"); pnlContenedor.setWidget(0, 0, lblCantidad); pnlContenedor.setWidget(0, 1, txtCantidad); pnlContenedor.setWidget(0, 2, lblPrecio); pnlContenedor.setWidget(0, 3, txtPrecio); //pnlContenedor.setWidget(0, 4, txtPrecio); pnlContenedor.setWidget(0, 4, (new UISeparador()).isSpace()); pnlContenedor.setWidget(0, 5, btnAgregar); pnlContenedor.setWidget(0, 6, (new UISeparador()).isSpace()); pnlContenedor.setWidget(0, 7, btnQuitar); pnlContenedor.setWidget(0, 8, (new UISeparador()).isSpace()); pnlContenedor.setWidget(0, 9, btnGenerar); pnlContenedor.setWidget(0, 10, (new UISeparador()).isSpace()); pnlContenedor.setWidget(0, 11, btnNuevo); this.initWidget(pnlContenedor); }
From source file:com.webgocommerce.client.uiutil.UIDocMonto.java
private void initComponents() { pnlContenedor = new FlexTable(); pnlLeft = new FlexTable(); pnlRight = new FlexTable(); pnlContenedor.setWidget(0, 0, pnlLeft); pnlContenedor.setWidget(0, 1, pnlRight); lblAfecto = new UILabel("Afecto"); lblNoAfecto = new UILabel("No Afecto"); lblIgv = new UILabel("IGV"); lblPercepcion = new UILabel("Perc"); lblTotal = new UILabel("Total Venta"); lblTotalPlan = new UILabel("Total Plan"); txtAfecto = new TextBox(); txtAfecto.setEnabled(false);// w w w . j a va2 s .com txtNoAfecto = new TextBox(); txtNoAfecto.setEnabled(false); txtIgv = new TextBox(); txtIgv.setEnabled(false); txtPercepcion = new TextBox(); txtPercepcion.setEnabled(false); txtTotal = new TextBox(); txtTotal.setEnabled(false); txtTotalPlan = new TextBox(); txtTotalPlan.setEnabled(false); pnlLeft.setWidget(0, 0, lblAfecto); pnlLeft.setWidget(0, 1, txtAfecto); pnlLeft.setWidget(0, 2, lblNoAfecto); pnlLeft.setWidget(0, 3, txtNoAfecto); pnlLeft.setWidget(0, 4, lblIgv); pnlLeft.setWidget(0, 5, txtIgv); pnlLeft.setWidget(0, 6, lblPercepcion); pnlLeft.setWidget(0, 7, txtPercepcion); pnlRight.setWidget(0, 0, lblTotal); pnlRight.setWidget(0, 1, txtTotal); pnlRight.setWidget(0, 2, lblTotalPlan); pnlRight.setWidget(0, 3, txtTotalPlan); this.initWidget(pnlContenedor); }