Package next.i.view

Examples of next.i.view.CellData


  }

  @Override
  public IsWidget getViewContent() {

    CellData d0 = new CellData(null, "Rounded", new XButton("Rounded"));
    CellData d1 = new CellData(null, "Shadow", new XButton("Shadow", XButtonType.Shadow));
    CellData d2 = new CellData(null, "Navigation", new XButton("Navigation", XButtonType.Navigation));
    CellData d3 = new CellData(null, "Blue", new XButton("Blue", XButtonType.NavigationBlue));
    CellData d4 = new CellData(null, "Red", new XButton("Red", XButtonType.NavigationRed));
    CellData d5 = new CellData(null, "Black", new XButton("Black", XButtonType.NavigationBlack));
    CellData d6 = new CellData(null, "Image button", new XButton("Left", XButtonType.Image, "images/icons/xbuttonImage.png", "images/icons/xbuttonImageSelected.png", true));
    CellData d7 = new CellData(null, "Image button", new XButton("Right", XButtonType.Image, "images/icons/xbuttonImage.png", "images/icons/xbuttonImageSelected.png", false));
   
    XTableView tableView = new XTableView();
    tableView.addItem(new XTableCell(d0), new XTableCell(d1), new XTableCell(d2), new XTableCell(d3),
        new XTableCell(d4), new XTableCell(d5), new XTableCell(d6), new XTableCell(d7));
View Full Code Here


  }

  @Override
  public IsWidget getViewContent() {

    CellData data = new CellData();
    data.setWestWidgets(new Image("images/icons/list00.png"));
    data.setTextWidgets(new Label("Ariplane Mode"));
    data.setEastWidgets(new XSwitch(true));
    XTableCell c0 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list01.png"));
    data.setTextWidgets(new Label("WI-FI"));
    data.setEastWidgets(new Image("images/icons/list1x.png"));
    XTableCell c1 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list02.png"));
    data.setTextWidgets(new Label("Notifications"));
    data.setEastWidgets(new Image("images/icons/list2x.png"));
    XTableCell c2 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list03.png"));
    data.setTextWidgets(new Label("Sound"));
    data.setEastWidgets(new XSlider(60));
    XTableCell c3 = new XTableCell(data);

    XTableView tableView = new XTableView();
    tableView.addItem(c0, c1, c2, c3);
View Full Code Here

    ((XTableView) getView()).showChevron(true);

    TableData tableDS = new TableData();
    tableDS.add(
        new CellData(null, "Top", null),
        new CellData(null, "Right", null),
        new CellData(null, "Bottom", null),
        new CellData(null, "Left", null),
        new CellData(null, "Center", null)
        );

    initDataSource(tableDS);
  }
View Full Code Here

        "Paraguay", "Peru", "Puerto Rico", "Uruguay", "Venezuela" };

    int len = names.length;
    CellData[] arr = new CellData[len];
    for (int i = 0; i < len; i++) {
      arr[i] = new CellData(names[i]);
    }

    return arr;
  }
View Full Code Here

    ((XTableView) getView()).showChevron(true);

    TableData tableDS = new TableData();

    tableDS.add(new CellData(createImage("images/icons/i-list.png"), "Lists", null), new CellData(
        createImage("images/icons/i-slider.png"), "Slider", null), new CellData(
        createImage("images/icons/i-radio.png"), "Radio Button", null), new CellData(
        createImage("images/icons/i-button.png"), "Buttons", null), new CellData(
        createImage("images/icons/i-picker.png"), "Picker", null), new CellData(
        createImage("images/icons/i-switch.png"), "Switch", null), new CellData(createImage("images/icons/i-form.png"),
        "Form", null), new CellData(createImage("images/icons/i-progress.png"), "Progress", null), new CellData(
        createImage("images/icons/i-checkbox.png"), "CheckBox", null), new CellData(
        createImage("images/icons/i-image.png"), "Label and Image", null), new CellData(
        createImage("images/icons/i-navigation.png"), "Navigation", null)
    // new CellData(createImage("images/icons/i-TODO.png"), "Popup", null)
        );
    // , "Slide"
View Full Code Here

TOP

Related Classes of next.i.view.CellData

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.