API Reference 0.7.1rikulo_viewIDSpace

IDSpace abstract class

An ID space.

abstract class IDSpace {
 /** Searches and returns the first view that matches the given selector,
  * or null if not found.
  */
 View query(String selector);
 /** Searches and returns all views that matches the selector (never null).
  */
 List<View> queryAll(String selector);

 /** Returns a map of all fellows in this ID space.
  * The key is ID, while the value is the view with the given ID.
  *
  *     view.fellows['foo'].width = 100;
  *       //equivalent to view.query('#foo').width = 100
  *
  * Notice that the application shall consider the map as read-only.
  * Otherwise, the result is unpredictable.
  */
 Map<String, View> get fellows;
}

Subclasses

Section

Properties

final Map<String, View> fellows #

Returns a map of all fellows in this ID space. The key is ID, while the value is the view with the given ID.

view.fellows['foo'].width = 100;
  //equivalent to view.query('#foo').width = 100

Notice that the application shall consider the map as read-only. Otherwise, the result is unpredictable.

Map<String, View> get fellows;

Methods

abstract View query(String selector) #

Searches and returns the first view that matches the given selector, or null if not found.

abstract List<View> queryAll(String selector) #

Searches and returns all views that matches the selector (never null).