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:
- Retrieving the title set via
PaneTemplate.Builder.setTitle(CharSequence)
. - Retrieving the
Pane
set viaPaneTemplate.Builder.setPane(Pane)
. - Retrieving a
Row
by title that is in thePane
. - Retrieving the header
Action
which is set viaPaneTemplate.Builder.setHeaderAction(Action)
. - Retrieving the
ActionStrip
set viaPaneTemplate.Builder.setActionStrip(ActionStrip)
.
Summary
Public methods | |
---|---|
PaneTemplate
|
get()
Retrieves the |
ActionStripController
|
getActionStrip()
Returns an |
ActionController
|
getHeaderAction()
Retrieves a |
PaneController
|
getPane()
Returns a |
RowController
|
getRowByTitle(String title)
Returns a |
String
|
getTitle()
Retrieves the title set in the |
static
PaneTemplateController
|
of(PaneTemplate paneTemplate)
Creates a |
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 |