Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.HorizontalPanel


    addToolBar();
   
    TabPanel tabPanel = new TabPanel();
    TabItem tbtmDetalles = new TabItem("Detalles");
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    tabPanel.add(tbtmDetalles);
    tbtmDetalles.add(horizontalPanel);
    tbtmDetalles.setHeight(DETAILS_HEIGTH.toString());

    horizontalPanel.add(getPanelFields());
   
    initializeLDAPPanel();
    initializePatronPanel();
    initializeArchivosPanel();
    initializeServiciosPanel();
   
    horizontalPanel.add(vPanelLDAP);
    horizontalPanel.add(vPanelPatron);
    horizontalPanel.add(vPanelArchivos);
    horizontalPanel.add(vPanelServicios);

    add(tabPanel, new RowData(WINDOW_WIDTH, Style.DEFAULT, new Margins()));
   
    addGrid();
   
View Full Code Here


    mainLoginPanel.setCollapsible(false);
    mainLoginPanel.setWidth(PANEL_LOGIN_WIDTH);
    mainLoginPanel.setHeight(PANEL_LOGIN_HEIGTH);
   
   
    HorizontalPanel horizontalPanelUsuario = new HorizontalPanel();
    horizontalPanelUsuario.setHeight(HORIZONTAL_PANEL_HEIGTH);
   
    VerticalPanel verticalPanel = new VerticalPanel();
    VerticalPanel verticalPanel_1 = new VerticalPanel();
   
    LabelField labelUsuario = new LabelField("Usuario");
    labelUsuario.setWidth(LABEL_WIDTH);
    TableData td_labelUsuario = new TableData();
    td_labelUsuario.setHorizontalAlign(HorizontalAlignment.CENTER);
    verticalPanel.add(labelUsuario, td_labelUsuario);
    verticalPanel.setWidth(VERTICAL_PANEL_WIDTH);
    horizontalPanelUsuario.add(verticalPanel);
   
//    textUsuario.addKeyListener(new KeyListener() {
//      public void componentKeyPress(ComponentEvent event) {
//        presionoEnter(event);
//      }
//    });
    textUsuario.setAllowBlank(Boolean.FALSE);
    textUsuario.setWidth(TEXT_BOX_WIDTH);
    verticalPanel_1.add(textUsuario);
    verticalPanel_1.setWidth(VERTICAL_PANEL_WIDTH);
    TableData td_verticalPanel_1 = new TableData();
    td_verticalPanel_1.setHorizontalAlign(HorizontalAlignment.CENTER);
    horizontalPanelUsuario.add(verticalPanel_1, td_verticalPanel_1);
    mainLoginPanel.add(horizontalPanelUsuario);

   
    HorizontalPanel horizontalPanelPassword = new HorizontalPanel();
   
    VerticalPanel verticalPanel_2 = new VerticalPanel();
   
    LabelField labelPassword = new LabelField("Password");
    labelPassword.setWidth(LABEL_WIDTH);
    TableData td_labelPassword = new TableData();
    td_labelPassword.setHorizontalAlign(HorizontalAlignment.CENTER);
    verticalPanel_2.add(labelPassword, td_labelPassword);
    verticalPanel_2.setWidth(VERTICAL_PANEL_WIDTH);
    horizontalPanelPassword.add(verticalPanel_2);
   
    VerticalPanel verticalPanel_3 = new VerticalPanel();
   
    textPassword = new TextField();
