Example usage for com.google.gwt.user.client.ui Anchor setTabIndex

List of usage examples for com.google.gwt.user.client.ui Anchor setTabIndex

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui Anchor setTabIndex.

Prototype

@Override
    public void setTabIndex(int index) 

Source Link

Usage

From source file:com.risevision.ui.client.common.widgets.MenuWidget.java

License:Open Source License

private Anchor addAction(String text, String contentId) {
    Anchor newLink = new Anchor(text);
    newLink.setTabIndex(-1);
    newLink.setHref(//from w  ww  .j a v  a 2  s.c  om
            "#" + contentId + "/company=" + SelectedCompanyController.getInstance().getSelectedCompanyId());
    add(newLink);

    add(new SpacerWidget());
    linkMap.put(newLink, contentId);

    return newLink;
}

From source file:com.risevision.ui.client.common.widgets.MenuWidget.java

License:Open Source License

@SuppressWarnings("unused")
private Anchor addAnchor(String text, String url) {
    Anchor newLink = new Anchor(text);
    newLink.setTabIndex(-1);
    newLink.setHref(url);//  w w w  .jav a  2s  .  c  o m
    newLink.setTarget("_blank");
    add(newLink);

    add(new SpacerWidget());

    return newLink;
}