Class NativeDetailsTester

All Implemented Interfaces:
ClickHandler

public class NativeDetailsTester extends HtmlComponentTester<NativeDetails> implements ClickHandler
  • Constructor Details

    • NativeDetailsTester

      public NativeDetailsTester(NativeDetails component)
      Wrap given component for testing.
      Parameters:
      component - target component
  • Method Details

    • click

      public void click(int button, MetaKeys metaKeys)
      Specified by:
      click in interface ClickHandler
    • getSummary

      public NativeDetails.Summary getSummary()
      Get the summary component of this Details element.
      Returns:
      summary component
    • getSummaryText

      public String getSummaryText()
      Get the summary text.
      Returns:
      text in the summary element
    • getContent

      public Component getContent()
      Get details content if the details is opened.
      Returns:
      details content
      Throws:
      IllegalStateException - if content is not displayed
    • toggleContent

      public void toggleContent()
      Toggle the open state of the component.