Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Anchor.addStyleName()


   @Test
   public void stylePrimaryNameEquals() {
      // Arrange
      Anchor a = new Anchor();
      a.setStylePrimaryName("primary");
      a.addStyleName("second");

      // Act
      try {
         assertThat(a).stylePrimaryNameEquals("primary");
      } catch (AssertionError e) {
View Full Code Here


   @Test
   public void stylePrimaryNameEqualsAssertionErrorMessage() {
      // Arrange
      Anchor a = new Anchor();
      a.setStylePrimaryName("primary");
      a.addStyleName("second");

      // Act
      try {
         assertThat(a).stylePrimaryNameEquals("not-my-style");
         fail("AssertionError should be thrown");
View Full Code Here

   @Test
   public void stylePrimaryNameEqualsWithAsAndCustomAssertionErrorMessage() {
      // Arrange
      Anchor a = new Anchor();
      a.setStylePrimaryName("primary");
      a.addStyleName("second");

      // Act
      try {
         assertThat(a).as("my anchor").overridingErrorMessage("my custom error").stylePrimaryNameEquals(
                  "not-my-style");
View Full Code Here

   @Test
   public void stylePrimaryNameEqualsWithAsAssertionErrorMessage() {
      // Arrange
      Anchor a = new Anchor();
      a.setStylePrimaryName("primary");
      a.addStyleName("second");

      // Act
      try {
         assertThat(a).as("my anchor").stylePrimaryNameEquals("not-my-style");
         fail("AssertionError should be thrown");
View Full Code Here

   @Test
   public void stylePrimaryNameEqualsWithCustomAssertionErrorMessage() {
      // Arrange
      Anchor a = new Anchor();
      a.setStylePrimaryName("primary");
      a.addStyleName("second");

      // Act
      try {
         assertThat(a).overridingErrorMessage("my custom error").stylePrimaryNameEquals(
                  "not-my-style");
View Full Code Here

 
  public void initializeForm(){
    if (m_UploadControl.isUploadEnabled())
    {
    Anchor button = new Anchor("Upload Options");
    button.addStyleName("up-options");
    button.addClickHandler(new ClickHandler() {
     
      @Override
      public void onClick(ClickEvent event) {
        m_Container.doDialog("index.php/admin/upload_configure", new HttpDialogHandler() {
View Full Code Here

    for (Menu menu : Menu.values()) {
      Anchor menuItem = new Anchor();
      menuItem.setHTML(menu.description);
      menuItem.setHref(menu.url);
      menuItem.setWordWrap(false);
      menuItem.addStyleName("menuItems");
      playgroundUI.feedbackPanel.add(menuItem);
      playgroundUI.feedbackPanel.setCellWidth(menuItem, "100%");
    }
  }
View Full Code Here

        Label title = new Label(metaData.getTitle());
        title.addStyleName(StaticResourceBundle.INSTANCE.coreCss().title());
        dataPanel.add(title);
        dataPanel.add(new HTML(metaData.getDescription()));
        Anchor titleUrl = new Anchor(metaData.getTitleUrl(), metaData.getTitleUrl(), "_blank");
        titleUrl.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetTitleUrl());

        dataPanel.add(titleUrl);
        FlowPanel gadgetExtInfo = new FlowPanel();
        gadgetExtInfo.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetExtInfo());
        gadgetExtInfo.add(new HTML("Category: "));
View Full Code Here

            renderers.put(name, renderer);
            fetchers.put(name, fetchable);

            Anchor filterLink = new Anchor(name);
            filterLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionFilterButton());

            filterLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
View Full Code Here

                sortPanel.add(new Label("Sort: "));
                sortPanels.put(name, sortPanel);
            }

            Anchor sortLink = new Anchor(sortKey);
            sortLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionFilterButton());
            sortLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    updateStateIfChanged(name, sortKey, null, null, true);
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.