//    textPassword.addKeyListener(new KeyListener() {
//      public void componentKeyPress(ComponentEvent event) {
//        presionoEnter(event);
//      }
//    });
    textPassword.setAllowBlank(Boolean.FALSE);
    textPassword.setPassword(true);

    textPassword.setPassword(true);
    textPassword.setWidth(TEXT_BOX_WIDTH);
    verticalPanel_3.add(textPassword);
    verticalPanel_3.setWidth(VERTICAL_PANEL_WIDTH);
    TableData td_verticalPanel_3 = new TableData();
    td_verticalPanel_3.setHorizontalAlign(HorizontalAlignment.CENTER);
    horizontalPanelPassword.add(verticalPanel_3, td_verticalPanel_3);
    horizontalPanelPassword.setHeight(HORIZONTAL_PANEL_HEIGTH);
    mainLoginPanel.add(horizontalPanelPassword);
   
    Button btnIngresar = new Button("Ingresar");
    mainLoginPanel.add(btnIngresar, new FormData("100%"));
    btnIngresar.addSelectionListener(new SelectionListener<ButtonEvent>(){
View Full Code Here

   * @param fieldWith
   * @param labelWidth
   * @return
   */
  protected HorizontalPanel getFieldHorizontalLine(Field field, Button button, String labelText, Integer fieldWith, Integer labelWidth) {
    HorizontalPanel fieldHorizontalLine = new HorizontalPanel();
    fieldHorizontalLine.setWidth(new Integer(fieldWith + labelWidth + EXTRA_WIDTH));
    LabelField labelField = new LabelField(labelText);
    fieldHorizontalLine.add(labelField);
    labelField.setWidth(labelWidth);
    fieldHorizontalLine.add(field);
    // Realiza la validacion del campo cuando pierde el foco
    field.setAutoValidate(Boolean.TRUE);
    field.setValidateOnBlur(Boolean.TRUE);
    field.setWidth(fieldWith);
    fieldHorizontalLine.add(button);
    return fieldHorizontalLine;
  }
View Full Code Here

   * @param fieldWith
   * @param labelWidth
   * @return
   */
  protected HorizontalPanel getFieldHorizontalLine(Field field, String labelText, Integer fieldWith, Integer labelWidth) {
    HorizontalPanel fieldHorizontalLine = new HorizontalPanel();
    fieldHorizontalLine.setWidth(new Integer(fieldWith + labelWidth + EXTRA_WIDTH));
    LabelField labelField = new LabelField(labelText);
    fieldHorizontalLine.add(labelField);
    labelField.setWidth(labelWidth);
    fieldHorizontalLine.add(field);
    // Realiza la validacion del campo cuando pierde el foco
    field.setAutoValidate(Boolean.TRUE);
    field.setValidateOnBlur(Boolean.TRUE);
    field.setWidth(fieldWith);
    return fieldHorizontalLine;
View Full Code Here

   
    // TODO acomodar posicion
    setSize(IEvenTask.APP_WINDOW_WIDTH.toString(), IEvenTask.DEFAULT_MENU_HEIGTH.toString());
   
    //componentes del panel de tareas
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    VerticalPanel verticalPanel_grilla = new VerticalPanel();
    VerticalPanel verticalPanel_comentarios = new VerticalPanel();
    //Context.getInstance().getUsuario()
   
    //seteo las propiedades al componente Grid
    grid.setSize(GRID_WIDTH, GRID_HEIGTH);
    grid.defaultContextMenuTask();
    grid.defaultActionOnSelectItemTask();
    grid.setBorders(true);
    verticalPanel_grilla.add(grid.getToolBar());
    verticalPanel_grilla.add(grid);
   
   
    horizontalPanel.add(verticalPanel_grilla);
    verticalPanel_comentarios.add(addComentarios());
   
    horizontalPanel.add(verticalPanel_comentarios);
    this.add(horizontalPanel);
   
    autoRefresh();
  }
View Full Code Here

   
    // TODO acomodar posicion
    setSize(IEvenTask.APP_WINDOW_WIDTH.toString(), IEvenTask.DEFAULT_MENU_HEIGTH.toString());
   
    //componentes del panel de objetivos
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    VerticalPanel verticalPanel_grilla = new VerticalPanel();
   
    //seteo las propiedades al componente Grid
    grid.setSize(GRID_WIDTH, GRID_HEIGTH);
    grid.defaultContextMenuObjective();
    grid.defaultActionOnSelectItemObjective();
    grid.setBorders(true);
    verticalPanel_grilla.add(grid.getToolBar());
    verticalPanel_grilla.add(grid);
    horizontalPanel.add(verticalPanel_grilla);
   
    this.add(horizontalPanel);
  }
View Full Code Here

 
  public MainMenu(){
    super();
    setSize(IEvenTask.APP_WINDOW_WIDTH.toString(), IEvenTask.DEFAULT_MENU_HEIGTH.toString());
   
    horizontalPanel = new HorizontalPanel();
   
    verticalPanel = new VerticalPanel();
    verticalPanel.setWidth(VERTICAL_PANEL_MENU_WIDTH);
    mnuBar = new MenuBar();
    verticalPanel.add(mnuBar);
View Full Code Here

    addToolBar();
   
    TabPanel tabPanel = new TabPanel();
    TabItem tbtmDetalles = new TabItem("Detalles");
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    tabPanel.add(tbtmDetalles);
    tbtmDetalles.add(horizontalPanel);
    tbtmDetalles.setHeight(DETAILS_HEIGTH.toString());

    horizontalPanel.add(getPanelFields());
   
    initializeCreatePanel();
    initializeModifyStatusPanel();
   
    horizontalPanel.add(vPanelCreateTask);
    horizontalPanel.add(vPanelModifyStatus);
    vPanelCreateTask.add(btnView);
    btnView.addSelectionListener(new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
        UserViewWindow modal = new UserViewWindow(usersView);
View Full Code Here

  protected void onRender(Element target, int index) {
    boolean vertical = orientation == Orientation.VERTICAL;
    if (vertical) {
      lc = new VerticalPanel();
    } else {
      lc = new HorizontalPanel();
    }

    if (GXT.isIE) {
      lc.setStyleAttribute("position", "relative");
    }
View Full Code Here

    tree2.getStyle().setLeafIcon(IconHelper.createStyle("icon-list"));
    tree2.setAutoLoad(true);
    tree2.setDisplayProperty("name");

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(10);

    hp.add(tree, new TableData("250px", null));
    hp.add(tree2, new TableData("250px", null));

    DNDListener listener = new DNDListener() {
      @SuppressWarnings({"unchecked", "rawtypes"})
      @Override
      public void dragStart(DNDEvent e) {
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.HorizontalPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.