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

PaneController

public class PaneController
extends Object

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


A controller that allows testing of a Pane.

This controller allows:

Summary

Public methods

Pane get()

Retrieves the Pane that this controller is controlling.

List<ActionController> getActions()

Returns a list of ActionControllers that contain the Actions set in the Pane being controlled.

RowController getRowByTitle(String title)

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

List<RowController> getRows()

Returns a list of RowControllers that contain the Rows that are in the Pane.

boolean isLoading()

Returns true if the Pane is set to be loading.

static PaneController of(Pane pane)

Creates a PaneController to control an Pane for testing.

Inherited methods

Public methods

get

public Pane get ()

Retrieves the Pane that this controller is controlling.

Returns
Pane

getActions

public List<ActionController> getActions ()

Returns a list of ActionControllers that contain the Actions set in the Pane being controlled.

Returns
List<ActionController>

getRowByTitle

public RowController getRowByTitle (String title)

Returns a RowController that contains the first Row found 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

getRows

public List<RowController> getRows ()

Returns a list of RowControllers that contain the Rows that are in the Pane.

Returns
List<RowController>

isLoading

public boolean isLoading ()

Returns true if the Pane is set to be loading.

This state is set via calling Pane.Builder.setIsLoading(boolean).

Returns
boolean

of

public static PaneController of (Pane pane)

Creates a PaneController to control an Pane for testing.

Parameters
pane Pane

Returns
PaneController