-
public class Set extends Base
Linear data storage. Data is stored as an array or rows where each row contains several columns (see Listing 1 below). To start working with this storage you need to map columns using mapAs method (you can create as many mappings as you like). Each field can be a number, a string, a function, an array or an object. Data fields can of any type and its way you read them depends on mapping only: mapAs. Sample mappings are shown in code samples 3, 4 and 5.Note: To create an instance of this class use set method.
-
-
Method Summary
Modifier and Type Method Description static Setinstantiate()StringgetJsBase()Setappend(String var_args)Appends new rows to the set. voiddata(List<DataEntry> data)voidgetRowsCount()Returns the number of the rows in the current data set. Setinsert(String row, Number index)Inserts the row to the set at the specified position. MappingmapAs(String mapping)Setremove(Number index)Removes the row by index. voidremoveAllListeners(String type)Removes all listeners from an object. voidrow(Number rowIndex)Gets the full row of the set by the index. voidrow(Number rowIndex, String value)Sets the row in the set by the index. 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(). Setdata(View data)Setdata(List<DataEntry> data, TreeFillingMethod fillMethod)Setdata(List<DataEntry> data, String fillMethod)-
-
Constructor Detail
-
Set
Set(String jsChart)
-
-
Method Detail
-
instantiate
static Set instantiate()
-
append
Set append(String var_args)
Appends new rows to the set. Each argument is a row that is appended to the Set.
-
getRowsCount
void getRowsCount()
Returns the number of the rows in the current data set.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
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().
-
data
Set data(List<DataEntry> data, TreeFillingMethod fillMethod)
-
-
-
-