Package com.gwtext.client.widgets

Examples of com.gwtext.client.widgets.Panel


   */
  public boolean showIfOpen(String key) {
    if (openedTabs.containsKey(key)) {
      LoadingPopup.close();

      Panel tpi = (Panel) openedTabs.get(key);
      this.tp.activate(tpi.getId());

      return true;
    } else {
      return false;
    }
View Full Code Here


  }


  public void close(String key) {
    tp.remove(key + id);
    Panel p = openedTabs.remove(key);
    if (p != null) p.destroy();
  }
View Full Code Here

    });




    Panel p = new Panel();
    p.add(drop);
    w.add(p);
    w.setBorder(false);

    Button ok = new Button(constants.OK());
    ok.addClickListener(new ClickListener() {
      public void onClick(Widget wg) {
        r.set(dataIdx, drop.getValue(drop.getSelectedIndex()));
        w.destroy();
      }
    });
    p.add(ok);

    w.setPosition(e.getPageX(), e.getPageY());
    w.show();

  }
View Full Code Here

    if (dt.isNumeric(colConf, getSCE())) {
      box.addKeyboardListener(ActionValueEditor.getNumericFilter(box));
    }

    Panel p = new Panel();
    p.add(box);
    w.add(p);
    w.setBorder(false);

    Button ok = new Button(constants.OK());
    ok.addClickListener(new ClickListener() {
      public void onClick(Widget wg) {
        r.set(dta, box.getText());
        w.destroy();
      }
    });
    p.add(ok);

    w.setPosition(e.getPageX(), e.getPageY());
    w.show();
  }
