Examples of LinkButton


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

Examples of jfix.zk.Linkbutton

    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

Examples of jfix.zk.Linkbutton

    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

Examples of jfix.zk.Linkbutton

    });
    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

Examples of jfix.zk.Linkbutton

    }
    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

Examples of jfix.zk.Linkbutton

  }

  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

Examples of jfix.zk.Linkbutton

    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

Examples of jfix.zk.Linkbutton

    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

Examples of org.apache.pivot.wtk.LinkButton

    @Override
    public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
        boolean consumed = super.mouseClick(component, button, x, y, count);

        if (button == Mouse.Button.LEFT) {
            LinkButton linkButton = (LinkButton)getComponent();
            linkButton.press();
        }

        return consumed;
    }
View Full Code Here

Examples of org.apache.pivot.wtk.LinkButton

        disabledColor = theme.getColor(7);
    }

    @Override
    public int getPreferredWidth(int height) {
        LinkButton linkButton = (LinkButton)getComponent();

        Button.DataRenderer dataRenderer = linkButton.getDataRenderer();
        dataRenderer.render(linkButton.getButtonData(), linkButton, false);

        return dataRenderer.getPreferredWidth(height);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.