Examples of Anchor


Examples of com.google.gwt.user.client.ui.Anchor

  public PageScroller() {
  panel = new HorizontalPanel();
  panel.setStylePrimaryName("lab-PageScroller");
    panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
  stateLabel = new Anchor("No Pages", true);
  stateLabel.setStylePrimaryName("lab-PageScroller-Caption");
  stateLabel.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      CommandEvent.fire(new SystemSetPerspectiveCommand(
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

    box.setStylePrimaryName("lab-Previewer-Page");
    box.getElement().getStyle().setOverflow(Overflow.HIDDEN);
    Image img = new Image();
    img.setUrl(pages[i].replace("?", "_tn?"));
    img.setStylePrimaryName("lab-Previewer-Page-Image");
    Anchor caption = new Anchor("Page " + (i + 1));
    caption.setHref("#");
    caption.setStylePrimaryName("lab-Previewer-Page-Caption");
    caption.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      event.preventDefault();
      event.stopPropagation();
      CommandEvent.fire(new SystemViewPageCommand(pageNumber));
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

  this.annotationsBar.clear();
  int lastYPosition = 0;
  for (final Annotation annotation : annotations) {
    final int yPosition = annotation.getyPosition() - lastYPosition;
    lastYPosition = annotation.getyPosition();
      Anchor hintLink = new Anchor(annotation.getLabel());
      hintLink.setTitle(annotation.getTitle());
      hintLink.getElement().getStyle().setFontSize(10, Unit.PX);
        hintLink.getElement().getStyle().setDisplay(Display.BLOCK);
        hintLink.getElement().getStyle().setMarginTop(yPosition - 14, Unit.PX);
      hintLink.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        event.preventDefault();
        event.stopPropagation();
        SelectionEvent.fire(AnnotatedPanel.this, annotation);
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

    Image logo = Icons.editorIcons.Logo().createImage();
    logo.setStylePrimaryName("lab-Header-Logo");
    HorizontalPanel titlePanel = new HorizontalPanel();
    titlePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    titlePanel.getElement().getStyle().setOverflow(Overflow.HIDDEN);
    title = new Anchor("", "");
    title.setStylePrimaryName("lab-Header-Title");
    title.setTitle("Click to rename this document");
    title.addClickHandler(this);
    info = new HTML();
    info.setStylePrimaryName("lab-Header-Info");
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

    table.getFlexCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);
    table.getFlexCellFormatter().setStylePrimaryName(0, 0, "lab-Header-Links");
    table.getFlexCellFormatter().setStylePrimaryName(0, 1, "lab-Header-Links");
    /* Upper Header Panel */
    leftLinks = new HorizontalPanel();
    Anchor projectLink = new Anchor("Project", "http://code.google.com/p/latex-lab", "_blank");
    Anchor wikiLink = new Anchor("Wiki", "http://code.google.com/p/latex-lab/w/list", "_blank");
    Anchor issuesLink = new Anchor("Issues", "http://code.google.com/p/latex-lab/issues/list", "_blank");
    Anchor devLink = new Anchor("Development Version", "http://dev.latexlab.org/docs", "_blank");
    Anchor texLink = new Anchor("TeXnicCenter", "http://www.texniccenter.org/", "_blank");
    leftLinks.add(projectLink);
    leftLinks.add(wikiLink);
    leftLinks.add(issuesLink);
    leftLinks.add(devLink);
    leftLinks.add(texLink);
    rightLinks = new HorizontalPanel();
    author = new Label();
    Anchor docsLink = new Anchor("Docs Home", "http://docs.google.com/", "_blank");
    Anchor helpLink = new Anchor("Help", "http://code.google.com/p/latex-lab/wiki/UsingLaTeXLab", "_blank");
    Anchor acLink = new Anchor("Access Control", "https://www.google.com/accounts/IssuedAuthSubTokens", "_blank");
    signoutLink = new Anchor("Sign Out");
    signoutLink.addClickHandler(new ClickHandler(){
      public void onClick(ClickEvent event) {
        CommandEvent.fire(new SystemSignOutCommand());
      }
    });
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

  /**
   * Constructs a new FileBox instance.
   */
  public FileBox() {
  link = new Anchor("No File Selected");
  link.setHref("#");
  link.setTitle("Click to select file.");
  link.setStylePrimaryName("lab-FileBox-Empty");
  link.addClickHandler(new ClickHandler() {
      @Override
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

            // format the time in the local time zone
            long time = UTCDateBox.timezoneOffsetMillis(new Date(0)) + offsetFromMidnight;
            value = timeFormat.format(new Date(time));

            Anchor anchor = new Anchor(value);
            anchor.addClickHandler(new ClickHandler() {

                @Override
                public void onClick(ClickEvent event) {
                    acceptValue();
                    hideMenu();
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

   public CommitTocRow(String filename)
   {
      icon_ = new Image(
            RStudioGinjector.INSTANCE.getFileTypeRegistry().getIconForFilename(
                                                                     filename));
      anchor_ = new Anchor(filename);

      initWidget(binder_.createAndBindUi(this));
   }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

  /**
   * A utility method to hide the soft keyboard
   */
  public static void hideKeyBoard() {
    final Anchor anchor = new Anchor(" ");

    anchor.getElement().getStyle().setWidth(1, Unit.PX);
    anchor.getElement().getStyle().setHeight(1, Unit.PX);
    anchor.getElement().getStyle().setDisplay(Display.INLINE);
    anchor.getElement().getStyle().setFloat(Float.LEFT);

    RootPanel.get().add(anchor);
    anchor.setFocus(true);

    Scheduler.get().scheduleDeferred(new ScheduledCommand() {

      @Override
      public void execute() {
        anchor.removeFromParent();

      }
    });
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor

  private static Cipher cipher;
 
  public static void init(Game game,String assetsPrefix){
   
    if(!(Canvas.isSupported()&&Storage.isLocalStorageSupported())){
      RootPanel.get().add(new Anchor("Sorry,your browser doesn't support HTML5.Go get Chrome!",
          "http://chrome.google.com"));
      return;
    }
    canvas=Canvas.createIfSupported();
    storage=Storage.getLocalStorageIfSupported();
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.