Package jfix.zk

Examples of jfix.zk.Linkbutton


        resize(((SizeEvent) event).getWidth(),
            ((SizeEvent) event).getHeight());
      }
    });

    Linkbutton fullscreen = new Linkbutton(null, Images.ViewFullscreen);
    fullscreen.setHref(url);
    fullscreen.setTarget("_blank");

    Caption caption = new Caption();
    caption.appendChild(fullscreen);
    caption.appendChild(newResizeButton("800x600", "800px", "600px"));
    caption.appendChild(newResizeButton("1024x768", "1024px", "768px"));
View Full Code Here


    setHeight(height);
  }

  private Linkbutton newResizeButton(final String label, final String width,
      final String height) {
    return new Linkbutton(label, new ActionListener() {
      public void actionPerformed(Event event) {
        resize(width, height);
      }
    });
  }
View Full Code Here

    navigationTree.resetSelectedValue();
    navigationTree.refresh();
  }

  private Linkbutton newGoHomeButton() {
    Linkbutton button = new Linkbutton(null, Images.GoHome);
    button.setTooltiptext(I18N.get("Go_Home"));
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        refreshModel(JeaseSession.getRoots());
      }
    });
    return button;
View Full Code Here

    });
    return button;
  }

  private Linkbutton newGoIntoButton() {
    Linkbutton button = new Linkbutton(null, Images.GoJump);
    button.setTooltiptext(I18N.get("Go_Into"));
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        refreshModel(new Node[] { JeaseSession.getContainer() });
      }
    });
    return button;
View Full Code Here

    }
    desktopPanel.appendChildToToolbar(newEditButton(node));
  }

  protected Linkbutton newNavigationButton(final Node node) {
    Linkbutton button = new Linkbutton(node.getId() + " /");
    button.setDisabled(!node.isDescendant(JeaseSession.getRoots()));
    button.setTooltiptext(node.getType());
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        JeaseSession.setContainer(node);
        forceRefresh();
      }
    });
View Full Code Here

  }

  protected Linkbutton newEditButton(final Node node) {
    String label = Validations.isEmpty(node.getId()) ? node.getPath()
        : node.getId();
    Linkbutton button = new Linkbutton(label);
    button.setTooltiptext(node.getType());
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        desktopTable.onSelect(node);
      }
    });
    return button;
View Full Code Here

    return selectedNode;
  }

  public class NodeBrowser extends AbstractNodeBrowser {
    protected Button newNodeSelector(final Node node) {
      Linkbutton button = new Linkbutton(node.getId(), JeaseSession
          .getConfig().getIcon(node));
      button.addClickListener(new ActionListener() {
        public void actionPerformed(Event event) {
          nodeSelectPerformed(node);
        }
      });
      return button;
View Full Code Here

    callbackId = Executions.getCurrent().getParameter("CKEditorFuncNum");
    super.init();
  }

  protected Button newNodeSelector(Node node) {
    Linkbutton button = new Linkbutton(node.getId(), JeaseSession
        .getConfig().getIcon(node));
    button.setWidgetListener(
        "onClick",
        String.format(CALLBACK_SCRIPT, callbackId,
            "./~" + node.getPath()));
    return button;
  }
View Full Code Here

TOP

Related Classes of jfix.zk.Linkbutton

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.