Google is committed to advancing racial equity for Black communities. See how.

PaneTemplateController

public class PaneTemplateController
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.testing.model.PaneTemplateController


A controller that allows testing of a PaneTemplate.

This controller allows:

Summary

Public methods

PaneTemplate get()

Retrieves the PaneTemplate that this controller is controlling.

ActionStripController getActionStrip()

Returns an ActionStripController that contains the ActionStrip in the PaneTemplate that is being controlled, or null if one is not present.

ActionController getHeaderAction()

Retrieves a ActionController for the header Action that is being controlled, or null if none is present.

PaneController getPane()

Returns a PaneController that contains the Pane in the PaneTemplate that is being controlled.

RowController getRowByTitle(String title)

Returns a RowController that contains the first Row in the Pane, which has the given title as its title, or null if one is not present.

String getTitle()

Retrieves the title set in the PaneTemplate that is being controlled, or null if none is present.

static PaneTemplateController of(PaneTemplate paneTemplate)

Creates a PaneTemplateController to control an PaneTemplate for testing.

Inherited methods

Public methods

get

public PaneTemplate get ()

Retrieves the PaneTemplate that this controller is controlling.

Returns
PaneTemplate

getActionStrip

public ActionStripController getActionStrip ()

Returns an ActionStripController that contains the ActionStrip in the PaneTemplate that is being controlled, or null if one is not present.

Returns
ActionStripController

getHeaderAction

public ActionController getHeaderAction ()

Retrieves a ActionController for the header Action that is being controlled, or null if none is present.

Returns
ActionController

getPane

public PaneController getPane ()

Returns a PaneController that contains the Pane in the PaneTemplate that is being controlled.

Returns
PaneController

getRowByTitle

public RowController getRowByTitle (String title)

Returns a RowController that contains the first Row in the Pane, which has the given title as its title, or null if one is not present.

The value should be the CharSequence.toString() for the title originally provided.

Parameters
title String

Returns
RowController

getTitle

public String getTitle ()

Retrieves the title set in the PaneTemplate that is being controlled, or null if none is present.

The value returned is the CharSequence.toString() for the title originally provided.

Returns
String

of

public static PaneTemplateController of (PaneTemplate paneTemplate)

Creates a PaneTemplateController to control an PaneTemplate for testing.

Parameters
paneTemplate PaneTemplate

Returns
PaneTemplateController