Package jfix.zk

Examples of jfix.zk.Popup


  private void updateContent() {
    grid.getRows().getChildren().clear();
    for (Node node : JeaseSession.getFilter().apply(
        ((Node) tree.getSelectedValue()).getChildren())) {
      Button button = newNodeSelector(node);
      Popup popup = newNodePreview(node);
      if (popup != null) {
        button.setTooltip(popup);
        grid.add(button, popup);
      } else {
        grid.add(button);
View Full Code Here


  }

  private Popup newNodePreview(Node node) {
    String id = node.getId();
    if (id.endsWith(".jpg") || id.endsWith(".png") || id.endsWith(".gif")) {
      return new Popup(new Image(node.getPath()));
    } else {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of jfix.zk.Popup

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.