Package next.i.view.widgets

Examples of next.i.view.widgets.XButton


    XFlexTable panel = new XFlexTable();
    panel.setCellSpacing(40);

    final XProgress progress = new XProgress();
    // progress.setTransistionTiming(1000);
    XButton btn = new XButton("Start Progress");

    btn.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        if(!progress.isRunning()){
          progress.reset();
          runProgress(0, progress);
        }
View Full Code Here


  }

  @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

  public static void openGit(String source, final String url) {

    final XFlexTable tbl = new XFlexTable();

    final XButton btnCopy = new XButton("Copy", XButtonType.Shadow);
    btnCopy.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        markText(tbl.getWidget(0, 0).getElement());
      }
    });

    final XButton btnGit = new XButton("View in GitHub", XButtonType.Shadow);
    btnGit.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        // Window.open(Globals.GIT_HOST + url + ".java", "_tab", "");
        // Utils.loadUrl(Globals.GIT_HOST + url + ".java");

        // This click handler seems to work best
View Full Code Here

TOP

Related Classes of next.i.view.widgets.XButton

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.