Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DecoratorPanel


        final VerticalPanel panel = new VerticalPanel();
        panel.add( cGrid );
        panel.add( addAttributeCellTable( cGrid,
                                          characteristic ) );
        panel.setWidth( "100%" );
        DecoratorPanel decoratorPanel = new DecoratorPanel();
        decoratorPanel.add( panel );

        characteristicsPanel.add( decoratorPanel );
        characteristicsPanel.add( gapPanel );
        characteristicsTables.add( cGrid );
View Full Code Here


        decoratedTabPanel.setSize("870px", "480px");

        AbsolutePanel absolutePanel = new AbsolutePanel();
        absolutePanel.setSize("847px", "425px");

        DecoratorPanel decoratorPanelWest = new DecoratorPanel();
        absolutePanel.add(decoratorPanelWest, 10, 10);
        decoratorPanelWest.setSize("240px", "400px");

        AbsolutePanel treePanel = new AbsolutePanel();
        treePanel.setSize("230px", "395px");
        decoratorPanelWest.setWidget(treePanel);

        ScrollPanel treeScrollPanel = new ScrollPanel();
        treePanel.add(treeScrollPanel, 10, 10);
        treeScrollPanel.setSize("210px", "375px");

        final Tree tree = getTree(images);
        treeScrollPanel.setWidget(tree);

        final DecoratorPanel decoratorPanelCenter = new DecoratorPanel();

        absolutePanel.add(decoratorPanelCenter, 256, 10);
        decoratorPanelCenter.setSize("400px", "402px");

        AbsolutePanel centerAbsolutePanel = new AbsolutePanel();
        centerAbsolutePanel.setSize("97%", "100%");

        this.header = new HTML("Select an item");
        this.header.setDirectionEstimator(true);
        centerAbsolutePanel.add(this.header, 10, 10);
        this.header.setSize("450px", "50px");
        this.header.setStyleName("header-style");

        this.details = new HTML("No item selected");
        centerAbsolutePanel.add(this.details, 10, 76);
        this.details.setSize("450px", "156px");

        HTML html = new HTML("<hr />", true);
        centerAbsolutePanel.add(html, 10, 43);
        html.setSize("380px", "15px");

        this.frame = new NamedFrame("download-frame");
        frame.setStyleName("download-frame");
        rootPanel.add(frame);

        this.exportButton = new Button("Export site", new ClickHandler() {

            public void onClick(ClickEvent event) {
                frame.setUrl(exportHref);
            }
        });
        this.exportButton.setEnabled(false);
        centerAbsolutePanel.add(this.exportButton, 10, 359);
        decoratorPanelCenter.setWidget(centerAbsolutePanel);
        centerAbsolutePanel.setSize("400px", "393px");

        DecoratorPanel decoratorPanelEast = new DecoratorPanel();
        absolutePanel.add(decoratorPanelEast, 672, 10);
        decoratorPanelEast.setSize("165px", "405px");
        AbsolutePanel absolutePanelImportLink = new AbsolutePanel();
        absolutePanelImportLink.setSize("162px", "395px");

        final Anchor importAnchor = new Anchor("Import site");
        absolutePanelImportLink.add(importAnchor, 10, 10);
        importAnchor.setWidth("90%");

        decoratorPanelEast.setWidget(absolutePanelImportLink);

        decoratedTabPanel.add(absolutePanel, "Export/Import sites", false);
        importAnchor.addClickHandler(new ClickHandler() {

            public void onClick(ClickEvent event) {
View Full Code Here

        h2type  =  ColumnType.NUMBER;
        // Creo il grafico

        ScatterChart pie = new ScatterChart(createTable(), createScarredOptions());

        DecoratorPanel   dp        = new DecoratorPanel(); // panel about search
        VerticalPanel   hpv       = new VerticalPanel();//
        HorizontalPanel hpz       = new HorizontalPanel();

        // tab panel relativo al grafico,esportazione arff ecc..
        final TabPanel    tp        = new TabPanel();
        pieLayer.add(pie);
        tp.add(pieLayer,"Grafico");
        tp.selectTab(0);
        Runnable onLoadCallback = new Runnable()  {
          public void run() {
            // Creo la tabella.
            Table grid = new Table(createTable(),createTableOptions());
            Cgrid.add(grid);
            // aggiungo la tabella al tab panel.
            tp.add(Cgrid,"Dati");
            // Creo la text area relativa all'arff
            text = new TextArea();
            text.setWidth("700px");
            text.setVisibleLines(20);
            text.getElement().setId("copytxt");
            text.setReadOnly(true);
            // aggiungo la textarea al pannello
            export.add(text);
            // aggiungo il pannello al tabpanel
            tp.add(export,"Export to Arff");
          }


        };
        VisualizationUtils.loadVisualizationApi(onLoadCallback, Table.PACKAGE);
        //-----------
        // pannelli di ricerca
        HorizontalPanel typepanel_hpz    = new HorizontalPanel();
        HorizontalPanel typepanel_hpz2    = new HorizontalPanel();
        HorizontalPanel date_hp_hz_date1   = new HorizontalPanel();
        HorizontalPanel date_hp_hz_date2   = new HorizontalPanel();
        HorizontalPanel date_hp_hz_time1   = new HorizontalPanel();
        HorizontalPanel date_hp_hz_time2  = new HorizontalPanel();
        HorizontalPanel limit1_hp      = new HorizontalPanel();
        HorizontalPanel limit2_hp      = new HorizontalPanel();
        HorizontalPanel check_hp      = new HorizontalPanel();
        // check box lista aggiunte.
        blist.addItem("Data-Temperatura");
        blist.addItem("Data-Luce");
        blist.addItem("Luce-Temperatura");
        // lista dati grafici
        typepanel_hpz.add(new Label("Dati del  grafico"));
        typepanel_hpz.add(blist);

        blist2  =  getGraphList(Constant.DATA_TEMP);
        typepanel_hpz2.add(new Label("Tipi del  grafico"));
        typepanel_hpz2.add(blist2);

        hpv.add(new Label("Ricerca:"));
        hpv.add(typepanel_hpz);
        hpv.add(typepanel_hpz2);
        hpv.add(new Label("Filtri:"));
        date_hp.setVisible(false);
        temp_hp.setVisible(false);
        light_hp.setVisible(false);
        // VINCOLI DP
        // DATA FILTRO
        final CheckBox   chkdata       = new CheckBox();

        hpheaderdata.add(chkdata);
        hpheaderdata.add(new Label("Data"));
        hpv.add(hpheaderdata);
        //  END DATA FILTRO
        // DATA

        ComponentCreator.CreateDate(date_hp_hz_date1);
        ComponentCreator.CreateDate(date_hp_hz_date2);
        ComponentCreator.CreateTime(date_hp_hz_time1);
        ComponentCreator.CreateTime(date_hp_hz_time2);
        date_hp.add(new Label("Da:"));
        date_hp.add(date_hp_hz_date1)
        date_hp.add(date_hp_hz_time1);
        date_hp.add(new Label("A:"));
        date_hp.add(date_hp_hz_date2);
        date_hp.add(date_hp_hz_time2);
        hpv.add(date_hp);
        // FINE DATA
        // TEMP FILTRO
        final CheckBox check_temp = new CheckBox();

        hpheadertemp.add(check_temp);
        hpheadertemp.add(new Label("Temperatura"));
        hpv.add(hpheadertemp);
        // FINE FILTRO DI TEMPERATURA
        // FILTRO DI TEMPERATURA
        ComponentCreator.CreateTemp(temp_hp);
        hpv.add(temp_hp);
        //
        // LUCE FILTRO
        final CheckBox check_light = new CheckBox();
        hpv.add(check_light);

        hpheaderlight.add(check_light);
        hpheaderlight.add(new Label("Luce"));
        hpv.add(hpheaderlight);
        // FINE LUCE FILTRO.
        // LUCE DATA FILTRO .
        ComponentCreator.CreateLight(light_hp) ;// adding data.
        hpv.add(light_hp);
        limit1.setSize("50px", "12px");
        limit2.setSize("50px", "12px");
        // LUCE DATA.FILTRO FINE
        // LIMITI& NUMERO ELEMENTI
        Label     lb   =  new Label("Se questo è vuoto assume 0 come valore");
        Label     lb2 =  new Label("Se questo è vuoto assume 5000 come valore");
        Label     lb3 =  new Label("Mostra il numero totale degli elementi associati a questa ricerca");
        lb.getElement().getStyle().setFontSize(10.0, Unit.PX);
        lb2.getElement().getStyle().setFontSize(10.0, Unit.PX);
        limit1_hp.add(new Label("Riga di partenza"));
        limit1_hp.add(limit1);
        limit1_hp.add(lb);
        limit2_hp.add(new Label("Numero elementi "));
        limit2_hp.add(limit2);
        limit2_hp.add(lb2);
        check_hp.add(ck);
        check_hp.add(lb3);
        hpv.add(check_hp);
        hpv.add(limit1_hp);
        hpv.add(limit2_hp);
        // SEARCH.
        Button searchButton = new Button("Cerca");
        hpv.add(searchButton); // ADDING SERCH BUTTON.

        //VERTICAL PANEL
        // RESULT PANEL

        HTML html = new HTML("<hr>");
        hpv.add(html);
        hpv.add(notice);
        notice.setText("La pagina non contiene risultati.");
        dp.add(hpv);
        // FINE VP.
        hpz.add(dp);// SEARCHBAR
        hpz.add(tp);// PAGE DATA AND GRAPH

       
View Full Code Here

  private final Button deleteButton;
  private FlexTable contactsTable;
  private final FlexTable contentTable;
 
  public ContactsView() {
    DecoratorPanel contentTableDecorator = new DecoratorPanel();
    initWidget(contentTableDecorator);
    contentTableDecorator.setWidth("100%");
    contentTableDecorator.setWidth("18em");

    contentTable = new FlexTable();
    contentTable.setWidth("100%");
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListContainer");
    contentTable.getCellFormatter().setWidth(0, 0, "100%");
    contentTable.getFlexCellFormatter().setVerticalAlignment(0, 0, DockPanel.ALIGN_TOP);
   
    // Create the menu
    HorizontalPanel hPanel = new HorizontalPanel();
    hPanel.setBorderWidth(0);
    hPanel.setSpacing(0);
    hPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
    addButton = new Button("Add");
    hPanel.add(addButton);
    deleteButton = new Button("Delete");
    hPanel.add(deleteButton);
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListMenu");
    contentTable.setWidget(0, 0, hPanel);
   
    // Create the contacts list
    contactsTable = new FlexTable();
    contactsTable.setCellSpacing(0);
    contactsTable.setCellPadding(0);
    contactsTable.setWidth("100%");
    contactsTable.addStyleName("contacts-ListContents");
    contactsTable.getColumnFormatter().setWidth(0, "15px");
    contentTable.setWidget(1, 0, contactsTable);
   
    contentTableDecorator.add(contentTable);
  }
View Full Code Here

        final VerticalPanel panel = new VerticalPanel();
        panel.add( cGrid );
        panel.add( addAttributeCellTable( cGrid,
                                          characteristic ) );
        panel.setWidth( "100%" );
        DecoratorPanel decoratorPanel = new DecoratorPanel();
        decoratorPanel.add( panel );

        characteristicsPanel.add( decoratorPanel );
        characteristicsPanel.add( gapPanel );
        characteristicsTables.add( cGrid );
View Full Code Here

    invokeAllAccessibleMethods(new AbsolutePanel() {});
    invokeAllAccessibleMethods(new CellPanel() {});
    invokeAllAccessibleMethods(new ComplexPanel() {});
    invokeAllAccessibleMethods(new DeckLayoutPanel() {});
    invokeAllAccessibleMethods(new DeckPanel() {});
    invokeAllAccessibleMethods(new DecoratorPanel() {});
    invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
    invokeAllAccessibleMethods(new DockPanel() {});
    invokeAllAccessibleMethods(new FlowPanel() {});
    invokeAllAccessibleMethods(new FocusPanel() {});
    invokeAllAccessibleMethods(new HorizontalPanel() {});
View Full Code Here

  private EditContactView editContacts;

  public ContactsView() {

    DecoratorPanel contentTableDecorator = new DecoratorPanel();
    initWidget(contentTableDecorator);
    contentTableDecorator.setWidth("100%");
    contentTableDecorator.setWidth("18em");

    contentTable = new FlexTable();
    contentTable.setWidth("100%");
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListContainer");
    contentTable.getCellFormatter().setWidth(0, 0, "100%");
    contentTable.getFlexCellFormatter().setVerticalAlignment(0, 0, DockPanel.ALIGN_TOP);

    // Create the menu
    //
    HorizontalPanel hPanel = new HorizontalPanel();
    hPanel.setBorderWidth(0);
    hPanel.setSpacing(0);
    hPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
    addButton = new Button("Add");
    hPanel.add(addButton);
    deleteButton = new Button("Delete");
    hPanel.add(deleteButton);
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListMenu");
    contentTable.setWidget(0, 0, hPanel);

    // Create the contacts list
    //
    contactsTable = new FlexTable();
    contactsTable.setCellSpacing(0);
    contactsTable.setCellPadding(0);
    contactsTable.setWidth("100%");
    contactsTable.addStyleName("contacts-ListContents");
    contactsTable.getColumnFormatter().setWidth(0, "15px");
    contentTable.setWidget(1, 0, contactsTable);

    contentTableDecorator.add(contentTable);
  }
View Full Code Here

  private final Button addressButton;

  public EditContactView() {

    DecoratorPanel contentDetailsDecorator = new DecoratorPanel();
    contentDetailsDecorator.setWidth("18em");
    initWidget(contentDetailsDecorator);

    VerticalPanel contentDetailsPanel = new VerticalPanel();
    contentDetailsPanel.setWidth("100%");

    // Create the contacts list
    //
    detailsTable = new FlexTable();
    detailsTable.setCellSpacing(0);
    detailsTable.setWidth("100%");
    detailsTable.addStyleName("contacts-ListContainer");
    detailsTable.getColumnFormatter().addStyleName(1, "add-contact-input");
    firstName = new TextBox();
    lastName = new TextBox();
    emailAddress = new TextBox();

    addressButton = new Button("Address");

    initDetailsTable();
    contentDetailsPanel.add(detailsTable);

    HorizontalPanel menuPanel = new HorizontalPanel();
    saveButton = new Button("Save");
    cancelButton = new Button("Cancel");
    menuPanel.add(saveButton);
    menuPanel.add(cancelButton);
    menuPanel.add(addressButton);
    contentDetailsPanel.add(menuPanel);
    contentDetailsDecorator.add(contentDetailsPanel);
  }
View Full Code Here

    zip = new TextBox();
    city = new TextBox();
    back = new Button("Back");
    save = new Button("Save");

    DecoratorPanel addressDecoratorPanel = new DecoratorPanel();
    addressDecoratorPanel.setWidth("18em");
    initWidget(addressDecoratorPanel);

    VerticalPanel contentDetailsPanel = new VerticalPanel();
    contentDetailsPanel.setWidth("100%");

    VerticalPanel contentAddressPanel = new VerticalPanel();
    contentAddressPanel.setWidth("100%");

    contentAddressPanel.add(street);
    contentAddressPanel.add(zip);
    contentAddressPanel.add(city);
    contentDetailsPanel.add(contentAddressPanel);

    detailsTable = new FlexTable();
    detailsTable.setCellSpacing(0);
    detailsTable.setWidth("100%");
    detailsTable.addStyleName("contacts-ListContainer");
    detailsTable.getColumnFormatter().addStyleName(1, "add-contact-input");

    initDetailsTable();
    contentDetailsPanel.add(detailsTable);

    HorizontalPanel menuPanel = new HorizontalPanel();
    menuPanel.add(back);
    menuPanel.add(save);
    contentDetailsPanel.add(menuPanel);

    addressDecoratorPanel.add(contentDetailsPanel);
    // addressDecoratorPanel.add(back);
  }
View Full Code Here

  private final Button deleteButton;
  private FlexTable contactsTable;
  private final FlexTable contentTable;
 
  public ContactsView() {
    DecoratorPanel contentTableDecorator = new DecoratorPanel();
    initWidget(contentTableDecorator);
    contentTableDecorator.setWidth("100%");
    contentTableDecorator.setWidth("18em");

    contentTable = new FlexTable();
    contentTable.setWidth("100%");
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListContainer");
    contentTable.getCellFormatter().setWidth(0, 0, "100%");
    contentTable.getFlexCellFormatter().setVerticalAlignment(0, 0, DockPanel.ALIGN_TOP);
   
    // Create the menu
    //
    HorizontalPanel hPanel = new HorizontalPanel();
    hPanel.setBorderWidth(0);
    hPanel.setSpacing(0);
    hPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
    addButton = new Button("Add");
    hPanel.add(addButton);
    deleteButton = new Button("Delete");
    hPanel.add(deleteButton);
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListMenu");
    contentTable.setWidget(0, 0, hPanel);
   
    // Create the contacts list
    //
    contactsTable = new FlexTable();
    contactsTable.setCellSpacing(0);
    contactsTable.setCellPadding(0);
    contactsTable.setWidth("100%");
    contactsTable.addStyleName("contacts-ListContents");
    contactsTable.getColumnFormatter().setWidth(0, "15px");
    contentTable.setWidget(1, 0, contactsTable);
   
    contentTableDecorator.add(contentTable);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DecoratorPanel

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.