View Full Code Here

        RuleFlowContentModel rfcm = (RuleFlowContentModel) asset.content;

        if ( rfcm != null && rfcm.getXml() != null && rfcm.getNodes() != null ) {
            try {

                parameterPanel = new Panel();
                parameterPanel.setCollapsible( true );
                parameterPanel.setTitle( constants.Parameters() );

                FormStyleLayout parametersForm = new FormStyleLayout();
                parametersForm.setHeight( "120px" ); //NON-NLS
View Full Code Here

        ExplorerLayoutManager.capabilities = caps;
       
        if (bi.showChrome) {
        //north
            northPanel = new Panel();
            DockPanel dock = new DockPanel();
            dock.setVerticalAlignment(DockPanel.ALIGN_MIDDLE);
            dock.add(new HTML("<div class='header'><img src='header_logo.gif' /></div>"), DockPanel.WEST);
            dock.add(uif, DockPanel.EAST);
            dock.setStyleName("header");
            dock.setWidth("100%");



            northPanel.add(dock);
            northPanel.setHeight(50);

            // add a navigation for the west area
            accordion = new Panel();
            accordion.setLayout(new AccordionLayout(true));

            createNavigationPanels();

            centertabbedPanel.openFind();
View Full Code Here

    }

    private void createNavigationPanels() {
        accordion.add(new CategoriesPanel(centertabbedPanel));

        Panel tpPackageExplorer = new PackagesPanel(centertabbedPanel);
        if (shouldShow(Capabilities.SHOW_PACKAGE_VIEW)) {
            accordion.add(tpPackageExplorer);
        }

        Panel tpQA = new QAPanel(centertabbedPanel);
        if (shouldShow(Capabilities.SHOW_QA)) {
            accordion.add(tpQA);
        }

        Panel tpDeployment = new DeploymentPanel(centertabbedPanel);
        if (shouldShow(Capabilities.SHOW_DEPLOYMENT, Capabilities.SHOW_DEPLOYMENT_NEW)) {
            accordion.add(tpDeployment);
        }

        Panel tpAdmin = new AdministrationPanel(centertabbedPanel);
        if (shouldShow(Capabilities.SHOW_ADMIN)) {
            accordion.add(tpAdmin);
        }

View Full Code Here

    }

    private void setUpMain(BookmarkInfo bi) {

        mainPanel = new Panel();
        mainPanel.setLayout(new BorderLayout());
        mainPanel.setMargins(0, 0, 0, 0);

        BorderLayoutData northLayoutData = new BorderLayoutData(RegionPosition.NORTH);
        northLayoutData.setMargins(0, 0, 0, 0);

        BorderLayoutData centerLayoutData = new BorderLayoutData(RegionPosition.CENTER);
        centerLayoutData.setMargins(new Margins(5, 0, 5, 5));

        Panel centerPanelWrappper = new Panel();
        centerPanelWrappper.setLayout(new FitLayout());
        centerPanelWrappper.setBorder(false);
        centerPanelWrappper.setBodyBorder(false);

        if (bi.showChrome) {
            //setup the west regions layout properties
            BorderLayoutData westLayoutData = new BorderLayoutData(RegionPosition.WEST);
            westLayoutData.setMargins(new Margins(5, 5, 0, 5));
            westLayoutData.setCMargins(new Margins(5, 5, 5, 5));
            westLayoutData.setMinSize(155);
            westLayoutData.setMaxSize(350);
            westLayoutData.setSplit(true);

            //create the west panel and add it to the main panel applying the west region layout properties
            Panel westPanel = new Panel();
            westPanel.setId("side-nav");
            westPanel.setTitle(((Constants) GWT.create(Constants.class)).Navigate());
            westPanel.setLayout(new FitLayout());
            westPanel.setWidth(210);
            westPanel.setCollapsible(true);//MN createWestPanel();
            westPanel.add(accordion);
            mainPanel.add(westPanel, westLayoutData);
        }

        centerPanelWrappper.add(centertabbedPanel.getPanel());
View Full Code Here

    if (popLeft > -1) {
      dialog.setPosition(popLeft, popTop);
    }


    Panel p = new Panel();
    p.setLayout(new FitLayout());
    p.add(form);
    dialog.add(p);
    p.setBodyBorder(false);
    p.setPaddings(0);

    if (this.afterShowEvent != null) {
      this.dialog.addListener(new WindowListenerAdapter() {
        @Override
        public void onActivate(Panel panel) {
View Full Code Here

            properties = new PropertiesHolder();
        } else {
            properties = (PropertiesHolder) asset.content;
        }

        Panel panel = new Panel();
        panel.setBorder(false);
        panel.setPaddings(15);

        final RecordDef recordDef = new RecordDef(
                new FieldDef[]{new StringFieldDef("key"), new StringFieldDef("value")}   //NON-NLS
        );

        String[][] data = new String[properties.list.size()][];
        int dataIndex = 0;
        for (PropertyHolder holder : properties.list) {
            data[dataIndex++] = new String[]{holder.name, holder.value};
        }

        MemoryProxy proxy = new MemoryProxy(data);
        store = new Store(proxy, new ArrayReader(recordDef));
        store.load();

        ColumnConfig keyCol = new ColumnConfig("Key?", "key", 100, true, null, "key");    //NON-NLS
        keyCol.setEditor(new GridEditor(new TextField()));
        keyCol.setFixed(false);

        ColumnConfig valueCol = new ColumnConfig("Value?", "value", 100, true, null, "value"); //NON-NLS
        valueCol.setEditor(new GridEditor(new TextField()));
        valueCol.setFixed(false);

        ColumnConfig[] columnConfigs = {keyCol, valueCol};

        ColumnModel columnModel = new ColumnModel(columnConfigs);
        columnModel.setDefaultSortable(true);

        final EditorGridPanel grid = new EditorGridPanel();

        Toolbar toolbar = new Toolbar();
        ToolbarButton add = new ToolbarButton(constants.Add(), new ButtonListenerAdapter() {
            public void onClick(Button button, EventObject e) {
                addNewField(recordDef, grid);
            }
        });

        toolbar.addButton(add);

        /*ToolbarButton delete = new ToolbarButton("Delete", new ButtonListenerAdapter() {
            public void onClick(Button button, EventObject e) {
                store.remove(store.getRecordAt(grid.getPosition()[1]));
                if(store.getTotalCount() == 0){
                    addNewField(recordDef, grid);
                }
            }
        });

        toolbar.addButton(delete);*/

        ToolbarButton clear = new ToolbarButton(constants.Clear(), new ButtonListenerAdapter() {
            public void onClick(Button button, EventObject e) {
                store.removeAll();
                addNewField(recordDef, grid);
            }
        });

        toolbar.addButton(clear);

        grid.setStore(store);
        grid.setColumnModel(columnModel);
        grid.setWidth(215);
        grid.setHeight(300);
        grid.setTitle(constants.Properties());
        grid.setFrame(true);
        grid.setClicksToEdit(2);
        grid.setTopToolbar(toolbar);

        panel.add(grid);

        layout.addRow(grid);
    }
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.Panel

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.