-
-
Method Summary
Modifier and Type Method Description static Mappinginstantiate()StringgetJsBase()Mappingconcat(View otherView)Concatenates two views to make a derived view that contains rows from both views. Mappingconcat(Array<String> otherView)Concatenates two views to make a derived view that contains rows from both views. Mappingderive()Creates a derived view, containing just the same data set and order as this view does. voidfind(String fieldName, String fieldValue)Searches fieldName by fieldValue and returns its index (or the first match). voidget(Number rowIndex, String fieldName)Gets the value from the row by row index and field name. voidgetDataSets()Returns parent data sets. IteratorgetIterator()Returns a new iterator for the current view. voidgetMapping()Gets the mapping. voidgetRowsCount()Returns the number of the rows in the current view. voidmeta(Number index, String name)Getter for a metadata value. Mappingmeta(Number index, String name, String value)Setter for a metadata value. voidremoveAllListeners(String type)Removes all listeners from an object. voidrow(Number rowIndex)Gets a full row of the set by an index. voidrow(Number rowIndex, String value)Sets a row of the set by an index. Mappingset(Number rowIndex, String fieldName, String value)Sets the value to the row field by row index and field name. Mappingsort(String fieldName, Sort order)Creates a derived view that ensures sorting by a passed field. Mappingsort(String fieldName, String order)Creates a derived view that ensures sorting by a passed field. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). -
Methods inherited from class com.anychart.data.View
concat, concat, derive, instantiate, meta, set, sort, sort -
Methods inherited from class com.anychart.core.Base
instantiate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Mapping
Mapping(String jsChart)
-
-
Method Detail
-
instantiate
static Mapping instantiate()
-
concat
Mapping concat(View otherView)
Concatenates two views to make a derived view that contains rows from both views.
-
concat
Mapping concat(Array<String> otherView)
Concatenates two views to make a derived view that contains rows from both views.
-
derive
Mapping derive()
Creates a derived view, containing just the same data set and order as this view does.
-
find
void find(String fieldName, String fieldValue)
Searches fieldName by fieldValue and returns its index (or the first match).
-
get
void get(Number rowIndex, String fieldName)
Gets the value from the row by row index and field name.
-
getDataSets
void getDataSets()
Returns parent data sets.
-
getIterator
Iterator getIterator()
Returns a new iterator for the current view.
-
getMapping
void getMapping()
Gets the mapping. Returns the set mapping (from the method) or the default mapping.
-
getRowsCount
void getRowsCount()
Returns the number of the rows in the current view.
-
meta
Mapping meta(Number index, String name, String value)
Setter for a metadata value. Learn how it works at meta.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
set
Mapping set(Number rowIndex, String fieldName, String value)
Sets the value to the row field by row index and field name.
-
sort
Mapping sort(String fieldName, Sort order)
Creates a derived view that ensures sorting by a passed field.
-
sort
Mapping sort(String fieldName, String order)
Creates a derived view that ensures sorting by a passed field.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
-
-
-