public class ExpandableStateController extends Object
ExpandableStateController
is a helper class intended for
ExpandableToolbarItem
s, it finds the first parent of a
ExpandableToolbarItem
which is acknowledged by the current
ExpandableToolbarItemStrategy
and changes the ExpandedState
of the item to the ExpandedState
of the parent.Constructor and Description |
---|
ExpandableStateController(ExpandableToolbarItem item)
Creates a new controller.
|
Modifier and Type | Method and Description |
---|---|
ExpandableToolbarItem |
getItem()
Gets the item which is observed by this controller.
|
void |
refresh()
Searches the first parent of
the item which is
acknowledged by the current ExpandableToolbarItemStrategy and
updates the ExpandedState of the item such that it has the same
state as its parent. |
public ExpandableStateController(ExpandableToolbarItem item)
item
- the item to observepublic ExpandableToolbarItem getItem()
null
public void refresh()
the item
which is
acknowledged by the current ExpandableToolbarItemStrategy
and
updates the ExpandedState
of the item such that it has the same
state as its parent.