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

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


public class ComboBoxExample extends LayoutContainer {

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(10);

    ListStore<State> states = new ListStore<State>();
    states.add(TestData.getStates());

    ComboBox<State> combo = new ComboBox<State>();
    combo.setEmptyText("Select a state...");
    combo.setDisplayField("name");
    combo.setWidth(150);
    combo.setStore(states);
    combo.setTypeAhead(true);
    combo.setTriggerAction(TriggerAction.ALL);
    vp.add(combo);

    states = new ListStore<State>();
    states.add(TestData.getStates());
    combo = new ComboBox<State>();
    combo.setEmptyText("Select a state...");
    combo.setDisplayField("name");
    combo.setTemplate(getTemplate());
    combo.setWidth(150);
    combo.setStore(states);
    combo.setTypeAhead(true);
    combo.setTriggerAction(TriggerAction.ALL);
    vp.add(combo);

    ListStore<Country> countries = new ListStore<Country>();
    countries.add(TestData.getCountries());

    ComboBox<Country> combo2 = new ComboBox<Country>();
    combo2.setWidth(150);
    combo2.setStore(countries);
    combo2.setTemplate(getFlagTemplate(Examples.isExplorer() ? "" : "../../"));
    combo2.setDisplayField("name");
    combo2.setTypeAhead(true);
    combo2.setTriggerAction(TriggerAction.ALL);

    vp.add(combo2);
    add(vp);
  }
View Full Code Here


  private VerticalPanel vp;

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    vp = new VerticalPanel();
    vp.setSpacing(10);
    createColumnForm();
    createTabForm();
    add(vp);
  }
View Full Code Here

  public CustomerWindow() {
    setSize("330", "385");
    setHeading("Customer Details");
    setLayout(new FitLayout());
   
    this.verticalPanel = new VerticalPanel();
    this.verticalPanel.setHorizontalAlign(HorizontalAlignment.CENTER);
   
    this.frmpnlNewFormpanel = new FormPanel();
    this.frmpnlNewFormpanel.setHeaderVisible(false);
    this.frmpnlNewFormpanel.setHeading("");
View Full Code Here

    fromField = new ListField<D>();
    toField = new ListField<D>();
    setSize(200, 125);
    messages = new DualListFieldMessages();

    buttonBar = new VerticalPanel();
    buttonBar.setStyleAttribute("margin", "7px");
    buttonBar.setHorizontalAlign(HorizontalAlignment.CENTER);
    buttonAdapter = new AdapterField(buttonBar);

    add(fromField);
View Full Code Here

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

    if (GXT.isIE) {
View Full Code Here

    {
       
        ContentPanel mainPanel = new ContentPanel();
        mainPanel.setHeading("Input examples");
       
        VerticalPanel panel = new VerticalPanel();
        panel.setSpacing(10);
       
        TextField<String> equation = new TextField<String>();
        equation.setReadOnly(true);
        equation.setValue("y' = y + x + 1, y = 0");
       
        TextField<String> system1 = new TextField<String>();
        system1.setReadOnly(true);
        system1.setValue("y' = y + x + 1, y = 0");
       
        TextField<String> system2 = new TextField<String>();
        system2.setReadOnly(true);
        system2.setValue("u' = u + x + y + 4, u = 1.0");
       
       
        panel.add(new Label("Equation"));
        panel.add(equation);
        panel.add(new Label("System of equations"));
        panel.add(system1);
        panel.add(system2);
       
        mainPanel.add(panel);
        add(mainPanel);
       
       
View Full Code Here

    fromField = new ListField<D>();
    toField = new ListField<D>();
    setSize(200, 125);
    messages = new DualListFieldMessages();

    buttonBar = new VerticalPanel();
    buttonBar.setStyleAttribute("margin", "7px");
    buttonBar.setHorizontalAlign(HorizontalAlignment.CENTER);
    buttonAdapter = new AdapterField(buttonBar);

    add(fromField);
View Full Code Here

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

    if (GXT.isIE) {
View Full Code Here

  @Override
  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

  public DualListField() {
    fromField = new ListField<D>();
    toField = new ListField<D>();

    buttonBar = new VerticalPanel();
    buttonBar.setStyleAttribute("margin", "7px");
    buttonBar.setHorizontalAlign(HorizontalAlignment.CENTER);
    buttonAdapter = new AdapterField(buttonBar);

    add(fromField);
View Full Code Here

TOP

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

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.