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

Examples of com.extjs.gxt.ui.client.widget.layout.RowLayout


    setStyleAttribute("margin", "10px");
    ContentPanel cp = new ContentPanel();
    cp.setHeading("ListView Append Sorted");
    cp.setSize(500, 225);
    cp.setFrame(true);
    cp.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    ListView<Stock> list1 = new ListView<Stock>();
    list1.setDisplayProperty("name");
    ListStore<Stock> store = new ListStore<Stock>();
    store.setStoreSorter(new StoreSorter<Stock>());
    store.add(TestData.getStocks());
    list1.setStore(store);
   

    ListView<Stock> list2 = new ListView<Stock>();
    list2.setDisplayProperty("name");
    store = new ListStore<Stock>();
    store.setStoreSorter(new StoreSorter<Stock>());
    list2.setStore(store);

    new ListViewDragSource(list1);
    new ListViewDragSource(list2);

    new ListViewDropTarget(list1);
    new ListViewDropTarget(list2);

    RowData data = new RowData(.5, 1);
    data.setMargins(new Margins(5));
  
    cp.add(list1, data);
    cp.add(list2, data);
    add(cp);
   
    cp = new ContentPanel();
    cp.setHeading("ListView Insert");
    cp.setStyleAttribute("marginTop", "10px");
    cp.setSize(500, 225);
    cp.setFrame(true);
    cp.setLayout(new RowLayout(Orientation.HORIZONTAL));

    ListView<Stock> list3 = new ListView<Stock>();
    list3.setDisplayProperty("name");
    store = new ListStore<Stock>();
    store.add(TestData.getStocks());
View Full Code Here


    ContentPanel cp = new ContentPanel();

    cp.setHeading("Form Bindings");
    cp.setFrame(true);
    cp.setSize(800, 400);
    cp.setLayout(new RowLayout(Orientation.HORIZONTAL));

    Grid<Stock> grid = createGrid();
    grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
    grid.getSelectionModel().addListener(Events.SelectionChange, new Listener<SelectionChangedEvent<Stock>>() {
      public void handleEvent(SelectionChangedEvent<Stock> be) {
View Full Code Here

    ContentPanel cp = new ContentPanel();

    cp.setHeading("Form Bindings");
    cp.setFrame(true);
    cp.setSize(800, 400);
    cp.setLayout(new RowLayout(Orientation.HORIZONTAL));

    final Grid<Stock> grid = createGrid();
    grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
    grid.getSelectionModel().addListener(Events.SelectionChange,
        new Listener<SelectionChangedEvent<Stock>>() {
View Full Code Here

    rg.add(selRadio);
    LayoutContainer radForm = new LayoutContainer(new FormLayout(LabelAlign.RIGHT));
    radForm.add(rg);

    LayoutContainer lc = new LayoutContainer();
    RowLayout rl = new RowLayout();
    lc.setLayout(rl);
    lc.setSize(800, 600);

    RowData data;
    data = new RowData(1, 300, new Margins(10));
    ContentPanel cp = new ContentPanel(new FitLayout());
    cp.setHeading("Chart");
    cp.add(chart);
    lc.add(cp, data);

    data = new RowData(1, 1, new Margins(10));
    cp = new ContentPanel(new FitLayout());
    cp.setHeading("Teams Sales");
    cp.add(teamSalesGrid);
    lc.add(cp, data);

    data = new RowData(1, 60, new Margins(10));
    LayoutContainer bbar = new LayoutContainer(new RowLayout(Orientation.HORIZONTAL));
    bbar.add(reload);
    bbar.add(radForm, new RowData(1, -1));
    lc.add(bbar, data);

    add(lc);
View Full Code Here

    public ActionToolbarLayoutContainer(GWTJahiaToolbar toolbar) {
        super();
        this.toolbarSet = new ArrayList<GWTJahiaToolbar>();
        this.toolbarSet.add(toolbar);
        setLayout(new RowLayout());
    }
View Full Code Here

        setLayout(new RowLayout());
    }

    public ActionToolbarLayoutContainer(List<GWTJahiaToolbar> toolbarSet) {
        super();
        setLayout(new RowLayout());
        this.toolbarSet = toolbarSet;
    }
View Full Code Here

    private transient ManualListOrderingEditor manualListOrderingEditor = null;
    private static final String JMIX_ORDERED_LIST = "jmix:orderedList";

    @Override
    public void attachPropertiesEditor(NodeHolder engine, AsyncTabItem tab) {
        tab.setLayout(new RowLayout());
        tab.add(propertiesEditor);
        if (!engine.isMultipleSelection()) {
            attachManualListOrderingEditor(engine, tab, propertiesEditor);
        }
    }
View Full Code Here

     * @param cardtitle title string of this card
     */
    public WizardCard(String cardtitle) {
        super();
        this.cardtitle = cardtitle;
        setLayout(new RowLayout(Orientation.VERTICAL));
    }
View Full Code Here

        searchForm.addButton(ok);
//        searchForm.addButton(drag);

        ContentPanel panel = new ContentPanel();
        panel.setLayout(new RowLayout(Style.Orientation.VERTICAL));
        panel.setWidth("100%");
        panel.setHeight("100%");
        panel.setFrame(true);
        panel.setCollapsible(false);
        panel.setHeaderVisible(false);
View Full Code Here

        return super.create(engineTab, engine);
    }

    @Override
    public void init(final NodeHolder engine, AsyncTabItem tab, String locale) {
        tab.setLayout(new RowLayout());

        if (engine.getNode() != null) {
            Grid<GWTJahiaNodeUsage> grid = NodeUsagesGrid.createUsageGrid(Arrays.asList(engine.getNode()));
            Button button = new Button(Messages.get("label.usages.clean"), new SelectionListener<ButtonEvent>() {
                @Override
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.layout.RowLayout

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.