code stringlengths 4 1.01M |
|---|
using SQLite;
namespace KinderChat
{
/// <summary>
/// Business entity base class. Provides the ID property.
/// </summary>
public abstract class EntityBase
{
/// <summary>
/// Gets or sets the Database ID.
/// </summary>
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
}
}
|
var expect = chai.expect;
describe("sails", function() {
beforeEach(function() { });
afterEach(function() { });
it('should not fail', function() { expect(true).to.be.true; });
});
|
// external imports
import axios from 'axios'
import { Base64 } from 'js-base64'
import path from 'path'
import fm from 'front-matter'
// local imports
import zipObject from '../zipObject'
import decrypt from '../decrypt'
/** 从github调用并在本地缓存期刊内容,返回Promise。主要函数:
* getContent: 调取特定期刊特定内容。如获取第1期“心智”子栏目中第2篇文章正文:getContent(['issues', '1', '心智', '2', 'article.md'])。
* getCurrentIssue: 获取最新期刊号,无需参数。
* getAbstracts: 获取所有文章简介,需要提供期刊号。
*/
class magazineStorage {
/**
* 建立新期刊instance.
* @param {string} owner - github项目有所有者
* @param {string} repo - github项目名称
* @param {array} columns - 各子栏目列表
*/
constructor(owner = 'Perspicere', repo = 'PerspicereContent', columns = ['心智', '此岸', '梦境']) {
// github account settings
this.owner = owner
this.repo = repo
// array of submodules
this.columns = columns
// grap window storage
this.storage = window.sessionStorage
// keys to be replaced with content
this.urlReplace = ['img', 'image']
// github api
this.baseURL = 'https://api.github.com/'
// github api
// github 禁止使用明文储存access token,此处使用加密token
// 新生成token之后可以通过encrypt函数加密
// TODO: use OAuth?
this.github = axios.create({
baseURL: this.baseURL,
auth: {
username: 'guoliu',
password: decrypt(
'6a1975233d2505057cfced9c0c847f9c99f97f8f54df8f4cd90d4d3949d8dff02afdac79c3dec4a9135fad4a474f8288'
)
},
timeout: 10000
})
}
// get content from local storage
// 总数据大小如果超过5mb限制,需要优化存储
get content() {
let content = this.storage.getItem('content')
if (!content) {
return {}
}
return JSON.parse(content)
}
// cache content to local storage
set content(tree) {
this.storage.setItem('content', JSON.stringify(tree))
}
// get current issue number from local storage
get currentIssue() {
return this.storage.getItem('currentIssue')
}
// cache current issue number
set currentIssue(issue) {
this.storage.setItem('currentIssue', issue)
}
// locate leaf note in a tree
static locateLeaf(tree, location) {
if (location.length === 0) {
return tree
}
try {
return magazineStorage.locateLeaf(tree[location[0]], location.slice(1))
} catch (err) {
return null
}
}
// helper function to return tree with an extra leaf node
static appendLeaf(tree, location, leaf) {
if (location.length === 0) {
return leaf
} else if (!tree) {
tree = {}
}
return {
...tree,
[location[0]]: magazineStorage.appendLeaf(tree[location[0]], location.slice(1), leaf)
}
}
// build url for image
imageURL = location => `https://github.com/${this.owner}/${this.repo}/raw/master/${path.join(...location)}`
// pull content from github with given path
pullContent = async location => {
try {
const res = await this.github.get(`/repos/${this.owner}/${this.repo}/contents/${path.join(...location)}`)
return res.data
} catch (err) {
console.warn(`Error pulling data from [${location.join(', ')}], null value will be returned instead`, err)
return null
}
}
// parse responce, returns an object
parseData = data => {
if (!data) {
return null
}
// if we get an array, parse every element
if (data.constructor === Array) {
return data.reduce(
(accumulated, current) => ({
...accumulated,
[current.name]: this.parseData(current)
}),
{}
)
}
if (data.content) {
const ext = path.extname(data.path)
const content = Base64.decode(data.content)
// if it's a markdown file, parse it and get meta info
if (ext === '.md') {
const { attributes, body } = fm(content)
// replace image paths
const bodyWithUrl = body.replace(
/(!\[.*?\]\()(.*)(\)\s)/,
(_, prev, url, post) => `${prev}${this.imageURL([...data.path.split('/').slice(0, -1), url])}${post}`
)
return {
...attributes,
body: bodyWithUrl
}
}
if (ext === '.json') {
// if it's a json, parse it
return JSON.parse(content)
}
return content
}
if (data.type === 'dir') {
// if we get a directory
return {}
}
return null
}
/**
* 调用期刊内容.
* @param {string} location - 内容位置,描述目标文档位置。例如第1期“心智”子栏目中第2篇文章正文:['issues', '1', '心智', '2', 'article.md']。
* @return {object} 目标内容
*/
getContent = async location => {
// 尝试从本地获取
let contentNode = magazineStorage.locateLeaf(this.content, location) || {}
// 本地无值,从远程调用
if (contentNode.constructor === Object && Object.keys(contentNode).length === 0) {
const data = await this.pullContent(location)
contentNode = this.parseData(data)
// 将json中路径替换为url,例如图片
if (contentNode && contentNode.constructor === Object && Object.keys(contentNode).length > 0) {
const URLkeys = Object.keys(contentNode).filter(field => this.urlReplace.includes(field))
const URLs = URLkeys.map(key => this.imageURL([...location.slice(0, -1), contentNode[key]]))
contentNode = { ...contentNode, ...zipObject(URLkeys, URLs) }
}
this.content = magazineStorage.appendLeaf(this.content, location, contentNode)
}
return contentNode
}
/**
* 获取最新期刊号。
* @return {int} 最新期刊号。
*/
getCurrentIssue = async () => {
if (!this.currentIssue) {
const data = await this.getContent(['issues'])
this.currentIssue = Object.keys(data)
.filter(
entry => data[entry] && data[entry].constructor === Object // is a directory
)
.reduce((a, b) => Math.max(parseInt(a), parseInt(b)))
}
return this.currentIssue
}
/**
* 获取期刊所有文章简介。
* @param {int} issue - 期刊号。
* @return {object} 该期所有文章简介。
*/
getIssueAbstract = async issue => {
// 默认获取最新一期
let issueNumber = issue
if (!issue) {
issueNumber = await this.getCurrentIssue()
}
const issueContent = await Promise.all(
this.columns.map(async column => {
// 栏目文章列表
const articleList = Object.keys(await this.getContent(['issues', issueNumber, column]))
// 各文章元信息
const columnContent = await Promise.all(
articleList.map(article => this.getContent(['issues', issueNumber, column, article, 'article.md']))
)
return zipObject(articleList, columnContent)
})
)
// 本期信息
const meta = await this.getContent(['issues', issueNumber, 'meta.json'])
return {
...meta,
content: zipObject(this.columns, issueContent)
}
}
/**
* 获取期刊所有单篇文章。
* @return {object} 所有单篇文章。
* TODO: 仅返回一定数量各子栏目最新文章
*/
getArticleAbstract = async () => {
// 各栏目
const articlesContent = await Promise.all(
this.columns.map(async column => {
// 栏目文章列表
const articleList = Object.keys((await this.getContent(['articles', column])) || {})
// 各文章元信息
const columnContent = await Promise.all(
articleList.map(article => this.getContent(['articles', column, article, 'article.md']))
)
return zipObject(articleList, columnContent)
})
)
return zipObject(this.columns, articlesContent)
}
}
export default new magazineStorage()
|
package ncbiutils
import (
"bufio"
"bytes"
"io"
"os"
"path/filepath"
"strings"
)
var GCTABLES map[string]*GeneticCode
type Taxa struct {
Id string // node id in GenBank taxonomy database
Name string // the unique variant of names
Parent string // parent node id in GenBank taxonomy database
Rank string // rank of this node (superkingdom, kingdom ...)
EmblCode string // locus-name prefix
Division string // division
InheritedDivFlag string // 1 if node inherits division from parent
GeneticCode *GeneticCode // genetic code
InheriteGCFlag string // 1 if node inherits genetic code from parent
MitochondrialGC *GeneticCode // mitochondrial genetic code
InheriteMGCFlag string // 1 if node inherits mitochondrial genetic code from parent
Comments string // free-text comments and citations
}
// read taxonomy from NCBI taxonomy database dmp
// returns a map[id]Taxa
func ReadTaxas(dir string) map[string]Taxa {
taxaMap := make(map[string]Taxa)
namesFilePath := filepath.Join(dir, "names.dmp")
f, err := os.Open(namesFilePath)
if err != nil {
panic(err)
}
defer f.Close()
nameMap := getNames(f)
gcFilePath := filepath.Join(dir, "gencode.dmp")
f, err = os.Open(gcFilePath)
if err != nil {
panic(err)
}
defer f.Close()
gencodes := ReadGeneticCodes(f)
nodesFilePath := filepath.Join(dir, "nodes.dmp")
f, err = os.Open(nodesFilePath)
if err != nil {
panic(err)
}
defer f.Close()
r := bufio.NewReader(f)
for {
l, err := r.ReadString('\n')
if err != nil {
if err != io.EOF {
panic(err)
}
break
}
fields := strings.Split(l, "\t|\t")
id := fields[0]
parent := fields[1]
rank := fields[2]
embl := fields[3]
division := fields[4]
idivflag := fields[5]
gcid := fields[6]
igcflag := fields[7]
mgcid := fields[8]
imgcflag := fields[9]
comments := fields[12]
taxa := Taxa{
Id: id,
Parent: parent,
Rank: rank,
EmblCode: embl,
Division: division,
InheritedDivFlag: idivflag,
GeneticCode: gencodes[gcid],
InheriteGCFlag: igcflag,
MitochondrialGC: gencodes[mgcid],
InheriteMGCFlag: imgcflag,
Comments: comments,
Name: nameMap[id],
}
taxaMap[id] = taxa
}
return taxaMap
}
type GeneticCode struct {
Id string // GenBank genetic code id
Abbreviation string // genetic code name abbreviation
Name string // genetic code name
Table map[string]byte // translate table for this genetic code
Starts []string // start codon for this genetic code
FFCodons map[string]bool // four-fold codons
}
func GeneticCodes() (gcMap map[string]*GeneticCode) {
buf := bytes.NewBufferString(GCSTRING)
gcMap = ReadGeneticCodes(buf)
return
}
func ReadGeneticCodes(f io.Reader) (gcMap map[string]*GeneticCode) {
gcMap = make(map[string]*GeneticCode)
rd := bufio.NewReader(f)
for {
l, err := rd.ReadString('\n')
if err != nil {
if err != io.EOF {
panic(err)
}
break
}
fields := strings.Split(l, "\t|\t")
id := fields[0]
abb := fields[1]
name := fields[2]
cde := fields[3]
starts := fields[4]
table, ffs := getTables(cde[:64])
startCodons := getStartCodons(starts[:64])
gc := GeneticCode{
Id: id,
Abbreviation: abb,
Name: name,
Table: table,
Starts: startCodons,
FFCodons: ffs,
}
gcMap[id] = &gc
}
return
}
func getTables(s string) (table map[string]byte, ffCodons map[string]bool) {
table = make(map[string]byte)
nn := "TCAG"
l := 0
for i := 0; i < 4; i++ {
for j := 0; j < 4; j++ {
for k := 0; k < 4; k++ {
c := string([]byte{nn[i], nn[j], nn[k]})
table[c] = s[l]
l++
}
}
}
ffCodons = make(map[string]bool)
for i := 0; i < 4; i++ {
for j := 0; j < 4; j++ {
ff := true
aa := table[string([]byte{nn[i], nn[j], nn[0]})]
for k := 0; k < 4; k++ {
c := string([]byte{nn[i], nn[j], nn[k]})
if table[c] != aa {
ff = false
break
}
}
for k := 0; k < 4; k++ {
c := string([]byte{nn[i], nn[j], nn[k]})
ffCodons[c] = ff
}
}
}
return
}
func getStartCodons(s string) (starts []string) {
nn := "TCAG"
l := 0
for i := 0; i < 4; i++ {
for j := 0; j < 4; j++ {
for k := 0; k < 4; k++ {
c := string([]byte{nn[i], nn[j], nn[k]})
if s[l] == 'M' {
starts = append(starts, c)
}
l++
}
}
}
return
}
// returns a map[id][scientific name]
func getNames(f io.Reader) map[string]string {
nameMap := make(map[string]string)
r := bufio.NewReader(f)
for {
l, err := r.ReadString('\n')
if err != nil {
if err != io.EOF {
panic(err)
}
break
}
fields := strings.Split(l, "\t|\t")
id := fields[0]
name := fields[1]
class := strings.Split(strings.TrimSpace(fields[3]), "\t|")[0]
if class == "scientific name" {
nameMap[id] = name
}
}
return nameMap
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>scripts/SuccessiveMelodicIntervals.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="icon" href="../assets/favicon.ico">
<script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">
<div id="doc">
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="../assets/css/logo.png" title="" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: </em>
</div>
</div>
<div id="bd" class="yui3-g">
<div class="yui3-u-1-4">
<div id="docs-sidebar" class="sidebar apidocs">
<div id="api-list">
<h2 class="off-left">APIs</h2>
<div id="api-tabview" class="tabview">
<ul class="tabs">
<li><a href="#api-classes">Classes</a></li>
<li><a href="#api-modules">Modules</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" id="api-filter" placeholder="Type to filter APIs">
</div>
<div id="api-tabview-panel">
<ul id="api-classes" class="apis classes">
<li><a href="../classes/MusicSnippet.html">MusicSnippet</a></li>
<li><a href="../classes/Note.html">Note</a></li>
<li><a href="../classes/QuestionGenerator.html">QuestionGenerator</a></li>
<li><a href="../classes/SuccessiveMelodicIntervals.html">SuccessiveMelodicIntervals</a></li>
</ul>
<ul id="api-modules" class="apis modules">
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="yui3-u-3-4">
<div id="api-options">
Show:
<label for="api-show-inherited">
<input type="checkbox" id="api-show-inherited" checked>
Inherited
</label>
<label for="api-show-protected">
<input type="checkbox" id="api-show-protected">
Protected
</label>
<label for="api-show-private">
<input type="checkbox" id="api-show-private">
Private
</label>
<label for="api-show-deprecated">
<input type="checkbox" id="api-show-deprecated">
Deprecated
</label>
</div>
<div class="apidocs">
<div id="docs-main">
<div class="content">
<h1 class="file-heading">File: scripts/SuccessiveMelodicIntervals.js</h1>
<div class="file">
<pre class="code prettyprint linenums">
/**
* Generates a series of four random twelve-tone notes.
* @class SuccessiveMelodicIntervals
* @constructor
*/
function SuccessiveMelodicIntervals(numNotes) {
const DEFAULT_LENGTH = 4;
var length;
if (numNotes == null || numNotes < 2 || numNotes > 11) {
length = DEFAULT_LENGTH;
} else {
length = numNotes;
}
var g = Math.random();
var notes = generateMelody();
// var answers = calculateAnswers();
/**
* @method getAnswers
* @return {String[]} intervals
*/
this.getAnswers = function() {
var answers = []
for (var i = 0; i < notes.length - 1; i++) {
answers.push(notes[i].getInterval(notes[i+1]));
}
return answers;
}
/**
* Returns the notes as Strings
* @method getNotes
* @return {String[]} notes
*/
this.getNotes = function() {
var notes1 = [];
for (var i = 0; i < notes.length; i++) {
notes1.push(notes[i].toString());
}
return notes1;
}
/**
* Generates a 4-note 12-tone melody using backtracking.
* @method generateMelody
* @return {Note[]} notes
*/
function generateMelody() {
var paletteIndices = [];
for (var k = 0; k < length; k++) {
paletteIndices.push(0);
}
var melody = [];
var i = 0;
while (melody[length - 1] == null) {
var palette;
if (i == 0) {
melody.push(getStartingNote());
// console.log(melody[i].toString());
i++;
continue;
} else palette = getPalette(melody[i-1], i);
for (var j = paletteIndices[i]; j < palette.length; j++) {
melody.push(palette[j]);
// Check if valid
if (validateSMI(melody)) {
// console.log(melody[i].toString());
//
// console.log("valid " + i);
// It worked!
// Update palette of indices in case we need to backtrack later.
paletteIndices[i] = j + 1;
break;
} else {
// console.log("invalid " + i);
// if didn't work
melody.pop();
// continue iterating until we find something that works
}
}
if (melody[i] == null) {
// We made it through the whole palette and nothing worked
if (i == 0) {
// If no starting notes worked, nothing will
// Will never happen in the SMI domain
// Still need to write safe code.
break;
}
// Clean palette index array
paletteIndices[i] = 0;
// Prepare index
i--;
// Remove the previous element because it does not lead us anywhere
// Won't happen in this domain. Again, just writing safe code.
melody.pop();
} else {
// Move on to the next note!
i++;
}
}
return melody;
}
/**
* Create a palette of notes to try based on previous note.
* @method getPalette
* @param {Integer} melody current index
* @return {Note[]} palette
*/
function getPalette(previousNote, i) {
var palette = [];
// document.write("<br>palette:<br>");
var lowestnote = new Note("G", 3);
var highestnote = new Note("F", 5);
var direction = true;
for (var j = -6; j < 7; j++) {
var notetoadd = previousNote.getNextNote(j, direction);
if (notetoadd == null) continue;
var lowcomp = lowestnote.compareTo(notetoadd);
var highcomp = highestnote.compareTo(notetoadd);
var ord = ordinal(notetoadd.getNotename());
if (isNaN(lowcomp) || isNaN(highcomp) || lowcomp >= 0 || highcomp <= 0
|| ord < 9 || ord > 25) {
// Do not add notes that are out of bounds.
// Do not use double sharps, double flats or weird spellings.
} else {
palette.push(notetoadd);
}
if (j == 6 && direction) {
// Now add all notes in the descending direction.
j = -7;
direction = false;
}
}
return shuffleNotes(palette, g * i);
}
/**
* Picks a random starting note. Use notes 9 through 25 (Gb—A#)
* @method getStartingPalette
* @return {Note} palette
*/
function getStartingNote() {
var rand = Math.floor((Math.random() * 16) + 9);
var notename = NOTES[rand];
return new Note(notename, 4);
}
/**
* Seeded shuffle.
* @param shuffleNotes
* @param {Note[]} notes to shuffle
* @param {Integer} seed
* @return {Note[]} shuffled notes
*/
function shuffleNotes(notes, seed) {
Math.seedrandom(seed);
var shuffled = [];
var strikeList = [];
while (shuffled.length < notes.length) {
var rand = Math.floor(Math.random() * notes.length);
if (strikeList.indexOf(rand) == -1) {
// We have not used this number yet! Add to shuffled list
shuffled.push(notes[rand]);
// Strike out this number
strikeList.push(rand);
} else {
// We have already used this number. Keep going!
}
}
return shuffled;
}
}
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
|
<?php
namespace Oqq\Minc\Serializer\Encoder\Encode;
use Oqq\Minc\Serializer\Exception\UnexpectedEncodingFormatException;
/**
* @author Eric Braun <eb@oqq.be>
*/
abstract class AbstractEncode implements EncodeInterface
{
/**
* @param string $format
*
* @throws UnexpectedEncodingFormatException
*/
protected function assertCanEncode($format)
{
if (!$this->canEncode($format)) {
throw new UnexpectedEncodingFormatException($format);
}
}
}
|
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
int main() {
while (true) {
int N, M;
cin >> N;
if (!cin)
break;
multiset<int> prices;
for (int i = 0; i < N; ++i) {
int p;
cin >> p;
prices.insert(p);
}
cin >> M;
int best_i, best_j;
bool got_best = false;
for (multiset<int>::const_iterator itr = prices.begin();
itr != prices.end();
++itr) {
int i = *itr, j = M - i;
if ( (j <= 0) ||
(prices.count(j) == 0) ||
((i == j) && (prices.count(i) < 2)) )
continue;
if (!got_best || (abs(i - j) < abs(best_i - best_j))) {
best_i = i;
best_j = j;
got_best = true;
}
}
if (best_i > best_j) {
swap(best_i, best_j);
}
cout << "Peter should buy books whose prices are " << best_i << " and " << best_j << "." << endl << endl;
}
return 0;
}
|
/**
* Copyright (C) 2013 Tobias P. Becker
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* More information at: https://dslib.assembla.com/
*
*/
#pragma once
#include <core/reflection/Attribute.h>
#include <core/Object.h>
namespace nspace {
/**
* \brief Information about a member.
* @TODO remove attributes like description/displayname etc.
*/
class MemberInfo : public virtual AttributeTarget {
TYPED_OBJECT(MemberInfo);
SIMPLE_PROPERTY(std::string, Name){
if(getDisplayName()!="") return; setDisplayName(newvalue);
}
REFERENCE_PROPERTY(std::string, Name);
SIMPLE_PROPERTY(bool, IsVisible){}
SIMPLE_PROPERTY(const Type *, OwningType ){};
/**
* \brief Description of the member.
*
*/
SIMPLE_PROPERTY(std::string, Description){}
/**
* \brief Display name of the member
*/
SIMPLE_PROPERTY(std::string, DisplayName){}
/**
* \brief Group name of the member
*
*/
SIMPLE_PROPERTY(std::string, GroupName){}
public:
/**
* \brief Default constructor.
*/
MemberInfo() :
_IsVisible(true),
_OwningType(0)
{}
};
}
|
export default {
navigator: {
doc: 'Docs',
demo: 'Demo',
started: 'Get Started'
},
features: {
userExperience: {
title: 'Optimize Experience',
desc: 'To make scroll more smoothly, We support flexible configurations about inertial scrolling, rebound, fade scrollbar, etc. which could optimize user experience obviously.'
},
application: {
title: 'Rich Features',
desc: 'It can be applied to normal scroll list, picker, slide, index list, start guidance, etc. What\'s more, some complicated needs like pull down refresh and pull up load can be implemented much easier.'
},
dependence: {
title: 'Dependence Free',
desc: 'As a plain JavaScript library, BetterScroll doesn\'t depend on any framework, you could use it alone, or with any other MVVM frameworks.'
}
},
examples: {
normalScrollList: 'Normal Scroll List',
indexList: 'Index List',
picker: 'Picker',
slide: 'Slide',
startGuidance: 'Start Guidance',
freeScroll: 'Free Scroll',
formList: 'Form List',
verticalScrollImg: 'vertical-scroll-en.jpeg',
indexListImg: 'index-list.jpeg',
pickerImg: 'picker-en.jpeg',
slideImg: 'slide.jpeg',
startGuidanceImg: 'full-page-slide.jpeg',
freeScrollImg: 'free-scroll.jpeg',
formListImg: 'form-list-en.jpeg'
},
normalScrollListPage: {
desc: 'Nomal scroll list based on BetterScroll',
scrollbar: 'Scrollbar',
pullDownRefresh: 'Pull Down Refresh',
pullUpLoad: 'Pull Up Load',
previousTxt: 'I am the No.',
followingTxt: ' line',
newDataTxt: 'I am new data: '
},
scrollComponent: {
defaultLoadTxtMore: 'Load more',
defaultLoadTxtNoMore: 'There is no more data',
defaultRefreshTxt: 'Refresh success'
},
indexListPage: {
title: 'Current City: Beijing'
},
pickerPage: {
desc: 'Picker is a typical choose component at mobile end. And it could dynamic change the data of every column to realize linkage picker.',
picker: ' picker',
pickerDemo: ' picker demo ...',
oneColumn: 'One column',
twoColumn: 'Two column',
threeColumn: 'Three column',
linkage: 'Linkage',
confirmTxt: 'confirm | ok',
cancelTxt: 'cancel | close'
},
slidePage: {
desc: 'Slide is a typical component at mobile end, support horizontal move.'
},
fullPageSlideComponent: {
buttonTxt: 'Start Use'
},
freeScrollPage: {
desc: 'Free scroll supports horizontal and vertical move at the same time.'
},
formListPage: {
desc: 'To use form in better-scroll, you need to make sure the option click is configured as false, since some native element events will be prevented when click is true. And in this situation, we recommend to handle click by listening tap event.',
previousTxt: 'No.',
followingTxt: ' option'
}
}
|
share_examples_for 'a datastore adapter' do |adapter_name|
let(:persisted_job_class) do
adapter_module = namespace
Class.new do
include SuckerPunch::Job
prepend adapter_module
def perform(mutant_name)
'Hamato Yoshi' if mutant_name == 'Splinter'
end
end
end
subject { persisted_job_class.new }
#need a better way to test this: this passees even if the job is only created
#immediately before it is executed
it 'persists asynchronous jobs as they are queued' do
adapter_class.any_instance.stub(:update_status)
subject.async.perform('Donatello')
job_record.arguments.should eq ['Donatello']
job_record.status.should eq 'queued'
end
it 'persists synchronous jobs when they are queued' do
adapter_class.any_instance.stub(:update_status)
subject.perform('Raphael')
job_record.arguments.should eq ['Raphael']
job_record.status.should eq 'queued'
end
it 'marks job records as finished after executing them' do
subject.perform('Leonardo')
job_record.status.should eq 'complete'
end
it 'persists the job execution result' do
subject.perform('Splinter')
job_record.result.should eq 'Hamato Yoshi'
end
#Override in spec when data store does not support .first
let(:job_record) { job_class.first }
#Override in spec when data store uses a different naming convention
let(:adapter_class) { namespace.const_get('Adapter') }
let(:job_class) { namespace.const_get('Job') }
let(:namespace) { JobSecurity.const_get(adapter_name) }
end
|
/* @flow */
import assert from 'assert';
import { CONVERSION_TABLE } from './06-export';
import type { Unit, UnitValue } from './06-export';
// We didn't cover any edge cases yet, so let's do this now
export function convertUnit(from: Unit, to: Unit, value: number): ?number {
if (from === to) {
return value;
}
// If there is no conversion possible, return null
// Note how we are using '== null' instead of '=== null'
// because the first notation will cover both cases, 'null'
// and 'undefined', which spares us a lot of extra code.
// You will need to set eslint's 'eqeqeq' rule to '[2, "smart"]'
if (CONVERSION_TABLE[from] == null || CONVERSION_TABLE[from][to] == null) {
return null;
}
const transform = CONVERSION_TABLE[from][to];
return transform(value);
}
// Intersection Type for assuming unit to be 'm'
// unit cannot be anything but a `Unit`, so we even
// prevent errors on definition
type MeterUnitValue = {
unit: 'm'
} & UnitValue;
// Convert whole UnitValues instead of single values
function convertToKm(unitValue: MeterUnitValue): ?UnitValue {
const { unit, value } = unitValue;
const converted = convertUnit(unit, 'km', value);
if (converted == null) {
return null;
}
return {
unit: 'km',
value: converted,
}
}
const value = convertToKm({ unit: 'm', value: 1500 });
assert.deepEqual(value, { unit: 'km', value: 1.5 });
|
package main
// Temporary file
import (
"golang.org/x/net/context"
"github.com/bearded-web/bearded/pkg/script"
"github.com/davecgh/go-spew/spew"
"github.com/bearded-web/bearded/pkg/transport/mango"
"github.com/bearded-web/wappalyzer-script/wappalyzer"
)
func run(addr string) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
transp, err := mango.NewServer(addr)
if err != nil {
panic(err)
}
client, err := script.NewRemoteClient(transp)
if err != nil {
panic(err)
}
go func() {
err := transp.Serve(ctx, client)
if err != nil {
panic(err)
}
}()
println("wait for connection")
client.WaitForConnection(ctx)
println("request config")
conf, err := client.GetConfig(ctx)
if err != nil {
panic(err)
}
app := wappalyzer.New()
println("handle with conf", spew.Sdump(conf))
err = app.Handle(ctx, client, conf)
if err != nil {
panic(err)
}
}
func main() {
run("tcp://:9238")
// run(":9238")
}
|
# build-with-npm
Howto build with NPM
|
$(document).ready(function () {
// add classes to check boxes
$('#id_notify_at_threshold').addClass('form-control');
$('#id_in_live_deal').addClass('form-control');
$('#id_is_subscription').addClass('form-control');
});
|
<?php
namespace WaddlingCo\StreamPerk\Bundle\ServerBundle;
use WaddlingCo\StreamPerk\Bundle\CoreBundle\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use WaddlingCo\StreamPerk\Bundle\ServerBundle\DependencyInjection\ServerTypePass;
class StreamPerkServerBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ServerTypePass());
}
}
|
#ifndef __LIST_H
#define __LIST_H
#include <tools.h>
/**
* The linkage struct for list nodes. This struct must be part of your
* to-be-linked struct. struct list_head is required for both the head of the
* list and for each list node.
*
* Position and name of the struct list_head field is irrelevant.
* There are no requirements that elements of a list are of the same type.
* There are no requirements for a list head, any struct list_head can be a list
* head.
*/
struct list_head {
struct list_head *next, *prev;
};
/*
* If in the code you write LIST_HEAD(foo) it gets expanded to:
* struct list_head foo = { &(foo) , &(foo) }
*/
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
static inline void INIT_LIST_HEAD(struct list_head *list)
{
list->next = list;
list->prev = list;
}
/*
* Insert a new entry between two known consecutive entries.
*
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
static inline void __list_add(struct list_head *new,
struct list_head *prev,
struct list_head *next)
{
next->prev = new;
new->next = next;
new->prev = prev;
prev->next = new;
}
/**
* list_add - add a new entry
* @new: new entry to be added
* @head: list head to add it after
*
* Insert a new entry after the specified head.
* This is good for implementing stacks.
*/
static inline void list_add(struct list_head *new, struct list_head *head)
{
__list_add(new, head, head->next);
}
/**
* list_add_tail - add a new entry
* @new: new entry to be added
* @head: list head to add it before
*
* Insert a new entry before the specified head.
* This is useful for implementing queues.
*/
static inline void list_add_tail(struct list_head *new, struct list_head *head)
{
__list_add(new, head->prev, head);
}
/*
* Delete a list entry by making the prev/next entries
* point to each other.
*
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
static inline void __list_del(struct list_head * prev, struct list_head * next)
{
next->prev = prev;
prev->next = next;
}
/**
* list_del - deletes entry from list.
* @entry: the element to delete from the list.
* Note: list_empty() on entry does not return true after this, the entry is
* in an undefined state.
*/
static inline void __list_del_entry(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
}
static inline void list_del(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
}
/**
* list_del_init - deletes entry from list and reinitialize it.
* @entry: the element to delete from the list.
*/
static inline void list_del_init(struct list_head *entry)
{
__list_del_entry(entry);
INIT_LIST_HEAD(entry);
}
/**
* list_replace - replace old entry by new one
* @old : the element to be replaced
* @new : the new element to insert
*
* If @old was empty, it will be overwritten.
*/
static inline void list_replace(struct list_head *old,
struct list_head *new)
{
new->next = old->next;
new->next->prev = new;
new->prev = old->prev;
new->prev->next = new;
}
static inline void list_replace_init(struct list_head *old,
struct list_head *new)
{
list_replace(old, new);
INIT_LIST_HEAD(old);
}
/**
* list_move - delete from one list and add as another's head
* @list: the entry to move
* @head: the head that will precede our entry
*/
static inline void list_move(struct list_head *list, struct list_head *head)
{
__list_del_entry(list);
list_add(list, head);
}
/**
* list_move_tail - delete from one list and add as another's tail
* @list: the entry to move
* @head: the head that will follow our entry
*/
static inline void list_move_tail(struct list_head *list,
struct list_head *head)
{
__list_del_entry(list);
list_add_tail(list, head);
}
/**
* list_is_last - tests whether @list is the last entry in list @head
* @list: the entry to test
* @head: the head of the list
*/
static inline int list_is_last(const struct list_head *list,
const struct list_head *head)
{
return list->next == head;
}
/**
* list_empty - tests whether a list is empty
* @head: the list to test.
*/
static inline int list_empty(const struct list_head *head)
{
return head->next == head;
}
/**
* list_rotate_left - rotate the list to the left
* @head: the head of the list
*/
static inline void list_rotate_left(struct list_head *head)
{
struct list_head *first;
if (!list_empty(head)) {
first = head->next;
list_move_tail(first, head);
}
}
/**
* list_is_singular - tests whether a list has just one entry.
* @head: the list to test.
*/
static inline int list_is_singular(const struct list_head *head)
{
return !list_empty(head) && (head->next == head->prev);
}
static inline void __list_cut_position(struct list_head *list,
struct list_head *head, struct list_head *entry)
{
struct list_head *new_first = entry->next;
list->next = head->next;
list->next->prev = list;
list->prev = entry;
entry->next = list;
head->next = new_first;
new_first->prev = head;
}
/**
* list_cut_position - cut a list into two
* @list: a new list to add all removed entries
* @head: a list with entries
* @entry: an entry within head, could be the head itself
* and if so we won't cut the list
*
* This helper moves the initial part of @head, up to and
* including @entry, from @head to @list. You should
* pass on @entry an element you know is on @head. @list
* should be an empty list or a list you do not care about
* losing its data.
*
*/
static inline void list_cut_position(struct list_head *list,
struct list_head *head, struct list_head *entry)
{
if (list_empty(head))
return;
if (list_is_singular(head) &&
(head->next != entry && head != entry))
return;
if (entry == head)
INIT_LIST_HEAD(list);
else
__list_cut_position(list, head, entry);
}
static inline void __list_splice(const struct list_head *list,
struct list_head *prev,
struct list_head *next)
{
struct list_head *first = list->next;
struct list_head *last = list->prev;
first->prev = prev;
prev->next = first;
last->next = next;
next->prev = last;
}
/**
* list_splice - join two lists, this is designed for stacks
* @list: the new list to add.
* @head: the place to add it in the first list.
*/
static inline void list_splice(const struct list_head *list,
struct list_head *head)
{
if (!list_empty(list))
__list_splice(list, head, head->next);
}
/**
* list_splice_tail - join two lists, each list being a queue
* @list: the new list to add.
* @head: the place to add it in the first list.
*/
static inline void list_splice_tail(struct list_head *list,
struct list_head *head)
{
if (!list_empty(list))
__list_splice(list, head->prev, head);
}
/**
* list_splice_init - join two lists and reinitialise the emptied list.
* @list: the new list to add.
* @head: the place to add it in the first list.
*
* The list at @list is reinitialised
*/
static inline void list_splice_init(struct list_head *list,
struct list_head *head)
{
if (!list_empty(list)) {
__list_splice(list, head, head->next);
INIT_LIST_HEAD(list);
}
}
/**
* list_splice_tail_init - join two lists and reinitialise the emptied list
* @list: the new list to add.
* @head: the place to add it in the first list.
*
* Each of the lists is a queue.
* The list at @list is reinitialised
*/
static inline void list_splice_tail_init(struct list_head *list,
struct list_head *head)
{
if (!list_empty(list)) {
__list_splice(list, head->prev, head);
INIT_LIST_HEAD(list);
}
}
/**
* list_entry - get the struct for this entry
* @ptr:the &struct list_head pointer.
* @type:the type of the struct this is embedded in.
* @member:the name of the list_head within the struct.
*/
#define list_entry(ptr, type, member) \
container_of(ptr, type, member)
/**
* list_first_entry - get the first element from a list
* @ptr:the list head to take the element from.
* @type:the type of the struct this is embedded in.
* @member:the name of the list_head within the struct.
*
* Note, that list is expected to be not empty.
*/
#define list_first_entry(ptr, type, member) \
list_entry((ptr)->next, type, member)
/**
* list_last_entry - get the last element from a list
* @ptr:the list head to take the element from.
* @type:the type of the struct this is embedded in.
* @member:the name of the list_head within the struct.
*
* Note, that list is expected to be not empty.
*/
#define list_last_entry(ptr, type, member) \
list_entry((ptr)->prev, type, member)
/**
* list_first_entry_or_null - get the first element from a list
* @ptr:the list head to take the element from.
* @type:the type of the struct this is embedded in.
* @member:the name of the list_head within the struct.
*
* Note that if the list is empty, it returns NULL.
*/
#define list_first_entry_or_null(ptr, type, member) \
(!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL)
/**
* list_next_entry - get the next element in list
* @pos:the type * to cursor
* @member:the name of the list_head within the struct.
*/
#define list_next_entry(pos, member) \
list_entry((pos)->member.next, typeof(*(pos)), member)
/**
* list_prev_entry - get the prev element in list
* @pos:the type * to cursor
* @member:the name of the list_head within the struct.
*/
#define list_prev_entry(pos, member) \
list_entry((pos)->member.prev, typeof(*(pos)), member)
/**
* list_for_each-iterate over a list
* @pos:the &struct list_head to use as a loop cursor.
* @head:the head for your list.
*/
#define list_for_each(pos, head) \
for (pos = (head)->next; pos != (head); pos = pos->next)
/**
* list_for_each_prev-iterate over a list backwards
* @pos:the &struct list_head to use as a loop cursor.
* @head:the head for your list.
*/
#define list_for_each_prev(pos, head) \
for (pos = (head)->prev; pos != (head); pos = pos->prev)
/**
* list_for_each_safe - iterate over a list safe against removal of list entry
* @pos:the &struct list_head to use as a loop cursor.
* @n:another &struct list_head to use as temporary storage
* @head:the head for your list.
*/
#define list_for_each_safe(pos, n, head) \
for (pos = (head)->next, n = pos->next; pos != (head); \
pos = n, n = pos->next)
/**
* list_for_each_prev_safe - iterate over a list backwards safe against removal of list entry
* @pos:the &struct list_head to use as a loop cursor.
* @n:another &struct list_head to use as temporary storage
* @head:the head for your list.
*/
#define list_for_each_prev_safe(pos, n, head) \
for (pos = (head)->prev, n = pos->prev; \
pos != (head); \
pos = n, n = pos->prev)
/**
* list_for_each_entry-iterate over list of given type
* @pos:the type * to use as a loop cursor.
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*/
#define list_for_each_entry(pos, head, member)\
for (pos = list_first_entry(head, typeof(*pos), member);\
&pos->member != (head);\
pos = list_next_entry(pos, member))
/**
* list_for_each_entry_reverse - iterate backwards over list of given type.
* @pos:the type * to use as a loop cursor.
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*/
#define list_for_each_entry_reverse(pos, head, member)\
for (pos = list_last_entry(head, typeof(*pos), member);\
&pos->member != (head); \
pos = list_prev_entry(pos, member))
/**
* list_prepare_entry - prepare a pos entry for use in list_for_each_entry_continue()
* @pos:the type * to use as a start point
* @head:the head of the list
* @member:the name of the list_head within the struct.
*
* Prepares a pos entry for use as a start point in list_for_each_entry_continue().
*/
#define list_prepare_entry(pos, head, member) \
((pos) ? : list_entry(head, typeof(*pos), member))
/**
* list_for_each_entry_continue - continue iteration over list of given type
* @pos:the type * to use as a loop cursor.
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*
* Continue to iterate over list of given type, continuing after
* the current position.
*/
#define list_for_each_entry_continue(pos, head, member) \
for (pos = list_next_entry(pos, member);\
&pos->member != (head);\
pos = list_next_entry(pos, member))
/**
* list_for_each_entry_continue_reverse - iterate backwards from the given point
* @pos:the type * to use as a loop cursor.
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*
* Start to iterate over list of given type backwards, continuing after
* the current position.
*/
#define list_for_each_entry_continue_reverse(pos, head, member)\
for (pos = list_prev_entry(pos, member);\
&pos->member != (head);\
pos = list_prev_entry(pos, member))
/**
* list_for_each_entry_from - iterate over list of given type from the current point
* @pos:the type * to use as a loop cursor.
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*
* Iterate over list of given type, continuing from current position.
*/
#define list_for_each_entry_from(pos, head, member) \
for (; &pos->member != (head);\
pos = list_next_entry(pos, member))
/**
* list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
* @pos:the type * to use as a loop cursor.
* @n:another type * to use as temporary storage
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*/
#define list_for_each_entry_safe(pos, n, head, member)\
for (pos = list_first_entry(head, typeof(*pos), member),\
n = list_next_entry(pos, member);\
&pos->member != (head); \
pos = n, n = list_next_entry(n, member))
/**
* list_for_each_entry_safe_continue - continue list iteration safe against removal
* @pos:the type * to use as a loop cursor.
* @n:another type * to use as temporary storage
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*
* Iterate over list of given type, continuing after current point,
* safe against removal of list entry.
*/
#define list_for_each_entry_safe_continue(pos, n, head, member) \
for (pos = list_next_entry(pos, member), \
n = list_next_entry(pos, member);\
&pos->member != (head);\
pos = n, n = list_next_entry(n, member))
/**
* list_for_each_entry_safe_from - iterate over list from current point safe against removal
* @pos:the type * to use as a loop cursor.
* @n:another type * to use as temporary storage
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*
* Iterate over list of given type from current point, safe against
* removal of list entry.
*/
#define list_for_each_entry_safe_from(pos, n, head, member) \
for (n = list_next_entry(pos, member);\
&pos->member != (head);\
pos = n, n = list_next_entry(n, member))
/**
* list_for_each_entry_safe_reverse - iterate backwards over list safe against removal
* @pos:the type * to use as a loop cursor.
* @n:another type * to use as temporary storage
* @head:the head for your list.
* @member:the name of the list_head within the struct.
*
* Iterate backwards over list of given type, safe against removal
* of list entry.
*/
#define list_for_each_entry_safe_reverse(pos, n, head, member)\
for (pos = list_last_entry(head, typeof(*pos), member),\
n = list_prev_entry(pos, member);\
&pos->member != (head); \
pos = n, n = list_prev_entry(n, member))
/**
* list_safe_reset_next - reset a stale list_for_each_entry_safe loop
* @pos:the loop cursor used in the list_for_each_entry_safe loop
* @n:temporary storage used in list_for_each_entry_safe
* @member:the name of the list_head within the struct.
*
* list_safe_reset_next is not safe to use in general if the list may be
* modified concurrently (eg. the lock is dropped in the loop body). An
* exception to this is if the cursor element (pos) is pinned in the list,
* and list_safe_reset_next is called after re-taking the lock and before
* completing the current iteration of the loop body.
*/
#define list_safe_reset_next(pos, n, member)\
n = list_next_entry(pos, member)
#endif /* __LIST_H */
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Xml.Serialization;
namespace VsAutoDeploy
{
public class ProjectConfiguration
{
[DefaultValue(true)]
public bool IsEnabled { get; set; } = true;
public string ProjectName { get; set; }
public List<string> Files { get; private set; } = new List<string>();
public bool IncludeSubDirectories { get; set; }
public string TargetDirectory { get; set; }
}
} |
#Chapter 2
###2.1 Character Set
Case Sensitivity
Whitespace, Line Breaks, and Format Control Characters
Unicode Escape Sequences
Normalization**
###2.2 Comments
###2.3 Literals
###2.4 Identifiers and Reserved Words
###2.5 Optional Semicolons
Pretend that semi colons are not optional because there is very rarely a use in omitting them. |
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Application\Form\ContactCreateForm;
use Application\Service\ContactService;
use Application\Service\PersonService;
/**
*
* Controller responsible for creation and destruction of contacts.
*
* @author wbondarenko@programmer.net
*
*/
class ContactController
extends ApplicationController
{
private $contactService;
private $personService;
public function __construct (ContactService $contactService, PersonService $personService)
{
$this->contactService = $contactService;
$this->personService = $personService;
}
/**
* Creates new contact on POST.
* Also partly responsible for ensuring that creation is possible.
* Renders appropriate HTML page on GET.
* Redirects to the authentication page is user is not logged in.
*/
public function createAction ()
{
if (!$this->isAuthenticated( ))
{
return $this->redirectToAuthentication( );
}
$form = new ContactCreateForm ("Create contact.");
$source = $this->identity( )->getPerson( );
$persons = array ( );
$request = $this->getRequest();
if ($request->isPost())
{
// TODO Implement input filter for form.
//$form->setInputFilter(new ContactCreateInputFilter ( ));
$form->setData($request->getPost());
if ($form->isValid())
{
$contact = $this->contactService->create($source, $this->params( )->fromPost("id"));
return $this->redirectToPersonalProfile( );
} else {
$this->layout( )->messages = $form->getMessages( );
}
} else if ($request->isGet( )) {
if ($target = $this->personService->retrieve($this->params( )->fromRoute("id")))
{
if (!$this->isMyself($target))
{
return array ('form' => $form, 'target' => $target);
} else {
return $this->redirectToPersonalProfile( );
}
}
}
}
/**
* Destroys a contact on POST.
* Renders appropriate HTML page on GET.
* Redirects to authentication page if user is not logged in.
*/
public function destroyAction ()
{
if (!$this->isAuthenticated( ))
{
return $this->redirectToAuthentication( );
}
$source = $this->identity( )->getPerson( );
$request = $this->getRequest();
if ($request->isPost())
{
$this->contactService->destroy($source, $this->params( )->fromPost('id'));
}
return $this->redirectToPersonalProfile( );
}
}
|
Protocol
========
Pokémon Showdown's protocol is relatively simple.
Pokémon Showdown is implemented in SockJS. SockJS is a compatibility
layer over raw WebSocket, so you can actually connect to Pokémon
Showdown directly using WebSocket:
ws://sim.smogon.com:8000/showdown/websocket
or
wss://sim.smogon.com/showdown/websocket
Client implementations you might want to look at for reference include:
- Majeur's android client (Kotlin/Java) -
https://github.com/MajeurAndroid/Android-Unofficial-Showdown-Client
- pickdenis' chat bot (Ruby) -
https://github.com/pickdenis/ps-chatbot
- Quinella and TalkTakesTime's chat bot (Node.js) -
https://github.com/TalkTakesTime/Pokemon-Showdown-Bot
- Nixola's chat bot (Lua) -
https://github.com/Nixola/NixPSbot
- Morfent's chat bot (Perl 6) -
https://github.com/Kaiepi/p6-PSBot
- the official client (HTML5 + JavaScript) -
https://github.com/smogon/pokemon-showdown-client
The official client logs protocol messages in the JavaScript console,
so opening that (F12 in most browsers) can help tell you what's going
on.
Client-to-server messages
-------------------------
Messages from the user to the server are in the form:
ROOMID|TEXT
`ROOMID` can optionally be left blank if it's the lobby, or if the room
is irrelevant (for instance, if `TEXT` is a command like
`/join lobby` where it doesn't matter what room it's sent from, you can
just send `|/join lobby`.)
`TEXT` can contain newlines, in which case it'll be treated the same
way as if each line were sent to the room separately.
A partial list of available commands can be found with `/help`.
To log in, look at the documentation for the `|challstr|` server message.
Server-to-client messages
-------------------------
Messages from the server to the user are in the form:
>ROOMID
MESSAGE
MESSAGE
MESSAGE
...
`>ROOMID` and the newline after it can be omitted if the room is lobby
or global. `MESSAGE` cannot start with `>`, so it's unambiguous whether
or not `>ROOMID` has been omitted.
As for the payload: it's made of any number of blocks of data
separated by newlines; empty lines should be ignored. In particular,
it should be treated the same way whether or not it ends in a
newline, and if the payload is empty, the entire message should be ignored.
If `MESSAGE` doesn't start with `|`, it should be shown directly in the
room's log. Otherwise, it will be in the form:
|TYPE|DATA
For example:
|j| Some dude
|c|@Moderator|hi!
|c| Some dude|you suck and i hate you!
Some dude was banned by Moderator.
|l| Some dude
|b|battle-ou-12| Cool guy|@Moderator
This might be displayed as:
Some dude joined.
@Moderator: hi!
Some dude: you suck and i hate you!
Some dude was banned by Moderator.
Some dude left.
OU battle started between Cool guy and Moderator
For bandwidth reasons, five of the message types - `chat`, `join`, `leave`,
`name`, and `battle` - are sometimes abbreviated to `c`, `j`, `l`, `n`,
and `b` respectively. All other message types are written out in full so they
should be easy to understand.
Four of these can be uppercase: `J`, `L`, `N`, and `B`, which are
the equivalent of their lowercase versions, but are recommended not to be
displayed inline because they happen too often. For instance, the main server
gets around 5 joins/leaves a second, and showing that inline with chat would
make it near-impossible to chat.
Server-to-client message types
------------------------------
`USER` = a user, the first character being their rank (users with no rank are
represented by a space), and the rest of the string being their username.
### Room initialization
`|init|ROOMTYPE`
> The first message received from a room when you join it. `ROOMTYPE` is
> one of: `chat` or `battle`
`|title|TITLE`
> `TITLE` is the title of the room. The title is _not_ guaranteed to resemble
> the room ID; for instance, room `battle-gen7uu-779767714` could have title
> `Alice vs. Bob`.
`|users|USERLIST`
> `USERLIST` is a comma-separated list of `USER`s, sent from chat rooms when
> they're joined. Optionally, a `USER` can end in `@` followed by a user status message.
> A `STATUS` starting in `!` indicates the user is away.
### Room messages
`||MESSAGE` or `MESSAGE`
> We received a message `MESSAGE`, which should be displayed directly in
> the room's log.
`|html|HTML`
> We received an HTML message, which should be sanitized and displayed
> directly in the room's log.
`|uhtml|NAME|HTML`
> We recieved an HTML message (NAME) that can change what it's displaying,
> this is used in things like our Polls system, for example.
`|uhtmlchange|NAME|HTML`
> Changes the HTML display of the `|uhtml|` message named (NAME).
`|join|USER`, `|j|USER`, or `|J|USER`
> `USER` joined the room. Optionally, `USER` may be appended with `@!` to
> indicate that the user is away or busy.
`|leave|USER`, `|l|USER`, or `|L|USER`
> `USER` left the room.
`|name|USER|OLDID`, `|n|USER|OLDID`, or `|N|USER|OLDID`
> A user changed name to `USER`, and their previous userid was `OLDID`.
> Optionally, `USER` may be appended with `@!` to indicate that the user is
> away or busy.
`|chat|USER|MESSAGE` or `|c|USER|MESSAGE`
> `USER` said `MESSAGE`. Note that `MESSAGE` can contain `|` characters,
> so you can't just split by `|` and take the fourth string.
`|notify|TITLE|MESSAGE`
> Send a notification with `TITLE` and `MESSAGE` (usually, `TITLE` will be
> bold, and `MESSAGE` is optional).
`|notify|TITLE|MESSAGE|HIGHLIGHTTOKEN`
> Send a notification as above, but only if the user would be notified
> by a chat message containing `HIGHLIGHTTOKEN` (i.e. if `HIGHLIGHTTOKEN`
> contains words added to `/highlight`, or their username by default.)
`|:|TIMESTAMP`
`|c:|TIMESTAMP|USER|MESSAGE`
> `c:` is pretty much the same as `c`, but also comes with a UNIX timestamp;
> (the number of seconds since 1970). This is used for accurate timestamps
> in chat logs.
>
> `:` is the current time according to the server, so that times can be
> adjusted and reported in the local time in the case of a discrepancy.
>
> The exact fate of this command is uncertain - it may or may not be
> replaced with a more generalized way to transmit timestamps at some point.
`|battle|ROOMID|USER1|USER2` or `|b|ROOMID|USER1|USER2`
> A battle started between `USER1` and `USER2`, and the battle room has
> ID `ROOMID`.
### Global messages
`|popup|MESSAGE`
> Show the user a popup containing `MESSAGE`. `||` denotes a newline in
> the popup.
`|pm|SENDER|RECEIVER|MESSAGE`
> A PM was sent from `SENDER` to `RECEIVER` containing the message
> `MESSAGE`.
`|usercount|USERCOUNT`
> `USERCOUNT` is the number of users on the server.
`|nametaken|USERNAME|MESSAGE`
> You tried to change your username to `USERNAME` but it failed for the
> reason described in `MESSAGE`.
`|challstr|CHALLSTR`
> You just connected to the server, and we're giving you some information you'll need to log in.
>
> If you're already logged in and have session cookies, you can make an HTTP GET request to
> `https://play.pokemonshowdown.com/action.php?act=upkeep&challstr=CHALLSTR`
>
> Otherwise, you'll need to make an HTTP POST request to `https://play.pokemonshowdown.com/action.php`
> with the data `act=login&name=USERNAME&pass=PASSWORD&challstr=CHALLSTR`
>
> `USERNAME` is your username and `PASSWORD` is your password, and `CHALLSTR`
> is the value you got from `|challstr|`. Note that `CHALLSTR` contains `|`
> characters. (Also feel free to make the request to `https://` if your client
> supports it.)
>
> Either way, the response will start with `]` and be followed by a JSON
> object which we'll call `data`.
>
> Finish logging in (or renaming) by sending: `/trn USERNAME,0,ASSERTION`
> where `USERNAME` is your desired username and `ASSERTION` is `data.assertion`.
`|updateuser|USER|NAMED|AVATAR|SETTINGS`
> Your name, avatar or settings were successfully changed. Your rank and
> username are now `USER`. Optionally, `USER` may be appended with `@!` to
> indicate that you are away or busy.`NAMED` will be `0` if you are a guest
> or `1` otherwise. Your avatar is now `AVATAR`. `SETTINGS` is a JSON object
> representing the current state of various user settings.
`|formats|FORMATSLIST`
> This server supports the formats specified in `FORMATSLIST`. `FORMATSLIST`
> is a `|`-separated list of `FORMAT`s. `FORMAT` is a format name with one or
> more of these suffixes: `,#` if the format uses random teams, `,,` if the
> format is only available for searching, and `,` if the format is only
> available for challenging.
> Sections are separated by two vertical bars with the number of the column of
> that section prefixed by `,` in it. After that follows the name of the
> section and another vertical bar.
`|updatesearch|JSON`
> `JSON` is a JSON object representing the current state of what battles the
> user is currently searching for.
`|updatechallenges|JSON`
> `JSON` is a JSON object representing the current state of who the user
> is challenging and who is challenging the user.
`|queryresponse|QUERYTYPE|JSON`
> `JSON` is a JSON object representing containing the data that was requested
> with `/query QUERYTYPE` or `/query QUERYTYPE DETAILS`.
>
> Possible queries include `/query roomlist` and `/query userdetails USERNAME`.
### Tournament messages
`|tournament|create|FORMAT|GENERATOR|PLAYERCAP`
> `FORMAT` is the name of the format in which each battle will be played.
> `GENERATOR` is either `Elimination` or `Round Robin` and describes the
> type of bracket that will be used. `Elimination` includes a prefix
> that denotes the number of times a player can lose before being
> eliminated (`Single`, `Double`, etc.). `Round Robin` includes the
> prefix `Double` if every matchup will battle twice.
> `PLAYERCAP` is a number representing the maximum amount of players
> that can join the tournament or `0` if no cap was specified.
`|tournament|update|JSON`
> `JSON` is a JSON object representing the changes in the tournament
> since the last update you recieved or the start of the tournament.
> These include:
>
format: the tournament's custom name or the format being used
teambuilderFormat: the format being used; sent if a custom name was set
isStarted: whether or not the tournament has started
isJoined: whether or not you have joined the tournament
generator: the type of bracket being used by the tournament
playerCap: the player cap that was set or 0 if it was removed
bracketData: an object representing the current state of the bracket
challenges: a list of opponents that you can currently challenge
challengeBys: a list of opponents that can currently challenge you
challenged: the name of the opponent that has challenged you
challenging: the name of the opponent that you are challenging
`|tournament|updateEnd`
> Signals the end of an update period.
`|tournament|error|ERROR`
> An error of type `ERROR` occurred.
`|tournament|forceend`
> The tournament was forcibly ended.
`|tournament|join|USER`
> `USER` joined the tournament.
`|tournament|leave|USER`
> `USER` left the tournament.
`|tournament|replace|OLD|NEW`
> The player `OLD` has been replaced with `NEW`
`|tournament|start|NUMPLAYERS`
> The tournament started with `NUMPLAYERS` participants.
`|tournament|replace|USER1|USER2`
> `USER1` was replaced by `USER2`.
`|tournament|disqualify|USER`
> `USER` was disqualified from the tournament.
`|tournament|battlestart|USER1|USER2|ROOMID`
> A tournament battle started between `USER1` and `USER2`, and the battle room
> has ID `ROOMID`.
`|tournament|battleend|USER1|USER2|RESULT|SCORE|RECORDED|ROOMID`
> The tournament battle between `USER1` and `USER2` in the battle room `ROOMID` ended.
> `RESULT` describes the outcome of the battle from `USER1`'s perspective
> (`win`, `loss`, or `draw`). `SCORE` is an array of length 2 that denotes the
> number of Pokemon `USER1` had left and the number of Pokemon `USER2` had left.
> `RECORDED` will be `fail` if the battle ended in a draw and the bracket type does
> not support draws. Otherwise, it will be `success`.
`|tournament|end|JSON`
> The tournament ended. `JSON` is a JSON object containing:
>
results: the name(s) of the winner(s) of the tournament
format: the tournament's custom name or the format that was used
generator: the type of bracket that was used by the tournament
bracketData: an object representing the final state of the bracket
`|tournament|scouting|SETTING`
> Players are now either allowed or not allowed to join other tournament
> battles based on `SETTING` (`allow` or `disallow`).
`|tournament|autostart|on|TIMEOUT`
> A timer was set for the tournament to auto-start in `TIMEOUT` seconds.
`|tournament|autostart|off`
> The timer for the tournament to auto-start was turned off.
`|tournament|autodq|on|TIMEOUT`
> A timer was set for the tournament to auto-disqualify inactive players
> every `TIMEOUT` seconds.
`|tournament|autodq|off`
> The timer for the tournament to auto-disqualify inactive players was
> turned off.
`|tournament|autodq|target|TIME`
> You have `TIME` seconds to make or accept a challenge, or else you will be
> disqualified for inactivity.
Battles
-------
### Playing battles
Battle rooms will have a mix of room messages and battle messages. [Battle
messages are documented in `SIM-PROTOCOL.md`][sim-protocol].
[sim-protocol]: https://github.com/smogon/pokemon-showdown/blob/master/sim/SIM-PROTOCOL.md
To make decisions in battle, players should use the `/choose` command,
[also documented in `SIM-PROTOCOL.md`][sending-decisions].
[sending-decisions]: https://github.com/smogon/pokemon-showdown/blob/master/sim/SIM-PROTOCOL.md#sending-decisions
### Starting battles through challenges
`|updatechallenges|JSON`
> `JSON` is a JSON object representing the current state of who the user
> is challenging and who is challenging the user. You'll get this whenever
> challenges update (when you challenge someone, when you receive a challenge,
> when you or someone you challenged accepts/rejects/cancels a challenge).
`JSON.challengesFrom` will be a `{userid: format}` table of received
challenges.
`JSON.challengeTo` will be a challenge if you're challenging someone, or `null`
if you haven't.
If you are challenging someone, `challengeTo` will be in the format:
`{"to":"player1","format":"gen7randombattle"}`.
To challenge someone, send:
/utm TEAM
/challenge USERNAME, FORMAT
To cancel a challenge you made to someone, send:
/cancelchallenge USERNAME
To reject a challenge you received from someone, send:
/reject USERNAME
To accept a challenge you received from someone, send:
/utm TEAM
/accept USERNAME
Teams are in packed format (see "Team format" below). `TEAM` can also be
`null`, if the format doesn't require user-built teams, such as Random Battle.
Invalid teams will send a `|popup|` with validation errors, and the `/accept`
or `/challenge` command won't take effect.
If the challenge is accepted, you will receive a room initialization message.
### Starting battles through laddering
`|updatesearch|JSON`
> `JSON` is a JSON object representing the current state of what battles the
> user is currently searching for. You'll get this whenever searches update
> (when you search, cancel a search, or you start or end a battle)
`JSON.searching` will be an array of format IDs you're currently searching for
games in.
`JSON.games` will be a `{roomid: title}` table of games you're currently in.
Note that this includes ALL games, so `|updatesearch|` will be sent when you
start/end challenge battles, and even non-Pokémon games like Mafia.
To search for a battle against a random opponent, send:
/utm TEAM
/search FORMAT
Teams are in packed format (see "Team format" below). `TEAM` can also be
`null`, if the format doesn't require user-built teams, such as Random Battle.
To cancel searching, send:
/cancelsearch
### Team format
Pokémon Showdown's main way of representing teams is in packed format. This
format is implemented in `Teams.pack` and `Teams.unpack` in `sim/teams.ts`.
If you're not using JavaScript and don't want to reimplement these conversions,
[Pokémon Showdown's command-line client][command-line] can convert between packed teams and
JSON using standard IO.
[command-line]: https://github.com/smogon/pokemon-showdown/blob/master/COMMANDLINE.md
If you really want to write your own converter, the format looks something like
this:
```
Lumineon||focussash|1|defog,scald,icebeam,uturn||85,85,85,85,85,85||||83|]
Glaceon||lifeorb||toxic,hiddenpowerground,shadowball,icebeam||81,,85,85,85,85||,0,,,,||83|]
Crabominable||choiceband|1|closecombat,earthquake,stoneedge,icehammer||85,85,85,85,85,85||||83|]
Toxicroak||lifeorb|1|drainpunch,suckerpunch,gunkshot,substitute||85,85,85,85,85,85||||79|]
Bouffalant||choiceband||earthquake,megahorn,headcharge,superpower||85,85,85,85,85,85||||83|]
Qwilfish||blacksludge|H|thunderwave,destinybond,liquidation,painsplit||85,85,85,85,85,85||||83|
```
(Line breaks added for readability - this is all one line normally.)
The format is a list of pokemon delimited by `]`, where every Pokémon is:
```
NICKNAME|SPECIES|ITEM|ABILITY|MOVES|NATURE|EVS|GENDER|IVS|SHINY|LEVEL|HAPPINESS,POKEBALL,HIDDENPOWERTYPE
```
- `SPECIES` is left blank if it's identical to `NICKNAME`
- `ABILITY` is `0`, `1`, or `H` if it's the ability from the corresponding slot
for the Pokémon. It can also be an ability string, for Hackmons etc.
- `MOVES` is a comma-separated list of move IDs.
- `NATURE` left blank means Serious, except in Gen 1-2, where it means no Nature.
- `EVS` and `IVS` are comma-separated in standard order:
HP, Atk, Def, SpA, SpD, Spe. EVs left blank are 0, IVs left blank are 31.
If all EVs or IVs are blank, the commas can all be left off.
- `EVS` represent AVs in Pokémon Let's Go.
- `IVS` represent DVs in Gen 1-2. The IV will be divided by 2 and rounded down,
to become DVs (so the default of 31 IVs is converted to 15 DVs).
- `IVS` is post-hyper-training: pre-hyper-training IVs are represented in
`HIDDENPOWERTYPE`
- `SHINY` is `S` for shiny, and blank for non-shiny.
- `LEVEL` is left blank for level 100.
- `HAPPINESS` is left blank for 255.
- `POKEBALL` is left blank if it's a regular Poké Ball.
- `HIDDENPOWERTYPE` is left blank if the Pokémon is not Hyper Trained, if
Hyper Training doesn't affect IVs, or if it's represented by a move in
the moves list.
- If `POKEBALL` and `HIDDENPOWERTYPE` are both blank, the commas will be left
off.
|
/*
* testRandomNumber.h
*
* Created on: Apr 20, 2012
* Author: jchen
*/
#ifndef TESTRANDOMNUMBER_H_
#define TESTRANDOMNUMBER_H_
#include <cxxtest/TestSuite.h>
#include <vector>
#include "patNBParameters.h"
#include "patDisplay.h"
#include "patError.h"
#include "patRandomNumber.h"
#include <boost/random.hpp>
class MyTestRandomNumberGenrator: public CxxTest::TestSuite{
public:
void testRNG(void){
patError* err(NULL);
patNBParameters::the()->readFile("/Users/jchen/Documents/Project/newbioroute/src/params/config.xml", err);
patNBParameters::the()->init(err);
TS_ASSERT_EQUALS(err,(void*)0);
int count= 100000;
double sum=0.0;
patRandomNumber rng(patNBParameters::the()->randomSeed);
for (int i=0;i<count;i++){
//DEBUG_MESSAGE(rng.nextDouble());
sum+=rng.nextDouble();
}
double avg = sum/count;
TS_ASSERT_DELTA(avg, 0.5, 1e-2);
int bigest_int=4;
unsigned long plain_int_sum=0;
for (int i=0;i<count;i++){
//DEBUG_MESSAGE(rng.nextInt(bigest_int-1));
plain_int_sum+=rng.nextInt(bigest_int);
}
TS_ASSERT_DELTA(((double) plain_int_sum/count), ((double) (bigest_int-1)/2.0), 1e-2);
bigest_int=9;
plain_int_sum=0;
for (int i=0;i<count;i++){
//DEBUG_MESSAGE(rng.nextInt(bigest_int-1));
plain_int_sum+=rng.nextInt(bigest_int);
}
TS_ASSERT_DELTA(((double) plain_int_sum/count), ((double) (bigest_int-1)/2.0), 1e-2);
map<int,double> probas;
int count_probas = 5;
for(int i=0;i<count_probas;++i){
probas[i]=0.1;
}
unsigned long sum_int_proba=0;
for (int i=0;i<count;++i){
//DEBUG_MESSAGE(rng.sampleWithProba(probas))
sum_int_proba+=rng.sampleWithProba(probas);
}
TS_ASSERT_DELTA(((double) sum_int_proba/count), ((double) (count_probas-1)/2), 1e-2);
}
};
#endif /* TESTRANDOMNUMBER_H_ */
|
import React, { Component } from 'react';
export default React.createClass({
getInitialState: function () {
return { title: '', body: '' };
},
handleChangeTitle: function (e) {
this.setState({ title: e.target.value });
},
handleChangeBody: function (e) {
this.setState({ body: e.target.value });
},
handleSubmit: function (e) {
e.preventDefault();
this.props.addPost(this.state);
},
render() {
return (
<div>
<h3>New post</h3>
<form onSubmit={this.handleSubmit}>
<input type="text"
placeholder="sdfsd"
value={this.title}
placeholder="title"
onChange={this.handleChangeTitle} />
<br />
<textarea type="text"
placeholder="sdfsd"
placeholder="body"
onChange={this.handleChangeBody} >
{this.body}
</textarea>
<button>Submit</button>
</form>
</div>
);
},
});
|
export default {
'/': {
component: require('./components/NowPlayingView'),
name: 'NowPlaying'
}
}
|
{-# LANGUAGE JavaScriptFFI #-}
module Doppler.GHCJS.VirtualDOM.VDom (
VDom, requireVDom
) where
import GHCJS.Types (JSVal)
newtype VDom = VDom JSVal
foreign import javascript interruptible "require(['virtual-dom'], $c);"
requireVDom :: IO VDom
|
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Coffeescript-UI Documentation</title>
<script src='javascript/application.js'></script>
<script src='javascript/search.js'></script>
<link rel='stylesheet' href='stylesheets/application.css' type='text/css'>
</head>
<body class='list'>
<div class='list' id='content'>
<h1 class='full_list_header'>Method List</h1>
<nav>
<a target='_self' href='class_list.html'>
Classes
</a>
<a target='_self' href='file_list.html'>
Files
</a>
<a target='_self' href='method_list.html'>
Methods
</a>
</nav>
<div id='search'>
Search:
<input type='text'>
</div>
<ul>
<li>
<a href='class/CUI/dom.html#$element-static' target='main' title='$element'>
.$element
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#$elementIsInDOM-static' target='main' title='$elementIsInDOM'>
.$elementIsInDOM
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='file/base/Deferred/when.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(base/Deferred/when.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/Alert.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/Alert.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/Confirm.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/Confirm.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/ConfirmationChoice.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/ConfirmationChoice.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/Prompt.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/Prompt.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/Spinner.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/Spinner.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/Toaster.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/Toaster.coffee)
</small>
</li>
<li>
<a href='file/base/Deferred/decide.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(base/Deferred/decide.coffee)
</small>
</li>
<li>
<a href='file/base/Deferred/when.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(base/Deferred/when.coffee)
</small>
</li>
<li>
<a href='file/elements/ConfirmationChoice/Alert.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(elements/ConfirmationChoice/Alert.coffee)
</small>
</li>
<li>
<a href='file/base/Deferred/when.coffee.html#CUI-' target='main' title='CUI'>
~CUI
</a>
<small>
(base/Deferred/when.coffee)
</small>
</li>
<li>
<a href='file/base/util.coffee.html#RegExp-' target='main' title='RegExp'>
~RegExp
</a>
<small>
(base/util.coffee)
</small>
</li>
<li>
<a href='file/base/util.coffee.html#String-' target='main' title='String'>
~String
</a>
<small>
(base/util.coffee)
</small>
</li>
<li>
<a href='file/base/util.coffee.html#String-' target='main' title='String'>
~String
</a>
<small>
(base/util.coffee)
</small>
</li>
<li>
<a href='file/base/util.coffee.html#String-' target='main' title='String'>
~String
</a>
<small>
(base/util.coffee)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#UNUSEDgetTimezoneData-dynamic' target='main' title='UNUSEDgetTimezoneData'>
#UNUSEDgetTimezoneData
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#__actionOnNode-dynamic' target='main' title='__actionOnNode'>
#__actionOnNode
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#__actionRecursively-dynamic' target='main' title='__actionRecursively'>
#__actionRecursively
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#__activateItemByIndex-dynamic' target='main' title='__activateItemByIndex'>
#__activateItemByIndex
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__addCustomOption-dynamic' target='main' title='__addCustomOption'>
#__addCustomOption
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__addCustomOption-dynamic' target='main' title='__addCustomOption'>
#__addCustomOption
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__addDebugControl-dynamic' target='main' title='__addDebugControl'>
#__addDebugControl
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#__addHeaderButton-dynamic' target='main' title='__addHeaderButton'>
#__addHeaderButton
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__addMarkerToMap-dynamic' target='main' title='__addMarkerToMap'>
#__addMarkerToMap
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__addMarkerToMap-dynamic' target='main' title='__addMarkerToMap'>
#__addMarkerToMap
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__addMarkerToMap-dynamic' target='main' title='__addMarkerToMap'>
#__addMarkerToMap
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__addRow-dynamic' target='main' title='__addRow'>
#__addRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__addRows-dynamic' target='main' title='__addRows'>
#__addRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__addRowsOddEvenClasses-dynamic' target='main' title='__addRowsOddEvenClasses'>
#__addRowsOddEvenClasses
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#__addSeparator-dynamic' target='main' title='__addSeparator'>
#__addSeparator
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#__addSymbol-dynamic' target='main' title='__addSymbol'>
#__addSymbol
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__afterMarkerCreated-dynamic' target='main' title='__afterMarkerCreated'>
#__afterMarkerCreated
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__afterMarkerCreated-dynamic' target='main' title='__afterMarkerCreated'>
#__afterMarkerCreated
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#__all-static' target='main' title='__all'>
.__all
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/dom.html#__append-static' target='main' title='__append'>
.__append
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__appendCells-dynamic' target='main' title='__appendCells'>
#__appendCells
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Template.html#__appendContent-static' target='main' title='__appendContent'>
.__appendContent
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__appendNewRow-dynamic' target='main' title='__appendNewRow'>
#__appendNewRow
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#__appendNode-dynamic' target='main' title='__appendNode'>
#__appendNode
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__appendRow-dynamic' target='main' title='__appendRow'>
#__appendRow
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#__assertDOMElement-dynamic' target='main' title='__assertDOMElement'>
#__assertDOMElement
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#__assertTemplateElement-dynamic' target='main' title='__assertTemplateElement'>
#__assertTemplateElement
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__bindOnClickMapEvent-dynamic' target='main' title='__bindOnClickMapEvent'>
#__bindOnClickMapEvent
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__bindOnClickMapEvent-dynamic' target='main' title='__bindOnClickMapEvent'>
#__bindOnClickMapEvent
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__bindOnClickMapEvent-dynamic' target='main' title='__bindOnClickMapEvent'>
#__bindOnClickMapEvent
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__buildIconPopoverContent-dynamic' target='main' title='__buildIconPopoverContent'>
#__buildIconPopoverContent
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__buildMap-dynamic' target='main' title='__buildMap'>
#__buildMap
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__buildMap-dynamic' target='main' title='__buildMap'>
#__buildMap
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__buildMap-dynamic' target='main' title='__buildMap'>
#__buildMap
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__buildMap-dynamic' target='main' title='__buildMap'>
#__buildMap
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__buildMarker-dynamic' target='main' title='__buildMarker'>
#__buildMarker
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__buildMarker-dynamic' target='main' title='__buildMarker'>
#__buildMarker
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__buildMarker-dynamic' target='main' title='__buildMarker'>
#__buildMarker
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/MultiOutput.html#__buildTemplateForKey-dynamic' target='main' title='__buildTemplateForKey'>
#__buildTemplateForKey
</a>
<small>
(CUI.MultiOutput)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#__callAutoButtonbar-dynamic' target='main' title='__callAutoButtonbar'>
#__callAutoButtonbar
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__callOnGroup-dynamic' target='main' title='__callOnGroup'>
#__callOnGroup
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI.html#__callTimeoutChangeCallbacks-static' target='main' title='__callTimeoutChangeCallbacks'>
.__callTimeoutChangeCallbacks
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#__callback-dynamic' target='main' title='__callback'>
#__callback
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/DateTimeInputBlock.html#__changeBlock-dynamic' target='main' title='__changeBlock'>
#__changeBlock
</a>
<small>
(CUI.DateTimeInputBlock)
</small>
</li>
<li>
<a href='class/CUI/NumberInputBlock.html#__changeBlock-dynamic' target='main' title='__changeBlock'>
#__changeBlock
</a>
<small>
(CUI.NumberInputBlock)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#__checkInput-dynamic' target='main' title='__checkInput'>
#__checkInput
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__checkInput-dynamic' target='main' title='__checkInput'>
#__checkInput
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/EmailInput.html#__checkInput-dynamic' target='main' title='__checkInput'>
#__checkInput
</a>
<small>
(CUI.EmailInput)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#__checkInput-dynamic' target='main' title='__checkInput'>
#__checkInput
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__checkInputInternal-dynamic' target='main' title='__checkInputInternal'>
#__checkInputInternal
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__checkInputRegexp-dynamic' target='main' title='__checkInputRegexp'>
#__checkInputRegexp
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Prompt.html#__checkOkBtn-dynamic' target='main' title='__checkOkBtn'>
#__checkOkBtn
</a>
<small>
(CUI.Prompt)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#__checkOverflowButton-dynamic' target='main' title='__checkOverflowButton'>
#__checkOverflowButton
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/ProgressMeter.html#__checkState-dynamic' target='main' title='__checkState'>
#__checkState
</a>
<small>
(CUI.ProgressMeter)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#__checkVisibility-dynamic' target='main' title='__checkVisibility'>
#__checkVisibility
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#__cleanup-dynamic' target='main' title='__cleanup'>
#__cleanup
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#__clearOverwriteMonthAndYear-dynamic' target='main' title='__clearOverwriteMonthAndYear'>
#__clearOverwriteMonthAndYear
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI.html#__clearStorage-static' target='main' title='__clearStorage'>
.__clearStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#__close-dynamic' target='main' title='__close'>
#__close
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#__closePopover-dynamic' target='main' title='__closePopover'>
#__closePopover
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#__closePopover-dynamic' target='main' title='__closePopover'>
#__closePopover
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__createElement-dynamic' target='main' title='__createElement'>
#__createElement
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Password.html#__createElement-dynamic' target='main' title='__createElement'>
#__createElement
</a>
<small>
(CUI.Password)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#__createFields-dynamic' target='main' title='__createFields'>
#__createFields
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__debugCall-dynamic' target='main' title='__debugCall'>
#__debugCall
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__debugRect-dynamic' target='main' title='__debugRect'>
#__debugRect
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__deferRow-dynamic' target='main' title='__deferRow'>
#__deferRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#__deselectPreActivated-dynamic' target='main' title='__deselectPreActivated'>
#__deselectPreActivated
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#__detach-dynamic' target='main' title='__detach'>
#__detach
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__disableEnableZoomButtons-dynamic' target='main' title='__disableEnableZoomButtons'>
#__disableEnableZoomButtons
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#__doLayout-dynamic' target='main' title='__doLayout'>
#__doLayout
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__doLayout-dynamic' target='main' title='__doLayout'>
#__doLayout
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#__doSearch-dynamic' target='main' title='__doSearch'>
#__doSearch
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__download_abort-dynamic' target='main' title='__download_abort'>
#__download_abort
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__download_loadend-dynamic' target='main' title='__download_loadend'>
#__download_loadend
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__download_progress-dynamic' target='main' title='__download_progress'>
#__download_progress
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__download_readyStateChange-dynamic' target='main' title='__download_readyStateChange'>
#__download_readyStateChange
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__download_timeout-dynamic' target='main' title='__download_timeout'>
#__download_timeout
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#__end_drag-dynamic' target='main' title='__end_drag'>
#__end_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#__event_abort-dynamic' target='main' title='__event_abort'>
#__event_abort
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#__event_error-dynamic' target='main' title='__event_error'>
#__event_error
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#__event_load-dynamic' target='main' title='__event_load'>
#__event_load
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#__event_loadStart-dynamic' target='main' title='__event_loadStart'>
#__event_loadStart
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#__event_loadend-dynamic' target='main' title='__event_loadend'>
#__event_loadend
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#__event_progress-dynamic' target='main' title='__event_progress'>
#__event_progress
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#__findClosestSon-dynamic' target='main' title='__findClosestSon'>
#__findClosestSon
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__findRowInfo-dynamic' target='main' title='__findRowInfo'>
#__findRowInfo
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#__finish_drag-dynamic' target='main' title='__finish_drag'>
#__finish_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__focusShadowInput-dynamic' target='main' title='__focusShadowInput'>
#__focusShadowInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Events.html#__getActiveListeners-static' target='main' title='__getActiveListeners'>
.__getActiveListeners
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__getButtons-dynamic' target='main' title='__getButtons'>
#__getButtons
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/CSSLoader.html#__getCSSNodes-dynamic' target='main' title='__getCSSNodes'>
#__getCSSNodes
</a>
<small>
(CUI.CSSLoader)
</small>
</li>
<li>
<a href='class/CUI/Element.html#__getCheckMap-dynamic' target='main' title='__getCheckMap'>
#__getCheckMap
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Options.html#__getCheckboxByValue-dynamic' target='main' title='__getCheckboxByValue'>
#__getCheckboxByValue
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__getColClass-dynamic' target='main' title='__getColClass'>
#__getColClass
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__getColWidth-dynamic' target='main' title='__getColWidth'>
#__getColWidth
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__getColsFromAndTo-dynamic' target='main' title='__getColsFromAndTo'>
#__getColsFromAndTo
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__getFormattedPosition-dynamic' target='main' title='__getFormattedPosition'>
#__getFormattedPosition
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__getFullscreenButtonOpts-dynamic' target='main' title='__getFullscreenButtonOpts'>
#__getFullscreenButtonOpts
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__getIcon-dynamic' target='main' title='__getIcon'>
#__getIcon
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#__getInputBlocks-dynamic' target='main' title='__getInputBlocks'>
#__getInputBlocks
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__getInputBlocks-dynamic' target='main' title='__getInputBlocks'>
#__getInputBlocks
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#__getItemByIndex-dynamic' target='main' title='__getItemByIndex'>
#__getItemByIndex
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#__getItems-dynamic' target='main' title='__getItems'>
#__getItems
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Events.html#__getListenersForNode-static' target='main' title='__getListenersForNode'>
.__getListenersForNode
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__getMapClassName-dynamic' target='main' title='__getMapClassName'>
#__getMapClassName
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__getMapClassName-dynamic' target='main' title='__getMapClassName'>
#__getMapClassName
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__getMapClassName-dynamic' target='main' title='__getMapClassName'>
#__getMapClassName
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__getMarkerOptions-dynamic' target='main' title='__getMarkerOptions'>
#__getMarkerOptions
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Select.html#__getOptionByValue-dynamic' target='main' title='__getOptionByValue'>
#__getOptionByValue
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#__getOriginalElement-dynamic' target='main' title='__getOriginalElement'>
#__getOriginalElement
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__getPosition-dynamic' target='main' title='__getPosition'>
#__getPosition
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__getPositionForDisplay-dynamic' target='main' title='__getPositionForDisplay'>
#__getPositionForDisplay
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__getQuadrants-dynamic' target='main' title='__getQuadrants'>
#__getQuadrants
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#__getResolveValue-dynamic' target='main' title='__getResolveValue'>
#__getResolveValue
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__getScrolling-dynamic' target='main' title='__getScrolling'>
#__getScrolling
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#__getSize-dynamic' target='main' title='__getSize'>
#__getSize
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#__getState-dynamic' target='main' title='__getState'>
#__getState
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI.html#__getStorage-static' target='main' title='__getStorage'>
.__getStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__getTemplateName-dynamic' target='main' title='__getTemplateName'>
#__getTemplateName
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI.html#__getTimeoutById-static' target='main' title='__getTimeoutById'>
.__getTimeoutById
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__getValue-dynamic' target='main' title='__getValue'>
#__getValue
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__getZoomButtons-dynamic' target='main' title='__getZoomButtons'>
#__getZoomButtons
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#__handleDOMEventInternal-dynamic' target='main' title='__handleDOMEventInternal'>
#__handleDOMEventInternal
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumper.html#__hasOnlyPlainValues-dynamic' target='main' title='__hasOnlyPlainValues'>
#__hasOnlyPlainValues
</a>
<small>
(CUI.ObjectDumper)
</small>
</li>
<li>
<a href='class/CUI/MultiOutput.html#__hideShowElements-dynamic' target='main' title='__hideShowElements'>
#__hideShowElements
</a>
<small>
(CUI.MultiOutput)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#__init-dynamic' target='main' title='__init'>
#__init
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Events.html#__init-static' target='main' title='__init'>
.__init
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#__init-dynamic' target='main' title='__init'>
#__init
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/BorderLayout.html#__init-dynamic' target='main' title='__init'>
#__init
</a>
<small>
(CUI.BorderLayout)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#__init-dynamic' target='main' title='__init'>
#__init
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#__initActiveIdx-dynamic' target='main' title='__initActiveIdx'>
#__initActiveIdx
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__initContentSize-dynamic' target='main' title='__initContentSize'>
#__initContentSize
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#__initDisabled-dynamic' target='main' title='__initDisabled'>
#__initDisabled
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#__initInputs-dynamic' target='main' title='__initInputs'>
#__initInputs
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/KeyboardEvent.html#__initKeyboardListener-static' target='main' title='__initKeyboardListener'>
.__initKeyboardListener
</a>
<small>
(CUI.KeyboardEvent)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__initMap-dynamic' target='main' title='__initMap'>
#__initMap
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#__initPane-dynamic' target='main' title='__initPane'>
#__initPane
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__initShadowInput-dynamic' target='main' title='__initShadowInput'>
#__initShadowInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__initTooltip-dynamic' target='main' title='__initTooltip'>
#__initTooltip
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#__initUndo-dynamic' target='main' title='__initUndo'>
#__initUndo
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#__isAlive-dynamic' target='main' title='__isAlive'>
#__isAlive
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__isMaximizedCol-dynamic' target='main' title='__isMaximizedCol'>
#__isMaximizedCol
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#__killTimeout-dynamic' target='main' title='__killTimeout'>
#__killTimeout
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__loadCSS-dynamic' target='main' title='__loadCSS'>
#__loadCSS
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Select.html#__loadOptions-dynamic' target='main' title='__loadOptions'>
#__loadOptions
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#__makeList-dynamic' target='main' title='__makeList'>
#__makeList
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#__measureAndSetBodyWidth-dynamic' target='main' title='__measureAndSetBodyWidth'>
#__measureAndSetBodyWidth
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#__notify-dynamic' target='main' title='__notify'>
#__notify
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/FileUploadButton.html#__onClick-dynamic' target='main' title='__onClick'>
#__onClick
</a>
<small>
(CUI.FileUploadButton)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__onMarkerClick-dynamic' target='main' title='__onMarkerClick'>
#__onMarkerClick
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__onMoveEnd-dynamic' target='main' title='__onMoveEnd'>
#__onMoveEnd
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__onReady-dynamic' target='main' title='__onReady'>
#__onReady
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#__open-dynamic' target='main' title='__open'>
#__open
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__openIconPopover-dynamic' target='main' title='__openIconPopover'>
#__openIconPopover
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__openMapPopover-dynamic' target='main' title='__openMapPopover'>
#__openMapPopover
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#__openPopover-dynamic' target='main' title='__openPopover'>
#__openPopover
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__overwriteBlocks-dynamic' target='main' title='__overwriteBlocks'>
#__overwriteBlocks
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#__parseFormat-dynamic' target='main' title='__parseFormat'>
#__parseFormat
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#__positionControl-dynamic' target='main' title='__positionControl'>
#__positionControl
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#__preActivateItemByIndex-dynamic' target='main' title='__preActivateItemByIndex'>
#__preActivateItemByIndex
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__progress-dynamic' target='main' title='__progress'>
#__progress
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#__proxy-dynamic' target='main' title='__proxy'>
#__proxy
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#__register-dynamic' target='main' title='__register'>
#__register
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#__registerDOMEvent-dynamic' target='main' title='__registerDOMEvent'>
#__registerDOMEvent
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__registerEvents-dynamic' target='main' title='__registerEvents'>
#__registerEvents
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Events.html#__registerListener-static' target='main' title='__registerListener'>
.__registerListener
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#__reject-dynamic' target='main' title='__reject'>
#__reject
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__removeContentSize-dynamic' target='main' title='__removeContentSize'>
#__removeContentSize
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#__removeDebugDivs-dynamic' target='main' title='__removeDebugDivs'>
#__removeDebugDivs
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__removeEmptyRows-dynamic' target='main' title='__removeEmptyRows'>
#__removeEmptyRows
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/Map.html#__removeMarker-dynamic' target='main' title='__removeMarker'>
#__removeMarker
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__removeMarker-dynamic' target='main' title='__removeMarker'>
#__removeMarker
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#__removeMarker-dynamic' target='main' title='__removeMarker'>
#__removeMarker
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__removeRow-dynamic' target='main' title='__removeRow'>
#__removeRow
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__removeShadowInput-dynamic' target='main' title='__removeShadowInput'>
#__removeShadowInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI.html#__removeTimeout-static' target='main' title='__removeTimeout'>
.__removeTimeout
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#__renderDisplay-dynamic' target='main' title='__renderDisplay'>
#__renderDisplay
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__resetCellDims-dynamic' target='main' title='__resetCellDims'>
#__resetCellDims
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__resetCellStyle-dynamic' target='main' title='__resetCellStyle'>
#__resetCellStyle
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__resetColWidth-dynamic' target='main' title='__resetColWidth'>
#__resetColWidth
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__resetRowDim-dynamic' target='main' title='__resetRowDim'>
#__resetRowDim
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#__resize-dynamic' target='main' title='__resize'>
#__resize
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#__resolve-dynamic' target='main' title='__resolve'>
#__resolve
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#__runOnAllButtons-dynamic' target='main' title='__runOnAllButtons'>
#__runOnAllButtons
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#__runTrigger-dynamic' target='main' title='__runTrigger'>
#__runTrigger
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__scheduleLayout-dynamic' target='main' title='__scheduleLayout'>
#__scheduleLayout
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#__setActiveMarker-dynamic' target='main' title='__setActiveMarker'>
#__setActiveMarker
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#__setClassOnField-dynamic' target='main' title='__setClassOnField'>
#__setClassOnField
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#__setColWidth-dynamic' target='main' title='__setColWidth'>
#__setColWidth
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__setContentSize-dynamic' target='main' title='__setContentSize'>
#__setContentSize
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__setCursor-dynamic' target='main' title='__setCursor'>
#__setCursor
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Options.html#__setDataOnOptions-dynamic' target='main' title='__setDataOnOptions'>
#__setDataOnOptions
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#__setElement-dynamic' target='main' title='__setElement'>
#__setElement
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__setIconState-dynamic' target='main' title='__setIconState'>
#__setIconState
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Event.html#__setListener-dynamic' target='main' title='__setListener'>
#__setListener
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__setMargins-dynamic' target='main' title='__setMargins'>
#__setMargins
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Event.html#__setPhase-dynamic' target='main' title='__setPhase'>
#__setPhase
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#__setRowVisibility-dynamic' target='main' title='__setRowVisibility'>
#__setRowVisibility
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__setScrolling-dynamic' target='main' title='__setScrolling'>
#__setScrolling
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#__setSize-dynamic' target='main' title='__setSize'>
#__setSize
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#__setState-dynamic' target='main' title='__setState'>
#__setState
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__setState-dynamic' target='main' title='__setState'>
#__setState
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__setStatus-dynamic' target='main' title='__setStatus'>
#__setStatus
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI.html#__setStorage-static' target='main' title='__setStorage'>
.__setStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Button.html#__setTextState-dynamic' target='main' title='__setTextState'>
#__setTextState
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#__setVisibilityClasses-dynamic' target='main' title='__setVisibilityClasses'>
#__setVisibilityClasses
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__shadowInput-dynamic' target='main' title='__shadowInput'>
#__shadowInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#__startDrag-dynamic' target='main' title='__startDrag'>
#__startDrag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI.html#__startTimeout-static' target='main' title='__startTimeout'>
.__startTimeout
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__storeValue-dynamic' target='main' title='__storeValue'>
#__storeValue
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#__syncScrolling-dynamic' target='main' title='__syncScrolling'>
#__syncScrolling
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#__triggerDataChanged-dynamic' target='main' title='__triggerDataChanged'>
#__triggerDataChanged
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Input.html#__unfocusShadowInput-dynamic' target='main' title='__unfocusShadowInput'>
#__unfocusShadowInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__updateButtons-dynamic' target='main' title='__updateButtons'>
#__updateButtons
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__updateEmptyInRows-dynamic' target='main' title='__updateEmptyInRows'>
#__updateEmptyInRows
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#__updateGroupsPolylines-dynamic' target='main' title='__updateGroupsPolylines'>
#__updateGroupsPolylines
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#__updateIconOptions-dynamic' target='main' title='__updateIconOptions'>
#__updateIconOptions
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#__updateLayerStackCounter-dynamic' target='main' title='__updateLayerStackCounter'>
#__updateLayerStackCounter
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#__updateView-dynamic' target='main' title='__updateView'>
#__updateView
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#__upload_progress-dynamic' target='main' title='__upload_progress'>
#__upload_progress
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/dom.html#a-static' target='main' title='a'>
.a
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#abort-dynamic' target='main' title='abort'>
#abort
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#abort-dynamic' target='main' title='abort'>
#abort
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#abort-dynamic' target='main' title='abort'>
#abort
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#abortLoading-dynamic' target='main' title='abortLoading'>
#abortLoading
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#accept-dynamic' target='main' title='accept'>
#accept
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#activate-dynamic' target='main' title='activate'>
#activate
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#activate-dynamic' target='main' title='activate'>
#activate
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/Button.html#activate-dynamic' target='main' title='activate'>
#activate
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#activatePreSelectedItem-dynamic' target='main' title='activatePreSelectedItem'>
#activatePreSelectedItem
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#addButton-dynamic' target='main' title='addButton'>
#addButton
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#addChild-dynamic' target='main' title='addChild'>
#addChild
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#addClass-dynamic' target='main' title='addClass'>
#addClass
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#addClass-dynamic' target='main' title='addClass'>
#addClass
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#addClass-dynamic' target='main' title='addClass'>
#addClass
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/dom.html#addClass-static' target='main' title='addClass'>
.addClass
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Template.html#addClass-dynamic' target='main' title='addClass'>
#addClass
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnRightFill.html#addClass-dynamic' target='main' title='addClass'>
#addClass
</a>
<small>
(CUI.ListViewColumnRightFill)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#addClassToField-dynamic' target='main' title='addClassToField'>
#addClassToField
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#addColumn-dynamic' target='main' title='addColumn'>
#addColumn
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#addLabel-dynamic' target='main' title='addLabel'>
#addLabel
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Map.html#addMarker-dynamic' target='main' title='addMarker'>
#addMarker
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#addMarkers-dynamic' target='main' title='addMarkers'>
#addMarkers
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchMatch.html#addMatch-dynamic' target='main' title='addMatch'>
#addMatch
</a>
<small>
(CUI.DocumentBrowser.SearchMatch)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#addNode-dynamic' target='main' title='addNode'>
#addNode
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#addNode-dynamic' target='main' title='addNode'>
#addNode
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Element.html#addOpt-dynamic' target='main' title='addOpt'>
#addOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Element.html#addOpts-dynamic' target='main' title='addOpts'>
#addOpts
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#addRow-dynamic' target='main' title='addRow'>
#addRow
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/Table.html#addRow-dynamic' target='main' title='addRow'>
#addRow
</a>
<small>
(CUI.Table)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#addSelectedClass-dynamic' target='main' title='addSelectedClass'>
#addSelectedClass
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#addStickyHeader-dynamic' target='main' title='addStickyHeader'>
#addStickyHeader
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#addTab-dynamic' target='main' title='addTab'>
#addTab
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#addWords-dynamic' target='main' title='addWords'>
#addWords
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#addedToListView-dynamic' target='main' title='addedToListView'>
#addedToListView
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#addedToListView-dynamic' target='main' title='addedToListView'>
#addedToListView
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/util.html#alert_dump-static' target='main' title='alert_dump'>
.alert_dump
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#all-static' target='main' title='all'>
.all
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeRowMove.html#allowRowMove-dynamic' target='main' title='allowRowMove'>
#allowRowMove
</a>
<small>
(CUI.ListViewTreeRowMove)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#allowRowMove-dynamic' target='main' title='allowRowMove'>
#allowRowMove
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Event.html#altKey-dynamic' target='main' title='altKey'>
#altKey
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#always-dynamic' target='main' title='always'>
#always
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#always-dynamic' target='main' title='always'>
#always
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#append-dynamic' target='main' title='append'>
#append
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/dom.html#append-static' target='main' title='append'>
.append
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#append-dynamic' target='main' title='append'>
#append
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#append-dynamic' target='main' title='append'>
#append
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/Template.html#append-dynamic' target='main' title='append'>
#append
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#append-dynamic' target='main' title='append'>
#append
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#appendContent-dynamic' target='main' title='appendContent'>
#appendContent
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#appendContent-dynamic' target='main' title='appendContent'>
#appendContent
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/Block.html#appendContent-dynamic' target='main' title='appendContent'>
#appendContent
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#appendDeferredRows-dynamic' target='main' title='appendDeferredRows'>
#appendDeferredRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#appendRow-dynamic' target='main' title='appendRow'>
#appendRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#appendRows-dynamic' target='main' title='appendRows'>
#appendRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#appendSibling-dynamic' target='main' title='appendSibling'>
#appendSibling
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI.html#appendToUrl-static' target='main' title='appendToUrl'>
.appendToUrl
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#assert-static' target='main' title='assert'>
.assert
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#assertImplements-static' target='main' title='assertImplements'>
.assertImplements
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#assertInstanceOf-static' target='main' title='assertInstanceOf'>
.assertInstanceOf
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#atou-static' target='main' title='atou'>
.atou
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#audio-static' target='main' title='audio'>
.audio
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#autoSize-dynamic' target='main' title='autoSize'>
#autoSize
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/dom.html#b-static' target='main' title='b'>
.b
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#before_drag-dynamic' target='main' title='before_drag'>
#before_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#before_drag-dynamic' target='main' title='before_drag'>
#before_drag
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#before_drag-dynamic' target='main' title='before_drag'>
#before_drag
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#calcSizes-dynamic' target='main' title='calcSizes'>
#calcSizes
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#callOnFields-dynamic' target='main' title='callOnFields'>
#callOnFields
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#callOnOthers-dynamic' target='main' title='callOnOthers'>
#callOnOthers
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#cancel-dynamic' target='main' title='cancel'>
#cancel
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI.html#chainedCall-static' target='main' title='chainedCall'>
.chainedCall
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#checkBatchDone-dynamic' target='main' title='checkBatchDone'>
#checkBatchDone
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Input.html#checkBlocks-dynamic' target='main' title='checkBlocks'>
#checkBlocks
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#checkChanged-dynamic' target='main' title='checkChanged'>
#checkChanged
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Input.html#checkInput-dynamic' target='main' title='checkInput'>
#checkInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#checkInput-dynamic' target='main' title='checkInput'>
#checkInput
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#checkList-dynamic' target='main' title='checkList'>
#checkList
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/Label.html#checkOverflowSize-dynamic' target='main' title='checkOverflowSize'>
#checkOverflowSize
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Input.html#checkSelectionChange-dynamic' target='main' title='checkSelectionChange'>
#checkSelectionChange
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Output.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/Options.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Input.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Select.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#checkValue-dynamic' target='main' title='checkValue'>
#checkValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#check_deselect-dynamic' target='main' title='check_deselect'>
#check_deselect
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#children-static' target='main' title='children'>
.children
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI.html#chunkWork-static' target='main' title='chunkWork'>
.chunkWork
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#chunkWorkOLD-static' target='main' title='chunkWorkOLD'>
.chunkWorkOLD
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#cleanup_drag-dynamic' target='main' title='cleanup_drag'>
#cleanup_drag
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#cleanup_drag-dynamic' target='main' title='cleanup_drag'>
#cleanup_drag
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#cleanup_drag-dynamic' target='main' title='cleanup_drag'>
#cleanup_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#cleanup_drag-dynamic' target='main' title='cleanup_drag'>
#cleanup_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#clear-dynamic' target='main' title='clear'>
#clear
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Console.html#clear-dynamic' target='main' title='clear'>
#clear
</a>
<small>
(CUI.Console)
</small>
</li>
<li>
<a href='class/CUI.html#clearInterval-static' target='main' title='clearInterval'>
.clearInterval
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#clearLocalStorage-static' target='main' title='clearLocalStorage'>
.clearLocalStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#clearSessionStorage-static' target='main' title='clearSessionStorage'>
.clearSessionStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#clearTimeout-static' target='main' title='clearTimeout'>
.clearTimeout
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#clearTimeout-dynamic' target='main' title='clearTimeout'>
#clearTimeout
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Event.html#clientX-dynamic' target='main' title='clientX'>
#clientX
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Event.html#clientY-dynamic' target='main' title='clientY'>
#clientY
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#close-dynamic' target='main' title='close'>
#close
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#close-dynamic' target='main' title='close'>
#close
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#close-dynamic' target='main' title='close'>
#close
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#closePopover-dynamic' target='main' title='closePopover'>
#closePopover
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#closePopover-dynamic' target='main' title='closePopover'>
#closePopover
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#closeRecursively-dynamic' target='main' title='closeRecursively'>
#closeRecursively
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#closest-static' target='main' title='closest'>
.closest
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#closestUntil-static' target='main' title='closestUntil'>
.closestUntil
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#compareIndex-static' target='main' title='compareIndex'>
.compareIndex
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/DataFieldInput.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.DataFieldInput)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/Event.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/DigiDisplay.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.DigiDisplay)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/IconMarker.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.IconMarker)
</small>
</li>
<li>
<a href='class/CUI/FormButton.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FormButton)
</small>
</li>
<li>
<a href='class/CUI/Block.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/Test.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Test)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumper.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ObjectDumper)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Button.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Template.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Options.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/MultilineLabel.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.MultilineLabel)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Input.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Label.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/EmptyLabel.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.EmptyLabel)
</small>
</li>
<li>
<a href='class/CUI/Map.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Icon.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Icon)
</small>
</li>
<li>
<a href='class/CUI/LayerPane.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.LayerPane)
</small>
</li>
<li>
<a href='class/CUI/ButtonHref.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ButtonHref)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Table.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Table)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/StickyHeader.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.StickyHeader)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI/FileUploadButton.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FileUploadButton)
</small>
</li>
<li>
<a href='class/CUI/Element.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Console.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Console)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/Dummy.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.Dummy)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/ProgressMeter.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.ProgressMeter)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#constructor-dynamic' target='main' title='constructor'>
#constructor
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#copy-dynamic' target='main' title='copy'>
#copy
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/Element.html#copy-dynamic' target='main' title='copy'>
#copy
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Icon.html#copy-dynamic' target='main' title='copy'>
#copy
</a>
<small>
(CUI.Icon)
</small>
</li>
<li>
<a href='class/CUI/util.html#copyObject-static' target='main' title='copyObject'>
.copyObject
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#correctValueForInput-dynamic' target='main' title='correctValueForInput'>
#correctValueForInput
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#correctValueForInput-dynamic' target='main' title='correctValueForInput'>
#correctValueForInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI.html#countTimeouts-static' target='main' title='countTimeouts'>
.countTimeouts
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Event.html#createFromDOMEvent-static' target='main' title='createFromDOMEvent'>
.createFromDOMEvent
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/DigiDisplay.html#createMarkup-dynamic' target='main' title='createMarkup'>
#createMarkup
</a>
<small>
(CUI.DigiDisplay)
</small>
</li>
<li>
<a href='class/CUI/Event.html#ctrlKey-dynamic' target='main' title='ctrlKey'>
#ctrlKey
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/dom.html#data-static' target='main' title='data'>
.data
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Button.html#deactivate-dynamic' target='main' title='deactivate'>
#deactivate
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#deactivate-dynamic' target='main' title='deactivate'>
#deactivate
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#debug-dynamic' target='main' title='debug'>
#debug
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#debug-dynamic' target='main' title='debug'>
#debug
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#debug-dynamic' target='main' title='debug'>
#debug
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/dom.html#debugRect-static' target='main' title='debugRect'>
.debugRect
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI.html#decodeURIComponentNicely-static' target='main' title='decodeURIComponentNicely'>
.decodeURIComponentNicely
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#decodeUrlData-static' target='main' title='decodeUrlData'>
.decodeUrlData
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#decodeUrlDataArray-static' target='main' title='decodeUrlDataArray'>
.decodeUrlDataArray
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DateTimeInputBlock.html#decrementBlock-dynamic' target='main' title='decrementBlock'>
#decrementBlock
</a>
<small>
(CUI.DateTimeInputBlock)
</small>
</li>
<li>
<a href='class/CUI/NumberInputBlock.html#decrementBlock-dynamic' target='main' title='decrementBlock'>
#decrementBlock
</a>
<small>
(CUI.NumberInputBlock)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#decrementBlock-dynamic' target='main' title='decrementBlock'>
#decrementBlock
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#dequeue-dynamic' target='main' title='dequeue'>
#dequeue
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#deselect-dynamic' target='main' title='deselect'>
#deselect
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#deselect-dynamic' target='main' title='deselect'>
#deselect
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Button.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Label.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Template.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/MultiOutput.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.MultiOutput)
</small>
</li>
<li>
<a href='class/CUI/Map.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#destroy-static' target='main' title='destroy'>
.destroy
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/LayerPane.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.LayerPane)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Element.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Input.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#destroy-dynamic' target='main' title='destroy'>
#destroy
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/Button.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Input.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Select.html#disable-dynamic' target='main' title='disable'>
#disable
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#disableAllButtons-dynamic' target='main' title='disableAllButtons'>
#disableAllButtons
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Select.html#disableOption-dynamic' target='main' title='disableOption'>
#disableOption
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Options.html#disableOption-dynamic' target='main' title='disableOption'>
#disableOption
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Event.html#dispatch-dynamic' target='main' title='dispatch'>
#dispatch
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#display-static' target='main' title='display'>
.display
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DigiDisplay.html#display-dynamic' target='main' title='display'>
#display
</a>
<small>
(CUI.DigiDisplay)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Options.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/OutputContent.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.OutputContent)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/Output.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Select.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#displayValue-dynamic' target='main' title='displayValue'>
#displayValue
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/dom.html#div-static' target='main' title='div'>
.div
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#doCancel-dynamic' target='main' title='doCancel'>
#doCancel
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#doCancel-dynamic' target='main' title='doCancel'>
#doCancel
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/Dragscroll.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.Dragscroll)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#do_drag-dynamic' target='main' title='do_drag'>
#do_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#done-dynamic' target='main' title='done'>
#done
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#done-dynamic' target='main' title='done'>
#done
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI.html#downloadData-static' target='main' title='downloadData'>
.downloadData
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#drawDate-dynamic' target='main' title='drawDate'>
#drawDate
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#drawMonthTable-dynamic' target='main' title='drawMonthTable'>
#drawMonthTable
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#drawYearMonthsSelect-dynamic' target='main' title='drawYearMonthsSelect'>
#drawYearMonthsSelect
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#dump-dynamic' target='main' title='dump'>
#dump
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Event.html#dump-dynamic' target='main' title='dump'>
#dump
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Events.html#dump-static' target='main' title='dump'>
.dump
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/KeyboardEvent.html#dump-dynamic' target='main' title='dump'>
#dump
</a>
<small>
(CUI.KeyboardEvent)
</small>
</li>
<li>
<a href='class/CUI/util.html#dump-static' target='main' title='dump'>
.dump
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/WheelEvent.html#dump-dynamic' target='main' title='dump'>
#dump
</a>
<small>
(CUI.WheelEvent)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#dumpString-dynamic' target='main' title='dumpString'>
#dumpString
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Events.html#dumpTopLevel-static' target='main' title='dumpTopLevel'>
.dumpTopLevel
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/dom.html#element-static' target='main' title='element'>
.element
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#elementGetPosition-static' target='main' title='elementGetPosition'>
.elementGetPosition
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#elementsUntil-static' target='main' title='elementsUntil'>
.elementsUntil
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#empty-static' target='main' title='empty'>
.empty
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#empty-dynamic' target='main' title='empty'>
#empty
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#empty-dynamic' target='main' title='empty'>
#empty
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Template.html#empty-dynamic' target='main' title='empty'>
#empty
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#empty-dynamic' target='main' title='empty'>
#empty
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/Button.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/Input.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Select.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#enable-dynamic' target='main' title='enable'>
#enable
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#enableAllButtons-dynamic' target='main' title='enableAllButtons'>
#enableAllButtons
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Select.html#enableOption-dynamic' target='main' title='enableOption'>
#enableOption
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Options.html#enableOption-dynamic' target='main' title='enableOption'>
#enableOption
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#encloseSelection-dynamic' target='main' title='encloseSelection'>
#encloseSelection
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI.html#encodeURIComponentNicely-static' target='main' title='encodeURIComponentNicely'>
.encodeURIComponentNicely
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#encodeUrlData-static' target='main' title='encodeUrlData'>
.encodeUrlData
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#endFillScreen-dynamic' target='main' title='endFillScreen'>
#endFillScreen
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#end_drag-dynamic' target='main' title='end_drag'>
#end_drag
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#end_drag-dynamic' target='main' title='end_drag'>
#end_drag
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#end_drag-dynamic' target='main' title='end_drag'>
#end_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#end_drag-dynamic' target='main' title='end_drag'>
#end_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#end_drag-dynamic' target='main' title='end_drag'>
#end_drag
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Input.html#enterInput-dynamic' target='main' title='enterInput'>
#enterInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Test.html#eq-dynamic' target='main' title='eq'>
#eq
</a>
<small>
(CUI.Test)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#escape-static' target='main' title='escape'>
.escape
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI.html#escapeAttribute-static' target='main' title='escapeAttribute'>
.escapeAttribute
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#escapeRegExp-static' target='main' title='escapeRegExp'>
.escapeRegExp
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#evalCode-static' target='main' title='evalCode'>
.evalCode
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/dom.html#exitFullscreen-static' target='main' title='exitFullscreen'>
.exitFullscreen
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#fail-dynamic' target='main' title='fail'>
#fail
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#fail-dynamic' target='main' title='fail'>
#fail
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#fillContent-dynamic' target='main' title='fillContent'>
#fillContent
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#filter-dynamic' target='main' title='filter'>
#filter
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#find-dynamic' target='main' title='find'>
#find
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#find-static' target='main' title='find'>
.find
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Input.html#findBlock-dynamic' target='main' title='findBlock'>
#findBlock
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findElement-static' target='main' title='findElement'>
.findElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findElements-static' target='main' title='findElements'>
.findElements
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#findInArray-static' target='main' title='findInArray'>
.findInArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findNextElement-static' target='main' title='findNextElement'>
.findNextElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findNextSiblings-static' target='main' title='findNextSiblings'>
.findNextSiblings
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findNextVisibleElement-static' target='main' title='findNextVisibleElement'>
.findNextVisibleElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findPreviousElement-static' target='main' title='findPreviousElement'>
.findPreviousElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findPreviousSiblings-static' target='main' title='findPreviousSiblings'>
.findPreviousSiblings
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findPreviousVisibleElement-static' target='main' title='findPreviousVisibleElement'>
.findPreviousVisibleElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#findTextInNodes-static' target='main' title='findTextInNodes'>
.findTextInNodes
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#firstElementChild-static' target='main' title='firstElementChild'>
.firstElementChild
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#focus-dynamic' target='main' title='focus'>
#focus
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#focus-dynamic' target='main' title='focus'>
#focus
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#focusOnHide-dynamic' target='main' title='focusOnHide'>
#focusOnHide
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#focusOnHide-dynamic' target='main' title='focusOnHide'>
#focusOnHide
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#focusOnShow-dynamic' target='main' title='focusOnShow'>
#focusOnShow
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#focusOnShow-dynamic' target='main' title='focusOnShow'>
#focusOnShow
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#focusOnShow-dynamic' target='main' title='focusOnShow'>
#focusOnShow
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Popover.html#forceFocusOnShow-dynamic' target='main' title='forceFocusOnShow'>
#forceFocusOnShow
</a>
<small>
(CUI.Popover)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#forceFocusOnShow-dynamic' target='main' title='forceFocusOnShow'>
#forceFocusOnShow
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#forceFocusOnShow-dynamic' target='main' title='forceFocusOnShow'>
#forceFocusOnShow
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#forceFooter-dynamic' target='main' title='forceFooter'>
#forceFooter
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#forceFooter-dynamic' target='main' title='forceFooter'>
#forceFooter
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#forceHeader-dynamic' target='main' title='forceHeader'>
#forceHeader
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#forceHeader-dynamic' target='main' title='forceHeader'>
#forceHeader
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#format-dynamic' target='main' title='format'>
#format
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#format-static' target='main' title='format'>
.format
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#format-static' target='main' title='format'>
.format
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/util.html#formatCoordinates-static' target='main' title='formatCoordinates'>
.formatCoordinates
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#formatMoment-static' target='main' title='formatMoment'>
.formatMoment
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#formatMomentWithBc-static' target='main' title='formatMomentWithBc'>
.formatMomentWithBc
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#formatValueForDisplay-dynamic' target='main' title='formatValueForDisplay'>
#formatValueForDisplay
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/dom.html#fullscreenElement-static' target='main' title='fullscreenElement'>
.fullscreenElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#fullscreenEnabled-static' target='main' title='fullscreenEnabled'>
.fullscreenEnabled
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#get-dynamic' target='main' title='get'>
#get
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Template.html#get-dynamic' target='main' title='get'>
#get
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/CSSLoader.html#getActiveCSS-dynamic' target='main' title='getActiveCSS'>
#getActiveCSS
</a>
<small>
(CUI.CSSLoader)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#getActiveIdx-dynamic' target='main' title='getActiveIdx'>
#getActiveIdx
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#getActiveTab-dynamic' target='main' title='getActiveTab'>
#getActiveTab
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getAllDataFields-dynamic' target='main' title='getAllDataFields'>
#getAllDataFields
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#getAllResponseHeaders-dynamic' target='main' title='getAllResponseHeaders'>
#getAllResponseHeaders
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/IconMarker.html#getAnchor-dynamic' target='main' title='getAnchor'>
#getAnchor
</a>
<small>
(CUI.IconMarker)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getArrayFromOpt-dynamic' target='main' title='getArrayFromOpt'>
#getArrayFromOpt
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getAttribute-static' target='main' title='getAttribute'>
.getAttribute
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#getAttrs-dynamic' target='main' title='getAttrs'>
#getAttrs
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getBatch-dynamic' target='main' title='getBatch'>
#getBatch
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#getBody-dynamic' target='main' title='getBody'>
#getBody
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#getBody-dynamic' target='main' title='getBody'>
#getBody
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getBottom-dynamic' target='main' title='getBottom'>
#getBottom
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getBoxSizing-static' target='main' title='getBoxSizing'>
.getBoxSizing
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#getButton-dynamic' target='main' title='getButton'>
#getButton
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#getButton-dynamic' target='main' title='getButton'>
#getButton
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#getButton-dynamic' target='main' title='getButton'>
#getButton
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getButton-dynamic' target='main' title='getButton'>
#getButton
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#getButton-dynamic' target='main' title='getButton'>
#getButton
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#getButtonOpts-dynamic' target='main' title='getButtonOpts'>
#getButtonOpts
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/FormButton.html#getButtonOpts-dynamic' target='main' title='getButtonOpts'>
#getButtonOpts
</a>
<small>
(CUI.FormButton)
</small>
</li>
<li>
<a href='class/CUI/Select.html#getButtonOpts-dynamic' target='main' title='getButtonOpts'>
#getButtonOpts
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getButtonbar-dynamic' target='main' title='getButtonbar'>
#getButtonbar
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#getButtons-dynamic' target='main' title='getButtons'>
#getButtons
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getCSSFloatValue-static' target='main' title='getCSSFloatValue'>
.getCSSFloatValue
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getCellByTarget-dynamic' target='main' title='getCellByTarget'>
#getCellByTarget
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getCellGridRect-dynamic' target='main' title='getCellGridRect'>
#getCellGridRect
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Map.html#getCenter-dynamic' target='main' title='getCenter'>
#getCenter
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getCenter-dynamic' target='main' title='getCenter'>
#getCenter
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#getCenter-dynamic' target='main' title='getCenter'>
#getCenter
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getChangedMarker-dynamic' target='main' title='getChangedMarker'>
#getChangedMarker
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getCheckChangedValue-dynamic' target='main' title='getCheckChangedValue'>
#getCheckChangedValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getCheckbox-dynamic' target='main' title='getCheckbox'>
#getCheckbox
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FormButton.html#getCheckboxClass-dynamic' target='main' title='getCheckboxClass'>
#getCheckboxClass
</a>
<small>
(CUI.FormButton)
</small>
</li>
<li>
<a href='class/CUI/Select.html#getCheckboxClass-dynamic' target='main' title='getCheckboxClass'>
#getCheckboxClass
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#getCheckboxClass-dynamic' target='main' title='getCheckboxClass'>
#getCheckboxClass
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getChildIdx-dynamic' target='main' title='getChildIdx'>
#getChildIdx
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#getChildren-dynamic' target='main' title='getChildren'>
#getChildren
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#getClass-dynamic' target='main' title='getClass'>
#getClass
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#getCloneSourceForHelper-dynamic' target='main' title='getCloneSourceForHelper'>
#getCloneSourceForHelper
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#getCloneSourceForHelper-dynamic' target='main' title='getCloneSourceForHelper'>
#getCloneSourceForHelper
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getColIdx-dynamic' target='main' title='getColIdx'>
#getColIdx
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getColWidth-dynamic' target='main' title='getColWidth'>
#getColWidth
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getColdef-dynamic' target='main' title='getColdef'>
#getColdef
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getColsCount-dynamic' target='main' title='getColsCount'>
#getColsCount
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#getColspan-dynamic' target='main' title='getColspan'>
#getColspan
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getColspan-dynamic' target='main' title='getColspan'>
#getColspan
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#getColumnIdx-dynamic' target='main' title='getColumnIdx'>
#getColumnIdx
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#getColumns-dynamic' target='main' title='getColumns'>
#getColumns
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getComputedStyle-static' target='main' title='getComputedStyle'>
.getComputedStyle
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Block.html#getContent-dynamic' target='main' title='getContent'>
#getContent
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/util.html#getCoordinatesFromEvent-static' target='main' title='getCoordinatesFromEvent'>
.getCoordinatesFromEvent
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/DragoverScrollEvent.html#getCount-dynamic' target='main' title='getCount'>
#getCount
</a>
<small>
(CUI.DragoverScrollEvent)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getCurrentFormat-dynamic' target='main' title='getCurrentFormat'>
#getCurrentFormat
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getCurrentFormatDisplay-dynamic' target='main' title='getCurrentFormatDisplay'>
#getCurrentFormatDisplay
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getCurrentTarget-dynamic' target='main' title='getCurrentTarget'>
#getCurrentTarget
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#getCursor-dynamic' target='main' title='getCursor'>
#getCursor
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#getCursor-dynamic' target='main' title='getCursor'>
#getCursor
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getCursorBlocks-dynamic' target='main' title='getCursorBlocks'>
#getCursorBlocks
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#getDOMElementClasses-dynamic' target='main' title='getDOMElementClasses'>
#getDOMElementClasses
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#getDOMNodes-dynamic' target='main' title='getDOMNodes'>
#getDOMNodes
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#getData-dynamic' target='main' title='getData'>
#getData
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getData-dynamic' target='main' title='getData'>
#getData
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getData-dynamic' target='main' title='getData'>
#getData
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#getData-dynamic' target='main' title='getData'>
#getData
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getDataFields-dynamic' target='main' title='getDataFields'>
#getDataFields
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#getDataRowIdx-dynamic' target='main' title='getDataRowIdx'>
#getDataRowIdx
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#getDataTable-dynamic' target='main' title='getDataTable'>
#getDataTable
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getDateTimeDrawer-dynamic' target='main' title='getDateTimeDrawer'>
#getDateTimeDrawer
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getDebug-dynamic' target='main' title='getDebug'>
#getDebug
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#getDefaultDisplayFormat-static' target='main' title='getDefaultDisplayFormat'>
.getDefaultDisplayFormat
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Options.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/Select.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#getDefaultValue-dynamic' target='main' title='getDefaultValue'>
#getDefaultValue
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#getDepthFromLastMatchedEvent-dynamic' target='main' title='getDepthFromLastMatchedEvent'>
#getDepthFromLastMatchedEvent
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getDigiDisplay-dynamic' target='main' title='getDigiDisplay'>
#getDigiDisplay
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getDimension-static' target='main' title='getDimension'>
.getDimension
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getDimensions-static' target='main' title='getDimensions'>
.getDimensions
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getDisplayColIdx-dynamic' target='main' title='getDisplayColIdx'>
#getDisplayColIdx
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#getDisplayRowIdx-dynamic' target='main' title='getDisplayRowIdx'>
#getDisplayRowIdx
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getDisplayRowIdx-dynamic' target='main' title='getDisplayRowIdx'>
#getDisplayRowIdx
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Template.html#getElMap-dynamic' target='main' title='getElMap'>
#getElMap
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#getElement-dynamic' target='main' title='getElement'>
#getElement
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getElement-dynamic' target='main' title='getElement'>
#getElement
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#getElement-dynamic' target='main' title='getElement'>
#getElement
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getElement-dynamic' target='main' title='getElement'>
#getElement
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Element.html#getElementClass-dynamic' target='main' title='getElementClass'>
#getElementClass
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#getElementForLayer-dynamic' target='main' title='getElementForLayer'>
#getElementForLayer
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getElementForLayer-dynamic' target='main' title='getElementForLayer'>
#getElementForLayer
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#getElementOpenClass-dynamic' target='main' title='getElementOpenClass'>
#getElementOpenClass
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#getElementOpenClass-dynamic' target='main' title='getElementOpenClass'>
#getElementOpenClass
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getError-dynamic' target='main' title='getError'>
#getError
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getErrorXHR-dynamic' target='main' title='getErrorXHR'>
#getErrorXHR
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/Events.html#getEventType-static' target='main' title='getEventType'>
.getEventType
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/Events.html#getEventTypeAliases-static' target='main' title='getEventTypeAliases'>
.getEventTypeAliases
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getFather-dynamic' target='main' title='getFather'>
#getFather
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getFieldByIdx-dynamic' target='main' title='getFieldByIdx'>
#getFieldByIdx
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#getFieldByIdx-dynamic' target='main' title='getFieldByIdx'>
#getFieldByIdx
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#getFieldList-dynamic' target='main' title='getFieldList'>
#getFieldList
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#getFieldOpts-dynamic' target='main' title='getFieldOpts'>
#getFieldOpts
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#getFieldOpts-dynamic' target='main' title='getFieldOpts'>
#getFieldOpts
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#getFields-dynamic' target='main' title='getFields'>
#getFields
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#getFields-dynamic' target='main' title='getFields'>
#getFields
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getFields-dynamic' target='main' title='getFields'>
#getFields
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#getFields-dynamic' target='main' title='getFields'>
#getFields
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#getFieldsByName-dynamic' target='main' title='getFieldsByName'>
#getFieldsByName
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getFieldsByName-dynamic' target='main' title='getFieldsByName'>
#getFieldsByName
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#getFieldsByName-dynamic' target='main' title='getFieldsByName'>
#getFieldsByName
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getFile-dynamic' target='main' title='getFile'>
#getFile
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getFileUpload-dynamic' target='main' title='getFileUpload'>
#getFileUpload
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#getFiles-dynamic' target='main' title='getFiles'>
#getFiles
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#getFillScreenState-dynamic' target='main' title='getFillScreenState'>
#getFillScreenState
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/Template.html#getFlexHandle-dynamic' target='main' title='getFlexHandle'>
#getFlexHandle
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#getFlexHandle-dynamic' target='main' title='getFlexHandle'>
#getFlexHandle
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Template.html#getFlexHandles-dynamic' target='main' title='getFlexHandles'>
#getFlexHandles
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/util.html#getFloat-static' target='main' title='getFloat'>
.getFloat
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#getFooter-dynamic' target='main' title='getFooter'>
#getFooter
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#getForm-dynamic' target='main' title='getForm'>
#getForm
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getForm-dynamic' target='main' title='getForm'>
#getForm
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getFormDepth-dynamic' target='main' title='getFormDepth'>
#getFormDepth
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getFormPath-dynamic' target='main' title='getFormPath'>
#getFormPath
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getGrid-dynamic' target='main' title='getGrid'>
#getGrid
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/DataFieldInput.html#getGroup-dynamic' target='main' title='getGroup'>
#getGroup
</a>
<small>
(CUI.DataFieldInput)
</small>
</li>
<li>
<a href='class/CUI/Label.html#getGroup-dynamic' target='main' title='getGroup'>
#getGroup
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getGroup-dynamic' target='main' title='getGroup'>
#getGroup
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#getGroup-dynamic' target='main' title='getGroup'>
#getGroup
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getGroupButtons-dynamic' target='main' title='getGroupButtons'>
#getGroupButtons
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#getHandle-dynamic' target='main' title='getHandle'>
#getHandle
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#getHandle-dynamic' target='main' title='getHandle'>
#getHandle
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Block.html#getHeader-dynamic' target='main' title='getHeader'>
#getHeader
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchMatch.html#getHighlighted-dynamic' target='main' title='getHighlighted'>
#getHighlighted
</a>
<small>
(CUI.DocumentBrowser.SearchMatch)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getIcon-dynamic' target='main' title='getIcon'>
#getIcon
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getIconRight-dynamic' target='main' title='getIconRight'>
#getIconRight
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getImage-dynamic' target='main' title='getImage'>
#getImage
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#getInfo-dynamic' target='main' title='getInfo'>
#getInfo
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getInfo-dynamic' target='main' title='getInfo'>
#getInfo
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getInfo-dynamic' target='main' title='getInfo'>
#getInfo
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#getInfoFromData-dynamic' target='main' title='getInfoFromData'>
#getInfoFromData
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#getInfoWindow-static' target='main' title='getInfoWindow'>
.getInfoWindow
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getInitValue-dynamic' target='main' title='getInitValue'>
#getInitValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getInputBlocks-dynamic' target='main' title='getInputBlocks'>
#getInputBlocks
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getInputState-dynamic' target='main' title='getInputState'>
#getInputState
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#getInstance-dynamic' target='main' title='getInstance'>
#getInstance
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#getInstance-static' target='main' title='getInstance'>
.getInstance
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/util.html#getInt-static' target='main' title='getInt'>
.getInt
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#getIntOrString-static' target='main' title='getIntOrString'>
.getIntOrString
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#getItemByValue-dynamic' target='main' title='getItemByValue'>
#getItemByValue
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#getItemList-dynamic' target='main' title='getItemList'>
#getItemList
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#getItems-dynamic' target='main' title='getItems'>
#getItems
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/KeyboardEvent.html#getKeyboard-dynamic' target='main' title='getKeyboard'>
#getKeyboard
</a>
<small>
(CUI.KeyboardEvent)
</small>
</li>
<li>
<a href='class/CUI/KeyboardEvent.html#getKeyboardKey-dynamic' target='main' title='getKeyboardKey'>
#getKeyboardKey
</a>
<small>
(CUI.KeyboardEvent)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#getKeys-dynamic' target='main' title='getKeys'>
#getKeys
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#getLabel-dynamic' target='main' title='getLabel'>
#getLabel
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getLabel-dynamic' target='main' title='getLabel'>
#getLabel
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getLastValue-dynamic' target='main' title='getLastValue'>
#getLastValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#getLayer-dynamic' target='main' title='getLayer'>
#getLayer
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#getLayerRoot-dynamic' target='main' title='getLayerRoot'>
#getLayerRoot
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getLayout-dynamic' target='main' title='getLayout'>
#getLayout
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Form.html#getLayout-dynamic' target='main' title='getLayout'>
#getLayout
</a>
<small>
(CUI.Form)
</small>
</li>
<li>
<a href='class/CUI/StickyHeader.html#getLevel-dynamic' target='main' title='getLevel'>
#getLevel
</a>
<small>
(CUI.StickyHeader)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#getLimitRect-dynamic' target='main' title='getLimitRect'>
#getLimitRect
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#getListView-dynamic' target='main' title='getListView'>
#getListView
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getListViewClass-dynamic' target='main' title='getListViewClass'>
#getListViewClass
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getListViewRow-dynamic' target='main' title='getListViewRow'>
#getListViewRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getLoading-dynamic' target='main' title='getLoading'>
#getLoading
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI.html#getLocalStorage-static' target='main' title='getLocalStorage'>
.getLocalStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getLog-dynamic' target='main' title='getLog'>
#getLog
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getManualColWidth-dynamic' target='main' title='getManualColWidth'>
#getManualColWidth
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/VerticalLayout.html#getMapPrefix-dynamic' target='main' title='getMapPrefix'>
#getMapPrefix
</a>
<small>
(CUI.VerticalLayout)
</small>
</li>
<li>
<a href='class/CUI/HorizontalLayout.html#getMapPrefix-dynamic' target='main' title='getMapPrefix'>
#getMapPrefix
</a>
<small>
(CUI.HorizontalLayout)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getMapPrefix-dynamic' target='main' title='getMapPrefix'>
#getMapPrefix
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getMarkedBlock-dynamic' target='main' title='getMarkedBlock'>
#getMarkedBlock
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchMatch.html#getMatches-dynamic' target='main' title='getMatches'>
#getMatches
</a>
<small>
(CUI.DocumentBrowser.SearchMatch)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#getMaxColumnCount-dynamic' target='main' title='getMaxColumnCount'>
#getMaxColumnCount
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getMenu-dynamic' target='main' title='getMenu'>
#getMenu
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getMenuRootButton-dynamic' target='main' title='getMenuRootButton'>
#getMenuRootButton
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ProgressMeter.html#getMeter-dynamic' target='main' title='getMeter'>
#getMeter
</a>
<small>
(CUI.ProgressMeter)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getModifiers-dynamic' target='main' title='getModifiers'>
#getModifiers
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/BorderLayout.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.BorderLayout)
</small>
</li>
<li>
<a href='class/CUI/HorizontalLayout.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.HorizontalLayout)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/VerticalLayout.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.VerticalLayout)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getName-dynamic' target='main' title='getName'>
#getName
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getNameOpt-dynamic' target='main' title='getNameOpt'>
#getNameOpt
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getNameOpt-dynamic' target='main' title='getNameOpt'>
#getNameOpt
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getNativeEvent-dynamic' target='main' title='getNativeEvent'>
#getNativeEvent
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getNode-dynamic' target='main' title='getNode'>
#getNode
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getNode-static' target='main' title='getNode'>
.getNode
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#getNode-dynamic' target='main' title='getNode'>
#getNode
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getNodeId-dynamic' target='main' title='getNodeId'>
#getNodeId
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#getNodesForMove-dynamic' target='main' title='getNodesForMove'>
#getNodesForMove
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#getNodesFromData-dynamic' target='main' title='getNodesFromData'>
#getNodesFromData
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/util.html#getObjectClass-static' target='main' title='getObjectClass'>
.getObjectClass
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getOpenChildNodes-dynamic' target='main' title='getOpenChildNodes'>
#getOpenChildNodes
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Element.html#getOpt-dynamic' target='main' title='getOpt'>
#getOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Element.html#getOptKeys-static' target='main' title='getOptKeys'>
.getOptKeys
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#getOptValue-dynamic' target='main' title='getOptValue'>
#getOptValue
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#getOptValueUnchecked-dynamic' target='main' title='getOptValueUnchecked'>
#getOptValueUnchecked
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Options.html#getOptions-dynamic' target='main' title='getOptions'>
#getOptions
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Select.html#getOptions-dynamic' target='main' title='getOptions'>
#getOptions
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Element.html#getOpts-dynamic' target='main' title='getOpts'>
#getOpts
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/DragoverScrollEvent.html#getOriginalEvent-dynamic' target='main' title='getOriginalEvent'>
#getOriginalEvent
</a>
<small>
(CUI.DragoverScrollEvent)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getOtherField-dynamic' target='main' title='getOtherField'>
#getOtherField
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/LayerPane.html#getPane-dynamic' target='main' title='getPane'>
#getPane
</a>
<small>
(CUI.LayerPane)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#getPane-dynamic' target='main' title='getPane'>
#getPane
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#getPaneAndKey-dynamic' target='main' title='getPaneAndKey'>
#getPaneAndKey
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/HorizontalLayout.html#getPanes-dynamic' target='main' title='getPanes'>
#getPanes
</a>
<small>
(CUI.HorizontalLayout)
</small>
</li>
<li>
<a href='class/CUI/VerticalLayout.html#getPanes-dynamic' target='main' title='getPanes'>
#getPanes
</a>
<small>
(CUI.VerticalLayout)
</small>
</li>
<li>
<a href='class/CUI/BorderLayout.html#getPanes-dynamic' target='main' title='getPanes'>
#getPanes
</a>
<small>
(CUI.BorderLayout)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getPanes-dynamic' target='main' title='getPanes'>
#getPanes
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Toolbar.html#getPanes-dynamic' target='main' title='getPanes'>
#getPanes
</a>
<small>
(CUI.Toolbar)
</small>
</li>
<li>
<a href='class/CUI.html#getParameterByName-static' target='main' title='getParameterByName'>
.getParameterByName
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getParentData-dynamic' target='main' title='getParentData'>
#getParentData
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getPath-dynamic' target='main' title='getPath'>
#getPath
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI.html#getPathToScript-static' target='main' title='getPathToScript'>
.getPathToScript
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getPercent-dynamic' target='main' title='getPercent'>
#getPercent
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getPhase-dynamic' target='main' title='getPhase'>
#getPhase
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getPlaceholder-dynamic' target='main' title='getPlaceholder'>
#getPlaceholder
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getPointTarget-dynamic' target='main' title='getPointTarget'>
#getPointTarget
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#getPopover-dynamic' target='main' title='getPopover'>
#getPopover
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#getPopoverOpts-dynamic' target='main' title='getPopoverOpts'>
#getPopoverOpts
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#getPopoverOpts-dynamic' target='main' title='getPopoverOpts'>
#getPopoverOpts
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#getPreferredKey-dynamic' target='main' title='getPreferredKey'>
#getPreferredKey
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#getPreview-dynamic' target='main' title='getPreview'>
#getPreview
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getProgress-dynamic' target='main' title='getProgress'>
#getProgress
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getPromise-dynamic' target='main' title='getPromise'>
#getPromise
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getRadioButtons-dynamic' target='main' title='getRadioButtons'>
#getRadioButtons
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getRangeFromCursor-dynamic' target='main' title='getRangeFromCursor'>
#getRangeFromCursor
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getRect-static' target='main' title='getRect'>
.getRect
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchQuery.html#getRegExps-dynamic' target='main' title='getRegExps'>
#getRegExps
</a>
<small>
(CUI.DocumentBrowser.SearchQuery)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getRelativeOffset-static' target='main' title='getRelativeOffset'>
.getRelativeOffset
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#getRelativePosition-static' target='main' title='getRelativePosition'>
.getRelativePosition
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#getResizePos-dynamic' target='main' title='getResizePos'>
#getResizePos
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#getResponseHeader-dynamic' target='main' title='getResponseHeader'>
#getResponseHeader
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#getResponseHeaders-dynamic' target='main' title='getResponseHeaders'>
#getResponseHeaders
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#getResult-dynamic' target='main' title='getResult'>
#getResult
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getRoot-dynamic' target='main' title='getRoot'>
#getRoot
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#getRootChildren-dynamic' target='main' title='getRootChildren'>
#getRootChildren
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getRootForm-dynamic' target='main' title='getRootForm'>
#getRootForm
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#getRootNode-dynamic' target='main' title='getRootNode'>
#getRootNode
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getRow-dynamic' target='main' title='getRow'>
#getRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#getRow-dynamic' target='main' title='getRow'>
#getRow
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#getRow-dynamic' target='main' title='getRow'>
#getRow
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getRowGridRect-dynamic' target='main' title='getRowGridRect'>
#getRowGridRect
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getRowHeight-dynamic' target='main' title='getRowHeight'>
#getRowHeight
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#getRowIdx-dynamic' target='main' title='getRowIdx'>
#getRowIdx
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getRowIdx-dynamic' target='main' title='getRowIdx'>
#getRowIdx
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#getRowMoveTool-dynamic' target='main' title='getRowMoveTool'>
#getRowMoveTool
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getRowMoveTool-dynamic' target='main' title='getRowMoveTool'>
#getRowMoveTool
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#getRows-dynamic' target='main' title='getRows'>
#getRows
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#getRowsCount-dynamic' target='main' title='getRowsCount'>
#getRowsCount
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getRowsToMove-dynamic' target='main' title='getRowsToMove'>
#getRowsToMove
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getScrollingContainer-dynamic' target='main' title='getScrollingContainer'>
#getScrollingContainer
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchQuery.html#getSearch-dynamic' target='main' title='getSearch'>
#getSearch
</a>
<small>
(CUI.DocumentBrowser.SearchQuery)
</small>
</li>
<li>
<a href='class/CUI/Map.html#getSelectedMarkerPosition-dynamic' target='main' title='getSelectedMarkerPosition'>
#getSelectedMarkerPosition
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#getSelectedMarkerPosition-dynamic' target='main' title='getSelectedMarkerPosition'>
#getSelectedMarkerPosition
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#getSelectedMarkerPosition-dynamic' target='main' title='getSelectedMarkerPosition'>
#getSelectedMarkerPosition
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#getSelectedNode-dynamic' target='main' title='getSelectedNode'>
#getSelectedNode
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getSelectedNode-dynamic' target='main' title='getSelectedNode'>
#getSelectedNode
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getSelectedNodeKey-dynamic' target='main' title='getSelectedNodeKey'>
#getSelectedNodeKey
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getSelectedRows-dynamic' target='main' title='getSelectedRows'>
#getSelectedRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getSelection-dynamic' target='main' title='getSelection'>
#getSelection
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI.html#getSessionStorage-static' target='main' title='getSessionStorage'>
.getSessionStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Element.html#getSetOpt-dynamic' target='main' title='getSetOpt'>
#getSetOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/IconMarker.html#getSize-dynamic' target='main' title='getSize'>
#getSize
</a>
<small>
(CUI.IconMarker)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#getSortTarget-dynamic' target='main' title='getSortTarget'>
#getSortTarget
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/ProgressMeter.html#getState-dynamic' target='main' title='getState'>
#getState
</a>
<small>
(CUI.ProgressMeter)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#getStatus-dynamic' target='main' title='getStatus'>
#getStatus
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#getStretchButton-static' target='main' title='getStretchButton'>
.getStretchButton
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#getString-dynamic' target='main' title='getString'>
#getString
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchMatch.html#getString-dynamic' target='main' title='getString'>
#getString
</a>
<small>
(CUI.DocumentBrowser.SearchMatch)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getSupportedPanes-dynamic' target='main' title='getSupportedPanes'>
#getSupportedPanes
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/HorizontalList.html#getSupportedPanes-dynamic' target='main' title='getSupportedPanes'>
#getSupportedPanes
</a>
<small>
(CUI.HorizontalList)
</small>
</li>
<li>
<a href='class/CUI/VerticalList.html#getSupportedPanes-dynamic' target='main' title='getSupportedPanes'>
#getSupportedPanes
</a>
<small>
(CUI.VerticalList)
</small>
</li>
<li>
<a href='class/CUI/VerticalLayout.html#getSupportedPanes-dynamic' target='main' title='getSupportedPanes'>
#getSupportedPanes
</a>
<small>
(CUI.VerticalLayout)
</small>
</li>
<li>
<a href='class/CUI/HorizontalLayout.html#getSupportedPanes-dynamic' target='main' title='getSupportedPanes'>
#getSupportedPanes
</a>
<small>
(CUI.HorizontalLayout)
</small>
</li>
<li>
<a href='class/CUI/BorderLayout.html#getSupportedPanes-dynamic' target='main' title='getSupportedPanes'>
#getSupportedPanes
</a>
<small>
(CUI.BorderLayout)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#getTab-dynamic' target='main' title='getTab'>
#getTab
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getTable-dynamic' target='main' title='getTable'>
#getTable
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getTableContainer-dynamic' target='main' title='getTableContainer'>
#getTableContainer
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Form.html#getTableContainer-dynamic' target='main' title='getTableContainer'>
#getTableContainer
</a>
<small>
(CUI.Form)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getTarget-dynamic' target='main' title='getTarget'>
#getTarget
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/MultiInputInput.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.MultiInputInput)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Options.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getTemplate-dynamic' target='main' title='getTemplate'>
#getTemplate
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getTemplateKeyForRender-dynamic' target='main' title='getTemplateKeyForRender'>
#getTemplateKeyForRender
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#getTemplateKeyForRender-dynamic' target='main' title='getTemplateKeyForRender'>
#getTemplateKeyForRender
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getTemplateKeyForRender-dynamic' target='main' title='getTemplateKeyForRender'>
#getTemplateKeyForRender
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MultiInputInput.html#getTemplateKeyForRender-dynamic' target='main' title='getTemplateKeyForRender'>
#getTemplateKeyForRender
</a>
<small>
(CUI.MultiInputInput)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#getTemplateKeyForRender-dynamic' target='main' title='getTemplateKeyForRender'>
#getTemplateKeyForRender
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#getTemplateMap-dynamic' target='main' title='getTemplateMap'>
#getTemplateMap
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/BorderLayout.html#getTemplateMap-dynamic' target='main' title='getTemplateMap'>
#getTemplateMap
</a>
<small>
(CUI.BorderLayout)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#getTemplateName-dynamic' target='main' title='getTemplateName'>
#getTemplateName
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/FileUploadButton.html#getTemplateName-dynamic' target='main' title='getTemplateName'>
#getTemplateName
</a>
<small>
(CUI.FileUploadButton)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getTemplateName-dynamic' target='main' title='getTemplateName'>
#getTemplateName
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ButtonHref.html#getTemplateName-dynamic' target='main' title='getTemplateName'>
#getTemplateName
</a>
<small>
(CUI.ButtonHref)
</small>
</li>
<li>
<a href='class/CUI/Block.html#getTemplateName-dynamic' target='main' title='getTemplateName'>
#getTemplateName
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/Label.html#getText-dynamic' target='main' title='getText'>
#getText
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#getText-dynamic' target='main' title='getText'>
#getText
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getText-dynamic' target='main' title='getText'>
#getText
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getTimezoneOpts-dynamic' target='main' title='getTimezoneOpts'>
#getTimezoneOpts
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#getToggleFillScreenButton-static' target='main' title='getToggleFillScreenButton'>
.getToggleFillScreenButton
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getTooltip-dynamic' target='main' title='getTooltip'>
#getTooltip
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#getTop-dynamic' target='main' title='getTop'>
#getTop
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#getTree-dynamic' target='main' title='getTree'>
#getTree
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Event.html#getType-dynamic' target='main' title='getType'>
#getType
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#getTypes-dynamic' target='main' title='getTypes'>
#getTypes
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getUndo-dynamic' target='main' title='getUndo'>
#getUndo
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#getUniqueId-dynamic' target='main' title='getUniqueId'>
#getUniqueId
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#getUniqueId-dynamic' target='main' title='getUniqueId'>
#getUniqueId
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Dummy.html#getUniqueId-dynamic' target='main' title='getUniqueId'>
#getUniqueId
</a>
<small>
(CUI.Dummy)
</small>
</li>
<li>
<a href='class/CUI/Element.html#getUniqueId-dynamic' target='main' title='getUniqueId'>
#getUniqueId
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getUniqueIdForLabel-dynamic' target='main' title='getUniqueIdForLabel'>
#getUniqueIdForLabel
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getUniqueIdForLabel-dynamic' target='main' title='getUniqueIdForLabel'>
#getUniqueIdForLabel
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#getUniqueIdForLabel-dynamic' target='main' title='getUniqueIdForLabel'>
#getUniqueIdForLabel
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/FileReader.html#getUploadFileClass-dynamic' target='main' title='getUploadFileClass'>
#getUploadFileClass
</a>
<small>
(CUI.FileReader)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#getUploadFileClass-dynamic' target='main' title='getUploadFileClass'>
#getUploadFileClass
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#getUrl-dynamic' target='main' title='getUrl'>
#getUrl
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#getUserControlOptions-dynamic' target='main' title='getUserControlOptions'>
#getUserControlOptions
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/Select.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/Prompt.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.Prompt)
</small>
</li>
<li>
<a href='class/CUI/Button.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Output.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/OutputContent.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.OutputContent)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#getValue-dynamic' target='main' title='getValue'>
#getValue
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getValueForDisplay-dynamic' target='main' title='getValueForDisplay'>
#getValueForDisplay
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#getValueForDisplay-dynamic' target='main' title='getValueForDisplay'>
#getValueForDisplay
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getValueForDisplay-dynamic' target='main' title='getValueForDisplay'>
#getValueForDisplay
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#getValueForDisplay-dynamic' target='main' title='getValueForDisplay'>
#getValueForDisplay
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getValueForInput-dynamic' target='main' title='getValueForInput'>
#getValueForInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#getValueForInput-dynamic' target='main' title='getValueForInput'>
#getValueForInput
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#getValueForInput-dynamic' target='main' title='getValueForInput'>
#getValueForInput
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#getValueForInput-dynamic' target='main' title='getValueForInput'>
#getValueForInput
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#getValueForStore-dynamic' target='main' title='getValueForStore'>
#getValueForStore
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#getValueForStore-dynamic' target='main' title='getValueForStore'>
#getValueForStore
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#getValueForStore-dynamic' target='main' title='getValueForStore'>
#getValueForStore
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#getXHR-dynamic' target='main' title='getXHR'>
#getXHR
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#getZoom-dynamic' target='main' title='getZoom'>
#getZoom
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#getZoom-dynamic' target='main' title='getZoom'>
#getZoom
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#getZoom-dynamic' target='main' title='getZoom'>
#getZoom
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#get_axis-dynamic' target='main' title='get_axis'>
#get_axis
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#get_axis-dynamic' target='main' title='get_axis'>
#get_axis
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#get_axis-dynamic' target='main' title='get_axis'>
#get_axis
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#get_child_number-dynamic' target='main' title='get_child_number'>
#get_child_number
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#get_cursor-dynamic' target='main' title='get_cursor'>
#get_cursor
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#get_helper-dynamic' target='main' title='get_helper'>
#get_helper
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#get_helper-dynamic' target='main' title='get_helper'>
#get_helper
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#get_helper-dynamic' target='main' title='get_helper'>
#get_helper
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#get_helper_contain_element-dynamic' target='main' title='get_helper_contain_element'>
#get_helper_contain_element
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#get_helper_contain_element-dynamic' target='main' title='get_helper_contain_element'>
#get_helper_contain_element
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#get_helper_pos-dynamic' target='main' title='get_helper_pos'>
#get_helper_pos
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#get_helper_pos-dynamic' target='main' title='get_helper_pos'>
#get_helper_pos
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#get_init_helper_pos-dynamic' target='main' title='get_init_helper_pos'>
#get_init_helper_pos
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#get_init_helper_pos-dynamic' target='main' title='get_init_helper_pos'>
#get_init_helper_pos
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeRowMove.html#get_init_helper_pos-dynamic' target='main' title='get_init_helper_pos'>
#get_init_helper_pos
</a>
<small>
(CUI.ListViewTreeRowMove)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#get_init_helper_pos-dynamic' target='main' title='get_init_helper_pos'>
#get_init_helper_pos
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#get_lassoed_elements-dynamic' target='main' title='get_lassoed_elements'>
#get_lassoed_elements
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/ListViewDraggable.html#get_marker-dynamic' target='main' title='get_marker'>
#get_marker
</a>
<small>
(CUI.ListViewDraggable)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#giveAllRowsSameNumberOfColumns-dynamic' target='main' title='giveAllRowsSameNumberOfColumns'>
#giveAllRowsSameNumberOfColumns
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#goto-dynamic' target='main' title='goto'>
#goto
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/dom.html#h1-static' target='main' title='h1'>
.h1
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#h2-static' target='main' title='h2'>
.h2
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#h3-static' target='main' title='h3'>
.h3
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#h4-static' target='main' title='h4'>
.h4
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#h5-static' target='main' title='h5'>
.h5
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#h6-static' target='main' title='h6'>
.h6
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#handleEvent-dynamic' target='main' title='handleEvent'>
#handleEvent
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/Input.html#handleSelectionChange-dynamic' target='main' title='handleSelectionChange'>
#handleSelectionChange
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#handleSelectionChange-dynamic' target='main' title='handleSelectionChange'>
#handleSelectionChange
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/Template.html#has-dynamic' target='main' title='has'>
#has
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/dom.html#hasAnimatedClone-static' target='main' title='hasAnimatedClone'>
.hasAnimatedClone
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#hasAttribute-static' target='main' title='hasAttribute'>
.hasAttribute
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#hasChanges-dynamic' target='main' title='hasChanges'>
#hasChanges
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/dom.html#hasClass-static' target='main' title='hasClass'>
.hasClass
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Template.html#hasClass-dynamic' target='main' title='hasClass'>
#hasClass
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#hasClass-dynamic' target='main' title='hasClass'>
#hasClass
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#hasContentForAppend-dynamic' target='main' title='hasContentForAppend'>
#hasContentForAppend
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#hasContentForAppend-dynamic' target='main' title='hasContentForAppend'>
#hasContentForAppend
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#hasData-dynamic' target='main' title='hasData'>
#hasData
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#hasData-dynamic' target='main' title='hasData'>
#hasData
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Events.html#hasEventType-static' target='main' title='hasEventType'>
.hasEventType
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/HorizontalLayout.html#hasFlexHandles-dynamic' target='main' title='hasFlexHandles'>
#hasFlexHandles
</a>
<small>
(CUI.HorizontalLayout)
</small>
</li>
<li>
<a href='class/CUI/VerticalLayout.html#hasFlexHandles-dynamic' target='main' title='hasFlexHandles'>
#hasFlexHandles
</a>
<small>
(CUI.VerticalLayout)
</small>
</li>
<li>
<a href='class/CUI/Toolbar.html#hasFlexHandles-dynamic' target='main' title='hasFlexHandles'>
#hasFlexHandles
</a>
<small>
(CUI.Toolbar)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#hasFlexHandles-dynamic' target='main' title='hasFlexHandles'>
#hasFlexHandles
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#hasFooter-dynamic' target='main' title='hasFooter'>
#hasFooter
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#hasFooter-dynamic' target='main' title='hasFooter'>
#hasFooter
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#hasHeader-dynamic' target='main' title='hasHeader'>
#hasHeader
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#hasHeader-dynamic' target='main' title='hasHeader'>
#hasHeader
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#hasItems-dynamic' target='main' title='hasItems'>
#hasItems
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#hasItems-dynamic' target='main' title='hasItems'>
#hasItems
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/Button.html#hasLeft-dynamic' target='main' title='hasLeft'>
#hasLeft
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Button.html#hasMenu-dynamic' target='main' title='hasMenu'>
#hasMenu
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Event.html#hasModifierKey-dynamic' target='main' title='hasModifierKey'>
#hasModifierKey
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#hasMovableRows-dynamic' target='main' title='hasMovableRows'>
#hasMovableRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Element.html#hasOpt-dynamic' target='main' title='hasOpt'>
#hasOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#hasResizableColumns-dynamic' target='main' title='hasResizableColumns'>
#hasResizableColumns
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#hasSelectableRows-dynamic' target='main' title='hasSelectableRows'>
#hasSelectableRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Element.html#hasSetOpt-dynamic' target='main' title='hasSetOpt'>
#hasSetOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Input.html#hasShadowFocus-dynamic' target='main' title='hasShadowFocus'>
#hasShadowFocus
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#hasTab-dynamic' target='main' title='hasTab'>
#hasTab
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#hasUserControl-dynamic' target='main' title='hasUserControl'>
#hasUserControl
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#hasUserData-dynamic' target='main' title='hasUserData'>
#hasUserData
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#hasUserData-dynamic' target='main' title='hasUserData'>
#hasUserData
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#hasUserData-dynamic' target='main' title='hasUserData'>
#hasUserData
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/Input.html#hasUserInput-dynamic' target='main' title='hasUserInput'>
#hasUserInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/dom.html#height-static' target='main' title='height'>
.height
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/Icon.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Icon)
</small>
</li>
<li>
<a href='class/CUI/Template.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Button.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#hide-dynamic' target='main' title='hide'>
#hide
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#hideAll-dynamic' target='main' title='hideAll'>
#hideAll
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/dom.html#hideElement-static' target='main' title='hideElement'>
.hideElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#hideMarkers-dynamic' target='main' title='hideMarkers'>
#hideMarkers
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#hideMarkers-dynamic' target='main' title='hideMarkers'>
#hideMarkers
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#hideMarkers-dynamic' target='main' title='hideMarkers'>
#hideMarkers
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Password.html#hidePassword-dynamic' target='main' title='hidePassword'>
#hidePassword
</a>
<small>
(CUI.Password)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#hideSpinner-dynamic' target='main' title='hideSpinner'>
#hideSpinner
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#hideTimeout-dynamic' target='main' title='hideTimeout'>
#hideTimeout
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#hideTimeout-dynamic' target='main' title='hideTimeout'>
#hideTimeout
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#hideWaitBlock-dynamic' target='main' title='hideWaitBlock'>
#hideWaitBlock
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/dom.html#htmlToNodes-static' target='main' title='htmlToNodes'>
.htmlToNodes
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#i-static' target='main' title='i'>
.i
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#idxInArray-static' target='main' title='idxInArray'>
.idxInArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Events.html#ignore-static' target='main' title='ignore'>
.ignore
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/dom.html#img-static' target='main' title='img'>
.img
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#inArray-static' target='main' title='inArray'>
.inArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#inArray-static' target='main' title='inArray'>
.inArray
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#incAMPM-dynamic' target='main' title='incAMPM'>
#incAMPM
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Input.html#incNumberBounds-dynamic' target='main' title='incNumberBounds'>
#incNumberBounds
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DateTimeInputBlock.html#incrementBlock-dynamic' target='main' title='incrementBlock'>
#incrementBlock
</a>
<small>
(CUI.DateTimeInputBlock)
</small>
</li>
<li>
<a href='class/CUI/NumberInputBlock.html#incrementBlock-dynamic' target='main' title='incrementBlock'>
#incrementBlock
</a>
<small>
(CUI.NumberInputBlock)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#incrementBlock-dynamic' target='main' title='incrementBlock'>
#incrementBlock
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Select.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Output.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/PaneHeader.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.PaneHeader)
</small>
</li>
<li>
<a href='class/CUI/Toolbar.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Toolbar)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/PaneToolbar.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.PaneToolbar)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/PaneFooter.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.PaneFooter)
</small>
</li>
<li>
<a href='class/CUI/Options.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#init-dynamic' target='main' title='init'>
#init
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/dom.html#initAnimatedClone-static' target='main' title='initAnimatedClone'>
.initAnimatedClone
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#initButton-dynamic' target='main' title='initButton'>
#initButton
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#initChildren-dynamic' target='main' title='initChildren'>
#initChildren
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Input.html#initCursor-dynamic' target='main' title='initCursor'>
#initCursor
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#initData-dynamic' target='main' title='initData'>
#initData
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#initData-dynamic' target='main' title='initData'>
#initData
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#initDateTimePicker-dynamic' target='main' title='initDateTimePicker'>
#initDateTimePicker
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#initDefaultPanes-dynamic' target='main' title='initDefaultPanes'>
#initDefaultPanes
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#initDimensions-dynamic' target='main' title='initDimensions'>
#initDimensions
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#initDropZone-dynamic' target='main' title='initDropZone'>
#initDropZone
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#initFields-dynamic' target='main' title='initFields'>
#initFields
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#initFilePicker-dynamic' target='main' title='initFilePicker'>
#initFilePicker
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Template.html#initFlexHandles-dynamic' target='main' title='initFlexHandles'>
#initFlexHandles
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#initFormat-dynamic' target='main' title='initFormat'>
#initFormat
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Form.html#initLayout-dynamic' target='main' title='initLayout'>
#initLayout
</a>
<small>
(CUI.Form)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#initLayout-dynamic' target='main' title='initLayout'>
#initLayout
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumper.html#initListView-dynamic' target='main' title='initListView'>
#initListView
</a>
<small>
(CUI.ObjectDumper)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#initListView-dynamic' target='main' title='initListView'>
#initListView
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#initListView-dynamic' target='main' title='initListView'>
#initListView
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#initNewStickyHeaders-dynamic' target='main' title='initNewStickyHeaders'>
#initNewStickyHeaders
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/IconMarker.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.IconMarker)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/Block.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/FileUploadButton.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FileUploadButton)
</small>
</li>
<li>
<a href='class/CUI/Template.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Popover.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Popover)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.NodeMatch.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DocumentBrowser.NodeMatch)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Output.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/DragoverScrollEvent.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DragoverScrollEvent)
</small>
</li>
<li>
<a href='class/CUI/Button.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Dragscroll.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Dragscroll)
</small>
</li>
<li>
<a href='class/CUI/Toolbar.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Toolbar)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/DigiDisplay.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DigiDisplay)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/DateTimeInputBlock.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DateTimeInputBlock)
</small>
</li>
<li>
<a href='class/CUI/MultilineLabel.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MultilineLabel)
</small>
</li>
<li>
<a href='class/CUI/ProgressMeter.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ProgressMeter)
</small>
</li>
<li>
<a href='class/CUI/Event.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/Select.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/HorizontalList.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.HorizontalList)
</small>
</li>
<li>
<a href='class/CUI/Console.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Console)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeRowMove.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewTreeRowMove)
</small>
</li>
<li>
<a href='class/CUI/EmailInput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.EmailInput)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Icon.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Icon)
</small>
</li>
<li>
<a href='class/CUI/Input.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Options.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Label.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Map.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/ListViewDraggable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewDraggable)
</small>
</li>
<li>
<a href='class/CUI/Element.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/ButtonHref.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ButtonHref)
</small>
</li>
<li>
<a href='class/CUI/TouchEvent.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.TouchEvent)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/VerticalList.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.VerticalList)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/LayerPane.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.LayerPane)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/OutputContent.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.OutputContent)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Table.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Table)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/FormButton.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FormButton)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/Alert.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Alert)
</small>
</li>
<li>
<a href='class/CUI/MultiOutput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MultiOutput)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeHeaderNode.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewTreeHeaderNode)
</small>
</li>
<li>
<a href='class/CUI/Confirm.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Confirm)
</small>
</li>
<li>
<a href='class/CUI/ListViewHeaderColumn.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewHeaderColumn)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/DataFieldInput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DataFieldInput)
</small>
</li>
<li>
<a href='class/CUI/FileReader.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.FileReader)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchQuery.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DocumentBrowser.SearchQuery)
</small>
</li>
<li>
<a href='class/CUI/MouseEvent.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.MouseEvent)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Toaster.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Toaster)
</small>
</li>
<li>
<a href='class/CUI/Prompt.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Prompt)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchMatch.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.DocumentBrowser.SearchMatch)
</small>
</li>
<li>
<a href='class/CUI/Spinner.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Spinner)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/StickyHeader.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.StickyHeader)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumper.html#initOpts-dynamic' target='main' title='initOpts'>
#initOpts
</a>
<small>
(CUI.ObjectDumper)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#initPopover-dynamic' target='main' title='initPopover'>
#initPopover
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#initPopover-dynamic' target='main' title='initPopover'>
#initPopover
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#initTemplate-dynamic' target='main' title='initTemplate'>
#initTemplate
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#initTemplate-dynamic' target='main' title='initTemplate'>
#initTemplate
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#initTemplate-dynamic' target='main' title='initTemplate'>
#initTemplate
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Form.html#initTemplate-dynamic' target='main' title='initTemplate'>
#initTemplate
</a>
<small>
(CUI.Form)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#initValue-dynamic' target='main' title='initValue'>
#initValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#initValue-dynamic' target='main' title='initValue'>
#initValue
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#initValue-dynamic' target='main' title='initValue'>
#initValue
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#initValue-dynamic' target='main' title='initValue'>
#initValue
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#init_drag-dynamic' target='main' title='init_drag'>
#init_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#init_drag-dynamic' target='main' title='init_drag'>
#init_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#init_drag-dynamic' target='main' title='init_drag'>
#init_drag
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#init_drag-dynamic' target='main' title='init_drag'>
#init_drag
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#init_helper-dynamic' target='main' title='init_helper'>
#init_helper
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#init_helper-dynamic' target='main' title='init_helper'>
#init_helper
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/dom.html#insertAfter-static' target='main' title='insertAfter'>
.insertAfter
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#insertBefore-static' target='main' title='insertBefore'>
.insertBefore
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#insertChildAtPosition-static' target='main' title='insertChildAtPosition'>
.insertChildAtPosition
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#insertRowAfter-dynamic' target='main' title='insertRowAfter'>
#insertRowAfter
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#insertRowAt-dynamic' target='main' title='insertRowAt'>
#insertRowAt
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#insertRowBefore-dynamic' target='main' title='insertRowBefore'>
#insertRowBefore
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#insideSaveZone-dynamic' target='main' title='insideSaveZone'>
#insideSaveZone
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/dom.html#is-static' target='main' title='is'>
.is
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#isActive-dynamic' target='main' title='isActive'>
#isActive
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Button.html#isActive-dynamic' target='main' title='isActive'>
#isActive
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#isAddedToListView-dynamic' target='main' title='isAddedToListView'>
#isAddedToListView
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI.html#isArray-static' target='main' title='isArray'>
.isArray
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#isArray-static' target='main' title='isArray'>
.isArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#isAutoCloseAfterClick-dynamic' target='main' title='isAutoCloseAfterClick'>
#isAutoCloseAfterClick
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/util.html#isBoolean-static' target='main' title='isBoolean'>
.isBoolean
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isBorderBox-static' target='main' title='isBorderBox'>
.isBorderBox
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isBubble-dynamic' target='main' title='isBubble'>
#isBubble
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#isCapture-dynamic' target='main' title='isCapture'>
#isCapture
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isChanged-dynamic' target='main' title='isChanged'>
#isChanged
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#isChanged-dynamic' target='main' title='isChanged'>
#isChanged
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#isChanged-dynamic' target='main' title='isChanged'>
#isChanged
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#isChanged-dynamic' target='main' title='isChanged'>
#isChanged
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#isClosed-dynamic' target='main' title='isClosed'>
#isClosed
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#isClosed-dynamic' target='main' title='isClosed'>
#isClosed
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/util.html#isContent-static' target='main' title='isContent'>
.isContent
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isContentBox-static' target='main' title='isContentBox'>
.isContentBox
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isDataField-dynamic' target='main' title='isDataField'>
#isDataField
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#isDataField-dynamic' target='main' title='isDataField'>
#isDataField
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isDefaultPrevented-dynamic' target='main' title='isDefaultPrevented'>
#isDefaultPrevented
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/util.html#isDeferred-static' target='main' title='isDeferred'>
.isDeferred
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Element.html#isDestroyed-dynamic' target='main' title='isDestroyed'>
#isDestroyed
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#isDestroyed-dynamic' target='main' title='isDestroyed'>
#isDestroyed
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Select.html#isDisabled-dynamic' target='main' title='isDisabled'>
#isDisabled
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/Button.html#isDisabled-dynamic' target='main' title='isDisabled'>
#isDisabled
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isDisabled-dynamic' target='main' title='isDisabled'>
#isDisabled
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#isDone-dynamic' target='main' title='isDone'>
#isDone
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#isDone-dynamic' target='main' title='isDone'>
#isDone
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/util.html#isElement-static' target='main' title='isElement'>
.isElement
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Template.html#isEmpty-dynamic' target='main' title='isEmpty'>
#isEmpty
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/util.html#isEmpty-static' target='main' title='isEmpty'>
.isEmpty
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#isEmptyObject-static' target='main' title='isEmptyObject'>
.isEmptyObject
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#isEmptyObject-static' target='main' title='isEmptyObject'>
.isEmptyObject
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#isEnabled-dynamic' target='main' title='isEnabled'>
#isEnabled
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/Button.html#isEnabled-dynamic' target='main' title='isEnabled'>
#isEnabled
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/util.html#isEqual-static' target='main' title='isEqual'>
.isEqual
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isExcludeSelf-dynamic' target='main' title='isExcludeSelf'>
#isExcludeSelf
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/util.html#isFalse-static' target='main' title='isFalse'>
.isFalse
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#isFloat-static' target='main' title='isFloat'>
.isFloat
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isFullscreen-static' target='main' title='isFullscreen'>
.isFullscreen
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#isFunction-static' target='main' title='isFunction'>
.isFunction
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#isFunction-static' target='main' title='isFunction'>
.isFunction
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#isHidden-dynamic' target='main' title='isHidden'>
#isHidden
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Button.html#isHidden-dynamic' target='main' title='isHidden'>
#isHidden
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isHidden-dynamic' target='main' title='isHidden'>
#isHidden
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isImmediatePropagationStopped-dynamic' target='main' title='isImmediatePropagationStopped'>
#isImmediatePropagationStopped
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#isInDOM-dynamic' target='main' title='isInDOM'>
#isInDOM
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isInDOM-static' target='main' title='isInDOM'>
.isInDOM
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isInDOM-dynamic' target='main' title='isInDOM'>
#isInDOM
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#isInactive-dynamic' target='main' title='isInactive'>
#isInactive
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/util.html#isInteger-static' target='main' title='isInteger'>
.isInteger
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#isKeyboardCancellable-dynamic' target='main' title='isKeyboardCancellable'>
#isKeyboardCancellable
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Alert.html#isKeyboardCancellable-dynamic' target='main' title='isKeyboardCancellable'>
#isKeyboardCancellable
</a>
<small>
(CUI.Alert)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#isKeyboardCancellable-dynamic' target='main' title='isKeyboardCancellable'>
#isKeyboardCancellable
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isLeaf-dynamic' target='main' title='isLeaf'>
#isLeaf
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#isLeaf-dynamic' target='main' title='isLeaf'>
#isLeaf
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isLoading-dynamic' target='main' title='isLoading'>
#isLoading
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI.html#isMap-static' target='main' title='isMap'>
.isMap
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#isMap-static' target='main' title='isMap'>
.isMap
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#isMovable-dynamic' target='main' title='isMovable'>
#isMovable
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#isNoHierarchy-dynamic' target='main' title='isNoHierarchy'>
#isNoHierarchy
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isNode-static' target='main' title='isNode'>
.isNode
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#isNull-static' target='main' title='isNull'>
.isNull
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#isNumber-static' target='main' title='isNumber'>
.isNumber
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#isOnlyOnce-dynamic' target='main' title='isOnlyOnce'>
#isOnlyOnce
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isOpen-dynamic' target='main' title='isOpen'>
#isOpen
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#isOpen-dynamic' target='main' title='isOpen'>
#isOpen
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#isOpen-dynamic' target='main' title='isOpen'>
#isOpen
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI.html#isPlainObject-static' target='main' title='isPlainObject'>
.isPlainObject
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#isPlainObject-static' target='main' title='isPlainObject'>
.isPlainObject
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#isPosInt-static' target='main' title='isPosInt'>
.isPosInt
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isPositioned-static' target='main' title='isPositioned'>
.isPositioned
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#isPromise-static' target='main' title='isPromise'>
.isPromise
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isPropagationStopped-dynamic' target='main' title='isPropagationStopped'>
#isPropagationStopped
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#isQueuing-dynamic' target='main' title='isQueuing'>
#isQueuing
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isRendered-dynamic' target='main' title='isRendered'>
#isRendered
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isRendered-dynamic' target='main' title='isRendered'>
#isRendered
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Input.html#isRequired-dynamic' target='main' title='isRequired'>
#isRequired
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataFieldInput.html#isResizable-dynamic' target='main' title='isResizable'>
#isResizable
</a>
<small>
(CUI.DataFieldInput)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isResizable-dynamic' target='main' title='isResizable'>
#isResizable
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isRoot-dynamic' target='main' title='isRoot'>
#isRoot
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewHeaderRow.html#isSelectable-dynamic' target='main' title='isSelectable'>
#isSelectable
</a>
<small>
(CUI.ListViewHeaderRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isSelectable-dynamic' target='main' title='isSelectable'>
#isSelectable
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#isSelectable-dynamic' target='main' title='isSelectable'>
#isSelectable
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#isSelectable-dynamic' target='main' title='isSelectable'>
#isSelectable
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#isSelected-dynamic' target='main' title='isSelected'>
#isSelected
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#isSelected-dynamic' target='main' title='isSelected'>
#isSelected
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#isShown-dynamic' target='main' title='isShown'>
#isShown
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/Button.html#isShown-dynamic' target='main' title='isShown'>
#isShown
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#isShown-dynamic' target='main' title='isShown'>
#isShown
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#isShown-dynamic' target='main' title='isShown'>
#isShown
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#isShown-dynamic' target='main' title='isShown'>
#isShown
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Event.html#isSink-dynamic' target='main' title='isSink'>
#isSink
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#isStretched-dynamic' target='main' title='isStretched'>
#isStretched
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI.html#isString-static' target='main' title='isString'>
.isString
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#isString-static' target='main' title='isString'>
.isString
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#isSuccess-dynamic' target='main' title='isSuccess'>
#isSuccess
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI.html#isTimeoutRunning-static' target='main' title='isTimeoutRunning'>
.isTimeoutRunning
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#isTrue-static' target='main' title='isTrue'>
.isTrue
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#isUndef-static' target='main' title='isUndef'>
.isUndef
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#isUploading-dynamic' target='main' title='isUploading'>
#isUploading
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#isUploading-dynamic' target='main' title='isUploading'>
#isUploading
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Map.html#isValidLatitude-static' target='main' title='isValidLatitude'>
.isValidLatitude
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#isValidLongitude-static' target='main' title='isValidLongitude'>
.isValidLongitude
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#isValidPosition-static' target='main' title='isValidPosition'>
.isValidPosition
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/dom.html#isVisible-static' target='main' title='isVisible'>
.isVisible
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/KeyboardEvent.html#key-dynamic' target='main' title='key'>
#key
</a>
<small>
(CUI.KeyboardEvent)
</small>
</li>
<li>
<a href='class/CUI/Event.html#keyCode-dynamic' target='main' title='keyCode'>
#keyCode
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Table.html#keyValueRowsFromMap-static' target='main' title='keyValueRowsFromMap'>
.keyValueRowsFromMap
</a>
<small>
(CUI.Table)
</small>
</li>
<li>
<a href='class/CUI/dom.html#label-static' target='main' title='label'>
.label
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#lastElementChild-static' target='main' title='lastElementChild'>
.lastElementChild
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#layoutIsStopped-dynamic' target='main' title='layoutIsStopped'>
#layoutIsStopped
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Input.html#leaveInput-dynamic' target='main' title='leaveInput'>
#leaveInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#level-dynamic' target='main' title='level'>
#level
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#li-static' target='main' title='li'>
.li
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#limitRect-dynamic' target='main' title='limitRect'>
#limitRect
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#limitRect-static' target='main' title='limitRect'>
.limitRect
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Events.html#listen-static' target='main' title='listen'>
.listen
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/Template.html#load-static' target='main' title='load'>
.load
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/CSSLoader.html#load-dynamic' target='main' title='load'>
#load
</a>
<small>
(CUI.CSSLoader)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#load-dynamic' target='main' title='load'>
#load
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#loadContent-dynamic' target='main' title='loadContent'>
#loadContent
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#loadContent-dynamic' target='main' title='loadContent'>
#loadContent
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#loadContent-dynamic' target='main' title='loadContent'>
#loadContent
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#loadEmpty-dynamic' target='main' title='loadEmpty'>
#loadEmpty
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/Template.html#loadFile-static' target='main' title='loadFile'>
.loadFile
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#loadLocation-dynamic' target='main' title='loadLocation'>
#loadLocation
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/Template.html#loadTemplateFile-static' target='main' title='loadTemplateFile'>
.loadTemplateFile
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Template.html#loadTemplateText-static' target='main' title='loadTemplateText'>
.loadTemplateText
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Template.html#loadText-static' target='main' title='loadText'>
.loadText
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Console.html#log-dynamic' target='main' title='log'>
#log
</a>
<small>
(CUI.Console)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#makeOrderedList-dynamic' target='main' title='makeOrderedList'>
#makeOrderedList
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#makeUnorderedList-dynamic' target='main' title='makeUnorderedList'>
#makeUnorderedList
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/Input.html#markBlock-dynamic' target='main' title='markBlock'>
#markBlock
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#markDay-dynamic' target='main' title='markDay'>
#markDay
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#marked-dynamic' target='main' title='marked'>
#marked
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.NodeMatch.html#marked-dynamic' target='main' title='marked'>
#marked
</a>
<small>
(CUI.DocumentBrowser.NodeMatch)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchQuery.html#match-dynamic' target='main' title='match'>
#match
</a>
<small>
(CUI.DocumentBrowser.SearchQuery)
</small>
</li>
<li>
<a href='class/CUI/dom.html#matchSelector-static' target='main' title='matchSelector'>
.matchSelector
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#matches-static' target='main' title='matches'>
.matches
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#matchesEvent-dynamic' target='main' title='matchesEvent'>
#matchesEvent
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#matchesFilter-dynamic' target='main' title='matchesFilter'>
#matchesFilter
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#maximizeAddClasses-dynamic' target='main' title='maximizeAddClasses'>
#maximizeAddClasses
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#maximizeAddClasses-dynamic' target='main' title='maximizeAddClasses'>
#maximizeAddClasses
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#maximizeReadOpts-dynamic' target='main' title='maximizeReadOpts'>
#maximizeReadOpts
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Button.html#menuSetActiveIdx-dynamic' target='main' title='menuSetActiveIdx'>
#menuSetActiveIdx
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/util.html#mergeMap-static' target='main' title='mergeMap'>
.mergeMap
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#mergeMap-static' target='main' title='mergeMap'>
.mergeMap
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Element.html#mergeOpt-dynamic' target='main' title='mergeOpt'>
#mergeOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Element.html#mergeOpts-dynamic' target='main' title='mergeOpts'>
#mergeOpts
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Event.html#metaKey-dynamic' target='main' title='metaKey'>
#metaKey
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Input.html#moveCursor-dynamic' target='main' title='moveCursor'>
#moveCursor
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/util.html#moveInArray-static' target='main' title='moveInArray'>
.moveInArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#moveInOrderArray-dynamic' target='main' title='moveInOrderArray'>
#moveInOrderArray
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#moveNodeAfter-dynamic' target='main' title='moveNodeAfter'>
#moveNodeAfter
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#moveNodeBefore-dynamic' target='main' title='moveNodeBefore'>
#moveNodeBefore
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#moveRow-dynamic' target='main' title='moveRow'>
#moveRow
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#moveRow-dynamic' target='main' title='moveRow'>
#moveRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#moveToNewFather-dynamic' target='main' title='moveToNewFather'>
#moveToNewFather
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#move_element-dynamic' target='main' title='move_element'>
#move_element
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#new-static' target='main' title='new'>
.new
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Select.html#newSelectOrOutput-static' target='main' title='newSelectOrOutput'>
.newSelectOrOutput
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/dom.html#nextElementSibling-static' target='main' title='nextElementSibling'>
.nextElementSibling
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Button.html#onClickAction-dynamic' target='main' title='onClickAction'>
#onClickAction
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Spinner.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.Spinner)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/Prompt.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.Prompt)
</small>
</li>
<li>
<a href='class/CUI/Toaster.html#open-dynamic' target='main' title='open'>
#open
</a>
<small>
(CUI.Toaster)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#openPopover-dynamic' target='main' title='openPopover'>
#openPopover
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#openRecursively-dynamic' target='main' title='openRecursively'>
#openRecursively
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#openTreeNodeByRowDisplayIndex-dynamic' target='main' title='openTreeNodeByRowDisplayIndex'>
#openTreeNodeByRowDisplayIndex
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#openUpwards-dynamic' target='main' title='openUpwards'>
#openUpwards
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#p-static' target='main' title='p'>
.p
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Event.html#pageX-dynamic' target='main' title='pageX'>
#pageX
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Event.html#pageY-dynamic' target='main' title='pageY'>
#pageY
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/dom.html#parent-static' target='main' title='parent'>
.parent
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#parents-static' target='main' title='parents'>
.parents
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#parentsScrollable-static' target='main' title='parentsScrollable'>
.parentsScrollable
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#parentsUntil-static' target='main' title='parentsUntil'>
.parentsUntil
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#parse-dynamic' target='main' title='parse'>
#parse
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#parse-dynamic' target='main' title='parse'>
#parse
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/util.html#parseCoordinates-static' target='main' title='parseCoordinates'>
.parseCoordinates
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#parseLocation-static' target='main' title='parseLocation'>
.parseLocation
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#parseValue-dynamic' target='main' title='parseValue'>
#parseValue
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#position-dynamic' target='main' title='position'>
#position
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/StickyHeaderControl.html#position-dynamic' target='main' title='position'>
#position
</a>
<small>
(CUI.StickyHeaderControl)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#position_helper-dynamic' target='main' title='position_helper'>
#position_helper
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/dom.html#pre-static' target='main' title='pre'>
.pre
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#preActivateNextItem-dynamic' target='main' title='preActivateNextItem'>
#preActivateNextItem
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#preActivatePreviousItem-dynamic' target='main' title='preActivatePreviousItem'>
#preActivatePreviousItem
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#preSelectByKeyword-dynamic' target='main' title='preSelectByKeyword'>
#preSelectByKeyword
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/dom.html#prepareSetDimensions-static' target='main' title='prepareSetDimensions'>
.prepareSetDimensions
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#prepend-dynamic' target='main' title='prepend'>
#prepend
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/dom.html#prepend-static' target='main' title='prepend'>
.prepend
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Template.html#prepend-dynamic' target='main' title='prepend'>
#prepend
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#prependButton-dynamic' target='main' title='prependButton'>
#prependButton
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#prependChild-dynamic' target='main' title='prependChild'>
#prependChild
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#prependColumn-dynamic' target='main' title='prependColumn'>
#prependColumn
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#prependNode-dynamic' target='main' title='prependNode'>
#prependNode
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#prependRow-dynamic' target='main' title='prependRow'>
#prependRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#prependSibling-dynamic' target='main' title='prependSibling'>
#prependSibling
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Event.html#preventDefault-dynamic' target='main' title='preventDefault'>
#preventDefault
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Input.html#preventInvalidInput-dynamic' target='main' title='preventInvalidInput'>
#preventInvalidInput
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#preventOverflow-dynamic' target='main' title='preventOverflow'>
#preventOverflow
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/dom.html#previousElementSibling-static' target='main' title='previousElementSibling'>
.previousElementSibling
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#printElement-static' target='main' title='printElement'>
.printElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#progress-dynamic' target='main' title='progress'>
#progress
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#progress-dynamic' target='main' title='progress'>
#progress
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#promise-dynamic' target='main' title='promise'>
#promise
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/Element.html#proxy-dynamic' target='main' title='proxy'>
#proxy
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI.html#proxyMethods-static' target='main' title='proxyMethods'>
.proxyMethods
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#pushOntoArray-static' target='main' title='pushOntoArray'>
.pushOntoArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#queue-dynamic' target='main' title='queue'>
#queue
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#queueFiles-dynamic' target='main' title='queueFiles'>
#queueFiles
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#quote-static' target='main' title='quote'>
.quote
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/MultiOutput.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.MultiOutput)
</small>
</li>
<li>
<a href='class/CUI/Table.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Table)
</small>
</li>
<li>
<a href='class/CUI/Toaster.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Toaster)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/DragDropSelect.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DragDropSelect)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/CSSLoader.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.CSSLoader)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/Prompt.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Prompt)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumper.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ObjectDumper)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/VerticalList.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.VerticalList)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Confirm.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Confirm)
</small>
</li>
<li>
<a href='class/CUI/Alert.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Alert)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/ListViewDraggable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewDraggable)
</small>
</li>
<li>
<a href='class/CUI/FileReader.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.FileReader)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/Element.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/Input.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/ButtonHref.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ButtonHref)
</small>
</li>
<li>
<a href='class/CUI/FileUploadButton.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.FileUploadButton)
</small>
</li>
<li>
<a href='class/CUI/EmailInput.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.EmailInput)
</small>
</li>
<li>
<a href='class/CUI/ListViewHeaderColumn.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewHeaderColumn)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/Element.html#readOpts-static' target='main' title='readOpts'>
.readOpts
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchQuery.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DocumentBrowser.SearchQuery)
</small>
</li>
<li>
<a href='class/CUI/EmptyLabel.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.EmptyLabel)
</small>
</li>
<li>
<a href='class/CUI/Label.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.SearchMatch.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DocumentBrowser.SearchMatch)
</small>
</li>
<li>
<a href='class/CUI/HorizontalList.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.HorizontalList)
</small>
</li>
<li>
<a href='class/CUI/Options.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Block.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/Output.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/Event.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/Popover.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Popover)
</small>
</li>
<li>
<a href='class/CUI/Button.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Dragscroll.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Dragscroll)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#readOpts-dynamic' target='main' title='readOpts'>
#readOpts
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Element.html#readOptsFromAttr-dynamic' target='main' title='readOptsFromAttr'>
#readOptsFromAttr
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI.html#ready-static' target='main' title='ready'>
.ready
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#readyState-dynamic' target='main' title='readyState'>
#readyState
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#redo-dynamic' target='main' title='redo'>
#redo
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#redo-dynamic' target='main' title='redo'>
#redo
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#regexpMatcher-dynamic' target='main' title='regexpMatcher'>
#regexpMatcher
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Test.html#register-static' target='main' title='register'>
.register
</a>
<small>
(CUI.Test)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#registerDOMElement-dynamic' target='main' title='registerDOMElement'>
#registerDOMElement
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Events.html#registerEvent-static' target='main' title='registerEvent'>
.registerEvent
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#registerLabel-dynamic' target='main' title='registerLabel'>
#registerLabel
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#registerLabel-dynamic' target='main' title='registerLabel'>
#registerLabel
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/Select.html#registerLabel-dynamic' target='main' title='registerLabel'>
#registerLabel
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#registerTemplate-dynamic' target='main' title='registerTemplate'>
#registerTemplate
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI.html#registerTimeoutChangeCallback-static' target='main' title='registerTimeoutChangeCallback'>
.registerTimeoutChangeCallback
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#rejectedPromise-static' target='main' title='rejectedPromise'>
.rejectedPromise
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#reload-dynamic' target='main' title='reload'>
#reload
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#reload-dynamic' target='main' title='reload'>
#reload
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#reload-dynamic' target='main' title='reload'>
#reload
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#reload-dynamic' target='main' title='reload'>
#reload
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/Select.html#reload-dynamic' target='main' title='reload'>
#reload
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Input.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/DataTableNode.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.DataTableNode)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#remove-dynamic' target='main' title='remove'>
#remove
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/dom.html#remove-static' target='main' title='remove'>
.remove
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#removeAllRows-dynamic' target='main' title='removeAllRows'>
#removeAllRows
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/dom.html#removeAnimatedClone-static' target='main' title='removeAnimatedClone'>
.removeAnimatedClone
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#removeAttribute-static' target='main' title='removeAttribute'>
.removeAttribute
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Buttonbar.html#removeButtons-dynamic' target='main' title='removeButtons'>
#removeButtons
</a>
<small>
(CUI.Buttonbar)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#removeChild-dynamic' target='main' title='removeChild'>
#removeChild
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#removeChildren-static' target='main' title='removeChildren'>
.removeChildren
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#removeClass-dynamic' target='main' title='removeClass'>
#removeClass
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnRightFill.html#removeClass-dynamic' target='main' title='removeClass'>
#removeClass
</a>
<small>
(CUI.ListViewColumnRightFill)
</small>
</li>
<li>
<a href='class/CUI/Template.html#removeClass-dynamic' target='main' title='removeClass'>
#removeClass
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/dom.html#removeClass-static' target='main' title='removeClass'>
.removeClass
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#removeClass-dynamic' target='main' title='removeClass'>
#removeClass
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#removeClass-dynamic' target='main' title='removeClass'>
#removeClass
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#removeClassFromField-dynamic' target='main' title='removeClassFromField'>
#removeClassFromField
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#removeColumns-dynamic' target='main' title='removeColumns'>
#removeColumns
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/dom.html#removeData-static' target='main' title='removeData'>
.removeData
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#removeDeferredRow-dynamic' target='main' title='removeDeferredRow'>
#removeDeferredRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Template.html#removeEmptySlots-dynamic' target='main' title='removeEmptySlots'>
#removeEmptySlots
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#removeFile-dynamic' target='main' title='removeFile'>
#removeFile
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/util.html#removeFromArray-static' target='main' title='removeFromArray'>
.removeFromArray
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#removeFromDOM-dynamic' target='main' title='removeFromDOM'>
#removeFromDOM
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#removeHelper-dynamic' target='main' title='removeHelper'>
#removeHelper
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/Map.html#removeMarker-dynamic' target='main' title='removeMarker'>
#removeMarker
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#removeMarkers-dynamic' target='main' title='removeMarkers'>
#removeMarkers
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Element.html#removeOpt-dynamic' target='main' title='removeOpt'>
#removeOpt
</a>
<small>
(CUI.Element)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#removeRow-dynamic' target='main' title='removeRow'>
#removeRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#removeSelectedClass-dynamic' target='main' title='removeSelectedClass'>
#removeSelectedClass
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#removeSelectedMarker-dynamic' target='main' title='removeSelectedMarker'>
#removeSelectedMarker
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#removeSelectedMarker-dynamic' target='main' title='removeSelectedMarker'>
#removeSelectedMarker
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#removeSelectedMarker-dynamic' target='main' title='removeSelectedMarker'>
#removeSelectedMarker
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/OutputContent.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.OutputContent)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnEmpty.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewColumnEmpty)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/Options.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/IconMarker.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.IconMarker)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnRightFill.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewColumnRightFill)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/Output.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/FormButton.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.FormButton)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/ListViewHeaderColumn.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewHeaderColumn)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/MultiOutput.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.MultiOutput)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeHeaderNode.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewTreeHeaderNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnRowMoveHandle.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewColumnRowMoveHandle)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.NodeMatch.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DocumentBrowser.NodeMatch)
</small>
</li>
<li>
<a href='class/CUI/Input.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Checkbox.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.Checkbox)
</small>
</li>
<li>
<a href='class/CUI/MapInput.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.MapInput)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#render-dynamic' target='main' title='render'>
#render
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#renderAsBlock-dynamic' target='main' title='renderAsBlock'>
#renderAsBlock
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#renderAsBlock-dynamic' target='main' title='renderAsBlock'>
#renderAsBlock
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#renderAsBlock-dynamic' target='main' title='renderAsBlock'>
#renderAsBlock
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#renderAsBlock-dynamic' target='main' title='renderAsBlock'>
#renderAsBlock
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#renderContent-dynamic' target='main' title='renderContent'>
#renderContent
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#renderContent-dynamic' target='main' title='renderContent'>
#renderContent
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#renderHTML-dynamic' target='main' title='renderHTML'>
#renderHTML
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#renderHref-dynamic' target='main' title='renderHref'>
#renderHref
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#renderTable-dynamic' target='main' title='renderTable'>
#renderTable
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#renderTable-dynamic' target='main' title='renderTable'>
#renderTable
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/SimplePane.html#replace-dynamic' target='main' title='replace'>
#replace
</a>
<small>
(CUI.SimplePane)
</small>
</li>
<li>
<a href='class/CUI/Template.html#replace-dynamic' target='main' title='replace'>
#replace
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#replace-dynamic' target='main' title='replace'>
#replace
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/dom.html#replace-static' target='main' title='replace'>
.replace
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#replace-dynamic' target='main' title='replace'>
#replace
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#replace-dynamic' target='main' title='replace'>
#replace
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#replaceRow-dynamic' target='main' title='replaceRow'>
#replaceRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#replaceSelf-dynamic' target='main' title='replaceSelf'>
#replaceSelf
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#replaceWith-static' target='main' title='replaceWith'>
.replaceWith
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#requestFullscreen-static' target='main' title='requestFullscreen'>
.requestFullscreen
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Listener.html#require-static' target='main' title='require'>
.require
</a>
<small>
(CUI.Listener)
</small>
</li>
<li>
<a href='class/CUI/Event.html#require-static' target='main' title='require'>
.require
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#reset-dynamic' target='main' title='reset'>
#reset
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#resetColWidth-dynamic' target='main' title='resetColWidth'>
#resetColWidth
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#resetDropZones-dynamic' target='main' title='resetDropZones'>
#resetDropZones
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#resetLayer-dynamic' target='main' title='resetLayer'>
#resetLayer
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#resetMargin-dynamic' target='main' title='resetMargin'>
#resetMargin
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#resetSize-dynamic' target='main' title='resetSize'>
#resetSize
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#resetTableAndFields-dynamic' target='main' title='resetTableAndFields'>
#resetTableAndFields
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI.html#resetTimeout-static' target='main' title='resetTimeout'>
.resetTimeout
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#resize-dynamic' target='main' title='resize'>
#resize
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#resize-dynamic' target='main' title='resize'>
#resize
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#resize-dynamic' target='main' title='resize'>
#resize
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI.html#resolvedPromise-static' target='main' title='resolvedPromise'>
.resolvedPromise
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#response-dynamic' target='main' title='response'>
#response
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#revertData-dynamic' target='main' title='revertData'>
#revertData
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/util.html#revertMap-static' target='main' title='revertMap'>
.revertMap
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI.html#revertMap-static' target='main' title='revertMap'>
.revertMap
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#rowAddClass-dynamic' target='main' title='rowAddClass'>
#rowAddClass
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/DataForm.html#rowHasUserData-dynamic' target='main' title='rowHasUserData'>
#rowHasUserData
</a>
<small>
(CUI.DataForm)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#rowRemoveClass-dynamic' target='main' title='rowRemoveClass'>
#rowRemoveClass
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Test.Test_MoveInArray.html#run-dynamic' target='main' title='run'>
#run
</a>
<small>
(CUI.Test.Test_MoveInArray)
</small>
</li>
<li>
<a href='class/CUI/Test_Promise.html#run-dynamic' target='main' title='run'>
#run
</a>
<small>
(CUI.Test_Promise)
</small>
</li>
<li>
<a href='class/CUI/Test.html#run-static' target='main' title='run'>
.run
</a>
<small>
(CUI.Test)
</small>
</li>
<li>
<a href='class/CUI/Test.html#run-dynamic' target='main' title='run'>
#run
</a>
<small>
(CUI.Test)
</small>
</li>
<li>
<a href='class/CUI/FileReader.html#save-static' target='main' title='save'>
.save
</a>
<small>
(CUI.FileReader)
</small>
</li>
<li>
<a href='class/CUI.html#scheduleCallback-static' target='main' title='scheduleCallback'>
.scheduleCallback
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI.html#scheduleCallbackCancel-static' target='main' title='scheduleCallbackCancel'>
.scheduleCallbackCancel
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/dom.html#scrollIntoView-static' target='main' title='scrollIntoView'>
.scrollIntoView
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#scrollIntoView-dynamic' target='main' title='scrollIntoView'>
#scrollIntoView
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#select-dynamic' target='main' title='select'>
#select
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#select-dynamic' target='main' title='select'>
#select
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Input.html#selectAll-dynamic' target='main' title='selectAll'>
#selectAll
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#selectRow-dynamic' target='main' title='selectRow'>
#selectRow
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#selectRowByDisplayIdx-dynamic' target='main' title='selectRowByDisplayIdx'>
#selectRowByDisplayIdx
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#selectRowById-dynamic' target='main' title='selectRowById'>
#selectRowById
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#setAbsolute-static' target='main' title='setAbsolute'>
.setAbsolute
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#setAbsolute-dynamic' target='main' title='setAbsolute'>
#setAbsolute
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setAbsolutePosition-static' target='main' title='setAbsolutePosition'>
.setAbsolutePosition
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setActive-dynamic' target='main' title='setActive'>
#setActive
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ItemList.html#setActiveIdx-dynamic' target='main' title='setActiveIdx'>
#setActiveIdx
</a>
<small>
(CUI.ItemList)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#setAria-dynamic' target='main' title='setAria'>
#setAria
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setAria-static' target='main' title='setAria'>
.setAria
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setAttribute-static' target='main' title='setAttribute'>
.setAttribute
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setAttributeMap-static' target='main' title='setAttributeMap'>
.setAttributeMap
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#setBackdropContent-dynamic' target='main' title='setBackdropContent'>
#setBackdropContent
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Map.html#setButtonBar-dynamic' target='main' title='setButtonBar'>
#setButtonBar
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#setCenter-dynamic' target='main' title='setCenter'>
#setCenter
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#setCenter-dynamic' target='main' title='setCenter'>
#setCenter
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#setCenter-dynamic' target='main' title='setCenter'>
#setCenter
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#setCheckChangedValue-dynamic' target='main' title='setCheckChangedValue'>
#setCheckChangedValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataFieldProxy.html#setCheckChangedValue-dynamic' target='main' title='setCheckChangedValue'>
#setCheckChangedValue
</a>
<small>
(CUI.DataFieldProxy)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setClass-static' target='main' title='setClass'>
.setClass
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#setClass-dynamic' target='main' title='setClass'>
#setClass
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setClassOnMousemove-static' target='main' title='setClassOnMousemove'>
.setClassOnMousemove
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setClock-dynamic' target='main' title='setClock'>
#setClock
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#setColWidth-dynamic' target='main' title='setColWidth'>
#setColWidth
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#setColspan-dynamic' target='main' title='setColspan'>
#setColspan
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#setColspan-dynamic' target='main' title='setColspan'>
#setColspan
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#setColumn-dynamic' target='main' title='setColumn'>
#setColumn
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#setColumnIdx-dynamic' target='main' title='setColumnIdx'>
#setColumnIdx
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/Label.html#setContent-dynamic' target='main' title='setContent'>
#setContent
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Panel.html#setContent-dynamic' target='main' title='setContent'>
#setContent
</a>
<small>
(CUI.Panel)
</small>
</li>
<li>
<a href='class/CUI/OutputContent.html#setContent-dynamic' target='main' title='setContent'>
#setContent
</a>
<small>
(CUI.OutputContent)
</small>
</li>
<li>
<a href='class/CUI/Modal.html#setContent-dynamic' target='main' title='setContent'>
#setContent
</a>
<small>
(CUI.Modal)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#setContent-dynamic' target='main' title='setContent'>
#setContent
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Block.html#setContent-dynamic' target='main' title='setContent'>
#setContent
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setContentSize-dynamic' target='main' title='setContentSize'>
#setContentSize
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Event.html#setCurrentTarget-dynamic' target='main' title='setCurrentTarget'>
#setCurrentTarget
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setCursor-dynamic' target='main' title='setCursor'>
#setCursor
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Select.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/FormModal.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.FormModal)
</small>
</li>
<li>
<a href='class/CUI/Options.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/ObjectDumperNode.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.ObjectDumperNode)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#setData-dynamic' target='main' title='setData'>
#setData
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#setDataOnInputs-dynamic' target='main' title='setDataOnInputs'>
#setDataOnInputs
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#setDataOnOthers-dynamic' target='main' title='setDataOnOthers'>
#setDataOnOthers
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#setDataOnOthers-dynamic' target='main' title='setDataOnOthers'>
#setDataOnOthers
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setDigiClock-dynamic' target='main' title='setDigiClock'>
#setDigiClock
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setDimension-static' target='main' title='setDimension'>
.setDimension
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setDimensions-static' target='main' title='setDimensions'>
.setDimensions
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#setDropClassByEvent-static' target='main' title='setDropClassByEvent'>
.setDropClassByEvent
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#setElement-dynamic' target='main' title='setElement'>
#setElement
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnRightFill.html#setElement-dynamic' target='main' title='setElement'>
#setElement
</a>
<small>
(CUI.ListViewColumnRightFill)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#setElement-dynamic' target='main' title='setElement'>
#setElement
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumnRowMoveHandle.html#setElement-dynamic' target='main' title='setElement'>
#setElement
</a>
<small>
(CUI.ListViewColumnRowMoveHandle)
</small>
</li>
<li>
<a href='class/CUI/ListViewHeaderColumn.html#setElement-dynamic' target='main' title='setElement'>
#setElement
</a>
<small>
(CUI.ListViewHeaderColumn)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#setElementCss-dynamic' target='main' title='setElementCss'>
#setElementCss
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setEnabled-dynamic' target='main' title='setEnabled'>
#setEnabled
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#setFather-dynamic' target='main' title='setFather'>
#setFather
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#setFooterLeft-dynamic' target='main' title='setFooterLeft'>
#setFooterLeft
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/Tabs.html#setFooterRight-dynamic' target='main' title='setFooterRight'>
#setFooterRight
</a>
<small>
(CUI.Tabs)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#setForm-dynamic' target='main' title='setForm'>
#setForm
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#setFormDepth-dynamic' target='main' title='setFormDepth'>
#setFormDepth
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setGroup-dynamic' target='main' title='setGroup'>
#setGroup
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Block.html#setHeader-dynamic' target='main' title='setHeader'>
#setHeader
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/ButtonHref.html#setHref-dynamic' target='main' title='setHref'>
#setHref
</a>
<small>
(CUI.ButtonHref)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setIcon-dynamic' target='main' title='setIcon'>
#setIcon
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Block.html#setIcon-dynamic' target='main' title='setIcon'>
#setIcon
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/Label.html#setIcon-dynamic' target='main' title='setIcon'>
#setIcon
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setIconRight-dynamic' target='main' title='setIconRight'>
#setIconRight
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#setInactive-dynamic' target='main' title='setInactive'>
#setInactive
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setInputFormat-dynamic' target='main' title='setInputFormat'>
#setInputFormat
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setInputFromMoment-dynamic' target='main' title='setInputFromMoment'>
#setInputFromMoment
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setInputHint-dynamic' target='main' title='setInputHint'>
#setInputHint
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MultiInput.html#setInputVisibility-dynamic' target='main' title='setInputVisibility'>
#setInputVisibility
</a>
<small>
(CUI.MultiInput)
</small>
</li>
<li>
<a href='class/CUI.html#setInterval-static' target='main' title='setInterval'>
.setInterval
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setInvalidHint-dynamic' target='main' title='setInvalidHint'>
#setInvalidHint
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#setItemList-dynamic' target='main' title='setItemList'>
#setItemList
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#setKeys-dynamic' target='main' title='setKeys'>
#setKeys
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#setListView-dynamic' target='main' title='setListView'>
#setListView
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI.html#setLocalStorage-static' target='main' title='setLocalStorage'>
.setLocalStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setLocale-static' target='main' title='setLocale'>
.setLocale
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#setMax-dynamic' target='main' title='setMax'>
#setMax
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#setMin-dynamic' target='main' title='setMin'>
#setMin
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setMomentFromInput-dynamic' target='main' title='setMomentFromInput'>
#setMomentFromInput
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Event.html#setNativeEvent-dynamic' target='main' title='setNativeEvent'>
#setNativeEvent
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/MouseEvent.html#setNativeEvent-dynamic' target='main' title='setNativeEvent'>
#setNativeEvent
</a>
<small>
(CUI.MouseEvent)
</small>
</li>
<li>
<a href='class/CUI/TouchEvent.html#setNativeEvent-dynamic' target='main' title='setNativeEvent'>
#setNativeEvent
</a>
<small>
(CUI.TouchEvent)
</small>
</li>
<li>
<a href='class/CUI/LayerPane.html#setPane-dynamic' target='main' title='setPane'>
#setPane
</a>
<small>
(CUI.LayerPane)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#setPane-dynamic' target='main' title='setPane'>
#setPane
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setPlaceholder-dynamic' target='main' title='setPlaceholder'>
#setPlaceholder
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#setPreferredKey-dynamic' target='main' title='setPreferredKey'>
#setPreferredKey
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setPrintClock-dynamic' target='main' title='setPrintClock'>
#setPrintClock
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ListViewColumn.html#setRow-dynamic' target='main' title='setRow'>
#setRow
</a>
<small>
(CUI.ListViewColumn)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#setRowIdx-dynamic' target='main' title='setRowIdx'>
#setRowIdx
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/ListViewRow.html#setSelectable-dynamic' target='main' title='setSelectable'>
#setSelectable
</a>
<small>
(CUI.ListViewRow)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#setSelectedMarkerPosition-dynamic' target='main' title='setSelectedMarkerPosition'>
#setSelectedMarkerPosition
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#setSelectedMarkerPosition-dynamic' target='main' title='setSelectedMarkerPosition'>
#setSelectedMarkerPosition
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#setSelectedMarkerPosition-dynamic' target='main' title='setSelectedMarkerPosition'>
#setSelectedMarkerPosition
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#setSelectedNode-dynamic' target='main' title='setSelectedNode'>
#setSelectedNode
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setSelection-dynamic' target='main' title='setSelection'>
#setSelection
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI.html#setSessionStorage-static' target='main' title='setSessionStorage'>
.setSessionStorage
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setSize-dynamic' target='main' title='setSize'>
#setSize
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setSpellcheck-dynamic' target='main' title='setSpellcheck'>
#setSpellcheck
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/ProgressMeter.html#setState-dynamic' target='main' title='setState'>
#setState
</a>
<small>
(CUI.ProgressMeter)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#setString-dynamic' target='main' title='setString'>
#setString
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setStyle-static' target='main' title='setStyle'>
.setStyle
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setStyleOne-static' target='main' title='setStyleOne'>
.setStyleOne
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#setStylePx-static' target='main' title='setStylePx'>
.setStylePx
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Event.html#setTarget-dynamic' target='main' title='setTarget'>
#setTarget
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Output.html#setText-dynamic' target='main' title='setText'>
#setText
</a>
<small>
(CUI.Output)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#setText-dynamic' target='main' title='setText'>
#setText
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setText-dynamic' target='main' title='setText'>
#setText
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Block.html#setText-dynamic' target='main' title='setText'>
#setText
</a>
<small>
(CUI.Block)
</small>
</li>
<li>
<a href='class/CUI/Label.html#setText-dynamic' target='main' title='setText'>
#setText
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Label.html#setTextMaxChars-dynamic' target='main' title='setTextMaxChars'>
#setTextMaxChars
</a>
<small>
(CUI.Label)
</small>
</li>
<li>
<a href='class/CUI/Button.html#setTextMaxChars-dynamic' target='main' title='setTextMaxChars'>
#setTextMaxChars
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI.html#setTimeout-static' target='main' title='setTimeout'>
.setTimeout
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#setTimezone-dynamic' target='main' title='setTimezone'>
#setTimezone
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#setTree-dynamic' target='main' title='setTree'>
#setTree
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#setUrl-dynamic' target='main' title='setUrl'>
#setUrl
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setValidHint-dynamic' target='main' title='setValidHint'>
#setValidHint
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/NumberInput.html#setValue-dynamic' target='main' title='setValue'>
#setValue
</a>
<small>
(CUI.NumberInput)
</small>
</li>
<li>
<a href='class/CUI/Slider.html#setValue-dynamic' target='main' title='setValue'>
#setValue
</a>
<small>
(CUI.Slider)
</small>
</li>
<li>
<a href='class/CUI/Options.html#setValue-dynamic' target='main' title='setValue'>
#setValue
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/Input.html#setValue-dynamic' target='main' title='setValue'>
#setValue
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#setValue-dynamic' target='main' title='setValue'>
#setValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#setVisible-dynamic' target='main' title='setVisible'>
#setVisible
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#setZoom-dynamic' target='main' title='setZoom'>
#setZoom
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#setZoom-dynamic' target='main' title='setZoom'>
#setZoom
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#setZoom-dynamic' target='main' title='setZoom'>
#setZoom
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Event.html#shiftKey-dynamic' target='main' title='shiftKey'>
#shiftKey
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/WaitBlock.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.WaitBlock)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Tab.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Tab)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Icon.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Icon)
</small>
</li>
<li>
<a href='class/CUI/Menu.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Menu)
</small>
</li>
<li>
<a href='class/CUI/Template.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/Button.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationChoice.html#show-dynamic' target='main' title='show'>
#show
</a>
<small>
(CUI.ConfirmationChoice)
</small>
</li>
<li>
<a href='class/CUI/Input.html#showCursor-dynamic' target='main' title='showCursor'>
#showCursor
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/dom.html#showElement-static' target='main' title='showElement'>
.showElement
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#showHorizontalTargetMarker-dynamic' target='main' title='showHorizontalTargetMarker'>
#showHorizontalTargetMarker
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeRowMove.html#showHorizontalTargetMarker-dynamic' target='main' title='showHorizontalTargetMarker'>
#showHorizontalTargetMarker
</a>
<small>
(CUI.ListViewTreeRowMove)
</small>
</li>
<li>
<a href='class/CUI/ListViewRowMove.html#showHorizontalTargetMarkerSetTarget-dynamic' target='main' title='showHorizontalTargetMarkerSetTarget'>
#showHorizontalTargetMarkerSetTarget
</a>
<small>
(CUI.ListViewRowMove)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#showMarkers-dynamic' target='main' title='showMarkers'>
#showMarkers
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#showMarkers-dynamic' target='main' title='showMarkers'>
#showMarkers
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#showMarkers-dynamic' target='main' title='showMarkers'>
#showMarkers
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Password.html#showPassword-dynamic' target='main' title='showPassword'>
#showPassword
</a>
<small>
(CUI.Password)
</small>
</li>
<li>
<a href='class/CUI/DocumentBrowser.html#showSearch-dynamic' target='main' title='showSearch'>
#showSearch
</a>
<small>
(CUI.DocumentBrowser)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#showSpinner-dynamic' target='main' title='showSpinner'>
#showSpinner
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/Tooltip.html#showTimeout-dynamic' target='main' title='showTimeout'>
#showTimeout
</a>
<small>
(CUI.Tooltip)
</small>
</li>
<li>
<a href='class/CUI/Layer.html#showTimeout-dynamic' target='main' title='showTimeout'>
#showTimeout
</a>
<small>
(CUI.Layer)
</small>
</li>
<li>
<a href='class/CUI/MultiInputControl.html#showUserControl-dynamic' target='main' title='showUserControl'>
#showUserControl
</a>
<small>
(CUI.MultiInputControl)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#showWaitBlock-dynamic' target='main' title='showWaitBlock'>
#showWaitBlock
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#sort-dynamic' target='main' title='sort'>
#sort
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/dom.html#source-static' target='main' title='source'>
.source
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#space-static' target='main' title='space'>
.space
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#span-static' target='main' title='span'>
.span
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#start-dynamic' target='main' title='start'>
#start
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI.html#start-static' target='main' title='start'>
.start
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#start-dynamic' target='main' title='start'>
#start
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#startFillScreen-dynamic' target='main' title='startFillScreen'>
#startFillScreen
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#startLayout-dynamic' target='main' title='startLayout'>
#startLayout
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Button.html#startSpinner-dynamic' target='main' title='startSpinner'>
#startSpinner
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI.html#startWebdriverTest-static' target='main' title='startWebdriverTest'>
.startWebdriverTest
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Resizable.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.Resizable)
</small>
</li>
<li>
<a href='class/CUI/Movable.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.Movable)
</small>
</li>
<li>
<a href='class/CUI/Dragscroll.html#start_drag-dynamic' target='main' title='start_drag'>
#start_drag
</a>
<small>
(CUI.Dragscroll)
</small>
</li>
<li>
<a href='class/CUI/Promise.html#state-dynamic' target='main' title='state'>
#state
</a>
<small>
(CUI.Promise)
</small>
</li>
<li>
<a href='class/CUI/Deferred.html#state-dynamic' target='main' title='state'>
#state
</a>
<small>
(CUI.Deferred)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#status-dynamic' target='main' title='status'>
#status
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/XHR.html#statusText-dynamic' target='main' title='statusText'>
#statusText
</a>
<small>
(CUI.XHR)
</small>
</li>
<li>
<a href='class/CUI/Event.html#stop-dynamic' target='main' title='stop'>
#stop
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/Event.html#stopImmediatePropagation-dynamic' target='main' title='stopImmediatePropagation'>
#stopImmediatePropagation
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/ListView.html#stopLayout-dynamic' target='main' title='stopLayout'>
#stopLayout
</a>
<small>
(CUI.ListView)
</small>
</li>
<li>
<a href='class/CUI/Event.html#stopPropagation-dynamic' target='main' title='stopPropagation'>
#stopPropagation
</a>
<small>
(CUI.Event)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#stopQueuing-dynamic' target='main' title='stopQueuing'>
#stopQueuing
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/Button.html#stopSpinner-dynamic' target='main' title='stopSpinner'>
#stopSpinner
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#stop_drag-dynamic' target='main' title='stop_drag'>
#stop_drag
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/ListViewColResize.html#stop_drag-dynamic' target='main' title='stop_drag'>
#stop_drag
</a>
<small>
(CUI.ListViewColResize)
</small>
</li>
<li>
<a href='class/CUI/Lasso.html#stop_drag-dynamic' target='main' title='stop_drag'>
#stop_drag
</a>
<small>
(CUI.Lasso)
</small>
</li>
<li>
<a href='class/CUI/Sortable.html#stop_drag-dynamic' target='main' title='stop_drag'>
#stop_drag
</a>
<small>
(CUI.Sortable)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#storeState-dynamic' target='main' title='storeState'>
#storeState
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/Input.html#storeValue-dynamic' target='main' title='storeValue'>
#storeValue
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/Select.html#storeValue-dynamic' target='main' title='storeValue'>
#storeValue
</a>
<small>
(CUI.Select)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#storeValue-dynamic' target='main' title='storeValue'>
#storeValue
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#storeValue-dynamic' target='main' title='storeValue'>
#storeValue
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#storeValue-dynamic' target='main' title='storeValue'>
#storeValue
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/Options.html#storeValue-dynamic' target='main' title='storeValue'>
#storeValue
</a>
<small>
(CUI.Options)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#stretch-dynamic' target='main' title='stretch'>
#stretch
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI.html#stringMapReplace-static' target='main' title='stringMapReplace'>
.stringMapReplace
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#stringMapReplace-static' target='main' title='stringMapReplace'>
.stringMapReplace
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/Draggable.html#supportTouch-dynamic' target='main' title='supportTouch'>
#supportTouch
</a>
<small>
(CUI.Draggable)
</small>
</li>
<li>
<a href='class/CUI/Dragscroll.html#supportTouch-dynamic' target='main' title='supportTouch'>
#supportTouch
</a>
<small>
(CUI.Dragscroll)
</small>
</li>
<li>
<a href='class/CUI/dom.html#syncAnimatedClone-static' target='main' title='syncAnimatedClone'>
.syncAnimatedClone
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#syncDropHelper-dynamic' target='main' title='syncDropHelper'>
#syncDropHelper
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/Droppable.html#syncTargetHelper-dynamic' target='main' title='syncTargetHelper'>
#syncTargetHelper
</a>
<small>
(CUI.Droppable)
</small>
</li>
<li>
<a href='class/CUI/dom.html#table-static' target='main' title='table'>
.table
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#table_one_row-static' target='main' title='table_one_row'>
.table_one_row
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#td-static' target='main' title='td'>
.td
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Test.html#test-dynamic' target='main' title='test'>
#test
</a>
<small>
(CUI.Test)
</small>
</li>
<li>
<a href='class/CUI/Template.html#text-dynamic' target='main' title='text'>
#text
</a>
<small>
(CUI.Template)
</small>
</li>
<li>
<a href='class/CUI/dom.html#text-static' target='main' title='text'>
.text
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#text-dynamic' target='main' title='text'>
#text
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/dom.html#textEmpty-static' target='main' title='textEmpty'>
.textEmpty
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#th-static' target='main' title='th'>
.th
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#toCamel-static' target='main' title='toCamel'>
.toCamel
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#toClass-static' target='main' title='toClass'>
.toClass
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#toDash-static' target='main' title='toDash'>
.toDash
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/util.html#toDot-static' target='main' title='toDot'>
.toDot
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/IconMarker.html#toHtml-dynamic' target='main' title='toHtml'>
#toHtml
</a>
<small>
(CUI.IconMarker)
</small>
</li>
<li>
<a href='class/CUI/util.html#toHtml-static' target='main' title='toHtml'>
.toHtml
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#toMoment-static' target='main' title='toMoment'>
.toMoment
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/InputBlock.html#toString-dynamic' target='main' title='toString'>
#toString
</a>
<small>
(CUI.InputBlock)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#toString-dynamic' target='main' title='toString'>
#toString
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/CSVData.html#toText-dynamic' target='main' title='toText'>
#toText
</a>
<small>
(CUI.CSVData)
</small>
</li>
<li>
<a href='class/CUI/Button.html#toggle-dynamic' target='main' title='toggle'>
#toggle
</a>
<small>
(CUI.Button)
</small>
</li>
<li>
<a href='class/CUI/dom.html#toggleClass-static' target='main' title='toggleClass'>
.toggleClass
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Pane.html#toggleFillScreen-dynamic' target='main' title='toggleFillScreen'>
#toggleFillScreen
</a>
<small>
(CUI.Pane)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#toggleNode-dynamic' target='main' title='toggleNode'>
#toggleNode
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/dom.html#tr-static' target='main' title='tr'>
.tr
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#tr_one_row-static' target='main' title='tr_one_row'>
.tr_one_row
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Events.html#trigger-static' target='main' title='trigger'>
.trigger
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/FormPopover.html#triggerDataChanged-dynamic' target='main' title='triggerDataChanged'>
#triggerDataChanged
</a>
<small>
(CUI.FormPopover)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#triggerDataChanged-dynamic' target='main' title='triggerDataChanged'>
#triggerDataChanged
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#triggerNodeDeselect-dynamic' target='main' title='triggerNodeDeselect'>
#triggerNodeDeselect
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/ListViewTree.html#triggerNodeSelect-dynamic' target='main' title='triggerNodeSelect'>
#triggerNodeSelect
</a>
<small>
(CUI.ListViewTree)
</small>
</li>
<li>
<a href='class/CUI/dom.html#ul-static' target='main' title='ul'>
.ul
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#undo-dynamic' target='main' title='undo'>
#undo
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#undo-dynamic' target='main' title='undo'>
#undo
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DOMElement.html#unregisterDOMElement-dynamic' target='main' title='unregisterDOMElement'>
#unregisterDOMElement
</a>
<small>
(CUI.DOMElement)
</small>
</li>
<li>
<a href='class/CUI/Events.html#unregisterListener-static' target='main' title='unregisterListener'>
.unregisterListener
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#unregisterTableListeners-dynamic' target='main' title='unregisterTableListeners'>
#unregisterTableListeners
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Layout.html#unsetAbsolute-dynamic' target='main' title='unsetAbsolute'>
#unsetAbsolute
</a>
<small>
(CUI.Layout)
</small>
</li>
<li>
<a href='class/CUI/FlexHandle.html#unstretch-dynamic' target='main' title='unstretch'>
#unstretch
</a>
<small>
(CUI.FlexHandle)
</small>
</li>
<li>
<a href='class/CUI/ListViewTreeNode.html#update-dynamic' target='main' title='update'>
#update
</a>
<small>
(CUI.ListViewTreeNode)
</small>
</li>
<li>
<a href='class/CUI/DataTable.html#updateButtons-dynamic' target='main' title='updateButtons'>
#updateButtons
</a>
<small>
(CUI.DataTable)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#updateCalendar-dynamic' target='main' title='updateCalendar'>
#updateCalendar
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/DataField.html#updateData-dynamic' target='main' title='updateData'>
#updateData
</a>
<small>
(CUI.DataField)
</small>
</li>
<li>
<a href='class/CUI/DateTime.html#updateDateTimePicker-dynamic' target='main' title='updateDateTimePicker'>
#updateDateTimePicker
</a>
<small>
(CUI.DateTime)
</small>
</li>
<li>
<a href='class/CUI/SimpleForm.html#updateHint-dynamic' target='main' title='updateHint'>
#updateHint
</a>
<small>
(CUI.SimpleForm)
</small>
</li>
<li>
<a href='class/CUI/Input.html#updateInputState-dynamic' target='main' title='updateInputState'>
#updateInputState
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/MarkdownInput.html#updatePreview-dynamic' target='main' title='updatePreview'>
#updatePreview
</a>
<small>
(CUI.MarkdownInput)
</small>
</li>
<li>
<a href='class/CUI/Map.html#updateSelectedMarkerOptions-dynamic' target='main' title='updateSelectedMarkerOptions'>
#updateSelectedMarkerOptions
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Input.html#updateSelection-dynamic' target='main' title='updateSelection'>
#updateSelection
</a>
<small>
(CUI.Input)
</small>
</li>
<li>
<a href='class/CUI/ConfirmationDialog.html#updateText-dynamic' target='main' title='updateText'>
#updateText
</a>
<small>
(CUI.ConfirmationDialog)
</small>
</li>
<li>
<a href='class/CUI/FileUploadFile.html#upload-dynamic' target='main' title='upload'>
#upload
</a>
<small>
(CUI.FileUploadFile)
</small>
</li>
<li>
<a href='class/CUI/FileReaderFile.html#upload-dynamic' target='main' title='upload'>
#upload
</a>
<small>
(CUI.FileReaderFile)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#uploadFile-dynamic' target='main' title='uploadFile'>
#uploadFile
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI/FileReader.html#uploadFile-dynamic' target='main' title='uploadFile'>
#uploadFile
</a>
<small>
(CUI.FileReader)
</small>
</li>
<li>
<a href='class/CUI/FileUpload.html#uploadNextFiles-dynamic' target='main' title='uploadNextFiles'>
#uploadNextFiles
</a>
<small>
(CUI.FileUpload)
</small>
</li>
<li>
<a href='class/CUI.html#utf8ArrayBufferToString-static' target='main' title='utf8ArrayBufferToString'>
.utf8ArrayBufferToString
</a>
<small>
(CUI)
</small>
</li>
<li>
<a href='class/CUI/util.html#utoa-static' target='main' title='utoa'>
.utoa
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/dom.html#video-static' target='main' title='video'>
.video
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/Events.html#wait-static' target='main' title='wait'>
.wait
</a>
<small>
(CUI.Events)
</small>
</li>
<li>
<a href='class/CUI/dom.html#waitForDOMInsert-static' target='main' title='waitForDOMInsert'>
.waitForDOMInsert
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/dom.html#waitForDOMRemove-static' target='main' title='waitForDOMRemove'>
.waitForDOMRemove
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/WheelEvent.html#wheelDeltaY-dynamic' target='main' title='wheelDeltaY'>
#wheelDeltaY
</a>
<small>
(CUI.WheelEvent)
</small>
</li>
<li>
<a href='class/CUI/dom.html#width-static' target='main' title='width'>
.width
</a>
<small>
(CUI.dom)
</small>
</li>
<li>
<a href='class/CUI/util.html#xor-static' target='main' title='xor'>
.xor
</a>
<small>
(CUI.util)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#zoomIn-dynamic' target='main' title='zoomIn'>
#zoomIn
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#zoomIn-dynamic' target='main' title='zoomIn'>
#zoomIn
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#zoomIn-dynamic' target='main' title='zoomIn'>
#zoomIn
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/Map.html#zoomOut-dynamic' target='main' title='zoomOut'>
#zoomOut
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#zoomOut-dynamic' target='main' title='zoomOut'>
#zoomOut
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#zoomOut-dynamic' target='main' title='zoomOut'>
#zoomOut
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
<li>
<a href='class/CUI/Map.html#zoomToFitAllMarkers-dynamic' target='main' title='zoomToFitAllMarkers'>
#zoomToFitAllMarkers
</a>
<small>
(CUI.Map)
</small>
</li>
<li>
<a href='class/CUI/LeafletMap.html#zoomToFitAllMarkers-dynamic' target='main' title='zoomToFitAllMarkers'>
#zoomToFitAllMarkers
</a>
<small>
(CUI.LeafletMap)
</small>
</li>
<li>
<a href='class/CUI/GoogleMap.html#zoomToFitAllMarkers-dynamic' target='main' title='zoomToFitAllMarkers'>
#zoomToFitAllMarkers
</a>
<small>
(CUI.GoogleMap)
</small>
</li>
</ul>
</div>
</body>
</html> |
<!DOCTYPE html>
<html>
<head>
<title>404</title>
<link href='https://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
color: #B0BEC5;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
display: inline-block;
}
.title {
font-size: 72px;
margin-bottom: 40px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div class="title">Not Found.</div>
</div>
</div>
</body>
</html>
|
.node {
cursor: pointer;
}
.nodetext {
font: 10pt sans-serif;
}
.link {
fill: none;
stroke: #e1eff6;
}
.axis {
fill: none;
stroke: #9ecae1;
}
text {
font: 10pt sans-serif;
pointer-events: none;
} |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<title>Coverage for remixvr/user/models.py: 100%</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.hotkeys.js"></script>
<script type="text/javascript" src="jquery.isonscreen.js"></script>
<script type="text/javascript" src="coverage_html.js"></script>
<script type="text/javascript">
jQuery(document).ready(coverage.pyfile_ready);
</script>
</head>
<body class="pyfile">
<div id="header">
<div class="content">
<h1>Coverage for <b>remixvr/user/models.py</b> :
<span class="pc_cov">100%</span>
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<h2 class="stats">
27 statements
<span class="run hide_run shortkey_r button_toggle_run">27 run</span>
<span class="mis shortkey_m button_toggle_mis">0 missing</span>
<span class="exc shortkey_x button_toggle_exc">0 excluded</span>
<span class="par run hide_run shortkey_p button_toggle_par">0 partial</span>
</h2>
</div>
</div>
<div class="help_panel">
<img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
<p class="legend">Hot-keys on this page</p>
<div>
<p class="keyhelp">
<span class="key">r</span>
<span class="key">m</span>
<span class="key">x</span>
<span class="key">p</span> toggle line displays
</p>
<p class="keyhelp">
<span class="key">j</span>
<span class="key">k</span> next/prev highlighted chunk
</p>
<p class="keyhelp">
<span class="key">0</span> (zero) top of page
</p>
<p class="keyhelp">
<span class="key">1</span> (one) first highlighted chunk
</p>
</div>
</div>
<div id="source">
<table>
<tr>
<td class="linenos">
<p id="n1" class="pln"><a href="#n1">1</a></p>
<p id="n2" class="stm run hide_run"><a href="#n2">2</a></p>
<p id="n3" class="stm run hide_run"><a href="#n3">3</a></p>
<p id="n4" class="pln"><a href="#n4">4</a></p>
<p id="n5" class="stm run hide_run"><a href="#n5">5</a></p>
<p id="n6" class="pln"><a href="#n6">6</a></p>
<p id="n7" class="stm run hide_run"><a href="#n7">7</a></p>
<p id="n8" class="stm run hide_run"><a href="#n8">8</a></p>
<p id="n9" class="pln"><a href="#n9">9</a></p>
<p id="n10" class="pln"><a href="#n10">10</a></p>
<p id="n11" class="stm run hide_run"><a href="#n11">11</a></p>
<p id="n12" class="pln"><a href="#n12">12</a></p>
<p id="n13" class="stm run hide_run"><a href="#n13">13</a></p>
<p id="n14" class="stm run hide_run"><a href="#n14">14</a></p>
<p id="n15" class="stm run hide_run"><a href="#n15">15</a></p>
<p id="n16" class="stm run hide_run"><a href="#n16">16</a></p>
<p id="n17" class="stm run hide_run"><a href="#n17">17</a></p>
<p id="n18" class="stm run hide_run"><a href="#n18">18</a></p>
<p id="n19" class="stm run hide_run"><a href="#n19">19</a></p>
<p id="n20" class="stm run hide_run"><a href="#n20">20</a></p>
<p id="n21" class="pln"><a href="#n21">21</a></p>
<p id="n22" class="stm run hide_run"><a href="#n22">22</a></p>
<p id="n23" class="pln"><a href="#n23">23</a></p>
<p id="n24" class="stm run hide_run"><a href="#n24">24</a></p>
<p id="n25" class="stm run hide_run"><a href="#n25">25</a></p>
<p id="n26" class="stm run hide_run"><a href="#n26">26</a></p>
<p id="n27" class="pln"><a href="#n27">27</a></p>
<p id="n28" class="stm run hide_run"><a href="#n28">28</a></p>
<p id="n29" class="pln"><a href="#n29">29</a></p>
<p id="n30" class="stm run hide_run"><a href="#n30">30</a></p>
<p id="n31" class="pln"><a href="#n31">31</a></p>
<p id="n32" class="stm run hide_run"><a href="#n32">32</a></p>
<p id="n33" class="pln"><a href="#n33">33</a></p>
<p id="n34" class="stm run hide_run"><a href="#n34">34</a></p>
<p id="n35" class="pln"><a href="#n35">35</a></p>
<p id="n36" class="stm run hide_run"><a href="#n36">36</a></p>
<p id="n37" class="pln"><a href="#n37">37</a></p>
<p id="n38" class="stm run hide_run"><a href="#n38">38</a></p>
<p id="n39" class="pln"><a href="#n39">39</a></p>
<p id="n40" class="stm run hide_run"><a href="#n40">40</a></p>
<p id="n41" class="pln"><a href="#n41">41</a></p>
<p id="n42" class="stm run hide_run"><a href="#n42">42</a></p>
<p id="n43" class="pln"><a href="#n43">43</a></p>
<p id="n44" class="stm run hide_run"><a href="#n44">44</a></p>
</td>
<td class="text">
<p id="t1" class="pln"><span class="com"># -*- coding: utf-8 -*-</span><span class="strut"> </span></p>
<p id="t2" class="stm run hide_run"><span class="str">"""User models."""</span><span class="strut"> </span></p>
<p id="t3" class="stm run hide_run"><span class="key">import</span> <span class="nam">datetime</span> <span class="key">as</span> <span class="nam">dt</span><span class="strut"> </span></p>
<p id="t4" class="pln"><span class="strut"> </span></p>
<p id="t5" class="stm run hide_run"><span class="key">from</span> <span class="nam">flask_jwt</span> <span class="key">import</span> <span class="nam">_default_jwt_encode_handler</span><span class="strut"> </span></p>
<p id="t6" class="pln"><span class="strut"> </span></p>
<p id="t7" class="stm run hide_run"><span class="key">from</span> <span class="nam">remixvr</span><span class="op">.</span><span class="nam">database</span> <span class="key">import</span> <span class="nam">Column</span><span class="op">,</span> <span class="nam">Model</span><span class="op">,</span> <span class="nam">SurrogatePK</span><span class="op">,</span> <span class="nam">db</span><span class="strut"> </span></p>
<p id="t8" class="stm run hide_run"><span class="key">from</span> <span class="nam">remixvr</span><span class="op">.</span><span class="nam">extensions</span> <span class="key">import</span> <span class="nam">bcrypt</span><span class="strut"> </span></p>
<p id="t9" class="pln"><span class="strut"> </span></p>
<p id="t10" class="pln"><span class="strut"> </span></p>
<p id="t11" class="stm run hide_run"><span class="key">class</span> <span class="nam">User</span><span class="op">(</span><span class="nam">SurrogatePK</span><span class="op">,</span> <span class="nam">Model</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t12" class="pln"><span class="strut"> </span></p>
<p id="t13" class="stm run hide_run"> <span class="nam">__tablename__</span> <span class="op">=</span> <span class="str">'users'</span><span class="strut"> </span></p>
<p id="t14" class="stm run hide_run"> <span class="nam">username</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">String</span><span class="op">(</span><span class="num">80</span><span class="op">)</span><span class="op">,</span> <span class="nam">unique</span><span class="op">=</span><span class="key">True</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">False</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t15" class="stm run hide_run"> <span class="nam">email</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">String</span><span class="op">(</span><span class="num">100</span><span class="op">)</span><span class="op">,</span> <span class="nam">unique</span><span class="op">=</span><span class="key">True</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">False</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t16" class="stm run hide_run"> <span class="nam">password</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">Binary</span><span class="op">(</span><span class="num">128</span><span class="op">)</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">True</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t17" class="stm run hide_run"> <span class="nam">created_at</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">DateTime</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">False</span><span class="op">,</span> <span class="nam">default</span><span class="op">=</span><span class="nam">dt</span><span class="op">.</span><span class="nam">datetime</span><span class="op">.</span><span class="nam">utcnow</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t18" class="stm run hide_run"> <span class="nam">updated_at</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">DateTime</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">False</span><span class="op">,</span> <span class="nam">default</span><span class="op">=</span><span class="nam">dt</span><span class="op">.</span><span class="nam">datetime</span><span class="op">.</span><span class="nam">utcnow</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t19" class="stm run hide_run"> <span class="nam">bio</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">String</span><span class="op">(</span><span class="num">300</span><span class="op">)</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">True</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t20" class="stm run hide_run"> <span class="nam">image</span> <span class="op">=</span> <span class="nam">Column</span><span class="op">(</span><span class="nam">db</span><span class="op">.</span><span class="nam">String</span><span class="op">(</span><span class="num">120</span><span class="op">)</span><span class="op">,</span> <span class="nam">nullable</span><span class="op">=</span><span class="key">True</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t21" class="pln"><span class="strut"> </span></p>
<p id="t22" class="stm run hide_run"> <span class="key">def</span> <span class="nam">__init__</span><span class="op">(</span><span class="nam">self</span><span class="op">,</span> <span class="nam">username</span><span class="op">,</span> <span class="nam">email</span><span class="op">,</span> <span class="nam">password</span><span class="op">=</span><span class="key">None</span><span class="op">,</span> <span class="op">**</span><span class="nam">kwargs</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t23" class="pln"> <span class="str">"""Create instance."""</span><span class="strut"> </span></p>
<p id="t24" class="stm run hide_run"> <span class="nam">db</span><span class="op">.</span><span class="nam">Model</span><span class="op">.</span><span class="nam">__init__</span><span class="op">(</span><span class="nam">self</span><span class="op">,</span> <span class="nam">username</span><span class="op">=</span><span class="nam">username</span><span class="op">,</span> <span class="nam">email</span><span class="op">=</span><span class="nam">email</span><span class="op">,</span> <span class="op">**</span><span class="nam">kwargs</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t25" class="stm run hide_run"> <span class="key">if</span> <span class="nam">password</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t26" class="stm run hide_run"> <span class="nam">self</span><span class="op">.</span><span class="nam">set_password</span><span class="op">(</span><span class="nam">password</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t27" class="pln"> <span class="key">else</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t28" class="stm run hide_run"> <span class="nam">self</span><span class="op">.</span><span class="nam">password</span> <span class="op">=</span> <span class="key">None</span><span class="strut"> </span></p>
<p id="t29" class="pln"><span class="strut"> </span></p>
<p id="t30" class="stm run hide_run"> <span class="key">def</span> <span class="nam">set_password</span><span class="op">(</span><span class="nam">self</span><span class="op">,</span> <span class="nam">password</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t31" class="pln"> <span class="str">"""Set password."""</span><span class="strut"> </span></p>
<p id="t32" class="stm run hide_run"> <span class="nam">self</span><span class="op">.</span><span class="nam">password</span> <span class="op">=</span> <span class="nam">bcrypt</span><span class="op">.</span><span class="nam">generate_password_hash</span><span class="op">(</span><span class="nam">password</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t33" class="pln"><span class="strut"> </span></p>
<p id="t34" class="stm run hide_run"> <span class="key">def</span> <span class="nam">check_password</span><span class="op">(</span><span class="nam">self</span><span class="op">,</span> <span class="nam">value</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t35" class="pln"> <span class="str">"""Check password."""</span><span class="strut"> </span></p>
<p id="t36" class="stm run hide_run"> <span class="key">return</span> <span class="nam">bcrypt</span><span class="op">.</span><span class="nam">check_password_hash</span><span class="op">(</span><span class="nam">self</span><span class="op">.</span><span class="nam">password</span><span class="op">,</span> <span class="nam">value</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t37" class="pln"><span class="strut"> </span></p>
<p id="t38" class="stm run hide_run"> <span class="op">@</span><span class="nam">property</span><span class="strut"> </span></p>
<p id="t39" class="pln"> <span class="key">def</span> <span class="nam">token</span><span class="op">(</span><span class="nam">self</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t40" class="stm run hide_run"> <span class="key">return</span> <span class="nam">_default_jwt_encode_handler</span><span class="op">(</span><span class="nam">self</span><span class="op">)</span><span class="op">.</span><span class="nam">decode</span><span class="op">(</span><span class="str">'utf-8'</span><span class="op">)</span><span class="strut"> </span></p>
<p id="t41" class="pln"><span class="strut"> </span></p>
<p id="t42" class="stm run hide_run"> <span class="key">def</span> <span class="nam">__repr__</span><span class="op">(</span><span class="nam">self</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p>
<p id="t43" class="pln"> <span class="str">"""Represent instance as a unique string."""</span><span class="strut"> </span></p>
<p id="t44" class="stm run hide_run"> <span class="key">return</span> <span class="str">'<User({username!r})>'</span><span class="op">.</span><span class="nam">format</span><span class="op">(</span><span class="nam">username</span><span class="op">=</span><span class="nam">self</span><span class="op">.</span><span class="nam">username</span><span class="op">)</span><span class="strut"> </span></p>
</td>
</tr>
</table>
</div>
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">« index</a> <a class="nav" href="https://coverage.readthedocs.io">coverage.py v4.5.1</a>,
created at 2018-10-12 21:32
</p>
</div>
</div>
</body>
</html>
|
# Project Lombok
Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.
Never write another getter or equals method again, with one annotation your class has a fully featured builder, automate your logging variables, and much more.
See [LICENSE] for the Project Lombok license.
Looking for professional support of Project Lombok? Lombok is now part of a [tidelift subscription]!
For a list of all authors, see the [AUTHORS] file.
For complete project information, see [projectlombok.org]
You can review our security policy via [SECURITY.md]
[LICENSE]: https://github.com/rzwitserloot/lombok/blob/master/LICENSE
[AUTHORS]: https://github.com/rzwitserloot/lombok/blob/master/AUTHORS
[SECURITY.md]: https://github.com/rzwitserloot/lombok/blob/master/SECURITY.md
[projectlombok.org]: https://projectlombok.org/
[tidelift subscription]: https://tidelift.com/subscription/pkg/maven-org-projectlombok-lombok?utm_source=maven-org-projectlombok-lombok&utm_medium=referral&campaign=website
|
package com.simmarith.sqlCon;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
public class Permission extends DbEntity {
// Properties
private String name = null;
private String description = null;
// Getter and Setter
public String getName() {
if (this.name == null) {
this.name = this.fetchProperty("name");
}
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
if (this.description == null) {
this.description = this.fetchProperty("description");
}
return description;
}
public void setDescription(String description) {
this.description = description;
}
// Methods
public static ArrayList<Permission> getAllPermissions() {
SqlConnection con = SqlConnection.getInstance();
ArrayList<Permission> allPermissions = new ArrayList<>();
ResultSet res = con.sql("Select id from user");
try {
while (res.next()) {
allPermissions
.add(new Permission(Long.toString(res.getLong(1))));
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return allPermissions;
}
public void persist() {
if (this.getId() == null) {
ResultSet res = this.con.sql(String.format(
"insert into %s (name, description) values ('%s', '%s')", this.tableName,
this.getName(), this.getDescription()));
try {
res.next();
this.setId(Long.toString(res.getLong(1)));
return;
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
this.con.sql(String.format("update %s set name = '%s', description = '%s' where id = %s",
this.tableName, this.getName(), this.getDescription(), this.getId()));
}
// Constructors
public Permission() {
super("permission");
}
public Permission(String id) {
this();
this.setId(id);
}
}
|
require "spec_helper"
describe "Should define lifecycle callbacks" do
def config_db
MyMongoid.configure do |config|
config.host = "127.0.0.1:27017"
config.database = "my_mongoid_test"
end
end
def clean_db
klass.collection.drop
end
before {
config_db
clean_db
}
let(:base) {
Class.new {
include MyMongoid::Document
def self.to_s
"Event"
end
}
}
describe "all hooks:" do
let(:klass) { base }
[:delete,:save,:create,:update].each do |name|
it "should declare before hook for #{name}" do
expect(klass).to respond_to("before_#{name}")
end
it "should declare around hook for #{name}" do
expect(klass).to respond_to("around_#{name}")
end
it "should declare after hook for #{name}" do
expect(klass).to respond_to("after_#{name}")
end
end
end
describe "only before hooks:" do
let(:klass) { base }
[:find,:initialize].each do |name|
it "should not declare before hook for #{name}" do
expect(klass).to_not respond_to("before_#{name}")
end
it "should not declare around hook for #{name}" do
expect(klass).to_not respond_to("around_#{name}")
end
it "should declare after hook for #{name}" do
expect(klass).to respond_to("after_#{name}")
end
end
end
describe "run create callbacks" do
let(:klass) {
Class.new(base) {
before_create :before_method
}
}
let(:record) {
klass.new({})
}
it "should run callbacks when saving a new record" do
expect(record).to receive(:before_method)
record.save
end
it "should run callbacks when creating a new record" do
expect_any_instance_of(klass).to receive(:before_method)
klass.create({})
end
end
describe "run save callbacks" do
let(:klass) {
Class.new(base) {
before_save :before_method
def before_method
end
}
}
it "should run callbacks when saving a new record" do
record = klass.new({})
expect(record).to receive(:before_method)
record.save
end
it "should run callbacks when saving a persisted record" do
record = klass.create({})
expect(record).to receive(:before_method)
record.save
end
end
end |
create table employee (
id serial primary key,
emp_name text,
admission timestamp,
salary integer,
emp_position integer not null references employee_pos(id)
);
|
import { NgModule } from '@angular/core';
import { SharedModule } from '../../shared/shared.module';
import { AppendPipe } from './appendPipe';
@NgModule({
imports: [ SharedModule ],
declarations: [ AppendPipe ],
exports: [ AppendPipe ]
})
export class PipesModule { }
|
package org.frutilla.examples;
import org.frutilla.annotations.Frutilla;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertTrue;
/**
* Examples using Frutilla with annotations.
*/
@RunWith(value = org.frutilla.FrutillaTestRunner.class)
public class FrutillaExamplesWithAnnotationTest {
@Frutilla(
Given = "a test with Frutilla annotations",
When = "it fails",
Then = {
"it shows the test description in the stacktrace",
"and in the logs"
}
)
@Test
public void testFailed() {
// assertTrue(false);
}
@Frutilla(
Given = "a test with Frutilla annotations",
When = "it fails due to error",
Then = {
"it shows the test description in the stacktrace",
"and in the logs"
}
)
@Test
public void testError() {
// throw new RuntimeException("forced error");
}
@Frutilla(
Given = "a test with Frutilla annotations",
When = "it passes",
Then = "it shows the test description in the logs"
)
@Test
public void testPassed() {
assertTrue(true);
}
}
|
using Nimbus.MessageContracts;
namespace Nimbus.Tests.Unit.InfrastructureTests.MessageContracts
{
public class SimpleEvent : IBusEvent
{
}
} |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInite8d4181ab44f138b11e93a232501f3a9
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInite8d4181ab44f138b11e93a232501f3a9', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInite8d4181ab44f138b11e93a232501f3a9', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInite8d4181ab44f138b11e93a232501f3a9::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInite8d4181ab44f138b11e93a232501f3a9::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiree8d4181ab44f138b11e93a232501f3a9($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequiree8d4181ab44f138b11e93a232501f3a9($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
}
}
|
/**
Copyright (c) 2007 Bill Orcutt (http://lilyapp.org, http://publicbeta.cx)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* Construct a new color object
* @class
* @constructor
* @extends LilyObjectBase
*/
function $color(arg)
{
var thisPtr=this;
var websafe=arg||false;
this.outlet1 = new this.outletClass("outlet1",this,"random color in hexadecimal");
this.inlet1=new this.inletClass("inlet1",this,"\"bang\" outputs random color");
// getRandomColor()
// Returns a random hex color. Passing true for safe returns a web safe color
//code hijacked from http://www.scottandrew.com/js/js_util.js
function getRandomColor(safe)
{
var vals,r,n;
if (safe)
{
v = "0369CF";
n = 3;
} else
{
v = "0123456789ABCDEF";
n = 6;
}
var c = "#";
for (var i=0;i<n;i++)
{
var ch = v.charAt(Math.round(Math.random() * (v.length-1)));
c += (safe)?ch+ch:ch;
}
return c;
}
function RGBtoHex(R,G,B) {
return toHex(R)+toHex(G)+toHex(B);
}
function toHex(N) {
if (N==null) return "00";
N=parseInt(N); if (N==0 || isNaN(N)) return "00";
N=Math.max(0,N); N=Math.min(N,255); N=Math.round(N);
return "0123456789ABCDEF".charAt((N-N%16)/16) + "0123456789ABCDEF".charAt(N%16);
}
function HSLtoRGB (h,s,l) {
if (s == 0) return [l,l,l] // achromatic
h=h*360/255;s/=255;l/=255;
if (l <= 0.5) rm2 = l + l * s;
else rm2 = l + s - l * s;
rm1 = 2.0 * l - rm2;
return [toRGB1(rm1, rm2, h + 120.0),toRGB1(rm1, rm2, h),toRGB1(rm1, rm2, h - 120.0)];
}
function toRGB1(rm1,rm2,rh) {
if (rh > 360.0) rh -= 360.0;
else if (rh < 0.0) rh += 360.0;
if (rh < 60.0) rm1 = rm1 + (rm2 - rm1) * rh / 60.0;
else if (rh < 180.0) rm1 = rm2;
else if (rh < 240.0) rm1 = rm1 + (rm2 - rm1) * (240.0 - rh) / 60.0;
return Math.round(rm1 * 255);
}
//output random color
this.inlet1["random"]=function() {
thisPtr.outlet1.doOutlet(getRandomColor(websafe));
}
//convert RGB to hex
this.inlet1["RGBtoHEX"]=function(rgb) {
var tmp = rgb.split(" ");
thisPtr.outlet1.doOutlet("#"+RGBtoHex(tmp[0],tmp[1],tmp[2]));
}
//convert HSL to hex
this.inlet1["HSLtoHEX"]=function(hsl) {
var tmp = hsl.split(" ");
var rgb = HSLtoRGB(tmp[0],tmp[1],tmp[2]);
thisPtr.outlet1.doOutlet("#"+RGBtoHex(rgb[0],rgb[1],rgb[2]));
}
return this;
}
var $colorMetaData = {
textName:"color",
htmlName:"color",
objectCategory:"Math",
objectSummary:"Various color related utilities",
objectArguments:"websafe colors only [false]"
} |
#region Microsoft Public License
/* This code is part of Xipton.Razor v3.0
* (c) Jaap Lamfers, 2013 - jaap.lamfers@xipton.net
* Licensed under the Microsoft Public License (MS-PL) http://www.microsoft.com/en-us/openness/licenses.aspx#MPL
*/
#endregion
namespace Xipton.Razor
{
/// <summary>
/// This interface redefines the Model property making it typed
/// </summary>
/// <typeparam name="TModel">The type of the model.</typeparam>
public interface ITemplate<out TModel> : ITemplate
{
new TModel Model { get; }
}
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->curpage = "JOHNMARKABRIL";
$this->load->model('About_model');
$this->load->model('Projects_model');
date_default_timezone_set("Asia/Manila");
$this->date = date("F d, Y");
$this->time = date("g:i A");
}
public function index()
{
$details = array (
'get_all_projects' => $this->Projects_model->get_all_projects(),
'get_all_about' => $this->About_model->get_all_about()
);
$data['content'] = $this->load->view('home', $details, TRUE);
$data['curpage'] = $this->curpage;
$this->load->view('template', $data);
}
}
|
using System.Collections.Generic;
using System.Threading.Tasks;
using MQTTnet.Server;
namespace MQTTnet.Tests.Mockups
{
public class TestServerStorage : IMqttServerStorage
{
public IList<MqttApplicationMessage> Messages = new List<MqttApplicationMessage>();
public Task SaveRetainedMessagesAsync(IList<MqttApplicationMessage> messages)
{
Messages = messages;
return Task.CompletedTask;
}
public Task<IList<MqttApplicationMessage>> LoadRetainedMessagesAsync()
{
return Task.FromResult(Messages);
}
}
}
|
Ext.provide('Phlexible.users.UserWindow');
Ext.require('Ext.ux.TabPanel');
Phlexible.users.UserWindow = Ext.extend(Ext.Window, {
title: Phlexible.users.Strings.user,
strings: Phlexible.users.Strings,
plain: true,
iconCls: 'p-user-user-icon',
width: 530,
minWidth: 530,
height: 400,
minHeight: 400,
layout: 'fit',
border: false,
modal: true,
initComponent: function () {
this.addEvents(
'save'
);
var panels = Phlexible.PluginRegistry.get('userEditPanels');
this.items = [{
xtype: 'uxtabpanel',
tabPosition: 'left',
tabStripWidth: 150,
activeTab: 0,
border: true,
deferredRender: false,
items: panels
}];
this.tbar = new Ext.Toolbar({
hidden: true,
cls: 'p-users-disabled',
items: [
'->',
{
iconCls: 'p-user-user_account-icon',
text: this.strings.account_is_disabled,
handler: function () {
this.getComponent(0).setActiveTab(4);
},
scope: this
}]
});
this.buttons = [
{
text: this.strings.cancel,
handler: this.close,
scope: this
},
{
text: this.strings.save,
iconCls: 'p-user-save-icon',
handler: this.save,
scope: this
}
];
Phlexible.users.UserWindow.superclass.initComponent.call(this);
},
show: function (user) {
this.user = user;
if (user.get('username')) {
this.setTitle(this.strings.user + ' "' + user.get('username') + '"');
} else {
this.setTitle(this.strings.new_user);
}
Phlexible.users.UserWindow.superclass.show.call(this);
this.getComponent(0).items.each(function(p) {
if (typeof p.loadUser === 'function') {
p.loadUser(user);
}
});
if (!user.get('enabled')) {
this.getTopToolbar().show();
}
},
save: function () {
var data = {};
var valid = true;
this.getComponent(0).items.each(function(p) {
if (typeof p.isValid === 'function' && typeof p.getData === 'function') {
if (p.isValid()) {
Ext.apply(data, p.getData());
} else {
valid = false;
}
}
});
if (!valid) {
return;
}
var url, method;
if (this.user.get('uid')) {
url = Phlexible.Router.generate('users_users_update', {userId: this.user.get('uid')});
method = 'PUT';
} else {
url = Phlexible.Router.generate('users_users_create');
method = 'POST';
}
Ext.Ajax.request({
url: url,
method: method,
params: data,
success: this.onSaveSuccess,
scope: this
});
},
onSaveSuccess: function (response) {
var data = Ext.decode(response.responseText);
if (data.success) {
this.uid = data.uid;
Phlexible.success(data.msg);
this.fireEvent('save', this.uid);
this.close();
} else {
Ext.Msg.alert('Failure', data.msg);
}
}
});
|
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet.h"
#include "walletdb.h"
#include "rpcserver.h"
#include "init.h"
#include "base58.h"
#include "txdb.h"
#include "stealth.h"
#include "sigringu.h"
#include "smessage.h"
#include <sstream>
using namespace json_spirit;
int64_t nWalletUnlockTime;
static CCriticalSection cs_nWalletUnlockTime;
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry);
static void accountingDeprecationCheck()
{
if (!GetBoolArg("-enableaccounts", false))
throw std::runtime_error(
"Accounting API is deprecated and will be removed in future.\n"
"It can easily result in negative or odd balances if misused or misunderstood, which has happened in the field.\n"
"If you still want to enable it, add to your config file enableaccounts=1\n");
if (GetBoolArg("-staking", true))
throw std::runtime_error("If you want to use accounting API, staking must be disabled, add to your config file staking=0\n");
}
std::string HelpRequiringPassphrase()
{
return pwalletMain->IsCrypted()
? "\nrequires wallet passphrase to be set with walletpassphrase first"
: "";
}
void EnsureWalletIsUnlocked()
{
if (pwalletMain->IsLocked())
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
if (fWalletUnlockStakingOnly)
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Wallet is unlocked for staking only.");
}
void WalletTxToJSON(const CWalletTx& wtx, Object& entry)
{
entry.push_back(Pair("version", wtx.nVersion));
int confirms = wtx.GetDepthInMainChain();
entry.push_back(Pair("confirmations", confirms));
if (wtx.IsCoinBase() || wtx.IsCoinStake())
entry.push_back(Pair("generated", true));
if (confirms > 0)
{
entry.push_back(Pair("blockhash", wtx.hashBlock.GetHex()));
entry.push_back(Pair("blockindex", wtx.nIndex));
int64_t nTime = 0;
if (nNodeMode == NT_FULL)
{
nTime = mapBlockIndex[wtx.hashBlock]->nTime;
} else
{
std::map<uint256, CBlockThinIndex*>::iterator mi = mapBlockThinIndex.find(wtx.hashBlock);
if (mi != mapBlockThinIndex.end())
nTime = (*mi).second->nTime;
};
entry.push_back(Pair("blocktime", nTime));
};
entry.push_back(Pair("txid", wtx.GetHash().GetHex()));
entry.push_back(Pair("time", (int64_t)wtx.GetTxTime()));
entry.push_back(Pair("timereceived", (int64_t)wtx.nTimeReceived));
BOOST_FOREACH(const PAIRTYPE(std::string,std::string)& item, wtx.mapValue)
entry.push_back(Pair(item.first, item.second));
}
std::string AccountFromValue(const Value& value)
{
std::string strAccount = value.get_str();
if (strAccount == "*")
throw JSONRPCError(RPC_WALLET_INVALID_ACCOUNT_NAME, "Invalid account name");
return strAccount;
}
Value getinfo(const Array& params, bool fHelp)
{
static const char *help = ""
"getinfo ['env']\n"
"Returns an object containing various state info.";
if (fHelp || params.size() > 1)
throw std::runtime_error(help);
proxyType proxy;
GetProxy(NET_IPV4, proxy);
Object obj, diff;
if (params.size() > 0)
{
if (params[0].get_str().compare("env") == 0)
{
obj.push_back(Pair("version", FormatFullVersion()));
obj.push_back(Pair("mode", std::string(GetNodeModeName(nNodeMode))));
obj.push_back(Pair("state", nNodeMode == NT_THIN ? std::string(GetNodeStateName(nNodeState)) : "Full Node"));
obj.push_back(Pair("protocolversion", (int)PROTOCOL_VERSION));
obj.push_back(Pair("testnet", fTestNet));
obj.push_back(Pair("debug", fDebug));
obj.push_back(Pair("debugpos", fDebugPoS));
obj.push_back(Pair("debugringsig", fDebugRingSig));
obj.push_back(Pair("datadir", GetDataDir().string()));
obj.push_back(Pair("walletfile", pwalletMain->strWalletFile));
obj.push_back(Pair("walletversion", pwalletMain->GetVersion()));
obj.push_back(Pair("walletcrypted", pwalletMain->IsCrypted()));
obj.push_back(Pair("walletlocked", pwalletMain->IsCrypted() ? pwalletMain->IsLocked() ? "Locked" : "Unlocked" : "Uncrypted"));
obj.push_back(Pair("walletunlockedto", pwalletMain->IsCrypted() ? !pwalletMain->IsLocked() ? strprintf("%d", (int64_t)nWalletUnlockTime / 1000).c_str() : "Locked" : "Uncrypted"));
obj.push_back(Pair("errors", GetWarnings("statusbar")));
return obj;
} else
{
throw std::runtime_error(help);
};
};
obj.push_back(Pair("version", FormatFullVersion()));
obj.push_back(Pair("mode", std::string(GetNodeModeName(nNodeMode))));
obj.push_back(Pair("state", nNodeMode == NT_THIN ? std::string(GetNodeStateName(nNodeState)) : "Full Node"));
obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION));
obj.push_back(Pair("walletversion", pwalletMain->GetVersion()));
obj.push_back(Pair("balance", ValueFromAmount(pwalletMain->GetBalance())));
obj.push_back(Pair("eclipsebalance", ValueFromAmount(pwalletMain->GetEclipseBalance())));
obj.push_back(Pair("newmint", ValueFromAmount(pwalletMain->GetNewMint())));
obj.push_back(Pair("stake", ValueFromAmount(pwalletMain->GetStake())));
obj.push_back(Pair("reserve", ValueFromAmount(nReserveBalance)));
obj.push_back(Pair("blocks", (int)nBestHeight));
if (nNodeMode == NT_THIN)
obj.push_back(Pair("filteredblocks", (int)nHeightFilteredNeeded));
obj.push_back(Pair("timeoffset", (int64_t)GetTimeOffset()));
if (nNodeMode == NT_FULL)
obj.push_back(Pair("moneysupply", ValueFromAmount(pindexBest->nMoneySupply)));
obj.push_back(Pair("connections", (int)vNodes.size()));
obj.push_back(Pair("datareceived", bytesReadable(CNode::GetTotalBytesRecv())));
obj.push_back(Pair("datasent", bytesReadable(CNode::GetTotalBytesSent())));
obj.push_back(Pair("proxy", (proxy.IsValid() ? proxy.ToStringIPPort() : std::string())));
obj.push_back(Pair("ip", addrSeenByPeer.ToStringIP()));
if (nNodeMode == NT_FULL)
{
diff.push_back(Pair("proof-of-work", GetDifficulty()));
diff.push_back(Pair("proof-of-stake", GetDifficulty(GetLastBlockIndex(pindexBest, true))));
} else
{
diff.push_back(Pair("proof-of-work", GetHeaderDifficulty()));
diff.push_back(Pair("proof-of-stake", GetHeaderDifficulty(GetLastBlockThinIndex(pindexBestHeader, true))));
};
obj.push_back(Pair("difficulty", diff));
obj.push_back(Pair("testnet", fTestNet));
obj.push_back(Pair("keypoolsize", (int)pwalletMain->GetKeyPoolSize()));
obj.push_back(Pair("paytxfee", ValueFromAmount(nTransactionFee)));
obj.push_back(Pair("mininput", ValueFromAmount(nMinimumInputValue)));
if (pwalletMain->IsCrypted())
obj.push_back(Pair("unlocked_until", (int64_t)nWalletUnlockTime / 1000));
obj.push_back(Pair("errors", GetWarnings("statusbar")));
return obj;
}
Value getnewpubkey(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"getnewpubkey [account]\n"
"Returns new public key for coinbase generation.");
// Parse the account first so we don't generate a key if there's an error
std::string strAccount;
if (params.size() > 0)
{
strAccount = AccountFromValue(params[0]);
};
if (pwalletMain->IsLocked())
throw std::runtime_error("Wallet is locked.");
// Generate a new key that is added to wallet
CPubKey newKey;
if (0 != pwalletMain->NewKeyFromAccount(newKey))
throw std::runtime_error("NewKeyFromAccount failed.");
CKeyID keyID = newKey.GetID();
pwalletMain->SetAddressBookName(keyID, strAccount, NULL, true, true);
return HexStr(newKey.begin(), newKey.end());
}
Value getnewaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"getnewaddress [account]\n"
"Returns a new EclipseCrypto address for receiving payments. "
"If [account] is specified, it is added to the address book "
"so payments received with the address will be credited to [account].");
// Parse the account first so we don't generate a key if there's an error
std::string strAccount;
if (params.size() > 0)
strAccount = AccountFromValue(params[0]);
// Generate a new key that is added to wallet
CPubKey newKey;
if (0 != pwalletMain->NewKeyFromAccount(newKey))
throw std::runtime_error("NewKeyFromAccount failed.");
CKeyID keyID = newKey.GetID();
pwalletMain->SetAddressBookName(keyID, strAccount, NULL, true, true);
return CBitcoinAddress(keyID).ToString();
}
Value getnewextaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"getnewextaddress [label]\n"
"Returns a new EclipseCrypto ext address for receiving payments."
"If [label] is specified, it is added to the address book. ");
std::string strLabel;
if (params.size() > 0)
strLabel = params[0].get_str();
// Generate a new key that is added to wallet
CStoredExtKey *sek = new CStoredExtKey();
if (0 != pwalletMain->NewExtKeyFromAccount(strLabel, sek))
{
delete sek;
throw std::runtime_error("NewExtKeyFromAccount failed.");
};
pwalletMain->SetAddressBookName(sek->kp, strLabel, NULL, true, true);
// - CBitcoinAddress displays public key only
return CBitcoinAddress(sek->kp).ToString();
}
CBitcoinAddress GetAccountAddress(std::string strAccount, bool bForceNew=false)
{
CWalletDB walletdb(pwalletMain->strWalletFile);
CAccount account;
walletdb.ReadAccount(strAccount, account);
bool bKeyUsed = false;
// Check if the current key has been used
if (account.vchPubKey.IsValid())
{
CScript scriptPubKey;
scriptPubKey.SetDestination(account.vchPubKey.GetID());
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin();
it != pwalletMain->mapWallet.end() && account.vchPubKey.IsValid();
++it)
{
const CWalletTx& wtx = (*it).second;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
if (txout.scriptPubKey == scriptPubKey)
bKeyUsed = true;
}
}
// Generate a new key
if (!account.vchPubKey.IsValid() || bForceNew || bKeyUsed)
{
// Generate a new key that is added to wallet
CStoredExtKey *sek = new CStoredExtKey();
if (0 != pwalletMain->NewExtKeyFromAccount(strAccount, sek))
{
delete sek;
throw std::runtime_error("NewExtKeyFromAccount failed.");
};
account.vchPubKey = sek->kp.pubkey;
pwalletMain->SetAddressBookName(account.vchPubKey.GetID(), strAccount);
walletdb.WriteAccount(strAccount, account);
}
return CBitcoinAddress(account.vchPubKey.GetID());
}
Value getaccountaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw std::runtime_error(
"getaccountaddress <account>\n"
"Returns the current EclipseCrypto address for receiving payments to this account.");
// Parse the account first so we don't generate a key if there's an error
std::string strAccount = AccountFromValue(params[0]);
Value ret;
ret = GetAccountAddress(strAccount).ToString();
return ret;
}
Value setaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw std::runtime_error(
"setaccount <eclipsecryptoaddress> <account>\n"
"Sets the account associated with the given address.");
CBitcoinAddress address(params[0].get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid EclipseCrypto address");
std::string strAccount;
if (params.size() > 1)
strAccount = AccountFromValue(params[1]);
// Detect when changing the account of an address that is the 'unused current key' of another account:
if (pwalletMain->mapAddressBook.count(address.Get()))
{
std::string strOldAccount = pwalletMain->mapAddressBook[address.Get()];
if (address == GetAccountAddress(strOldAccount))
GetAccountAddress(strOldAccount, true);
};
pwalletMain->SetAddressBookName(address.Get(), strAccount);
return Value::null;
}
Value getaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw std::runtime_error(
"getaccount <eclipsecryptoaddress>\n"
"Returns the account associated with the given address.");
CBitcoinAddress address(params[0].get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid EclipseCrypto address");
std::string strAccount;
std::map<CTxDestination, std::string>::iterator mi = pwalletMain->mapAddressBook.find(address.Get());
if (mi != pwalletMain->mapAddressBook.end() && !(*mi).second.empty())
strAccount = (*mi).second;
return strAccount;
}
Value getaddressesbyaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw std::runtime_error(
"getaddressesbyaccount <account>\n"
"Returns the list of addresses for the given account.");
std::string strAccount = AccountFromValue(params[0]);
// Find all addresses that have the given account
Array ret;
BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, std::string)& item, pwalletMain->mapAddressBook)
{
const CBitcoinAddress& address = item.first;
const std::string& strName = item.second;
if (strName == strAccount)
ret.push_back(address.ToString());
}
return ret;
}
Value sendtoaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 5)
throw std::runtime_error(
"sendtoaddress <eclipsecryptoaddress> <amount> [comment] [comment-to] [narration]\n" // Exchanges use the comments internally...
"sendtoaddress <eclipsecryptoaddress> <amount> [narration]\n"
"<amount> is a real and is rounded to the nearest 0.000001"
+ HelpRequiringPassphrase());
EnsureWalletIsUnlocked();
if (params[0].get_str().length() > 75
&& IsStealthAddress(params[0].get_str()))
return sendtostealthaddress(params, false);
std::string sAddrIn = params[0].get_str();
CBitcoinAddress address(sAddrIn);
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid EclipseCrypto address");
// Amount
int64_t nAmount = AmountFromValue(params[1]);
CWalletTx wtx;
std::string sNarr;
// Wallet comments
if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
wtx.mapValue["comment"] = params[2].get_str();
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
wtx.mapValue["to"] = params[3].get_str();
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
sNarr = params[4].get_str();
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
std::string strError = pwalletMain->SendMoneyToDestination(address.Get(), nAmount, sNarr, wtx);
if (strError != "")
throw JSONRPCError(RPC_WALLET_ERROR, strError);
return wtx.GetHash().GetHex();
}
Value listaddressgroupings(const Array& params, bool fHelp)
{
if (fHelp)
throw std::runtime_error(
"listaddressgroupings\n"
"Lists groups of addresses which have had their common ownership\n"
"made public by common use as inputs or as the resulting change\n"
"in past transactions");
Array jsonGroupings;
std::map<CTxDestination, int64_t> balances = pwalletMain->GetAddressBalances();
BOOST_FOREACH(std::set<CTxDestination> grouping, pwalletMain->GetAddressGroupings())
{
Array jsonGrouping;
BOOST_FOREACH(CTxDestination address, grouping)
{
Array addressInfo;
addressInfo.push_back(CBitcoinAddress(address).ToString());
addressInfo.push_back(ValueFromAmount(balances[address]));
{
LOCK(pwalletMain->cs_wallet);
if (pwalletMain->mapAddressBook.find(CBitcoinAddress(address).Get()) != pwalletMain->mapAddressBook.end())
addressInfo.push_back(pwalletMain->mapAddressBook.find(CBitcoinAddress(address).Get())->second);
} // cs_wallet
jsonGrouping.push_back(addressInfo);
};
jsonGroupings.push_back(jsonGrouping);
};
return jsonGroupings;
}
Value signmessage(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 2)
throw std::runtime_error(
"signmessage <eclipsecryptoaddress> <message>\n"
"Sign a message with the private key of an address");
EnsureWalletIsUnlocked();
std::string strAddress = params[0].get_str();
std::string strMessage = params[1].get_str();
CBitcoinAddress addr(strAddress);
if (!addr.IsValid())
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid address");
CKeyID keyID;
if (!addr.GetKeyID(keyID))
throw JSONRPCError(RPC_TYPE_ERROR, "Address does not refer to key");
CKey key;
if (!pwalletMain->GetKey(keyID, key))
throw JSONRPCError(RPC_WALLET_ERROR, "Private key not available");
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << strMessage;
std::vector<unsigned char> vchSig;
if (!key.SignCompact(Hash(ss.begin(), ss.end()), vchSig))
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Sign failed");
return EncodeBase64(&vchSig[0], vchSig.size());
}
Value verifymessage(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 3)
throw std::runtime_error(
"verifymessage <eclipsecryptoaddress> <signature> <message>\n"
"Verify a signed message");
std::string strAddress = params[0].get_str();
std::string strSign = params[1].get_str();
std::string strMessage = params[2].get_str();
CBitcoinAddress addr(strAddress);
if (!addr.IsValid())
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid address");
CKeyID keyID;
if (!addr.GetKeyID(keyID))
throw JSONRPCError(RPC_TYPE_ERROR, "Address does not refer to key");
bool fInvalid = false;
std::vector<unsigned char> vchSig = DecodeBase64(strSign.c_str(), &fInvalid);
if (fInvalid)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Malformed base64 encoding");
CHashWriter ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << strMessage;
CPubKey pubkey;
if (!pubkey.RecoverCompact(ss.GetHash(), vchSig))
return false;
return (pubkey.GetID() == keyID);
}
Value getreceivedbyaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw std::runtime_error(
"getreceivedbyaddress <eclipsecryptoaddress> [minconf=1]\n"
"Returns the total amount received by <eclipsecryptoaddress> in transactions with at least [minconf] confirmations.");
// Bitcoin address
CBitcoinAddress address = CBitcoinAddress(params[0].get_str());
CScript scriptPubKey;
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid EclipseCrypto address");
scriptPubKey.SetDestination(address.Get());
if (!IsMine(*pwalletMain,scriptPubKey))
return (double)0.0;
// Minimum confirmations
int nMinDepth = 1;
if (params.size() > 1)
nMinDepth = params[1].get_int();
// Tally
int64_t nAmount = 0;
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (wtx.IsCoinBase() || wtx.IsCoinStake() || !wtx.IsFinal())
continue;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
if (txout.scriptPubKey == scriptPubKey)
if (wtx.GetDepthInMainChain() >= nMinDepth)
nAmount += txout.nValue;
}
return ValueFromAmount(nAmount);
}
void GetAccountAddresses(std::string strAccount, std::set<CTxDestination>& setAddress)
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination, std::string)& item, pwalletMain->mapAddressBook)
{
const CTxDestination& address = item.first;
const std::string& strName = item.second;
if (strName == strAccount)
setAddress.insert(address);
};
}
Value getreceivedbyaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw std::runtime_error(
"getreceivedbyaccount <account> [minconf=1]\n"
"Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.");
accountingDeprecationCheck();
// Minimum confirmations
int nMinDepth = 1;
if (params.size() > 1)
nMinDepth = params[1].get_int();
// Get the set of pub keys assigned to account
std::string strAccount = AccountFromValue(params[0]);
std::set<CTxDestination> setAddress;
GetAccountAddresses(strAccount, setAddress);
// Tally
int64_t nAmount = 0;
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (wtx.IsCoinBase() || wtx.IsCoinStake() || !wtx.IsFinal())
continue;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
{
CTxDestination address;
if (ExtractDestination(txout.scriptPubKey, address) && IsDestMine(*pwalletMain, address) && setAddress.count(address))
if (wtx.GetDepthInMainChain() >= nMinDepth)
nAmount += txout.nValue;
};
};
return (double)nAmount / (double)COIN;
}
int64_t GetAccountBalance(CWalletDB& walletdb, const std::string& strAccount, int nMinDepth)
{
int64_t nBalance = 0;
// Tally wallet transactions
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (!wtx.IsFinal() || wtx.GetDepthInMainChain() < 0)
continue;
int64_t nReceived, nSent, nFee;
wtx.GetAccountAmounts(strAccount, nReceived, nSent, nFee);
if (nReceived != 0 && wtx.GetDepthInMainChain() >= nMinDepth && wtx.GetBlocksToMaturity() == 0)
nBalance += nReceived;
nBalance -= nSent + nFee;
}
// Tally internal accounting entries
nBalance += walletdb.GetAccountCreditDebit(strAccount);
return nBalance;
}
int64_t GetAccountBalance(const std::string& strAccount, int nMinDepth)
{
CWalletDB walletdb(pwalletMain->strWalletFile);
return GetAccountBalance(walletdb, strAccount, nMinDepth);
}
Value getbalance(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw std::runtime_error(
"getbalance [account] [minconf=1]\n"
"If [account] is not specified, returns the server's total available balance.\n"
"If [account] is specified, returns the balance in the account.");
if (params.size() == 0)
return ValueFromAmount(pwalletMain->GetBalance());
int nMinDepth = 1;
if (params.size() > 1)
nMinDepth = params[1].get_int();
if (params[0].get_str() == "*")
{
// Calculate total balance a different way from GetBalance()
// (GetBalance() sums up all unspent TxOuts)
// getbalance and getbalance '*' 0 should return the same number.
int64_t nBalance = 0;
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (!wtx.IsTrusted())
continue;
int64_t allFee;
std::string strSentAccount;
std::list<std::pair<CTxDestination, int64_t> > listReceived;
std::list<std::pair<CTxDestination, int64_t> > listSent;
wtx.GetAmounts(listReceived, listSent, allFee, strSentAccount);
if (wtx.GetDepthInMainChain() >= nMinDepth && wtx.GetBlocksToMaturity() == 0)
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination,int64_t)& r, listReceived)
nBalance += r.second;
};
BOOST_FOREACH(const PAIRTYPE(CTxDestination,int64_t)& r, listSent)
nBalance -= r.second;
nBalance -= allFee;
};
return ValueFromAmount(nBalance);
};
accountingDeprecationCheck();
std::string strAccount = AccountFromValue(params[0]);
int64_t nBalance = GetAccountBalance(strAccount, nMinDepth);
return ValueFromAmount(nBalance);
}
Value movecmd(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 3 || params.size() > 5)
throw std::runtime_error(
"move <fromaccount> <toaccount> <amount> [minconf=1] [comment]\n"
"Move from one account in your wallet to another.");
accountingDeprecationCheck();
std::string strFrom = AccountFromValue(params[0]);
std::string strTo = AccountFromValue(params[1]);
int64_t nAmount = AmountFromValue(params[2]);
if (params.size() > 3)
// unused parameter, used to be nMinDepth, keep type-checking it though
(void)params[3].get_int();
std::string strComment;
if (params.size() > 4)
strComment = params[4].get_str();
CWalletDB walletdb(pwalletMain->strWalletFile);
if (!walletdb.TxnBegin())
throw JSONRPCError(RPC_DATABASE_ERROR, "database error");
int64_t nNow = GetAdjustedTime();
// Debit
CAccountingEntry debit;
debit.nOrderPos = pwalletMain->IncOrderPosNext(&walletdb);
debit.strAccount = strFrom;
debit.nCreditDebit = -nAmount;
debit.nTime = nNow;
debit.strOtherAccount = strTo;
debit.strComment = strComment;
walletdb.WriteAccountingEntry(debit);
// Credit
CAccountingEntry credit;
credit.nOrderPos = pwalletMain->IncOrderPosNext(&walletdb);
credit.strAccount = strTo;
credit.nCreditDebit = nAmount;
credit.nTime = nNow;
credit.strOtherAccount = strFrom;
credit.strComment = strComment;
walletdb.WriteAccountingEntry(credit);
if (!walletdb.TxnCommit())
throw JSONRPCError(RPC_DATABASE_ERROR, "database error");
return true;
}
Value sendfrom(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 3 || params.size() > 7)
throw std::runtime_error(
"sendfrom <fromaccount> <toeclipsecryptoaddress> <amount> [minconf=1] [comment] [comment-to] [narration] \n"
"<amount> is a real and is rounded to the nearest 0.000001"
+ HelpRequiringPassphrase());
EnsureWalletIsUnlocked();
std::string strAccount = AccountFromValue(params[0]);
CBitcoinAddress address(params[1].get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid EclipseCrypto address");
int64_t nAmount = AmountFromValue(params[2]);
int nMinDepth = 1;
if (params.size() > 3)
nMinDepth = params[3].get_int();
CWalletTx wtx;
wtx.strFromAccount = strAccount;
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
wtx.mapValue["comment"] = params[4].get_str();
if (params.size() > 5 && params[5].type() != null_type && !params[5].get_str().empty())
wtx.mapValue["to"] = params[5].get_str();
std::string sNarr;
if (params.size() > 6 && params[6].type() != null_type && !params[6].get_str().empty())
sNarr = params[6].get_str();
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
// Check funds
int64_t nBalance = GetAccountBalance(strAccount, nMinDepth);
if (nAmount > nBalance)
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds");
// Send
std::string strError = pwalletMain->SendMoneyToDestination(address.Get(), nAmount, sNarr, wtx);
if (strError != "")
throw JSONRPCError(RPC_WALLET_ERROR, strError);
return wtx.GetHash().GetHex();
}
Value sendmany(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 4)
throw std::runtime_error(
"sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]\n"
"amounts are double-precision floating point numbers"
+ HelpRequiringPassphrase());
std::string strAccount = AccountFromValue(params[0]);
Object sendTo = params[1].get_obj();
int nMinDepth = 1;
if (params.size() > 2)
nMinDepth = params[2].get_int();
CWalletTx wtx;
wtx.strFromAccount = strAccount;
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
wtx.mapValue["comment"] = params[3].get_str();
std::set<CBitcoinAddress> setAddress;
std::vector<std::pair<CScript, int64_t> > vecSend;
int64_t totalAmount = 0;
BOOST_FOREACH(const Pair& s, sendTo)
{
CBitcoinAddress address(s.name_);
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, std::string("Invalid EclipseCrypto address: ")+s.name_);
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid parameter, duplicated address: ")+s.name_);
setAddress.insert(address);
CScript scriptPubKey;
scriptPubKey.SetDestination(address.Get());
int64_t nAmount = AmountFromValue(s.value_);
totalAmount += nAmount;
vecSend.push_back(make_pair(scriptPubKey, nAmount));
};
EnsureWalletIsUnlocked();
// Check funds
int64_t nBalance = GetAccountBalance(strAccount, nMinDepth);
if (totalAmount > nBalance)
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds");
// Send
int64_t nFeeRequired = 0;
int nChangePos;
bool fCreated = pwalletMain->CreateTransaction(vecSend, wtx, nFeeRequired, nChangePos);
if (!fCreated)
{
if (totalAmount + nFeeRequired > pwalletMain->GetBalance())
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Insufficient funds");
throw JSONRPCError(RPC_WALLET_ERROR, "Transaction creation failed");
}
if (!pwalletMain->CommitTransaction(wtx))
throw JSONRPCError(RPC_WALLET_ERROR, "Transaction commit failed");
return wtx.GetHash().GetHex();
}
/**
* Used by addmultisigaddress / createmultisig:
*/
CScript _createmultisig_redeemScript(const Array& params)
{
int nRequired = params[0].get_int();
const Array& keys = params[1].get_array();
// Gather public keys
if (nRequired < 1)
throw std::runtime_error("a multisignature address must require at least one key to redeem");
if ((int)keys.size() < nRequired)
throw std::runtime_error(
strprintf("not enough keys supplied "
"(got %u keys, but need at least %d to redeem)", keys.size(), nRequired));
if (keys.size() > 16)
throw std::runtime_error("Number of addresses involved in the multisignature address creation > 16\nReduce the number");
std::vector<CPubKey> pubkeys;
pubkeys.resize(keys.size());
for (unsigned int i = 0; i < keys.size(); i++)
{
const std::string& ks = keys[i].get_str();
// Case 1: Bitcoin address and we have full public key:
CBitcoinAddress address(ks);
if (pwalletMain && address.IsValid())
{
CKeyID keyID;
if (!address.GetKeyID(keyID))
throw std::runtime_error(
strprintf("%s does not refer to a key",ks));
CPubKey vchPubKey;
if (!pwalletMain->GetPubKey(keyID, vchPubKey))
throw std::runtime_error(
strprintf("no full public key for address %s",ks));
if (!vchPubKey.IsFullyValid())
throw std::runtime_error(" Invalid public key: "+ks);
pubkeys[i] = vchPubKey;
}
// Case 2: hex public key
else
if (IsHex(ks))
{
CPubKey vchPubKey(ParseHex(ks));
if (!vchPubKey.IsFullyValid())
throw std::runtime_error(" Invalid public key: "+ks);
pubkeys[i] = vchPubKey;
}
else
{
throw std::runtime_error(" Invalid public key: "+ks);
}
}
CScript result = GetScriptForMultisig(nRequired, pubkeys);
if (result.size() > MAX_SCRIPT_ELEMENT_SIZE)
throw std::runtime_error(
strprintf("redeemScript exceeds size limit: %d > %d", result.size(), MAX_SCRIPT_ELEMENT_SIZE));
return result;
}
Value addmultisigaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 3)
{
std::string msg = "addmultisigaddress <nrequired> <'[\"key\",\"key\"]'> [account]\n"
"Add a nrequired-to-sign multisignature address to the wallet\"\n"
"each key is a EclipseCrypto address or hex-encoded public key\n"
"If [account] is specified, assign address to [account].";
throw std::runtime_error(msg);
};
std::string strAccount;
if (params.size() > 2)
strAccount = AccountFromValue(params[2]);
// Construct using pay-to-script-hash:
CScript inner = _createmultisig_redeemScript(params);
CScriptID innerID(inner);
CBitcoinAddress address(innerID);
if (!pwalletMain->AddCScript(inner))
throw std::runtime_error("AddCScript() failed");
pwalletMain->SetAddressBookName(innerID, strAccount);
return CBitcoinAddress(innerID).ToString();
}
Value createmultisig(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 3)
{
std::string msg = "addmultisigaddress <nrequired> <'[\"key\",\"key\"]'> [account]\n"
"\nCreates a multi-signature address with n signature of m keys required.\n"
"Returns a json object with the address and redeemScript.\n"
"Each key is a EclipseCrypto address or hex-encoded public key.\n"
"\nArguments:\n"
"1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.\n"
"2. \"keys\" (string, required) A json array of keys which are bitcoin addresses or hex-encoded public keys\n"
" [\n"
" \"key\" (string) bitcoin address or hex-encoded public key\n"
" ,...\n"
" ]\n"
"\nResult:\n"
"{\n"
" \"address\":\"multisigaddress\", (string) The value of the new multisig address.\n"
" \"redeemScript\":\"script\" (string) The string value of the hex-encoded redemption script.\n"
"}\n"
;
throw std::runtime_error(msg);
};
// Construct using pay-to-script-hash:
CScript inner = _createmultisig_redeemScript(params);
CScriptID innerID(inner);
CBitcoinAddress address(innerID);
Object result;
result.push_back(Pair("address", address.ToString()));
result.push_back(Pair("redeemScript", HexStr(inner.begin(), inner.end())));
return result;
}
Value addredeemscript(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
{
std::string msg = "addredeemscript <redeemScript> [account]\n"
"Add a P2SH address with a specified redeemScript to the wallet.\n"
"If [account] is specified, assign address to [account].";
throw std::runtime_error(msg);
};
std::string strAccount;
if (params.size() > 1)
strAccount = AccountFromValue(params[1]);
// Construct using pay-to-script-hash:
std::vector<unsigned char> innerData = ParseHexV(params[0], "redeemScript");
CScript inner(innerData.begin(), innerData.end());
CScriptID innerID = inner.GetID();
if (!pwalletMain->AddCScript(inner))
throw std::runtime_error("AddCScript() failed");
pwalletMain->SetAddressBookName(innerID, strAccount);
return CBitcoinAddress(innerID).ToString();
}
struct tallyitem
{
int64_t nAmount;
int nConf;
tallyitem()
{
nAmount = 0;
nConf = std::numeric_limits<int>::max();
}
};
Value ListReceived(const Array& params, bool fByAccounts)
{
// Minimum confirmations
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
// Whether to include empty accounts
bool fIncludeEmpty = false;
if (params.size() > 1)
fIncludeEmpty = params[1].get_bool();
// Tally
std::map<CBitcoinAddress, tallyitem> mapTally;
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (wtx.IsCoinBase() || wtx.IsCoinStake() || !wtx.IsFinal())
continue;
int nDepth = wtx.GetDepthInMainChain();
if (nDepth < nMinDepth)
continue;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
{
CTxDestination address;
if (!ExtractDestination(txout.scriptPubKey, address) || !IsDestMine(*pwalletMain, address))
continue;
tallyitem& item = mapTally[address];
item.nAmount += txout.nValue;
item.nConf = std::min(item.nConf, nDepth);
}
}
// Reply
Array ret;
std::map<std::string, tallyitem> mapAccountTally;
BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, std::string)& item, pwalletMain->mapAddressBook)
{
const CBitcoinAddress& address = item.first;
const std::string& strAccount = item.second;
std::map<CBitcoinAddress, tallyitem>::iterator it = mapTally.find(address);
if (it == mapTally.end() && !fIncludeEmpty)
continue;
int64_t nAmount = 0;
int nConf = std::numeric_limits<int>::max();
if (it != mapTally.end())
{
nAmount = (*it).second.nAmount;
nConf = (*it).second.nConf;
}
if (fByAccounts)
{
tallyitem& item = mapAccountTally[strAccount];
item.nAmount += nAmount;
item.nConf = std::min(item.nConf, nConf);
} else
{
Object obj;
obj.push_back(Pair("address", address.ToString()));
obj.push_back(Pair("account", strAccount));
obj.push_back(Pair("amount", ValueFromAmount(nAmount)));
obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf)));
ret.push_back(obj);
};
};
if (fByAccounts)
{
for (std::map<std::string, tallyitem>::iterator it = mapAccountTally.begin(); it != mapAccountTally.end(); ++it)
{
int64_t nAmount = (*it).second.nAmount;
int nConf = (*it).second.nConf;
Object obj;
obj.push_back(Pair("account", (*it).first));
obj.push_back(Pair("amount", ValueFromAmount(nAmount)));
obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf)));
ret.push_back(obj);
};
};
return ret;
}
Value listreceivedbyaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw std::runtime_error(
"listreceivedbyaddress [minconf=1] [includeempty=false]\n"
"[minconf] is the minimum number of confirmations before payments are included.\n"
"[includeempty] whether to include addresses that haven't received any payments.\n"
"Returns an array of objects containing:\n"
" \"address\" : receiving address\n"
" \"account\" : the account of the receiving address\n"
" \"amount\" : total amount received by the address\n"
" \"confirmations\" : number of confirmations of the most recent transaction included");
return ListReceived(params, false);
}
Value listreceivedbyaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw std::runtime_error(
"listreceivedbyaccount [minconf=1] [includeempty=false]\n"
"[minconf] is the minimum number of confirmations before payments are included.\n"
"[includeempty] whether to include accounts that haven't received any payments.\n"
"Returns an array of objects containing:\n"
" \"account\" : the account of the receiving addresses\n"
" \"amount\" : total amount received by addresses with this account\n"
" \"confirmations\" : number of confirmations of the most recent transaction included");
accountingDeprecationCheck();
return ListReceived(params, true);
}
static void MaybePushAddress(Object & entry, const CTxDestination &dest)
{
CBitcoinAddress addr;
if (addr.Set(dest))
entry.push_back(Pair("address", addr.ToString()));
}
void ListTransactions(const CWalletTx& wtx, const std::string& strAccount, int nMinDepth, bool fLong, Array& ret)
{
int64_t nFee;
std::string strSentAccount;
std::list<std::pair<CTxDestination, int64_t> > listReceived;
std::list<std::pair<CTxDestination, int64_t> > listSent;
wtx.GetAmounts(listReceived, listSent, nFee, strSentAccount);
bool fAllAccounts = (strAccount == std::string("*"));
// Sent
if ((!wtx.IsCoinStake()) && (!listSent.empty() || nFee != 0) && (fAllAccounts || strAccount == strSentAccount))
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64_t)& s, listSent)
{
Object entry;
entry.push_back(Pair("account", strSentAccount));
MaybePushAddress(entry, s.first);
entry.push_back(Pair("category", "send"));
entry.push_back(Pair("amount", ValueFromAmount(-s.second)));
entry.push_back(Pair("fee", ValueFromAmount(-nFee)));
if (fLong)
WalletTxToJSON(wtx, entry);
ret.push_back(entry);
};
};
// Received
if (listReceived.size() > 0 && wtx.GetDepthInMainChain() >= nMinDepth)
{
bool stop = false;
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64_t)& r, listReceived)
{
std::string account;
if (pwalletMain->mapAddressBook.count(r.first))
account = pwalletMain->mapAddressBook[r.first];
if (fAllAccounts || (account == strAccount))
{
Object entry;
entry.push_back(Pair("account", account));
MaybePushAddress(entry, r.first);
if (wtx.IsCoinBase() || wtx.IsCoinStake())
{
if (wtx.GetDepthInMainChain() < 1)
entry.push_back(Pair("category", "orphan"));
else
if (wtx.GetBlocksToMaturity() > 0)
entry.push_back(Pair("category", "immature"));
else
entry.push_back(Pair("category", "generate"));
} else
{
entry.push_back(Pair("category", "receive"));
};
if (!wtx.IsCoinStake())
{
entry.push_back(Pair("amount", ValueFromAmount(r.second)));
} else
{
entry.push_back(Pair("amount", ValueFromAmount(-nFee)));
stop = true; // only one coinstake output
};
if (fLong)
WalletTxToJSON(wtx, entry);
ret.push_back(entry);
};
if (stop)
break;
};
};
}
void AcentryToJSON(const CAccountingEntry& acentry, const std::string& strAccount, Array& ret)
{
bool fAllAccounts = (strAccount == std::string("*"));
if (fAllAccounts || acentry.strAccount == strAccount)
{
Object entry;
entry.push_back(Pair("account", acentry.strAccount));
entry.push_back(Pair("category", "move"));
entry.push_back(Pair("time", (int64_t)acentry.nTime));
entry.push_back(Pair("amount", ValueFromAmount(acentry.nCreditDebit)));
entry.push_back(Pair("otheraccount", acentry.strOtherAccount));
entry.push_back(Pair("comment", acentry.strComment));
ret.push_back(entry);
};
}
Value listtransactions(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 4)
throw std::runtime_error(
"listtransactions [account] [count=10] [from=0] [show_coinstake=1]\n"
"Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].");
// listtransactions "*" 20 0 0
std::string strAccount = "*";
if (params.size() > 0)
strAccount = params[0].get_str();
int nCount = 10;
if (params.size() > 1)
nCount = params[1].get_int();
int nFrom = 0;
if (params.size() > 2)
nFrom = params[2].get_int();
bool fShowCoinstake = true;
if (params.size() > 3)
{
std::string value = params[3].get_str();
if (IsStringBoolNegative(value))
fShowCoinstake = false;
};
if (nCount < 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Negative count");
if (nFrom < 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Negative from");
Array ret;
std::list<CAccountingEntry> acentries;
CWallet::TxItems txOrdered = pwalletMain->OrderedTxItems(acentries, strAccount, fShowCoinstake);
// iterate backwards until we have nCount items to return:
for (CWallet::TxItems::reverse_iterator it = txOrdered.rbegin(); it != txOrdered.rend(); ++it)
{
CWalletTx *const pwtx = (*it).second.first;
if (pwtx != 0)
ListTransactions(*pwtx, strAccount, 0, true, ret);
CAccountingEntry *const pacentry = (*it).second.second;
if (pacentry != 0)
AcentryToJSON(*pacentry, strAccount, ret);
if ((int)ret.size() >= (nCount+nFrom)) break;
}
// ret is newest to oldest
if (nFrom > (int)ret.size())
nFrom = ret.size();
if ((nFrom + nCount) > (int)ret.size())
nCount = ret.size() - nFrom;
Array::iterator first = ret.begin();
std::advance(first, nFrom);
Array::iterator last = ret.begin();
std::advance(last, nFrom+nCount);
if (last != ret.end()) ret.erase(last, ret.end());
if (first != ret.begin()) ret.erase(ret.begin(), first);
std::reverse(ret.begin(), ret.end()); // Return oldest to newest
return ret;
}
Value listaccounts(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"listaccounts [minconf=1]\n"
"Returns Object that has account names as keys, account balances as values.");
accountingDeprecationCheck();
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
std::map<std::string, int64_t> mapAccountBalances;
BOOST_FOREACH(const PAIRTYPE(CTxDestination, std::string)& entry, pwalletMain->mapAddressBook)
{
if (IsDestMine(*pwalletMain, entry.first)) // This address belongs to me
mapAccountBalances[entry.second] = 0;
};
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
int64_t nFee;
std::string strSentAccount;
std::list<std::pair<CTxDestination, int64_t> > listReceived;
std::list<std::pair<CTxDestination, int64_t> > listSent;
int nDepth = wtx.GetDepthInMainChain();
if (nDepth < 0)
continue;
wtx.GetAmounts(listReceived, listSent, nFee, strSentAccount);
mapAccountBalances[strSentAccount] -= nFee;
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64_t)& s, listSent)
mapAccountBalances[strSentAccount] -= s.second;
if (nDepth >= nMinDepth && wtx.GetBlocksToMaturity() == 0)
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64_t)& r, listReceived)
if (pwalletMain->mapAddressBook.count(r.first))
mapAccountBalances[pwalletMain->mapAddressBook[r.first]] += r.second;
else
mapAccountBalances[""] += r.second;
};
};
std::list<CAccountingEntry> acentries;
CWalletDB(pwalletMain->strWalletFile).ListAccountCreditDebit("*", acentries);
BOOST_FOREACH(const CAccountingEntry& entry, acentries)
mapAccountBalances[entry.strAccount] += entry.nCreditDebit;
Object ret;
BOOST_FOREACH(const PAIRTYPE(std::string, int64_t)& accountBalance, mapAccountBalances)
{
ret.push_back(Pair(accountBalance.first, ValueFromAmount(accountBalance.second)));
};
return ret;
}
Value listsinceblock(const Array& params, bool fHelp)
{
if (fHelp)
throw std::runtime_error(
"listsinceblock [blockhash] [target-confirmations]\n"
"Get all transactions in blocks since block [blockhash], or all transactions if omitted");
CBlockIndex *pindex = NULL;
int target_confirms = 1;
if (params.size() > 0)
{
uint256 blockId = 0;
blockId.SetHex(params[0].get_str());
pindex = CBlockLocator(blockId).GetBlockIndex();
};
if (params.size() > 1)
{
target_confirms = params[1].get_int();
if (target_confirms < 1)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter");
};
int depth = pindex ? (1 + nBestHeight - pindex->nHeight) : -1;
Array transactions;
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); it++)
{
CWalletTx tx = (*it).second;
if (depth == -1 || tx.GetDepthInMainChain() < depth)
ListTransactions(tx, "*", 0, true, transactions);
};
uint256 lastblock;
if (target_confirms == 1)
{
lastblock = hashBestChain;
} else
{
int target_height = pindexBest->nHeight + 1 - target_confirms;
CBlockIndex *block;
for (block = pindexBest;
block && block->nHeight > target_height;
block = block->pprev) { }
lastblock = block ? block->GetBlockHash() : 0;
};
Object ret;
ret.push_back(Pair("transactions", transactions));
ret.push_back(Pair("lastblock", lastblock.GetHex()));
return ret;
}
Value gettransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw std::runtime_error(
"gettransaction <txid>\n"
"Get detailed information about <txid>");
uint256 hash;
hash.SetHex(params[0].get_str());
Object entry;
if (pwalletMain->mapWallet.count(hash))
{
const CWalletTx& wtx = pwalletMain->mapWallet[hash];
TxToJSON(wtx, 0, entry);
int64_t nCredit = wtx.GetCredit();
int64_t nDebit = wtx.GetDebit();
int64_t nNet = nCredit - nDebit;
int64_t nFee = (wtx.IsFromMe() ? wtx.GetValueOut() - nDebit : 0);
entry.push_back(Pair("amount", ValueFromAmount(nNet - nFee)));
if (wtx.IsFromMe())
entry.push_back(Pair("fee", ValueFromAmount(nFee)));
WalletTxToJSON(wtx, entry);
Array details;
ListTransactions(pwalletMain->mapWallet[hash], "*", 0, false, details);
entry.push_back(Pair("details", details));
} else
{
CTransaction tx;
uint256 hashBlock = 0;
if (GetTransaction(hash, tx, hashBlock))
{
TxToJSON(tx, 0, entry);
if (hashBlock == 0)
{
entry.push_back(Pair("confirmations", 0));
} else
{
entry.push_back(Pair("blockhash", hashBlock.GetHex()));
std::map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock);
if (mi != mapBlockIndex.end() && (*mi).second)
{
CBlockIndex* pindex = (*mi).second;
if (pindex->IsInMainChain())
entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight));
else
entry.push_back(Pair("confirmations", 0));
};
};
} else
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available about transaction");
};
return entry;
}
Value backupwallet(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw std::runtime_error(
"backupwallet <destination>\n"
"Safely copies wallet.dat to destination, which can be a directory or a path with filename.");
std::string strDest = params[0].get_str();
if (!BackupWallet(*pwalletMain, strDest))
throw JSONRPCError(RPC_WALLET_ERROR, "Error: Wallet backup failed!");
return Value::null;
}
Value keypoolrefill(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"keypoolrefill [new-size]\n"
"Fills the keypool."
+ HelpRequiringPassphrase());
unsigned int nSize = std::max(GetArg("-keypool", 100), (int64_t)0);
if (params.size() > 0) {
if (params[0].get_int() < 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected valid size");
nSize = (unsigned int) params[0].get_int();
}
EnsureWalletIsUnlocked();
pwalletMain->TopUpKeyPool(nSize);
if (pwalletMain->GetKeyPoolSize() < nSize)
throw JSONRPCError(RPC_WALLET_ERROR, "Error refreshing keypool.");
return Value::null;
}
static void LockWallet(CWallet* pWallet)
{
LOCK2(pWallet->cs_wallet, cs_nWalletUnlockTime);
nWalletUnlockTime = 0;
pWallet->Lock();
}
Value walletpassphrase(const Array& params, bool fHelp)
{
if (pwalletMain->IsCrypted() && (fHelp || params.size() < 2 || params.size() > 3))
throw std::runtime_error(
"walletpassphrase <passphrase> <timeout> [stakingonly]\n"
"Stores the wallet decryption key in memory for <timeout> seconds.\n"
"if [stakingonly] is true sending functions are disabled.");
if (fHelp)
return true;
if (!pwalletMain->IsCrypted())
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletpassphrase was called.");
if (!pwalletMain->IsLocked())
throw JSONRPCError(RPC_WALLET_ALREADY_UNLOCKED, "Error: Wallet is already unlocked, use walletlock first if need to change unlock settings.");
// Note that the walletpassphrase is stored in params[0] which is not mlock()ed
SecureString strWalletPass;
strWalletPass.reserve(100);
// TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string)
// Alternately, find a way to make params[0] mlock()'d to begin with.
strWalletPass = params[0].get_str().c_str();
if (strWalletPass.length() > 0)
{
if (!pwalletMain->Unlock(strWalletPass))
throw JSONRPCError(RPC_WALLET_PASSPHRASE_INCORRECT, "Error: The wallet passphrase entered was incorrect.");
} else
{
throw std::runtime_error(
"walletpassphrase <passphrase> <timeout>\n"
"Stores the wallet decryption key in memory for <timeout> seconds.");
};
pwalletMain->TopUpKeyPool();
int64_t nSleepTime = params[1].get_int64();
LOCK(cs_nWalletUnlockTime);
nWalletUnlockTime = GetTime() + nSleepTime;
RPCRunLater("lockwallet", boost::bind(LockWallet, pwalletMain), nSleepTime);
// ppcoin: if user OS account compromised prevent trivial sendmoney commands
if (params.size() > 2)
fWalletUnlockStakingOnly = params[2].get_bool();
else
fWalletUnlockStakingOnly = false;
return Value::null;
}
Value walletpassphrasechange(const Array& params, bool fHelp)
{
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2))
throw std::runtime_error(
"walletpassphrasechange <oldpassphrase> <newpassphrase>\n"
"Changes the wallet passphrase from <oldpassphrase> to <newpassphrase>.");
if (fHelp)
return true;
if (!pwalletMain->IsCrypted())
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletpassphrasechange was called.");
// TODO: get rid of these .c_str() calls by implementing SecureString::operator=(std::string)
// Alternately, find a way to make params[0] mlock()'d to begin with.
SecureString strOldWalletPass;
strOldWalletPass.reserve(100);
strOldWalletPass = params[0].get_str().c_str();
SecureString strNewWalletPass;
strNewWalletPass.reserve(100);
strNewWalletPass = params[1].get_str().c_str();
if (strOldWalletPass.length() < 1 || strNewWalletPass.length() < 1)
throw std::runtime_error(
"walletpassphrasechange <oldpassphrase> <newpassphrase>\n"
"Changes the wallet passphrase from <oldpassphrase> to <newpassphrase>.");
if (!pwalletMain->ChangeWalletPassphrase(strOldWalletPass, strNewWalletPass))
throw JSONRPCError(RPC_WALLET_PASSPHRASE_INCORRECT, "Error: The wallet passphrase entered was incorrect.");
return Value::null;
}
Value walletlock(const Array& params, bool fHelp)
{
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 0))
throw std::runtime_error(
"walletlock\n"
"Removes the wallet encryption key from memory, locking the wallet.\n"
"After calling this method, you will need to call walletpassphrase again\n"
"before being able to call any methods which require the wallet to be unlocked.");
if (fHelp)
return true;
if (!pwalletMain->IsCrypted())
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletlock was called.");
{
LOCK(cs_nWalletUnlockTime);
pwalletMain->Lock();
nWalletUnlockTime = 0;
}
return Value::null;
}
Value encryptwallet(const Array& params, bool fHelp)
{
if (!pwalletMain->IsCrypted() && (fHelp || params.size() != 1))
throw std::runtime_error(
"encryptwallet <passphrase>\n"
"Encrypts the wallet with <passphrase>.");
if (fHelp)
return true;
if (pwalletMain->IsCrypted())
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an encrypted wallet, but encryptwallet was called.");
// TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string)
// Alternately, find a way to make params[0] mlock()'d to begin with.
SecureString strWalletPass;
strWalletPass.reserve(100);
strWalletPass = params[0].get_str().c_str();
if (strWalletPass.length() < 1)
throw std::runtime_error(
"encryptwallet <passphrase>\n"
"Encrypts the wallet with <passphrase>.");
if (!pwalletMain->EncryptWallet(strWalletPass))
throw JSONRPCError(RPC_WALLET_ENCRYPTION_FAILED, "Error: Failed to encrypt the wallet.");
// BDB seems to have a bad habit of writing old data into
// slack space in .dat files; that is bad if the old data is
// unencrypted private keys. So:
StartShutdown();
return "wallet encrypted; EclipseCrypto server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.";
}
class DescribeAddressVisitor : public boost::static_visitor<Object>
{
public:
Object operator()(const CNoDestination &dest) const { return Object(); }
Object operator()(const CKeyID &keyID) const {
Object obj;
CPubKey vchPubKey;
pwalletMain->GetPubKey(keyID, vchPubKey);
obj.push_back(Pair("isscript", false));
obj.push_back(Pair("pubkey", HexStr(vchPubKey)));
obj.push_back(Pair("iscompressed", vchPubKey.IsCompressed()));
return obj;
}
Object operator()(const CScriptID &scriptID) const {
Object obj;
obj.push_back(Pair("isscript", true));
CScript subscript;
pwalletMain->GetCScript(scriptID, subscript);
std::vector<CTxDestination> addresses;
txnouttype whichType;
int nRequired;
ExtractDestinations(subscript, whichType, addresses, nRequired);
obj.push_back(Pair("script", GetTxnOutputType(whichType)));
obj.push_back(Pair("hex", HexStr(subscript.begin(), subscript.end())));
Array a;
BOOST_FOREACH(const CTxDestination& addr, addresses)
a.push_back(CBitcoinAddress(addr).ToString());
obj.push_back(Pair("addresses", a));
if (whichType == TX_MULTISIG)
obj.push_back(Pair("sigsrequired", nRequired));
return obj;
}
Object operator()(const CStealthAddress &sxAddr) const {
Object obj;
obj.push_back(Pair("todo - stealth address", true));
return obj;
}
Object operator()(const CExtKeyPair &ek) const {
Object obj;
obj.push_back(Pair("todo - bip32 address", true));
return obj;
}
};
Value validateaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw std::runtime_error(
"validateaddress <eclipsecryptoaddress>\n"
"Return information about <eclipsecryptoaddress>.");
CBitcoinAddress address(params[0].get_str());
bool isValid = address.IsValid();
Object ret;
ret.push_back(Pair("isvalid", isValid));
if (isValid)
{
CTxDestination dest = address.Get();
std::string currentAddress = address.ToString();
ret.push_back(Pair("address", currentAddress));
bool fMine = IsDestMine(*pwalletMain, dest);
ret.push_back(Pair("ismine", fMine));
if (fMine)
{
Object detail = boost::apply_visitor(DescribeAddressVisitor(), dest);
ret.insert(ret.end(), detail.begin(), detail.end());
};
if (pwalletMain->mapAddressBook.count(dest))
ret.push_back(Pair("account", pwalletMain->mapAddressBook[dest]));
}
return ret;
}
Value validatepubkey(const Array& params, bool fHelp)
{
if (fHelp || !params.size() || params.size() > 2)
throw std::runtime_error(
"validatepubkey <eclipsecryptopubkey>\n"
"Return information about <eclipsecryptopubkey>.");
std::vector<unsigned char> vchPubKey = ParseHex(params[0].get_str());
CPubKey pubKey(vchPubKey);
bool isValid = pubKey.IsValid();
bool isCompressed = pubKey.IsCompressed();
CKeyID keyID = pubKey.GetID();
CBitcoinAddress address;
address.Set(keyID);
Object ret;
ret.push_back(Pair("isvalid", isValid));
if (isValid)
{
CTxDestination dest = address.Get();
std::string currentAddress = address.ToString();
ret.push_back(Pair("address", currentAddress));
bool fMine = IsDestMine(*pwalletMain, dest);
ret.push_back(Pair("ismine", fMine));
ret.push_back(Pair("iscompressed", isCompressed));
if (fMine)
{
Object detail = boost::apply_visitor(DescribeAddressVisitor(), dest);
ret.insert(ret.end(), detail.begin(), detail.end());
};
if (pwalletMain->mapAddressBook.count(dest))
ret.push_back(Pair("account", pwalletMain->mapAddressBook[dest]));
};
return ret;
}
// ppcoin: reserve balance from being staked for network protection
Value reservebalance(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw std::runtime_error(
"reservebalance [<reserve> [amount]]\n"
"<reserve> is true or false to turn balance reserve on or off.\n"
"<amount> is a real and rounded to cent.\n"
"Set reserve amount not participating in network protection.\n"
"If no parameters provided current setting is printed.\n");
if (params.size() > 0)
{
bool fReserve = params[0].get_bool();
if (fReserve)
{
if (params.size() == 1)
throw std::runtime_error("must provide amount to reserve balance.\n");
int64_t nAmount = AmountFromValue(params[1]);
nAmount = (nAmount / CENT) * CENT; // round to cent
if (nAmount < 0)
throw std::runtime_error("amount cannot be negative.\n");
nReserveBalance = nAmount;
} else
{
if (params.size() > 1)
throw std::runtime_error("cannot specify amount to turn off reserve.\n");
nReserveBalance = 0;
}
}
Object result;
result.push_back(Pair("reserve", (nReserveBalance > 0)));
result.push_back(Pair("amount", ValueFromAmount(nReserveBalance)));
return result;
}
// ppcoin: check wallet integrity
Value checkwallet(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 0)
throw std::runtime_error(
"checkwallet\n"
"Check wallet for integrity.\n");
int nMismatchSpent;
int64_t nBalanceInQuestion;
pwalletMain->FixSpentCoins(nMismatchSpent, nBalanceInQuestion, true);
Object result;
if (nMismatchSpent == 0)
{
result.push_back(Pair("wallet check passed", true));
} else
{
result.push_back(Pair("mismatched spent coins", nMismatchSpent));
result.push_back(Pair("amount in question", ValueFromAmount(nBalanceInQuestion)));
};
return result;
}
// ppcoin: repair wallet
Value repairwallet(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 0)
throw std::runtime_error(
"repairwallet\n"
"Repair wallet if checkwallet reports any problem.\n");
int nMismatchSpent;
int64_t nBalanceInQuestion;
pwalletMain->FixSpentCoins(nMismatchSpent, nBalanceInQuestion);
Object result;
if (nMismatchSpent == 0)
{
result.push_back(Pair("wallet check passed", true));
} else
{
result.push_back(Pair("mismatched spent coins", nMismatchSpent));
result.push_back(Pair("amount affected by repair", ValueFromAmount(nBalanceInQuestion)));
}
return result;
}
// NovaCoin: resend unconfirmed wallet transactions
Value resendtx(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"resendtx\n"
"Re-send unconfirmed transactions.\n"
);
ResendWalletTransactions(true);
return Value::null;
}
// ppcoin: make a public-private key pair
Value makekeypair(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"makekeypair [prefix]\n"
"Make a public/private key pair.\n"
"[prefix] is optional preferred prefix for the public key.\n");
std::string strPrefix = "";
if (params.size() > 0)
strPrefix = params[0].get_str();
CKey key;
key.MakeNewKey(false);
CPrivKey vchPrivKey = key.GetPrivKey();
Object result;
result.push_back(Pair("PrivateKey", HexStr<CPrivKey::iterator>(vchPrivKey.begin(), vchPrivKey.end())));
result.push_back(Pair("PublicKey", HexStr(key.GetPubKey())));
return result;
}
Value getnewstealthaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"getnewstealthaddress [label]\n"
"Returns a new EclipseCrypto stealth address for receiving payments anonymously."
+ HelpRequiringPassphrase());
if (pwalletMain->IsLocked())
throw std::runtime_error("Failed: Wallet must be unlocked.");
std::string sLabel;
if (params.size() > 0)
sLabel = params[0].get_str();
CEKAStealthKey akStealth;
std::string sError;
if (0 != pwalletMain->NewStealthKeyFromAccount(sLabel, akStealth))
throw std::runtime_error("NewStealthKeyFromAccount failed.");
return akStealth.ToStealthAddress();
}
Value liststealthaddresses(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"liststealthaddresses [show_secrets=0]\n"
"List owned stealth addresses.");
bool fShowSecrets = false;
if (params.size() > 0)
{
std::string str = params[0].get_str();
if (IsStringBoolNegative(str))
fShowSecrets = false;
else
fShowSecrets = true;
};
if (fShowSecrets)
EnsureWalletIsUnlocked();
Object result;
ExtKeyAccountMap::const_iterator mi;
for (mi = pwalletMain->mapExtAccounts.begin(); mi != pwalletMain->mapExtAccounts.end(); ++mi)
{
CExtKeyAccount *ea = mi->second;
if (ea->mapStealthKeys.size() < 1)
continue;
result.push_back(Pair("Account", ea->sLabel));
AccStealthKeyMap::iterator it;
for (it = ea->mapStealthKeys.begin(); it != ea->mapStealthKeys.end(); ++it)
{
const CEKAStealthKey &aks = it->second;
if (fShowSecrets)
{
Object objA;
objA.push_back(Pair("Label ", aks.sLabel));
objA.push_back(Pair("Address ", aks.ToStealthAddress()));
objA.push_back(Pair("Scan Secret ", HexStr(aks.skScan.begin(), aks.skScan.end())));
std::string sSpend;
CStoredExtKey *sekAccount = ea->ChainAccount();
if (sekAccount && !sekAccount->fLocked)
{
CKey skSpend;
if (ea->GetKey(aks.akSpend, skSpend))
sSpend = HexStr(skSpend.begin(), skSpend.end());
else
sSpend = "Extract failed.";
} else
{
sSpend = "Account Locked.";
};
objA.push_back(Pair("Spend Secret ", sSpend));
result.push_back(Pair("Stealth Address", objA));
} else
{
result.push_back(Pair("Stealth Address", aks.ToStealthAddress() + " - " + aks.sLabel));
};
};
};
if (pwalletMain->stealthAddresses.size() > 0)
result.push_back(Pair("Account", "Legacy"));
std::set<CStealthAddress>::iterator it;
for (it = pwalletMain->stealthAddresses.begin(); it != pwalletMain->stealthAddresses.end(); ++it)
{
if (it->scan_secret.size() < 1)
continue; // stealth address is not owned
if (fShowSecrets)
{
Object objA;
objA.push_back(Pair("Label ", it->label));
objA.push_back(Pair("Address ", it->Encoded()));
objA.push_back(Pair("Scan Secret ", HexStr(it->scan_secret.begin(), it->scan_secret.end())));
objA.push_back(Pair("Spend Secret ", HexStr(it->spend_secret.begin(), it->spend_secret.end())));
result.push_back(Pair("Stealth Address", objA));
} else
{
result.push_back(Pair("Stealth Address", it->Encoded() + " - " + it->label));
};
};
return result;
}
Value importstealthaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2)
throw std::runtime_error(
"importstealthaddress <scan_secret> <spend_secret> [label]\n"
"Import an owned stealth addresses."
+ HelpRequiringPassphrase());
if (pwalletMain->IsLocked())
throw std::runtime_error("Failed: Wallet must be unlocked.");
std::string sScanSecret = params[0].get_str();
std::string sSpendSecret = params[1].get_str();
std::string sLabel;
if (params.size() > 2)
{
sLabel = params[2].get_str();
};
std::vector<uint8_t> vchScanSecret;
std::vector<uint8_t> vchSpendSecret;
if (IsHex(sScanSecret))
{
vchScanSecret = ParseHex(sScanSecret);
} else
{
if (!DecodeBase58(sScanSecret, vchScanSecret))
throw std::runtime_error("Could not decode scan secret as hex or base58.");
};
if (IsHex(sSpendSecret))
{
vchSpendSecret = ParseHex(sSpendSecret);
} else
{
if (!DecodeBase58(sSpendSecret, vchSpendSecret))
throw std::runtime_error("Could not decode spend secret as hex or base58.");
};
if (vchScanSecret.size() != 32)
throw std::runtime_error("Scan secret is not 32 bytes.");
if (vchSpendSecret.size() != 32)
throw std::runtime_error("Spend secret is not 32 bytes.");
ec_secret scan_secret;
ec_secret spend_secret;
memcpy(&scan_secret.e[0], &vchScanSecret[0], 32);
memcpy(&spend_secret.e[0], &vchSpendSecret[0], 32);
ec_point scan_pubkey, spend_pubkey;
if (SecretToPublicKey(scan_secret, scan_pubkey) != 0)
throw std::runtime_error("Could not get scan public key.");
if (SecretToPublicKey(spend_secret, spend_pubkey) != 0)
throw std::runtime_error("Could not get spend public key.");
CStealthAddress sxAddr;
sxAddr.label = sLabel;
sxAddr.scan_pubkey = scan_pubkey;
sxAddr.spend_pubkey = spend_pubkey;
sxAddr.scan_secret = vchScanSecret;
sxAddr.spend_secret = vchSpendSecret;
Object result;
bool fFound = false;
// -- find if address already exists
std::set<CStealthAddress>::iterator it;
for (it = pwalletMain->stealthAddresses.begin(); it != pwalletMain->stealthAddresses.end(); ++it)
{
CStealthAddress &sxAddrIt = const_cast<CStealthAddress&>(*it);
if (sxAddrIt.scan_pubkey == sxAddr.scan_pubkey
&& sxAddrIt.spend_pubkey == sxAddr.spend_pubkey)
{
if (sxAddrIt.scan_secret.size() < 1)
{
sxAddrIt.scan_secret = sxAddr.scan_secret;
sxAddrIt.spend_secret = sxAddr.spend_secret;
fFound = true; // update stealth address with secrets
break;
};
result.push_back(Pair("result", "Import failed - stealth address exists."));
return result;
};
};
if (fFound)
{
result.push_back(Pair("result", "Success, updated " + sxAddr.Encoded()));
} else
{
pwalletMain->stealthAddresses.insert(sxAddr);
result.push_back(Pair("result", "Success, imported " + sxAddr.Encoded()));
};
if (!pwalletMain->AddStealthAddress(sxAddr))
throw std::runtime_error("Could not save to wallet.");
return result;
}
Value sendtostealthaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 5)
throw std::runtime_error(
"sendtostealthaddress <stealth_address> <amount> [comment] [comment-to] [narration]\n"
"sendtostealthaddress <stealth_address> <amount> [narration]\n"
"<amount> is a real and is rounded to the nearest 0.000001"
+ HelpRequiringPassphrase());
if (pwalletMain->IsLocked())
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
std::string sEncoded = params[0].get_str();
int64_t nAmount = AmountFromValue(params[1]);
std::string sNarr;
if (params.size() == 3 || params.size() == 5)
{
int nNarr = params.size() - 1;
if(params[nNarr].type() != null_type && !params[nNarr].get_str().empty())
sNarr = params[nNarr].get_str();
}
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
CStealthAddress sxAddr;
if (!sxAddr.SetEncoded(sEncoded))
throw std::runtime_error("Invalid EclipseCrypto stealth address.");
CWalletTx wtx;
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
wtx.mapValue["comment"] = params[3].get_str();
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
wtx.mapValue["to"] = params[4].get_str();
std::string sError;
if (!pwalletMain->SendStealthMoneyToDestination(sxAddr, nAmount, sNarr, wtx, sError))
throw JSONRPCError(RPC_WALLET_ERROR, sError);
return wtx.GetHash().GetHex();
}
Value clearwallettransactions(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 0)
throw std::runtime_error(
"clearwallettransactions \n"
"delete all transactions from wallet - reload with reloadanondata\n"
"Warning: Backup your wallet first!");
Object result;
uint32_t nTransactions = 0;
char cbuf[256];
{
LOCK2(cs_main, pwalletMain->cs_wallet);
CWalletDB walletdb(pwalletMain->strWalletFile);
walletdb.TxnBegin();
Dbc* pcursor = walletdb.GetTxnCursor();
if (!pcursor)
throw std::runtime_error("Cannot get wallet DB cursor");
Dbt datKey;
Dbt datValue;
datKey.set_flags(DB_DBT_USERMEM);
datValue.set_flags(DB_DBT_USERMEM);
std::vector<unsigned char> vchKey;
std::vector<unsigned char> vchType;
std::vector<unsigned char> vchKeyData;
std::vector<unsigned char> vchValueData;
vchKeyData.resize(100);
vchValueData.resize(100);
datKey.set_ulen(vchKeyData.size());
datKey.set_data(&vchKeyData[0]);
datValue.set_ulen(vchValueData.size());
datValue.set_data(&vchValueData[0]);
unsigned int fFlags = DB_NEXT; // same as using DB_FIRST for new cursor
while (true)
{
int ret = pcursor->get(&datKey, &datValue, fFlags);
if (ret == ENOMEM
|| ret == DB_BUFFER_SMALL)
{
if (datKey.get_size() > datKey.get_ulen())
{
vchKeyData.resize(datKey.get_size());
datKey.set_ulen(vchKeyData.size());
datKey.set_data(&vchKeyData[0]);
};
if (datValue.get_size() > datValue.get_ulen())
{
vchValueData.resize(datValue.get_size());
datValue.set_ulen(vchValueData.size());
datValue.set_data(&vchValueData[0]);
};
// -- try once more, when DB_BUFFER_SMALL cursor is not expected to move
ret = pcursor->get(&datKey, &datValue, fFlags);
};
if (ret == DB_NOTFOUND)
break;
else
if (datKey.get_data() == NULL || datValue.get_data() == NULL
|| ret != 0)
{
snprintf(cbuf, sizeof(cbuf), "wallet DB error %d, %s", ret, db_strerror(ret));
throw std::runtime_error(cbuf);
};
CDataStream ssValue(SER_DISK, CLIENT_VERSION);
ssValue.SetType(SER_DISK);
ssValue.clear();
ssValue.write((char*)datKey.get_data(), datKey.get_size());
ssValue >> vchType;
std::string strType(vchType.begin(), vchType.end());
//LogPrintf("strType %s\n", strType.c_str());
if (strType == "tx")
{
uint256 hash;
ssValue >> hash;
if ((ret = pcursor->del(0)) != 0)
{
LogPrintf("Delete transaction failed %d, %s\n", ret, db_strerror(ret));
continue;
};
pwalletMain->mapWallet.erase(hash);
pwalletMain->NotifyTransactionChanged(pwalletMain, hash, CT_DELETED);
nTransactions++;
};
};
pcursor->close();
walletdb.TxnCommit();
//pwalletMain->mapWallet.clear();
if (nNodeMode == NT_THIN)
{
// reset LastFilteredHeight
walletdb.WriteLastFilteredHeight(0);
}
}
snprintf(cbuf, sizeof(cbuf), "Removed %u transactions.", nTransactions);
result.push_back(Pair("complete", std::string(cbuf)));
result.push_back(Pair("", "Reload with reloadanondata, reindex or re-download blockchain."));
return result;
}
Value scanforalltxns(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"scanforalltxns [fromHeight]\n"
"Scan blockchain for owned transactions.");
if (nNodeMode != NT_FULL)
throw std::runtime_error("Can't run in thin mode.");
Object result;
int32_t nFromHeight = 0;
CBlockIndex *pindex = pindexGenesisBlock;
if (params.size() > 0)
nFromHeight = params[0].get_int();
if (nFromHeight > 0)
{
pindex = mapBlockIndex[hashBestChain];
while (pindex->nHeight > nFromHeight
&& pindex->pprev)
pindex = pindex->pprev;
};
if (pindex == NULL)
throw std::runtime_error("Genesis Block is not set.");
{
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->MarkDirty();
pwalletMain->ScanForWalletTransactions(pindex, true);
pwalletMain->ReacceptWalletTransactions();
} // cs_main, pwalletMain->cs_wallet
result.push_back(Pair("result", "Scan complete."));
return result;
}
Value scanforstealthtxns(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"scanforstealthtxns [fromHeight]\n"
"Scan blockchain for owned stealth transactions.");
Object result;
uint32_t nBlocks = 0;
uint32_t nTransactions = 0;
int32_t nFromHeight = 0;
CBlockIndex *pindex = pindexGenesisBlock;
if (params.size() > 0)
nFromHeight = params[0].get_int();
if (nFromHeight > 0)
{
pindex = mapBlockIndex[hashBestChain];
while (pindex->nHeight > nFromHeight
&& pindex->pprev)
pindex = pindex->pprev;
};
if (pindex == NULL)
throw std::runtime_error("Genesis Block is not set.");
// -- locks in AddToWalletIfInvolvingMe
bool fUpdate = true; // todo: option?
pwalletMain->nStealth = 0;
pwalletMain->nFoundStealth = 0;
while (pindex)
{
nBlocks++;
CBlock block;
block.ReadFromDisk(pindex, true);
BOOST_FOREACH(CTransaction& tx, block.vtx)
{
if (!tx.IsStandard())
continue; // leave out coinbase and others
nTransactions++;
uint256 hash = tx.GetHash();
pwalletMain->AddToWalletIfInvolvingMe(tx, hash, &block, fUpdate);
};
pindex = pindex->pnext;
};
LogPrintf("Scanned %u blocks, %u transactions\n", nBlocks, nTransactions);
LogPrintf("Found %u stealth transactions in blockchain.\n", pwalletMain->nStealth);
LogPrintf("Found %u new owned stealth transactions.\n", pwalletMain->nFoundStealth);
char cbuf[256];
snprintf(cbuf, sizeof(cbuf), "%u new stealth transactions.", pwalletMain->nFoundStealth);
result.push_back(Pair("result", "Scan complete."));
result.push_back(Pair("found", std::string(cbuf)));
return result;
}
Value sendsdctoanon(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 5)
throw std::runtime_error(
"sendsdctoanon <stealth_address> <amount> [narration] [comment] [comment-to]\n"
"<amount> is a real number and is rounded to the nearest 0.000001"
+ HelpRequiringPassphrase());
if (pwalletMain->IsLocked())
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
std::string sEncoded = params[0].get_str();
int64_t nAmount = AmountFromValue(params[1]);
std::string sNarr;
if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
sNarr = params[2].get_str();
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
CStealthAddress sxAddr;
if (!sxAddr.SetEncoded(sEncoded))
throw std::runtime_error("Invalid EclipseCrypto stealth address.");
CWalletTx wtx;
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
wtx.mapValue["comment"] = params[3].get_str();
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
wtx.mapValue["to"] = params[4].get_str();
std::string sError;
if (!pwalletMain->SendSdcToAnon(sxAddr, nAmount, sNarr, wtx, sError))
{
LogPrintf("SendSdcToAnon failed %s\n", sError.c_str());
throw JSONRPCError(RPC_WALLET_ERROR, sError);
};
return wtx.GetHash().GetHex();
}
Value sendanontoanon(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 3 || params.size() > 6)
throw std::runtime_error(
"sendanontoanon <stealth_address> <amount> <ring_size> [narration] [comment] [comment-to]\n"
"<amount> is a real number and is rounded to the nearest 0.000001\n"
"<ring_size> is a number of outputs of the same amount to include in the signature"
+ HelpRequiringPassphrase());
if (pwalletMain->IsLocked())
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
std::string sEncoded = params[0].get_str();
int64_t nAmount = AmountFromValue(params[1]);
uint32_t nRingSize = (uint32_t)params[2].get_int();
std::ostringstream ssThrow;
if (nRingSize < MIN_RING_SIZE || nRingSize > MAX_RING_SIZE)
ssThrow << "Ring size must be >= " << MIN_RING_SIZE << " and <= " << MAX_RING_SIZE << ".", throw std::runtime_error(ssThrow.str());
std::string sNarr;
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
sNarr = params[3].get_str();
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
CStealthAddress sxAddr;
if (!sxAddr.SetEncoded(sEncoded))
throw std::runtime_error("Invalid EclipseCrypto stealth address.");
CWalletTx wtx;
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
wtx.mapValue["comment"] = params[4].get_str();
if (params.size() > 5 && params[5].type() != null_type && !params[5].get_str().empty())
wtx.mapValue["to"] = params[5].get_str();
std::string sError;
if (!pwalletMain->SendAnonToAnon(sxAddr, nAmount, nRingSize, sNarr, wtx, sError))
{
LogPrintf("SendAnonToAnon failed %s\n", sError.c_str());
throw JSONRPCError(RPC_WALLET_ERROR, sError);
};
return wtx.GetHash().GetHex();
}
Value sendanontosdc(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 3 || params.size() > 6)
throw std::runtime_error(
"sendanontosdc <stealth_address> <amount> <ring_size> [narration] [comment] [comment-to]\n"
"<amount> is a real number and is rounded to the nearest 0.000001\n"
"<ring_size> is a number of outputs of the same amount to include in the signature"
+ HelpRequiringPassphrase());
if (pwalletMain->IsLocked())
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
std::string sEncoded = params[0].get_str();
int64_t nAmount = AmountFromValue(params[1]);
uint32_t nRingSize = (uint32_t)params[2].get_int();
std::ostringstream ssThrow;
if (nRingSize < 1 || nRingSize > MAX_RING_SIZE)
ssThrow << "Ring size must be >= 1 and <= " << MAX_RING_SIZE << ".", throw std::runtime_error(ssThrow.str());
std::string sNarr;
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
sNarr = params[3].get_str();
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
CStealthAddress sxAddr;
if (!sxAddr.SetEncoded(sEncoded))
throw std::runtime_error("Invalid EclipseCrypto stealth address.");
CWalletTx wtx;
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
wtx.mapValue["comment"] = params[4].get_str();
if (params.size() > 5 && params[5].type() != null_type && !params[5].get_str().empty())
wtx.mapValue["to"] = params[5].get_str();
std::string sError;
if (!pwalletMain->SendAnonToSdc(sxAddr, nAmount, nRingSize, sNarr, wtx, sError))
{
LogPrintf("SendAnonToSdc failed %s\n", sError.c_str());
throw JSONRPCError(RPC_WALLET_ERROR, sError);
};
return wtx.GetHash().GetHex();
}
Value estimateanonfee(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 3)
throw std::runtime_error(
"estimateanonfee <amount> <ring_size> [narration]\n"
"<amount>is a real number and is rounded to the nearest 0.000001\n"
"<ring_size> is a number of outputs of the same amount to include in the signature");
int64_t nAmount = AmountFromValue(params[0]);
uint32_t nRingSize = (uint32_t)params[1].get_int();
std::ostringstream ssThrow;
if (nRingSize < MIN_RING_SIZE || nRingSize > MAX_RING_SIZE)
ssThrow << "Ring size must be >= " << MIN_RING_SIZE << " and <= " << MAX_RING_SIZE << ".", throw std::runtime_error(ssThrow.str());
std::string sNarr;
if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
sNarr = params[2].get_str();
if (sNarr.length() > 24)
throw std::runtime_error("Narration must be 24 characters or less.");
CWalletTx wtx;
int64_t nFee = 0;
std::string sError;
if (!pwalletMain->EstimateAnonFee(nAmount, nRingSize, sNarr, wtx, nFee, sError))
{
LogPrintf("EstimateAnonFee failed %s\n", sError.c_str());
throw JSONRPCError(RPC_WALLET_ERROR, sError);
};
uint32_t nBytes = ::GetSerializeSize(*(CTransaction*)&wtx, SER_NETWORK, PROTOCOL_VERSION);
Object result;
result.push_back(Pair("Estimated bytes", (int)nBytes));
result.push_back(Pair("Estimated inputs", (int)wtx.vin.size()));
result.push_back(Pair("Estimated outputs", (int)wtx.vout.size()));
result.push_back(Pair("Estimated fee", ValueFromAmount(nFee)));
return result;
}
Value anonoutputs(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw std::runtime_error(
"anonoutputs [systemTotals] [show_immature_outputs]\n"
"[systemTotals] if true displays the total no. of coins in the system.");
if (nNodeMode != NT_FULL)
throw std::runtime_error("Must be in full mode.");
bool fSystemTotals = false;
if (params.size() > 0)
{
std::string value = params[0].get_str();
if (IsStringBoolPositive(value))
fSystemTotals = true;
};
bool fMatureOnly = true;
if (params.size() > 1)
{
std::string value = params[1].get_str();
if (IsStringBoolPositive(value))
fMatureOnly = false;
};
std::list<COwnedAnonOutput> lAvailableCoins;
if (pwalletMain->ListUnspentAnonOutputs(lAvailableCoins, fMatureOnly) != 0)
throw std::runtime_error("ListUnspentAnonOutputs() failed.");
Object result;
if (!fSystemTotals)
{
result.push_back(Pair("No. of coins", "amount"));
// -- mAvailableCoins is ordered by value
char cbuf[256];
int64_t nTotal = 0;
int64_t nLast = 0;
int nCount = 0;
for (std::list<COwnedAnonOutput>::iterator it = lAvailableCoins.begin(); it != lAvailableCoins.end(); ++it)
{
if (nLast > 0 && it->nValue != nLast)
{
snprintf(cbuf, sizeof(cbuf), "%03d", nCount);
result.push_back(Pair(cbuf, ValueFromAmount(nLast)));
nCount = 0;
};
nCount++;
nLast = it->nValue;
nTotal += it->nValue;
};
if (nCount > 0)
{
snprintf(cbuf, sizeof(cbuf), "%03d", nCount);
result.push_back(Pair(cbuf, ValueFromAmount(nLast)));
};
result.push_back(Pair("total", ValueFromAmount(nTotal)));
} else
{
std::map<int64_t, int> mOutputCounts;
for (std::list<COwnedAnonOutput>::iterator it = lAvailableCoins.begin(); it != lAvailableCoins.end(); ++it)
mOutputCounts[it->nValue] = 0;
if (pwalletMain->CountAnonOutputs(mOutputCounts, fMatureOnly) != 0)
throw std::runtime_error("CountAnonOutputs() failed.");
result.push_back(Pair("No. of coins owned, No. of system coins", "amount"));
// -- lAvailableCoins is ordered by value
char cbuf[256];
int64_t nTotal = 0;
int64_t nLast = 0;
int64_t nCount = 0;
int64_t nSystemCount;
for (std::list<COwnedAnonOutput>::iterator it = lAvailableCoins.begin(); it != lAvailableCoins.end(); ++it)
{
if (nLast > 0 && it->nValue != nLast)
{
nSystemCount = mOutputCounts[nLast];
std::string str = strprintf(cbuf, sizeof(cbuf), "%04d, %04d", nCount, nSystemCount);
result.push_back(Pair(str, ValueFromAmount(nLast)));
nCount = 0;
};
nCount++;
nLast = it->nValue;
nTotal += it->nValue;
};
if (nCount > 0)
{
nSystemCount = mOutputCounts[nLast];
std::string str = strprintf(cbuf, sizeof(cbuf), "%04d, %04d", nCount, nSystemCount);
result.push_back(Pair(str, ValueFromAmount(nLast)));
};
result.push_back(Pair("total currency owned", ValueFromAmount(nTotal)));
}
return result;
}
Value anoninfo(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw std::runtime_error(
"anoninfo [recalculate]\n"
"list outputs in system.");
if (nNodeMode != NT_FULL)
throw std::runtime_error("Must be in full mode.");
bool fMatureOnly = false; // TODO: add parameter
bool fRecalculate = false;
if (params.size() > 0)
{
std::string value = params[0].get_str();
if (IsStringBoolPositive(value))
fRecalculate = true;
};
Object result;
std::list<CAnonOutputCount> lOutputCounts;
if (fRecalculate)
{
if (pwalletMain->CountAllAnonOutputs(lOutputCounts, fMatureOnly) != 0)
throw std::runtime_error("CountAllAnonOutputs() failed.");
} else
{
// TODO: make mapAnonOutputStats a vector preinitialised with all possible coin values?
for (std::map<int64_t, CAnonOutputCount>::iterator mi = mapAnonOutputStats.begin(); mi != mapAnonOutputStats.end(); ++mi)
{
bool fProcessed = false;
CAnonOutputCount aoc = mi->second;
if (aoc.nLeastDepth > 0)
aoc.nLeastDepth = nBestHeight - aoc.nLeastDepth;
for (std::list<CAnonOutputCount>::iterator it = lOutputCounts.begin(); it != lOutputCounts.end(); ++it)
{
if (aoc.nValue > it->nValue)
continue;
lOutputCounts.insert(it, aoc);
fProcessed = true;
break;
};
if (!fProcessed)
lOutputCounts.push_back(aoc);
};
};
result.push_back(Pair("No. Exists, No. Spends, Least Depth", "value"));
// -- lOutputCounts is ordered by value
char cbuf[256];
int64_t nTotalIn = 0;
int64_t nTotalOut = 0;
int64_t nTotalCoins = 0;
for (std::list<CAnonOutputCount>::iterator it = lOutputCounts.begin(); it != lOutputCounts.end(); ++it)
{
snprintf(cbuf, sizeof(cbuf), "%05d, %05d, %05d", it->nExists, it->nSpends, it->nLeastDepth);
result.push_back(Pair(cbuf, ValueFromAmount(it->nValue)));
nTotalIn += it->nValue * it->nExists;
nTotalOut += it->nValue * it->nSpends;
nTotalCoins += it->nExists;
};
result.push_back(Pair("total anon value in", ValueFromAmount(nTotalIn)));
result.push_back(Pair("total anon value out", ValueFromAmount(nTotalOut)));
result.push_back(Pair("total anon outputs", nTotalCoins));
return result;
}
Value reloadanondata(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 0)
throw std::runtime_error(
"reloadanondata \n"
"clears all anon txn data from system, and runs scanforalltxns.\n"
"WARNING: Intended for development use only."
+ HelpRequiringPassphrase());
if (nNodeMode != NT_FULL)
throw std::runtime_error("Must be in full mode.");
CBlockIndex *pindex = pindexGenesisBlock;
// check from 257000, once anon transactions started
while (pindex->nHeight < (fTestNet ? 68000 : 257000) && pindex->pnext)
pindex = pindex->pnext;
Object result;
if (pindex)
{
LOCK2(cs_main, pwalletMain->cs_wallet);
if (!pwalletMain->EraseAllAnonData())
throw std::runtime_error("EraseAllAnonData() failed.");
pwalletMain->MarkDirty();
pwalletMain->ScanForWalletTransactions(pindex, true);
pwalletMain->ReacceptWalletTransactions();
pwalletMain->CacheAnonStats();
result.push_back(Pair("result", "reloadanondata complete."));
} else
{
result.push_back(Pair("result", "reloadanondata failed - !pindex."));
};
return result;
}
static bool compareTxnTime(const CWalletTx* pa, const CWalletTx* pb)
{
return pa->nTime < pb->nTime;
};
Value txnreport(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw std::runtime_error(
"txnreport [collate_amounts] [show_key_images]\n"
"List transactions at output level.\n");
bool fCollateAmounts = false;
bool fShowKeyImage = false;
// TODO: trust CWalletTx::vfSpent?
if (params.size() > 0)
{
std::string value = params[0].get_str();
if (IsStringBoolPositive(value))
fCollateAmounts = true;
};
if (params.size() > 1)
{
std::string value = params[1].get_str();
if (IsStringBoolPositive(value))
fShowKeyImage = true;
};
int64_t nWalletIn = 0; // total inputs from owned addresses
int64_t nWalletOut = 0; // total outputs from owned addresses
Object result;
{
LOCK2(cs_main, pwalletMain->cs_wallet);
std::list<CWalletTx*> listOrdered;
for (std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
if (it->second.GetDepthInMainChain() > 0) // exclude txns not in the chain
listOrdered.push_back(&it->second);
};
listOrdered.sort(compareTxnTime);
std::list<CWalletTx*>::iterator it;
Array headings;
headings.push_back("When");
headings.push_back("Txn Hash");
headings.push_back("In/Output Type");
headings.push_back("Txn Type");
headings.push_back("Address");
headings.push_back("Ring Size");
if (fShowKeyImage)
headings.push_back("Key Image");
headings.push_back("Owned");
headings.push_back("Spent");
headings.push_back("Value In");
headings.push_back("Value Out");
if (fCollateAmounts)
{
headings.push_back("Wallet In");
headings.push_back("Wallet Out");
};
result.push_back(Pair("headings", headings));
if (pwalletMain->IsLocked())
{
result.push_back(Pair("warning", "Wallet is locked - owned inputs may not be detected correctly."));
};
Array lines;
CTxDB txdb("r");
CWalletDB walletdb(pwalletMain->strWalletFile, "r");
char cbuf[256];
for (it = listOrdered.begin(); it != listOrdered.end(); ++it)
{
CWalletTx* pwtx = (*it);
Array entryTxn;
entryTxn.push_back(getTimeString(pwtx->nTime, cbuf, sizeof(cbuf)));
entryTxn.push_back(pwtx->GetHash().GetHex());
bool fCoinBase = pwtx->IsCoinBase();
bool fCoinStake = pwtx->IsCoinStake();
for (uint32_t i = 0; i < pwtx->vin.size(); ++i)
{
const CTxIn& txin = pwtx->vin[i];
int64_t nInputValue = 0;
Array entry = entryTxn;
std::string sAddr = "";
std::string sKeyImage = "";
bool fOwnCoin = false;
int nRingSize = 0;
if (pwtx->nVersion == ANON_TXN_VERSION
&& txin.IsAnonInput())
{
entry.push_back("eclipse in");
entry.push_back("");
std::vector<uint8_t> vchImage;
txin.ExtractKeyImage(vchImage);
nRingSize = txin.ExtractRingSize();
sKeyImage = HexStr(vchImage);
CKeyImageSpent ski;
bool fInMemPool;
if (GetKeyImage(&txdb, vchImage, ski, fInMemPool))
nInputValue = ski.nValue;
COwnedAnonOutput oao;
if (walletdb.ReadOwnedAnonOutput(vchImage, oao))
{
fOwnCoin = true;
} else
if (pwalletMain->IsCrypted())
{
// - tokens received with locked wallet won't have oao until wallet unlocked
// No way to tell if locked input is owned
// need vchImage
// TODO, closest would be to tell if it's possible for the input to be owned
sKeyImage = "locked?";
};
} else
{
if (txin.prevout.IsNull()) // coinbase
continue;
entry.push_back("sdc in");
entry.push_back(fCoinBase ? "coinbase" : fCoinStake ? "coinstake" : "");
if (pwalletMain->IsMine(txin))
fOwnCoin = true;
CTransaction prevTx;
if (txdb.ReadDiskTx(txin.prevout.hash, prevTx))
{
if (txin.prevout.n < prevTx.vout.size())
{
const CTxOut &vout = prevTx.vout[txin.prevout.n];
nInputValue = vout.nValue;
CTxDestination address;
if (ExtractDestination(vout.scriptPubKey, address))
sAddr = CBitcoinAddress(address).ToString();
} else
{
nInputValue = 0;
};
};
};
if (fOwnCoin)
nWalletIn += nInputValue;
entry.push_back(sAddr);
entry.push_back(nRingSize == 0 ? "" : strprintf("%d", nRingSize));
if (fShowKeyImage)
entry.push_back(sKeyImage);
entry.push_back(fOwnCoin);
entry.push_back(""); // spent
entry.push_back(strprintf("%f", (double)nInputValue / (double)COIN));
entry.push_back(""); // out
if (fCollateAmounts)
{
entry.push_back(strprintf("%f", (double)nWalletIn / (double)COIN));
entry.push_back(strprintf("%f", (double)nWalletOut / (double)COIN));
};
lines.push_back(entry);
};
for (uint32_t i = 0; i < pwtx->vout.size(); i++)
{
const CTxOut& txout = pwtx->vout[i];
if (txout.nValue < 1) // metadata output, narration or stealth
continue;
Array entry = entryTxn;
std::string sAddr = "";
std::string sKeyImage = "";
bool fOwnCoin = false;
bool fSpent = false;
if (pwtx->nVersion == ANON_TXN_VERSION
&& txout.IsAnonOutput())
{
entry.push_back("eclipse out");
entry.push_back("");
CPubKey pkCoin = txout.ExtractAnonPk();
std::vector<uint8_t> vchImage;
COwnedAnonOutput oao;
if (walletdb.ReadOwnedAnonOutputLink(pkCoin, vchImage)
&& walletdb.ReadOwnedAnonOutput(vchImage, oao))
{
sKeyImage = HexStr(vchImage);
fOwnCoin = true;
} else
if (pwalletMain->IsCrypted())
{
// - tokens received with locked wallet won't have oao until wallet unlocked
CKeyID ckCoinId = pkCoin.GetID();
CLockedAnonOutput lockedAo;
if (walletdb.ReadLockedAnonOutput(ckCoinId, lockedAo))
fOwnCoin = true;
sKeyImage = "locked?";
};
} else
{
entry.push_back("sdc out");
entry.push_back(fCoinBase ? "coinbase" : fCoinStake ? "coinstake" : "");
CTxDestination address;
if (ExtractDestination(txout.scriptPubKey, address))
sAddr = CBitcoinAddress(address).ToString();
if (pwalletMain->IsMine(txout))
fOwnCoin = true;
};
if (fOwnCoin)
{
nWalletOut += txout.nValue;
fSpent = pwtx->IsSpent(i);
};
entry.push_back(sAddr);
entry.push_back(""); // ring size (only for inputs)
if (fShowKeyImage)
entry.push_back(sKeyImage);
entry.push_back(fOwnCoin);
entry.push_back(fSpent);
entry.push_back(""); // in
entry.push_back(ValueFromAmount(txout.nValue));
if (fCollateAmounts)
{
entry.push_back(strprintf("%f", (double)nWalletIn / (double)COIN));
entry.push_back(strprintf("%f", (double)nWalletOut / (double)COIN));
};
lines.push_back(entry);
};
};
result.push_back(Pair("data", lines));
}
result.push_back(Pair("result", "txnreport complete."));
return result;
}
|
.linkList {
} |
<?php
/**
* Copyright (c) 2016, HelloFresh GmbH.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
namespace Tests\HelloFresh\FeatureToggle\Operator;
use HelloFresh\FeatureToggle\Operator\Percentage;
class PercentageTest extends \PHPUnit_Framework_TestCase
{
/**
* @test
* @dataProvider valuesInPercentage
*/
public function itAppliesIfValueInPercentage($percentage, $argument)
{
$operator = new Percentage($percentage);
$this->assertTrue($operator->appliesTo($argument));
}
public function valuesInPercentage()
{
return array(
array(5, 4),
array(5, 104),
array(5, 1004),
array(5, 1000),
array(5, 1001),
);
}
/**
* @test
* @dataProvider valuesNotInPercentage
*/
public function itDoesNotApplyIfValueNotInPercentage($percentage, $argument)
{
$operator = new Percentage($percentage);
$this->assertFalse($operator->appliesTo($argument));
}
public function valuesNotInPercentage()
{
return array(
array(5, 5),
array(5, 6),
array(5, 106),
array(5, 1006),
);
}
/**
* @test
* @dataProvider valuesInPercentageShifted
*/
public function itAppliesIfValueInShiftedPercentage($percentage, $argument)
{
$operator = new Percentage($percentage, 42);
$this->assertTrue($operator->appliesTo($argument));
}
public function valuesInPercentageShifted()
{
return array(
array(5, 46),
array(5, 146),
array(5, 1046),
array(5, 1046),
array(5, 1046),
);
}
/**
* @test
* @dataProvider valuesNotInPercentageShifted
*/
public function itDoesNotApplyIfValueInShiftedPercentage($percentage, $argument)
{
$operator = new Percentage($percentage, 42);
$this->assertFalse($operator->appliesTo($argument));
}
public function valuesNotInPercentageShifted()
{
return array(
array(5, 47),
array(5, 48),
array(5, 148),
array(5, 1048),
);
}
/**
* @test
*/
public function itExposesItsPercentageAndShift()
{
$operator = new Percentage(42, 5);
$this->assertEquals(42, $operator->getPercentage());
$this->assertEquals(5, $operator->getShift());
}
}
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to CodeIgniter</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
/*background-color: #fff;*/
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
background-image: url("assets/img/crossword.png");
background-color: blue;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#body {
margin: 0 15px 0 15px;
}
p.footer {
text-align: right;
font-size: 11px;
border-top: 1px solid #D0D0D0;
line-height: 32px;
padding: 0 10px 0 10px;
margin: 20px 0 0 0;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
</style>
</head>
<body>
<div id="container">
<h1>Welcome to CodeIgniter!</h1>
<div id="body">
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
<p>If you would like to edit this page you'll find it located at:</p>
<code>application/views/welcome_message.php</code>
<p>The corresponding controller for this page is found at:</p>
<code>application/controllers/Welcome.php</code>
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
</div>
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
</div>
</body>
</html> |
# Lieutenant Commander [![Build Status][1]][2]
The complete solution for [node.js](http://nodejs.org) command-line interfaces, a fork of [commander](https://github.com/visionmedia/commander.js).
## Installation
```
$ npm install ltcdr --save
```
## Commands & Actions
```js
#!/usr/bin/env node
program
.command('initialize [env]')
.alias('init')
.alias('i')
.description('initializes a deploy config for the given environment')
.option('-b, --branch [name]', 'Which branch to use')
.action(function(env, options) {
var branch = options.branch || 'master';
env = env || 'prod';
console.log('initialized %s environment for %s branch', env, branch);
})
.parse(process.argv);
// deployer initialize alpha
// deployer init beta
// deployer i prod
```
Commands can also have aliases, so the following is equivalent:
```js
program
.command('generate')
.aliases(['gen', 'g'])
.description('generate a new config')
.action(generate);
// is equivalent to
program
.command('generate')
.description('generate a new config')
.action(generate);
program
.command('gen')
.description('generate a new config')
.action(generate);
program
.command('g')
.description('generate a new config')
.action(generate);
```
Aliases are optional, and can take a string or an array, e.g. `alias('s')` or `aliases(['s', 'sup'])`.
## Option parsing
Options with lieutenant commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options.
```js
#!/usr/bin/env node
var program = require('ltcdr');
program
.version('0.0.1')
.option('-p, --peppers', 'Add peppers')
.option('-P, --pineapple', 'Add pineapple')
.option('-b, --bbq', 'Add bbq sauce')
.option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble')
.parse(process.argv);
console.log('you ordered a pizza with:');
if (program.peppers) console.log(' - peppers');
if (program.pineapple) console.log(' - pineapple');
if (program.bbq) console.log(' - bbq');
console.log(' - %s cheese', program.cheese);
```
Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc.
## Automated --help
The help information is auto-generated based on the information lieutenant commander already knows about your program, so the following `--help` info is for free:
```
$ ./examples/pizza --help
Usage: pizza [options]
Options:
-V, --version output the version number
-p, --peppers Add peppers
-P, --pineapple Add pineapple
-b, --bbq Add bbq sauce
-c, --cheese <type> Add the specified type of cheese [marble]
-h, --help output usage information
```
## Coercion
```js
function range(val) {
return val.split('..').map(Number);
}
function list(val) {
return val.split(',');
}
program
.version('0.0.1')
.usage('[options] <file ...>')
.option('-i, --integer <n>', 'An integer argument', parseInt)
.option('-f, --float <n>', 'A float argument', parseFloat)
.option('-r, --range <a>..<b>', 'A range', range)
.option('-l, --list <items>', 'A list', list)
.option('-o, --optional [value]', 'An optional value')
.parse(process.argv);
console.log(' int: %j', program.integer);
console.log(' float: %j', program.float);
console.log(' optional: %j', program.optional);
program.range = program.range || [];
console.log(' range: %j..%j', program.range[0], program.range[1]);
console.log(' list: %j', program.list);
console.log(' args: %j', program.args);
```
## Custom help
You can display arbitrary `-h, --help` information
by listening for "--help". Commander will automatically
exit once you are done so that the remainder of your program
does not execute causing undesired behaviours, for example
in the following executable "stuff" will not output when
`--help` is used.
```js
#!/usr/bin/env node
/**
* Module dependencies.
*/
var program = require('../');
function list(val) {
return val.split(',').map(Number);
}
program
.version('0.0.1')
.option('-f, --foo', 'enable some foo')
.option('-b, --bar', 'enable some bar')
.option('-B, --baz', 'enable some baz');
// must be before .parse() since
// node's emit() is immediate
program.on('--help', function(){
console.log(' Examples:');
console.log('');
console.log(' $ custom-help --help');
console.log(' $ custom-help -h');
console.log('');
});
program.parse(process.argv);
console.log('stuff');
```
yielding the following help output:
```
Usage: custom-help [options]
Options:
-h, --help output usage information
-V, --version output the version number
-f, --foo enable some foo
-b, --bar enable some bar
-B, --baz enable some baz
Examples:
$ custom-help --help
$ custom-help -h
```
## .outputHelp()
Output help information without exiting.
## .help()
Output help information and exit immediately.
## .parse()
Starts processing the arguments, without any input it processes `process.argv`, otherwise
you can pass in an array of arguments.
## Links
- [API documentation](http://visionmedia.github.com/commander.js/)
- [ascii tables](https://github.com/LearnBoost/cli-table)
- [progress bars](https://github.com/visionmedia/node-progress)
- [more progress bars](https://github.com/substack/node-multimeter)
- [examples](https://github.com/calvinmetcalf/ltcdr/tree/master/examples)
- [prompts](https://github.com/SBoudrias/Inquirer.js)
[1]: https://travis-ci.org/calvinmetcalf/ltcdr.svg?branch=master
[2]: https://travis-ci.org/calvinmetcalf/ltcdr
|
package com.cccrps.gui;
import java.awt.AWTException;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Frame;
import java.awt.HeadlessException;
import java.awt.Image;
import java.awt.MenuItem;
import java.awt.PopupMenu;
import java.awt.SystemColor;
import java.awt.SystemTray;
import java.awt.Toolkit;
import java.awt.TrayIcon;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.InetAddress;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.net.UnknownHostException;
import java.util.prefs.Preferences;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import org.apache.commons.io.IOUtils;
import com.cccrps.main.Main;
import com.cccrps.main.SimpleUpdater;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
public class GuiManager {
private JFrame frmCccrps;
/**
* Create the application.
* @throws FileNotFoundException
*/
public GuiManager() throws FileNotFoundException {
}
public JFrame getFrame(){
return frmCccrps;
}
/**
* Initialize the contents of the frame.
* @throws FileNotFoundException
* @throws UnknownHostException
* @wbp.parser.entryPoint
*/
public void initialize() throws FileNotFoundException, UnknownHostException {
frmCccrps = new JFrame();
Image icon = new ImageIcon(this.getClass().getResource("/images/icon.png")).getImage();
frmCccrps.setIconImage(icon);
frmCccrps.addWindowListener(new WindowAdapter() {
public void windowOpened(WindowEvent e){
final Preferences prefs;
prefs = Preferences.userNodeForPackage(this.getClass());
boolean isminimized=Boolean.parseBoolean(prefs.get("checkbminimized", ""));
System.out.println(isminimized);
if(isminimized){
System.out.println("Minimizing");
frmCccrps.setExtendedState(Frame.ICONIFIED);
}
System.out.println("WindowOpened");
}
@Override
public void windowClosing(WindowEvent e){
frmCccrps.setVisible(false);
displayTrayIcon();
}
public void windowClosed(WindowEvent e){}
public void windowIconified(WindowEvent e){
frmCccrps.setVisible(false);
displayTrayIcon();
}
public void windowDeiconified(WindowEvent e){}
public void windowActivated(WindowEvent e){
System.out.println("windowActivated");
}
public void windowDeactivated(WindowEvent e){}
});
final Preferences prefs;
prefs = Preferences.userNodeForPackage(this.getClass());
frmCccrps.setResizable(false);
frmCccrps.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frmCccrps.setTitle("CRP");
frmCccrps.setBounds(100, 100, 240, 310);
JPanel panel = new JPanel();
frmCccrps.getContentPane().add(panel, BorderLayout.NORTH);
JLabel lblNewLabel = new JLabel("Catalyst Remote Profile Server");
panel.add(lblNewLabel);
JDesktopPane desktopPane = new JDesktopPane();
desktopPane.setBackground(SystemColor.menu);
frmCccrps.getContentPane().add(desktopPane, BorderLayout.CENTER);
final JCheckBox chckbxStartMinimized = new JCheckBox("Start Minimized");
chckbxStartMinimized.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent arg0) {
prefs.put("checkbminimized", String.valueOf(chckbxStartMinimized.isSelected()));
}
});
chckbxStartMinimized.setHorizontalAlignment(SwingConstants.CENTER);
chckbxStartMinimized.setBounds(10, 80, 212, 25);
desktopPane.add(chckbxStartMinimized);
boolean isminimized=Boolean.parseBoolean(prefs.get("checkbminimized", ""));
System.out.println(isminimized);
if(isminimized){
System.out.println("Minimizing");
chckbxStartMinimized.setSelected(true);
frmCccrps.setExtendedState(Frame.ICONIFIED);
}
JButton btnCloseServer = new JButton("Shutdown Server");
btnCloseServer.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
System.exit(0);
}
});
btnCloseServer.setBounds(10, 177, 212, 30);
desktopPane.add(btnCloseServer);
JButton btnStartOnWindows = new JButton("Website(Instructions & About)");
btnStartOnWindows.setForeground(new Color(255, 0, 0));
btnStartOnWindows.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
try {
java.awt.Desktop.getDesktop().browse(new URI("http://goo.gl/uihUNy"));
} catch (IOException | URISyntaxException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
btnStartOnWindows.setBounds(10, 28, 212, 43);
desktopPane.add(btnStartOnWindows);
JLabel lblIp = new JLabel("");
lblIp.setText("IP: "+InetAddress.getLocalHost().getHostAddress());
lblIp.setHorizontalAlignment(SwingConstants.CENTER);
lblIp.setBounds(10, 148, 210, 16);
desktopPane.add(lblIp);
final JCheckBox checkBoxAutoStart = new JCheckBox("Autostart");
checkBoxAutoStart.addMouseListener(new MouseAdapter() {
@Override
public void mouseReleased(MouseEvent e) {
if(checkBoxAutoStart.isSelected()){
JOptionPane.showMessageDialog(null,"!Warning, if ServerFile(.jar) gets moved , Autostart has to be applied again!");
}
}
});
checkBoxAutoStart.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent arg0) {
prefs.put("autostart", String.valueOf(checkBoxAutoStart.isSelected()));
String targetpath = "C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\CRPServerAutostarter.bat";
if(checkBoxAutoStart.isSelected()){
Writer writer = null;
try {
writer = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(targetpath), "utf-8"));
File f = new File(System.getProperty("java.class.path"));
File dir = f.getAbsoluteFile().getParentFile();
String path = dir.toString();
writer.write("start /min javaw -jar \""+path+"\\"+f.getName()+"\"");
} catch (IOException ex) {
// report
} finally {
try {writer.close();} catch (Exception ex) {}
}
}else{
try{
File file = new File(targetpath);
file.delete();
}catch(Exception e){
e.printStackTrace();
}
}
}
});
if(Boolean.parseBoolean(prefs.get("autostart", ""))){
checkBoxAutoStart.setSelected(true);
}else{
checkBoxAutoStart.setSelected(false);
}
checkBoxAutoStart.setHorizontalAlignment(SwingConstants.CENTER);
checkBoxAutoStart.setBounds(10, 110, 212, 25);
desktopPane.add(checkBoxAutoStart);
JLabel lblVersion = new JLabel("Version Undefined");
lblVersion.setHorizontalAlignment(SwingConstants.CENTER);
lblVersion.setBounds(41, 0, 154, 16);
lblVersion.setText("Version: "+Main.getVersion());
desktopPane.add(lblVersion);
JButton btnCheckForUpdates = new JButton("Check For Updates");
btnCheckForUpdates.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
try {
int NewVersion=Integer.parseInt(IOUtils.toString(new URL("https://flothinkspi.github.io/Catalyst-PresetSwitcher/version.json")).replace("\n", "").replace("\r", ""));
if(NewVersion>Integer.parseInt(Main.getVersion())){
int dialogResult = JOptionPane.showConfirmDialog (null, "Update found from "+Main.getVersion()+" to "+NewVersion+" ,Update now ?","CRPServer Updater",JOptionPane.YES_NO_OPTION);
if(dialogResult == JOptionPane.YES_OPTION){
String path = Main.class.getProtectionDomain().getCodeSource().getLocation().getPath();
String decodedPath = URLDecoder.decode(path, "UTF-8");
System.out.println(decodedPath);
SimpleUpdater.update(new URL("https://flothinkspi.github.io/Catalyst-PresetSwitcher/download/CRPServer.jar"),new File(decodedPath) , "updated");
System.exit(0);
}
}else{
JOptionPane.showConfirmDialog (null, "No Updates , You have the latest CRPServer(Version:"+Main.getVersion()+")","CRPServer Updater",JOptionPane.PLAIN_MESSAGE);
}
} catch (NumberFormatException | HeadlessException
| IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
btnCheckForUpdates.setBounds(10, 213, 212, 30);
desktopPane.add(btnCheckForUpdates);
frmCccrps.addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
frmCccrps.setExtendedState(Frame.ICONIFIED);
}
});
}
public void displayTrayIcon(){
final TrayIcon trayIcon;
if (SystemTray.isSupported()) {
final SystemTray tray = SystemTray.getSystemTray();
Image image = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource("/images/icon.gif"));
PopupMenu popup = new PopupMenu();
trayIcon = new TrayIcon(image, "CCCRPS", popup);
trayIcon.setImageAutoSize(true);
//trayIcon.addMouseListener(mouseListener);
MenuItem defaultItem = new MenuItem("Stop Server");
defaultItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(0);
}
});
popup.add(defaultItem);
trayIcon.addMouseListener(
new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 1) {
frmCccrps.setVisible(true);
frmCccrps.setState ( Frame.NORMAL );
tray.remove(trayIcon);
}
}
});
try {
tray.add(trayIcon);
} catch (AWTException e) {
System.err.println("TrayIcon could not be added.");
}
} else {
System.err.println("System tray is currently not supported.");
}
}
}
|
Carnaval_
=========
|
//[Kores](../index.md)/[com.github.jonathanxd.kores.literal](index.md)/[char](char.md)
# char
[jvm]
Content
@[JvmName](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-name/index.html)(name = "charLiteral")
fun [char](char.md)(char: [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)): [Literal](-literal/index.md)
|
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.21
"undefined" == typeof WeakMap && !function () {
var e = Object.defineProperty, t = Date.now() % 1e9, n = function () {
this.name = "__st" + (1e9 * Math.random() >>> 0) + (t++ + "__")
};
n.prototype = {
set: function (t, n) {
var r = t[this.name];
return r && r[0] === t ? r[1] = n : e(t, this.name, {value: [t, n], writable: !0}), this
}, get: function (e) {
var t;
return (t = e[this.name]) && t[0] === e ? t[1] : void 0
}, "delete": function (e) {
var t = e[this.name];
return t && t[0] === e ? (t[0] = t[1] = void 0, !0) : !1
}, has: function (e) {
var t = e[this.name];
return t ? t[0] === e : !1
}
}, window.WeakMap = n
}(), window.ShadowDOMPolyfill = {}, function (e) {
"use strict";
function t() {
if ("undefined" != typeof chrome && chrome.app && chrome.app.runtime)return !1;
if (navigator.getDeviceStorage)return !1;
try {
var e = new Function("return true;");
return e()
} catch (t) {
return !1
}
}
function n(e) {
if (!e)throw new Error("Assertion failed")
}
function r(e, t) {
for (var n = k(t), r = 0; r < n.length; r++) {
var o = n[r];
A(e, o, F(t, o))
}
return e
}
function o(e, t) {
for (var n = k(t), r = 0; r < n.length; r++) {
var o = n[r];
switch (o) {
case"arguments":
case"caller":
case"length":
case"name":
case"prototype":
case"toString":
continue
}
A(e, o, F(t, o))
}
return e
}
function i(e, t) {
for (var n = 0; n < t.length; n++)if (t[n] in e)return t[n]
}
function a(e, t, n) {
B.value = n, A(e, t, B)
}
function s(e, t) {
var n = e.__proto__ || Object.getPrototypeOf(e);
if (U)try {
k(n)
} catch (r) {
n = n.__proto__
}
var o = R.get(n);
if (o)return o;
var i = s(n), a = E(i);
return v(n, a, t), a
}
function c(e, t) {
m(e, t, !0)
}
function u(e, t) {
m(t, e, !1)
}
function l(e) {
return /^on[a-z]+$/.test(e)
}
function p(e) {
return /^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)
}
function d(e) {
return I && p(e) ? new Function("return this.__impl4cf1e782hg__." + e) : function () {
return this.__impl4cf1e782hg__[e]
}
}
function f(e) {
return I && p(e) ? new Function("v", "this.__impl4cf1e782hg__." + e + " = v") : function (t) {
this.__impl4cf1e782hg__[e] = t
}
}
function h(e) {
return I && p(e) ? new Function("return this.__impl4cf1e782hg__." + e + ".apply(this.__impl4cf1e782hg__, arguments)") : function () {
return this.__impl4cf1e782hg__[e].apply(this.__impl4cf1e782hg__, arguments)
}
}
function w(e, t) {
try {
return Object.getOwnPropertyDescriptor(e, t)
} catch (n) {
return q
}
}
function m(t, n, r, o) {
for (var i = k(t), a = 0; a < i.length; a++) {
var s = i[a];
if ("polymerBlackList_" !== s && !(s in n || t.polymerBlackList_ && t.polymerBlackList_[s])) {
U && t.__lookupGetter__(s);
var c, u, p = w(t, s);
if ("function" != typeof p.value) {
var m = l(s);
c = m ? e.getEventHandlerGetter(s) : d(s), (p.writable || p.set || V) && (u = m ? e.getEventHandlerSetter(s) : f(s));
var g = V || p.configurable;
A(n, s, {get: c, set: u, configurable: g, enumerable: p.enumerable})
} else r && (n[s] = h(s))
}
}
}
function g(e, t, n) {
if (null != e) {
var r = e.prototype;
v(r, t, n), o(t, e)
}
}
function v(e, t, r) {
var o = t.prototype;
n(void 0 === R.get(e)), R.set(e, t), P.set(o, e), c(e, o), r && u(o, r), a(o, "constructor", t), t.prototype = o
}
function b(e, t) {
return R.get(t.prototype) === e
}
function y(e) {
var t = Object.getPrototypeOf(e), n = s(t), r = E(n);
return v(t, r, e), r
}
function E(e) {
function t(t) {
e.call(this, t)
}
var n = Object.create(e.prototype);
return n.constructor = t, t.prototype = n, t
}
function S(e) {
return e && e.__impl4cf1e782hg__
}
function M(e) {
return !S(e)
}
function T(e) {
if (null === e)return null;
n(M(e));
var t = e.__wrapper8e3dd93a60__;
return null != t ? t : e.__wrapper8e3dd93a60__ = new (s(e, e))(e)
}
function O(e) {
return null === e ? null : (n(S(e)), e.__impl4cf1e782hg__)
}
function N(e) {
return e.__impl4cf1e782hg__
}
function j(e, t) {
t.__impl4cf1e782hg__ = e, e.__wrapper8e3dd93a60__ = t
}
function L(e) {
return e && S(e) ? O(e) : e
}
function _(e) {
return e && !S(e) ? T(e) : e
}
function D(e, t) {
null !== t && (n(M(e)), n(void 0 === t || S(t)), e.__wrapper8e3dd93a60__ = t)
}
function C(e, t, n) {
G.get = n, A(e.prototype, t, G)
}
function H(e, t) {
C(e, t, function () {
return T(this.__impl4cf1e782hg__[t])
})
}
function x(e, t) {
e.forEach(function (e) {
t.forEach(function (t) {
e.prototype[t] = function () {
var e = _(this);
return e[t].apply(e, arguments)
}
})
})
}
var R = new WeakMap, P = new WeakMap, W = Object.create(null), I = t(), A = Object.defineProperty, k = Object.getOwnPropertyNames, F = Object.getOwnPropertyDescriptor, B = {
value: void 0,
configurable: !0,
enumerable: !1,
writable: !0
};
k(window);
var U = /Firefox/.test(navigator.userAgent), q = {
get: function () {
}, set: function (e) {
}, configurable: !0, enumerable: !0
}, V = function () {
var e = Object.getOwnPropertyDescriptor(Node.prototype, "nodeType");
return e && !e.get && !e.set
}(), G = {get: void 0, configurable: !0, enumerable: !0};
e.addForwardingProperties = c, e.assert = n, e.constructorTable = R, e.defineGetter = C, e.defineWrapGetter = H, e.forwardMethodsToWrapper = x, e.isIdentifierName = p, e.isWrapper = S, e.isWrapperFor = b, e.mixin = r, e.nativePrototypeTable = P, e.oneOf = i, e.registerObject = y, e.registerWrapper = g, e.rewrap = D, e.setWrapper = j, e.unsafeUnwrap = N, e.unwrap = O, e.unwrapIfNeeded = L, e.wrap = T, e.wrapIfNeeded = _, e.wrappers = W
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e, t, n) {
return {index: e, removed: t, addedCount: n}
}
function n() {
}
var r = 0, o = 1, i = 2, a = 3;
n.prototype = {
calcEditDistances: function (e, t, n, r, o, i) {
for (var a = i - o + 1, s = n - t + 1, c = new Array(a), u = 0; a > u; u++)c[u] = new Array(s), c[u][0] = u;
for (var l = 0; s > l; l++)c[0][l] = l;
for (var u = 1; a > u; u++)for (var l = 1; s > l; l++)if (this.equals(e[t + l - 1], r[o + u - 1]))c[u][l] = c[u - 1][l - 1]; else {
var p = c[u - 1][l] + 1, d = c[u][l - 1] + 1;
c[u][l] = d > p ? p : d
}
return c
}, spliceOperationsFromEditDistances: function (e) {
for (var t = e.length - 1, n = e[0].length - 1, s = e[t][n], c = []; t > 0 || n > 0;)if (0 != t)if (0 != n) {
var u, l = e[t - 1][n - 1], p = e[t - 1][n], d = e[t][n - 1];
u = d > p ? l > p ? p : l : l > d ? d : l, u == l ? (l == s ? c.push(r) : (c.push(o), s = l), t--, n--) : u == p ? (c.push(a), t--, s = p) : (c.push(i), n--, s = d)
} else c.push(a), t--; else c.push(i), n--;
return c.reverse(), c
}, calcSplices: function (e, n, s, c, u, l) {
var p = 0, d = 0, f = Math.min(s - n, l - u);
if (0 == n && 0 == u && (p = this.sharedPrefix(e, c, f)), s == e.length && l == c.length && (d = this.sharedSuffix(e, c, f - p)), n += p, u += p, s -= d, l -= d, s - n == 0 && l - u == 0)return [];
if (n == s) {
for (var h = t(n, [], 0); l > u;)h.removed.push(c[u++]);
return [h]
}
if (u == l)return [t(n, [], s - n)];
for (var w = this.spliceOperationsFromEditDistances(this.calcEditDistances(e, n, s, c, u, l)), h = void 0, m = [], g = n, v = u, b = 0; b < w.length; b++)switch (w[b]) {
case r:
h && (m.push(h), h = void 0), g++, v++;
break;
case o:
h || (h = t(g, [], 0)), h.addedCount++, g++, h.removed.push(c[v]), v++;
break;
case i:
h || (h = t(g, [], 0)), h.addedCount++, g++;
break;
case a:
h || (h = t(g, [], 0)), h.removed.push(c[v]), v++
}
return h && m.push(h), m
}, sharedPrefix: function (e, t, n) {
for (var r = 0; n > r; r++)if (!this.equals(e[r], t[r]))return r;
return n
}, sharedSuffix: function (e, t, n) {
for (var r = e.length, o = t.length, i = 0; n > i && this.equals(e[--r], t[--o]);)i++;
return i
}, calculateSplices: function (e, t) {
return this.calcSplices(e, 0, e.length, t, 0, t.length)
}, equals: function (e, t) {
return e === t
}
}, e.ArraySplice = n
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t() {
a = !1;
var e = i.slice(0);
i = [];
for (var t = 0; t < e.length; t++)(0, e[t])()
}
function n(e) {
i.push(e), a || (a = !0, r(t, 0))
}
var r, o = window.MutationObserver, i = [], a = !1;
if (o) {
var s = 1, c = new o(t), u = document.createTextNode(s);
c.observe(u, {characterData: !0}), r = function () {
s = (s + 1) % 2, u.data = s
}
} else r = window.setTimeout;
e.setEndOfMicrotask = n
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
e.scheduled_ || (e.scheduled_ = !0, h.push(e), w || (l(n), w = !0))
}
function n() {
for (w = !1; h.length;) {
var e = h;
h = [], e.sort(function (e, t) {
return e.uid_ - t.uid_
});
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.scheduled_ = !1;
var r = n.takeRecords();
i(n), r.length && n.callback_(r, n)
}
}
}
function r(e, t) {
this.type = e, this.target = t, this.addedNodes = new d.NodeList, this.removedNodes = new d.NodeList, this.previousSibling = null, this.nextSibling = null, this.attributeName = null, this.attributeNamespace = null, this.oldValue = null
}
function o(e, t) {
for (; e; e = e.parentNode) {
var n = f.get(e);
if (n)for (var r = 0; r < n.length; r++) {
var o = n[r];
o.options.subtree && o.addTransientObserver(t)
}
}
}
function i(e) {
for (var t = 0; t < e.nodes_.length; t++) {
var n = e.nodes_[t], r = f.get(n);
if (!r)return;
for (var o = 0; o < r.length; o++) {
var i = r[o];
i.observer === e && i.removeTransientObservers()
}
}
}
function a(e, n, o) {
for (var i = Object.create(null), a = Object.create(null), s = e; s; s = s.parentNode) {
var c = f.get(s);
if (c)for (var u = 0; u < c.length; u++) {
var l = c[u], p = l.options;
if ((s === e || p.subtree) && ("attributes" !== n || p.attributes) && ("attributes" !== n || !p.attributeFilter || null === o.namespace && -1 !== p.attributeFilter.indexOf(o.name)) && ("characterData" !== n || p.characterData) && ("childList" !== n || p.childList)) {
var d = l.observer;
i[d.uid_] = d, ("attributes" === n && p.attributeOldValue || "characterData" === n && p.characterDataOldValue) && (a[d.uid_] = o.oldValue)
}
}
}
for (var h in i) {
var d = i[h], w = new r(n, e);
"name" in o && "namespace" in o && (w.attributeName = o.name, w.attributeNamespace = o.namespace), o.addedNodes && (w.addedNodes = o.addedNodes), o.removedNodes && (w.removedNodes = o.removedNodes), o.previousSibling && (w.previousSibling = o.previousSibling), o.nextSibling && (w.nextSibling = o.nextSibling), void 0 !== a[h] && (w.oldValue = a[h]), t(d), d.records_.push(w)
}
}
function s(e) {
if (this.childList = !!e.childList, this.subtree = !!e.subtree, "attributes" in e || !("attributeOldValue" in e || "attributeFilter" in e) ? this.attributes = !!e.attributes : this.attributes = !0, "characterDataOldValue" in e && !("characterData" in e) ? this.characterData = !0 : this.characterData = !!e.characterData, !this.attributes && (e.attributeOldValue || "attributeFilter" in e) || !this.characterData && e.characterDataOldValue)throw new TypeError;
if (this.characterData = !!e.characterData, this.attributeOldValue = !!e.attributeOldValue, this.characterDataOldValue = !!e.characterDataOldValue, "attributeFilter" in e) {
if (null == e.attributeFilter || "object" != typeof e.attributeFilter)throw new TypeError;
this.attributeFilter = m.call(e.attributeFilter)
} else this.attributeFilter = null
}
function c(e) {
this.callback_ = e, this.nodes_ = [], this.records_ = [], this.uid_ = ++g, this.scheduled_ = !1
}
function u(e, t, n) {
this.observer = e, this.target = t, this.options = n, this.transientObservedNodes = []
}
var l = e.setEndOfMicrotask, p = e.wrapIfNeeded, d = e.wrappers, f = new WeakMap, h = [], w = !1, m = Array.prototype.slice, g = 0;
c.prototype = {
constructor: c, observe: function (e, t) {
e = p(e);
var n, r = new s(t), o = f.get(e);
o || f.set(e, o = []);
for (var i = 0; i < o.length; i++)o[i].observer === this && (n = o[i], n.removeTransientObservers(), n.options = r);
n || (n = new u(this, e, r), o.push(n), this.nodes_.push(e))
}, disconnect: function () {
this.nodes_.forEach(function (e) {
for (var t = f.get(e), n = 0; n < t.length; n++) {
var r = t[n];
if (r.observer === this) {
t.splice(n, 1);
break
}
}
}, this), this.records_ = []
}, takeRecords: function () {
var e = this.records_;
return this.records_ = [], e
}
}, u.prototype = {
addTransientObserver: function (e) {
if (e !== this.target) {
t(this.observer), this.transientObservedNodes.push(e);
var n = f.get(e);
n || f.set(e, n = []), n.push(this)
}
}, removeTransientObservers: function () {
var e = this.transientObservedNodes;
this.transientObservedNodes = [];
for (var t = 0; t < e.length; t++)for (var n = e[t], r = f.get(n), o = 0; o < r.length; o++)if (r[o] === this) {
r.splice(o, 1);
break
}
}
}, e.enqueueMutation = a, e.registerTransientObservers = o, e.wrappers.MutationObserver = c, e.wrappers.MutationRecord = r
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e, t) {
this.root = e, this.parent = t
}
function n(e, t) {
if (e.treeScope_ !== t) {
e.treeScope_ = t;
for (var r = e.shadowRoot; r; r = r.olderShadowRoot)r.treeScope_.parent = t;
for (var o = e.firstChild; o; o = o.nextSibling)n(o, t)
}
}
function r(n) {
if (n instanceof e.wrappers.Window, n.treeScope_)return n.treeScope_;
var o, i = n.parentNode;
return o = i ? r(i) : new t(n, null), n.treeScope_ = o
}
t.prototype = {
get renderer() {
return this.root instanceof e.wrappers.ShadowRoot ? e.getRendererForHost(this.root.host) : null
}, contains: function (e) {
for (; e; e = e.parent)if (e === this)return !0;
return !1
}
}, e.TreeScope = t, e.getTreeScope = r, e.setTreeScope = n
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
return e instanceof G.ShadowRoot
}
function n(e) {
return A(e).root
}
function r(e, r) {
var s = [], c = e;
for (s.push(c); c;) {
var u = a(c);
if (u && u.length > 0) {
for (var l = 0; l < u.length; l++) {
var d = u[l];
if (i(d)) {
var f = n(d), h = f.olderShadowRoot;
h && s.push(h)
}
s.push(d)
}
c = u[u.length - 1]
} else if (t(c)) {
if (p(e, c) && o(r))break;
c = c.host, s.push(c)
} else c = c.parentNode, c && s.push(c)
}
return s
}
function o(e) {
if (!e)return !1;
switch (e.type) {
case"abort":
case"error":
case"select":
case"change":
case"load":
case"reset":
case"resize":
case"scroll":
case"selectstart":
return !0
}
return !1
}
function i(e) {
return e instanceof HTMLShadowElement
}
function a(t) {
return e.getDestinationInsertionPoints(t)
}
function s(e, t) {
if (0 === e.length)return t;
t instanceof G.Window && (t = t.document);
for (var n = A(t), r = e[0], o = A(r), i = u(n, o), a = 0; a < e.length; a++) {
var s = e[a];
if (A(s) === i)return s
}
return e[e.length - 1]
}
function c(e) {
for (var t = []; e; e = e.parent)t.push(e);
return t
}
function u(e, t) {
for (var n = c(e), r = c(t), o = null; n.length > 0 && r.length > 0;) {
var i = n.pop(), a = r.pop();
if (i !== a)break;
o = i
}
return o
}
function l(e, t, n) {
t instanceof G.Window && (t = t.document);
var o, i = A(t), a = A(n), s = r(n, e), o = u(i, a);
o || (o = a.root);
for (var c = o; c; c = c.parent)for (var l = 0; l < s.length; l++) {
var p = s[l];
if (A(p) === c)return p
}
return null
}
function p(e, t) {
return A(e) === A(t)
}
function d(e) {
if (!X.get(e) && (X.set(e, !0), h(V(e), V(e.target)), W)) {
var t = W;
throw W = null, t
}
}
function f(e) {
switch (e.type) {
case"load":
case"beforeunload":
case"unload":
return !0
}
return !1
}
function h(t, n) {
if (K.get(t))throw new Error("InvalidStateError");
K.set(t, !0), e.renderAllPending();
var o, i, a;
if (f(t) && !t.bubbles) {
var s = n;
s instanceof G.Document && (a = s.defaultView) && (i = s, o = [])
}
if (!o)if (n instanceof G.Window)a = n, o = []; else if (o = r(n, t), !f(t)) {
var s = o[o.length - 1];
s instanceof G.Document && (a = s.defaultView)
}
return ne.set(t, o), w(t, o, a, i) && m(t, o, a, i) && g(t, o, a, i), J.set(t, re), $["delete"](t, null), K["delete"](t), t.defaultPrevented
}
function w(e, t, n, r) {
var o = oe;
if (n && !v(n, e, o, t, r))return !1;
for (var i = t.length - 1; i > 0; i--)if (!v(t[i], e, o, t, r))return !1;
return !0
}
function m(e, t, n, r) {
var o = ie, i = t[0] || n;
return v(i, e, o, t, r)
}
function g(e, t, n, r) {
for (var o = ae, i = 1; i < t.length; i++)if (!v(t[i], e, o, t, r))return;
n && t.length > 0 && v(n, e, o, t, r)
}
function v(e, t, n, r, o) {
var i = z.get(e);
if (!i)return !0;
var a = o || s(r, e);
if (a === e) {
if (n === oe)return !0;
n === ae && (n = ie)
} else if (n === ae && !t.bubbles)return !0;
if ("relatedTarget" in t) {
var c = q(t), u = c.relatedTarget;
if (u) {
if (u instanceof Object && u.addEventListener) {
var p = V(u), d = l(t, e, p);
if (d === a)return !0
} else d = null;
Z.set(t, d)
}
}
J.set(t, n);
var f = t.type, h = !1;
Y.set(t, a), $.set(t, e), i.depth++;
for (var w = 0, m = i.length; m > w; w++) {
var g = i[w];
if (g.removed)h = !0; else if (!(g.type !== f || !g.capture && n === oe || g.capture && n === ae))try {
if ("function" == typeof g.handler ? g.handler.call(e, t) : g.handler.handleEvent(t), ee.get(t))return !1
} catch (v) {
W || (W = v)
}
}
if (i.depth--, h && 0 === i.depth) {
var b = i.slice();
i.length = 0;
for (var w = 0; w < b.length; w++)b[w].removed || i.push(b[w])
}
return !Q.get(t)
}
function b(e, t, n) {
this.type = e, this.handler = t, this.capture = Boolean(n)
}
function y(e, t) {
if (!(e instanceof se))return V(T(se, "Event", e, t));
var n = e;
return be || "beforeunload" !== n.type || this instanceof O ? void B(n, this) : new O(n)
}
function E(e) {
return e && e.relatedTarget ? Object.create(e, {relatedTarget: {value: q(e.relatedTarget)}}) : e
}
function S(e, t, n) {
var r = window[e], o = function (t, n) {
return t instanceof r ? void B(t, this) : V(T(r, e, t, n))
};
if (o.prototype = Object.create(t.prototype), n && k(o.prototype, n), r)try {
F(r, o, new r("temp"))
} catch (i) {
F(r, o, document.createEvent(e))
}
return o
}
function M(e, t) {
return function () {
arguments[t] = q(arguments[t]);
var n = q(this);
n[e].apply(n, arguments)
}
}
function T(e, t, n, r) {
if (ge)return new e(n, E(r));
var o = q(document.createEvent(t)), i = me[t], a = [n];
return Object.keys(i).forEach(function (e) {
var t = null != r && e in r ? r[e] : i[e];
"relatedTarget" === e && (t = q(t)), a.push(t)
}), o["init" + t].apply(o, a), o
}
function O(e) {
y.call(this, e)
}
function N(e) {
return "function" == typeof e ? !0 : e && e.handleEvent
}
function j(e) {
switch (e) {
case"DOMAttrModified":
case"DOMAttributeNameChanged":
case"DOMCharacterDataModified":
case"DOMElementNameChanged":
case"DOMNodeInserted":
case"DOMNodeInsertedIntoDocument":
case"DOMNodeRemoved":
case"DOMNodeRemovedFromDocument":
case"DOMSubtreeModified":
return !0
}
return !1
}
function L(e) {
B(e, this)
}
function _(e) {
return e instanceof G.ShadowRoot && (e = e.host), q(e)
}
function D(e, t) {
var n = z.get(e);
if (n)for (var r = 0; r < n.length; r++)if (!n[r].removed && n[r].type === t)return !0;
return !1
}
function C(e, t) {
for (var n = q(e); n; n = n.parentNode)if (D(V(n), t))return !0;
return !1
}
function H(e) {
I(e, Ee)
}
function x(t, n, o, i) {
e.renderAllPending();
var a = V(Se.call(U(n), o, i));
if (!a)return null;
var c = r(a, null), u = c.lastIndexOf(t);
return -1 == u ? null : (c = c.slice(0, u), s(c, t))
}
function R(e) {
return function () {
var t = te.get(this);
return t && t[e] && t[e].value || null
}
}
function P(e) {
var t = e.slice(2);
return function (n) {
var r = te.get(this);
r || (r = Object.create(null), te.set(this, r));
var o = r[e];
if (o && this.removeEventListener(t, o.wrapped, !1), "function" == typeof n) {
var i = function (t) {
var r = n.call(this, t);
r === !1 ? t.preventDefault() : "onbeforeunload" === e && "string" == typeof r && (t.returnValue = r)
};
this.addEventListener(t, i, !1), r[e] = {value: n, wrapped: i}
}
}
}
var W, I = e.forwardMethodsToWrapper, A = e.getTreeScope, k = e.mixin, F = e.registerWrapper, B = e.setWrapper, U = e.unsafeUnwrap, q = e.unwrap, V = e.wrap, G = e.wrappers, z = (new WeakMap, new WeakMap), X = new WeakMap, K = new WeakMap, Y = new WeakMap, $ = new WeakMap, Z = new WeakMap, J = new WeakMap, Q = new WeakMap, ee = new WeakMap, te = new WeakMap, ne = new WeakMap, re = 0, oe = 1, ie = 2, ae = 3;
b.prototype = {
equals: function (e) {
return this.handler === e.handler && this.type === e.type && this.capture === e.capture
}, get removed() {
return null === this.handler
}, remove: function () {
this.handler = null
}
};
var se = window.Event;
se.prototype.polymerBlackList_ = {returnValue: !0, keyLocation: !0}, y.prototype = {
get target() {
return Y.get(this)
}, get currentTarget() {
return $.get(this)
}, get eventPhase() {
return J.get(this)
}, get path() {
var e = ne.get(this);
return e ? e.slice() : []
}, stopPropagation: function () {
Q.set(this, !0)
}, stopImmediatePropagation: function () {
Q.set(this, !0), ee.set(this, !0)
}
};
var ce = function () {
var e = document.createEvent("Event");
return e.initEvent("test", !0, !0), e.preventDefault(), e.defaultPrevented
}();
ce || (y.prototype.preventDefault = function () {
this.cancelable && (U(this).preventDefault(), Object.defineProperty(this, "defaultPrevented", {
get: function () {
return !0
}, configurable: !0
}))
}), F(se, y, document.createEvent("Event"));
var ue = S("UIEvent", y), le = S("CustomEvent", y), pe = {
get relatedTarget() {
var e = Z.get(this);
return void 0 !== e ? e : V(q(this).relatedTarget)
}
}, de = k({initMouseEvent: M("initMouseEvent", 14)}, pe), fe = k({initFocusEvent: M("initFocusEvent", 5)}, pe), he = S("MouseEvent", ue, de), we = S("FocusEvent", ue, fe), me = Object.create(null), ge = function () {
try {
new window.FocusEvent("focus")
} catch (e) {
return !1
}
return !0
}();
if (!ge) {
var ve = function (e, t, n) {
if (n) {
var r = me[n];
t = k(k({}, r), t)
}
me[e] = t
};
ve("Event", {
bubbles: !1,
cancelable: !1
}), ve("CustomEvent", {detail: null}, "Event"), ve("UIEvent", {
view: null,
detail: 0
}, "Event"), ve("MouseEvent", {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
ctrlKey: !1,
altKey: !1,
shiftKey: !1,
metaKey: !1,
button: 0,
relatedTarget: null
}, "UIEvent"), ve("FocusEvent", {relatedTarget: null}, "UIEvent")
}
var be = window.BeforeUnloadEvent;
O.prototype = Object.create(y.prototype), k(O.prototype, {
get returnValue() {
return U(this).returnValue
}, set returnValue(e) {
U(this).returnValue = e
}
}), be && F(be, O);
var ye = window.EventTarget, Ee = ["addEventListener", "removeEventListener", "dispatchEvent"];
[Node, Window].forEach(function (e) {
var t = e.prototype;
Ee.forEach(function (e) {
Object.defineProperty(t, e + "_", {value: t[e]})
})
}), L.prototype = {
addEventListener: function (e, t, n) {
if (N(t) && !j(e)) {
var r = new b(e, t, n), o = z.get(this);
if (o) {
for (var i = 0; i < o.length; i++)if (r.equals(o[i]))return
} else o = [], o.depth = 0, z.set(this, o);
o.push(r);
var a = _(this);
a.addEventListener_(e, d, !0)
}
}, removeEventListener: function (e, t, n) {
n = Boolean(n);
var r = z.get(this);
if (r) {
for (var o = 0, i = !1, a = 0; a < r.length; a++)r[a].type === e && r[a].capture === n && (o++, r[a].handler === t && (i = !0, r[a].remove()));
if (i && 1 === o) {
var s = _(this);
s.removeEventListener_(e, d, !0)
}
}
}, dispatchEvent: function (t) {
var n = q(t), r = n.type;
X.set(n, !1), e.renderAllPending();
var o;
C(this, r) || (o = function () {
}, this.addEventListener(r, o, !0));
try {
return q(this).dispatchEvent_(n)
} finally {
o && this.removeEventListener(r, o, !0)
}
}
}, ye && F(ye, L);
var Se = document.elementFromPoint;
e.elementFromPoint = x, e.getEventHandlerGetter = R, e.getEventHandlerSetter = P, e.wrapEventTargetMethods = H, e.wrappers.BeforeUnloadEvent = O, e.wrappers.CustomEvent = le, e.wrappers.Event = y, e.wrappers.EventTarget = L, e.wrappers.FocusEvent = we, e.wrappers.MouseEvent = he, e.wrappers.UIEvent = ue
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e, t) {
Object.defineProperty(e, t, w)
}
function n(e) {
u(e, this)
}
function r() {
this.length = 0, t(this, "length")
}
function o(e) {
for (var t = new r, o = 0; o < e.length; o++)t[o] = new n(e[o]);
return t.length = o, t
}
function i(e) {
a.call(this, e)
}
var a = e.wrappers.UIEvent, s = e.mixin, c = e.registerWrapper, u = e.setWrapper, l = e.unsafeUnwrap, p = e.wrap, d = window.TouchEvent;
if (d) {
var f;
try {
f = document.createEvent("TouchEvent")
} catch (h) {
return
}
var w = {enumerable: !1};
n.prototype = {
get target() {
return p(l(this).target)
}
};
var m = {configurable: !0, enumerable: !0, get: null};
["clientX", "clientY", "screenX", "screenY", "pageX", "pageY", "identifier", "webkitRadiusX", "webkitRadiusY", "webkitRotationAngle", "webkitForce"].forEach(function (e) {
m.get = function () {
return l(this)[e]
}, Object.defineProperty(n.prototype, e, m)
}), r.prototype = {
item: function (e) {
return this[e]
}
}, i.prototype = Object.create(a.prototype), s(i.prototype, {
get touches() {
return o(l(this).touches)
}, get targetTouches() {
return o(l(this).targetTouches)
}, get changedTouches() {
return o(l(this).changedTouches)
}, initTouchEvent: function () {
throw new Error("Not implemented")
}
}), c(d, i, f), e.wrappers.Touch = n, e.wrappers.TouchEvent = i, e.wrappers.TouchList = r
}
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e, t) {
Object.defineProperty(e, t, s)
}
function n() {
this.length = 0, t(this, "length")
}
function r(e) {
if (null == e)return e;
for (var t = new n, r = 0, o = e.length; o > r; r++)t[r] = a(e[r]);
return t.length = o, t
}
function o(e, t) {
e.prototype[t] = function () {
return r(i(this)[t].apply(i(this), arguments))
}
}
var i = e.unsafeUnwrap, a = e.wrap, s = {enumerable: !1};
n.prototype = {
item: function (e) {
return this[e]
}
}, t(n.prototype, "item"), e.wrappers.NodeList = n, e.addWrapNodeListMethod = o, e.wrapNodeList = r
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
e.wrapHTMLCollection = e.wrapNodeList, e.wrappers.HTMLCollection = e.wrappers.NodeList
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
N(e instanceof S)
}
function n(e) {
var t = new T;
return t[0] = e, t.length = 1, t
}
function r(e, t, n) {
L(t, "childList", {removedNodes: n, previousSibling: e.previousSibling, nextSibling: e.nextSibling})
}
function o(e, t) {
L(e, "childList", {removedNodes: t})
}
function i(e, t, r, o) {
if (e instanceof DocumentFragment) {
var i = s(e);
B = !0;
for (var a = i.length - 1; a >= 0; a--)e.removeChild(i[a]), i[a].parentNode_ = t;
B = !1;
for (var a = 0; a < i.length; a++)i[a].previousSibling_ = i[a - 1] || r, i[a].nextSibling_ = i[a + 1] || o;
return r && (r.nextSibling_ = i[0]), o && (o.previousSibling_ = i[i.length - 1]), i
}
var i = n(e), c = e.parentNode;
return c && c.removeChild(e), e.parentNode_ = t, e.previousSibling_ = r, e.nextSibling_ = o, r && (r.nextSibling_ = e), o && (o.previousSibling_ = e), i
}
function a(e) {
if (e instanceof DocumentFragment)return s(e);
var t = n(e), o = e.parentNode;
return o && r(e, o, t), t
}
function s(e) {
for (var t = new T, n = 0, r = e.firstChild; r; r = r.nextSibling)t[n++] = r;
return t.length = n, o(e, t), t
}
function c(e) {
return e
}
function u(e, t) {
R(e, t), e.nodeIsInserted_()
}
function l(e, t) {
for (var n = _(t), r = 0; r < e.length; r++)u(e[r], n)
}
function p(e) {
R(e, new O(e, null))
}
function d(e) {
for (var t = 0; t < e.length; t++)p(e[t])
}
function f(e, t) {
var n = e.nodeType === S.DOCUMENT_NODE ? e : e.ownerDocument;
n !== t.ownerDocument && n.adoptNode(t)
}
function h(t, n) {
if (n.length) {
var r = t.ownerDocument;
if (r !== n[0].ownerDocument)for (var o = 0; o < n.length; o++)e.adoptNodeNoRemove(n[o], r)
}
}
function w(e, t) {
h(e, t);
var n = t.length;
if (1 === n)return W(t[0]);
for (var r = W(e.ownerDocument.createDocumentFragment()), o = 0; n > o; o++)r.appendChild(W(t[o]));
return r
}
function m(e) {
if (void 0 !== e.firstChild_)for (var t = e.firstChild_; t;) {
var n = t;
t = t.nextSibling_, n.parentNode_ = n.previousSibling_ = n.nextSibling_ = void 0
}
e.firstChild_ = e.lastChild_ = void 0
}
function g(e) {
if (e.invalidateShadowRenderer()) {
for (var t = e.firstChild; t;) {
N(t.parentNode === e);
var n = t.nextSibling, r = W(t), o = r.parentNode;
o && Y.call(o, r), t.previousSibling_ = t.nextSibling_ = t.parentNode_ = null, t = n
}
e.firstChild_ = e.lastChild_ = null
} else for (var n, i = W(e), a = i.firstChild; a;)n = a.nextSibling, Y.call(i, a), a = n
}
function v(e) {
var t = e.parentNode;
return t && t.invalidateShadowRenderer()
}
function b(e) {
for (var t, n = 0; n < e.length; n++)t = e[n], t.parentNode.removeChild(t)
}
function y(e, t, n) {
var r;
if (r = A(n ? U.call(n, P(e), !1) : q.call(P(e), !1)), t) {
for (var o = e.firstChild; o; o = o.nextSibling)r.appendChild(y(o, !0, n));
if (e instanceof F.HTMLTemplateElement)for (var i = r.content, o = e.content.firstChild; o; o = o.nextSibling)i.appendChild(y(o, !0, n))
}
return r
}
function E(e, t) {
if (!t || _(e) !== _(t))return !1;
for (var n = t; n; n = n.parentNode)if (n === e)return !0;
return !1
}
function S(e) {
N(e instanceof V), M.call(this, e), this.parentNode_ = void 0, this.firstChild_ = void 0, this.lastChild_ = void 0, this.nextSibling_ = void 0, this.previousSibling_ = void 0, this.treeScope_ = void 0
}
var M = e.wrappers.EventTarget, T = e.wrappers.NodeList, O = e.TreeScope, N = e.assert, j = e.defineWrapGetter, L = e.enqueueMutation, _ = e.getTreeScope, D = e.isWrapper, C = e.mixin, H = e.registerTransientObservers, x = e.registerWrapper, R = e.setTreeScope, P = e.unsafeUnwrap, W = e.unwrap, I = e.unwrapIfNeeded, A = e.wrap, k = e.wrapIfNeeded, F = e.wrappers, B = !1, U = document.importNode, q = window.Node.prototype.cloneNode, V = window.Node, G = window.DocumentFragment, z = (V.prototype.appendChild, V.prototype.compareDocumentPosition), X = V.prototype.isEqualNode, K = V.prototype.insertBefore, Y = V.prototype.removeChild, $ = V.prototype.replaceChild, Z = /Trident|Edge/.test(navigator.userAgent), J = Z ? function (e, t) {
try {
Y.call(e, t)
} catch (n) {
if (!(e instanceof G))throw n
}
} : function (e, t) {
Y.call(e, t)
};
S.prototype = Object.create(M.prototype), C(S.prototype, {
appendChild: function (e) {
return this.insertBefore(e, null)
}, insertBefore: function (e, n) {
t(e);
var r;
n ? D(n) ? r = W(n) : (r = n, n = A(r)) : (n = null, r = null), n && N(n.parentNode === this);
var o, s = n ? n.previousSibling : this.lastChild, c = !this.invalidateShadowRenderer() && !v(e);
if (o = c ? a(e) : i(e, this, s, n), c)f(this, e), m(this), K.call(P(this), W(e), r); else {
s || (this.firstChild_ = o[0]), n || (this.lastChild_ = o[o.length - 1], void 0 === this.firstChild_ && (this.firstChild_ = this.firstChild));
var u = r ? r.parentNode : P(this);
u ? K.call(u, w(this, o), r) : h(this, o)
}
return L(this, "childList", {addedNodes: o, nextSibling: n, previousSibling: s}), l(o, this), e
}, removeChild: function (e) {
if (t(e), e.parentNode !== this) {
for (var r = !1, o = (this.childNodes, this.firstChild); o; o = o.nextSibling)if (o === e) {
r = !0;
break
}
if (!r)throw new Error("NotFoundError")
}
var i = W(e), a = e.nextSibling, s = e.previousSibling;
if (this.invalidateShadowRenderer()) {
var c = this.firstChild, u = this.lastChild, l = i.parentNode;
l && J(l, i), c === e && (this.firstChild_ = a), u === e && (this.lastChild_ = s), s && (s.nextSibling_ = a), a && (a.previousSibling_ = s), e.previousSibling_ = e.nextSibling_ = e.parentNode_ = void 0
} else m(this), J(P(this), i);
return B || L(this, "childList", {removedNodes: n(e), nextSibling: a, previousSibling: s}), H(this, e), e
}, replaceChild: function (e, r) {
t(e);
var o;
if (D(r) ? o = W(r) : (o = r, r = A(o)), r.parentNode !== this)throw new Error("NotFoundError");
var s, c = r.nextSibling, u = r.previousSibling, d = !this.invalidateShadowRenderer() && !v(e);
return d ? s = a(e) : (c === e && (c = e.nextSibling), s = i(e, this, u, c)), d ? (f(this, e), m(this), $.call(P(this), W(e), o)) : (this.firstChild === r && (this.firstChild_ = s[0]), this.lastChild === r && (this.lastChild_ = s[s.length - 1]), r.previousSibling_ = r.nextSibling_ = r.parentNode_ = void 0, o.parentNode && $.call(o.parentNode, w(this, s), o)), L(this, "childList", {
addedNodes: s,
removedNodes: n(r),
nextSibling: c,
previousSibling: u
}), p(r), l(s, this), r
}, nodeIsInserted_: function () {
for (var e = this.firstChild; e; e = e.nextSibling)e.nodeIsInserted_()
}, hasChildNodes: function () {
return null !== this.firstChild
}, get parentNode() {
return void 0 !== this.parentNode_ ? this.parentNode_ : A(P(this).parentNode)
}, get firstChild() {
return void 0 !== this.firstChild_ ? this.firstChild_ : A(P(this).firstChild)
}, get lastChild() {
return void 0 !== this.lastChild_ ? this.lastChild_ : A(P(this).lastChild)
}, get nextSibling() {
return void 0 !== this.nextSibling_ ? this.nextSibling_ : A(P(this).nextSibling)
}, get previousSibling() {
return void 0 !== this.previousSibling_ ? this.previousSibling_ : A(P(this).previousSibling)
}, get parentElement() {
for (var e = this.parentNode; e && e.nodeType !== S.ELEMENT_NODE;)e = e.parentNode;
return e
}, get textContent() {
for (var e = "", t = this.firstChild; t; t = t.nextSibling)t.nodeType != S.COMMENT_NODE && (e += t.textContent);
return e
}, set textContent(e) {
null == e && (e = "");
var t = c(this.childNodes);
if (this.invalidateShadowRenderer()) {
if (g(this), "" !== e) {
var n = P(this).ownerDocument.createTextNode(e);
this.appendChild(n)
}
} else m(this), P(this).textContent = e;
var r = c(this.childNodes);
L(this, "childList", {addedNodes: r, removedNodes: t}), d(t), l(r, this)
}, get childNodes() {
for (var e = new T, t = 0, n = this.firstChild; n; n = n.nextSibling)e[t++] = n;
return e.length = t, e
}, cloneNode: function (e) {
return y(this, e)
}, contains: function (e) {
return E(this, k(e))
}, compareDocumentPosition: function (e) {
return z.call(P(this), I(e))
}, isEqualNode: function (e) {
return X.call(P(this), I(e))
}, normalize: function () {
for (var e, t, n = c(this.childNodes), r = [], o = "", i = 0; i < n.length; i++)t = n[i], t.nodeType === S.TEXT_NODE ? e || t.data.length ? e ? (o += t.data, r.push(t)) : e = t : this.removeChild(t) : (e && r.length && (e.data += o, b(r)), r = [], o = "", e = null, t.childNodes.length && t.normalize());
e && r.length && (e.data += o, b(r))
}
}), j(S, "ownerDocument"), x(V, S, document.createDocumentFragment()), delete S.prototype.querySelector, delete S.prototype.querySelectorAll, S.prototype = C(Object.create(M.prototype), S.prototype), e.cloneNode = y, e.nodeWasAdded = u, e.nodeWasRemoved = p, e.nodesWereAdded = l, e.nodesWereRemoved = d, e.originalInsertBefore = K, e.originalRemoveChild = Y, e.snapshotNodeList = c, e.wrappers.Node = S
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(t, n, r, o) {
for (var i = null, a = null, s = 0, c = t.length; c > s; s++)i = b(t[s]), !o && (a = g(i).root) && a instanceof e.wrappers.ShadowRoot || (r[n++] = i);
return n
}
function n(e) {
return String(e).replace(/\/deep\/|::shadow|>>>/g, " ")
}
function r(e) {
return String(e).replace(/:host\(([^\s]+)\)/g, "$1").replace(/([^\s]):host/g, "$1").replace(":host", "*").replace(/\^|\/shadow\/|\/shadow-deep\/|::shadow|\/deep\/|::content|>>>/g, " ")
}
function o(e, t) {
for (var n, r = e.firstElementChild; r;) {
if (r.matches(t))return r;
if (n = o(r, t))return n;
r = r.nextElementSibling
}
return null
}
function i(e, t) {
return e.matches(t)
}
function a(e, t, n) {
var r = e.localName;
return r === t || r === n && e.namespaceURI === D
}
function s() {
return !0
}
function c(e, t, n) {
return e.localName === n
}
function u(e, t) {
return e.namespaceURI === t
}
function l(e, t, n) {
return e.namespaceURI === t && e.localName === n
}
function p(e, t, n, r, o, i) {
for (var a = e.firstElementChild; a;)r(a, o, i) && (n[t++] = a), t = p(a, t, n, r, o, i), a = a.nextElementSibling;
return t
}
function d(n, r, o, i, a) {
var s, c = v(this), u = g(this).root;
if (u instanceof e.wrappers.ShadowRoot)return p(this, r, o, n, i, null);
if (c instanceof L)s = M.call(c, i); else {
if (!(c instanceof _))return p(this, r, o, n, i, null);
s = S.call(c, i)
}
return t(s, r, o, a)
}
function f(n, r, o, i, a) {
var s, c = v(this), u = g(this).root;
if (u instanceof e.wrappers.ShadowRoot)return p(this, r, o, n, i, a);
if (c instanceof L)s = O.call(c, i, a); else {
if (!(c instanceof _))return p(this, r, o, n, i, a);
s = T.call(c, i, a)
}
return t(s, r, o, !1)
}
function h(n, r, o, i, a) {
var s, c = v(this), u = g(this).root;
if (u instanceof e.wrappers.ShadowRoot)return p(this, r, o, n, i, a);
if (c instanceof L)s = j.call(c, i, a); else {
if (!(c instanceof _))return p(this, r, o, n, i, a);
s = N.call(c, i, a)
}
return t(s, r, o, !1)
}
var w = e.wrappers.HTMLCollection, m = e.wrappers.NodeList, g = e.getTreeScope, v = e.unsafeUnwrap, b = e.wrap, y = document.querySelector, E = document.documentElement.querySelector, S = document.querySelectorAll, M = document.documentElement.querySelectorAll, T = document.getElementsByTagName, O = document.documentElement.getElementsByTagName, N = document.getElementsByTagNameNS, j = document.documentElement.getElementsByTagNameNS, L = window.Element, _ = window.HTMLDocument || window.Document, D = "http://www.w3.org/1999/xhtml", C = {
querySelector: function (t) {
var r = n(t), i = r !== t;
t = r;
var a, s = v(this), c = g(this).root;
if (c instanceof e.wrappers.ShadowRoot)return o(this, t);
if (s instanceof L)a = b(E.call(s, t)); else {
if (!(s instanceof _))return o(this, t);
a = b(y.call(s, t))
}
return a && !i && (c = g(a).root) && c instanceof e.wrappers.ShadowRoot ? o(this, t) : a
}, querySelectorAll: function (e) {
var t = n(e), r = t !== e;
e = t;
var o = new m;
return o.length = d.call(this, i, 0, o, e, r), o
}
}, H = {
matches: function (t) {
return t = r(t), e.originalMatches.call(v(this), t)
}
}, x = {
getElementsByTagName: function (e) {
var t = new w, n = "*" === e ? s : a;
return t.length = f.call(this, n, 0, t, e, e.toLowerCase()),
t
}, getElementsByClassName: function (e) {
return this.querySelectorAll("." + e)
}, getElementsByTagNameNS: function (e, t) {
var n = new w, r = null;
return r = "*" === e ? "*" === t ? s : c : "*" === t ? u : l, n.length = h.call(this, r, 0, n, e || null, t), n
}
};
e.GetElementsByInterface = x, e.SelectorsInterface = C, e.MatchesInterface = H
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
for (; e && e.nodeType !== Node.ELEMENT_NODE;)e = e.nextSibling;
return e
}
function n(e) {
for (; e && e.nodeType !== Node.ELEMENT_NODE;)e = e.previousSibling;
return e
}
var r = e.wrappers.NodeList, o = {
get firstElementChild() {
return t(this.firstChild)
}, get lastElementChild() {
return n(this.lastChild)
}, get childElementCount() {
for (var e = 0, t = this.firstElementChild; t; t = t.nextElementSibling)e++;
return e
}, get children() {
for (var e = new r, t = 0, n = this.firstElementChild; n; n = n.nextElementSibling)e[t++] = n;
return e.length = t, e
}, remove: function () {
var e = this.parentNode;
e && e.removeChild(this)
}
}, i = {
get nextElementSibling() {
return t(this.nextSibling)
}, get previousElementSibling() {
return n(this.previousSibling)
}
}, a = {
getElementById: function (e) {
return /[ \t\n\r\f]/.test(e) ? null : this.querySelector('[id="' + e + '"]')
}
};
e.ChildNodeInterface = i, e.NonElementParentNodeInterface = a, e.ParentNodeInterface = o
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
r.call(this, e)
}
var n = e.ChildNodeInterface, r = e.wrappers.Node, o = e.enqueueMutation, i = e.mixin, a = e.registerWrapper, s = e.unsafeUnwrap, c = window.CharacterData;
t.prototype = Object.create(r.prototype), i(t.prototype, {
get nodeValue() {
return this.data
}, set nodeValue(e) {
this.data = e
}, get textContent() {
return this.data
}, set textContent(e) {
this.data = e
}, get data() {
return s(this).data
}, set data(e) {
var t = s(this).data;
o(this, "characterData", {oldValue: t}), s(this).data = e
}
}), i(t.prototype, n), a(c, t, document.createTextNode("")), e.wrappers.CharacterData = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
return e >>> 0
}
function n(e) {
r.call(this, e)
}
var r = e.wrappers.CharacterData, o = (e.enqueueMutation, e.mixin), i = e.registerWrapper, a = window.Text;
n.prototype = Object.create(r.prototype), o(n.prototype, {
splitText: function (e) {
e = t(e);
var n = this.data;
if (e > n.length)throw new Error("IndexSizeError");
var r = n.slice(0, e), o = n.slice(e);
this.data = r;
var i = this.ownerDocument.createTextNode(o);
return this.parentNode && this.parentNode.insertBefore(i, this.nextSibling), i
}
}), i(a, n, document.createTextNode("")), e.wrappers.Text = n
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
return i(e).getAttribute("class")
}
function n(e, t) {
a(e, "attributes", {name: "class", namespace: null, oldValue: t})
}
function r(t) {
e.invalidateRendererBasedOnAttribute(t, "class")
}
function o(e, o, i) {
var a = e.ownerElement_;
if (null == a)return o.apply(e, i);
var s = t(a), c = o.apply(e, i);
return t(a) !== s && (n(a, s), r(a)), c
}
if (!window.DOMTokenList)return void console.warn("Missing DOMTokenList prototype, please include a compatible classList polyfill such as http://goo.gl/uTcepH.");
var i = e.unsafeUnwrap, a = e.enqueueMutation, s = DOMTokenList.prototype.add;
DOMTokenList.prototype.add = function () {
o(this, s, arguments)
};
var c = DOMTokenList.prototype.remove;
DOMTokenList.prototype.remove = function () {
o(this, c, arguments)
};
var u = DOMTokenList.prototype.toggle;
DOMTokenList.prototype.toggle = function () {
return o(this, u, arguments)
}
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(t, n) {
var r = t.parentNode;
if (r && r.shadowRoot) {
var o = e.getRendererForHost(r);
o.dependsOnAttribute(n) && o.invalidate()
}
}
function n(e, t, n) {
l(e, "attributes", {name: t, namespace: null, oldValue: n})
}
function r(e) {
a.call(this, e)
}
var o = e.ChildNodeInterface, i = e.GetElementsByInterface, a = e.wrappers.Node, s = e.ParentNodeInterface, c = e.SelectorsInterface, u = e.MatchesInterface, l = (e.addWrapNodeListMethod, e.enqueueMutation), p = e.mixin, d = (e.oneOf, e.registerWrapper), f = e.unsafeUnwrap, h = e.wrappers, w = window.Element, m = ["matches", "mozMatchesSelector", "msMatchesSelector", "webkitMatchesSelector"].filter(function (e) {
return w.prototype[e]
}), g = m[0], v = w.prototype[g], b = new WeakMap;
r.prototype = Object.create(a.prototype), p(r.prototype, {
createShadowRoot: function () {
var t = new h.ShadowRoot(this);
f(this).polymerShadowRoot_ = t;
var n = e.getRendererForHost(this);
return n.invalidate(), t
}, get shadowRoot() {
return f(this).polymerShadowRoot_ || null
}, setAttribute: function (e, r) {
var o = f(this).getAttribute(e);
f(this).setAttribute(e, r), n(this, e, o), t(this, e)
}, removeAttribute: function (e) {
var r = f(this).getAttribute(e);
f(this).removeAttribute(e), n(this, e, r), t(this, e)
}, get classList() {
var e = b.get(this);
if (!e) {
if (e = f(this).classList, !e)return;
e.ownerElement_ = this, b.set(this, e)
}
return e
}, get className() {
return f(this).className
}, set className(e) {
this.setAttribute("class", e)
}, get id() {
return f(this).id
}, set id(e) {
this.setAttribute("id", e)
}
}), m.forEach(function (e) {
"matches" !== e && (r.prototype[e] = function (e) {
return this.matches(e)
})
}), w.prototype.webkitCreateShadowRoot && (r.prototype.webkitCreateShadowRoot = r.prototype.createShadowRoot), p(r.prototype, o), p(r.prototype, i), p(r.prototype, s), p(r.prototype, c), p(r.prototype, u), d(w, r, document.createElementNS(null, "x")), e.invalidateRendererBasedOnAttribute = t, e.matchesNames = m, e.originalMatches = v, e.wrappers.Element = r
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
switch (e) {
case"&":
return "&";
case"<":
return "<";
case">":
return ">";
case'"':
return """;
case" ":
return " "
}
}
function n(e) {
return e.replace(j, t)
}
function r(e) {
return e.replace(L, t)
}
function o(e) {
for (var t = {}, n = 0; n < e.length; n++)t[e[n]] = !0;
return t
}
function i(e) {
if (e.namespaceURI !== C)return !0;
var t = e.ownerDocument.doctype;
return t && t.publicId && t.systemId
}
function a(e, t) {
switch (e.nodeType) {
case Node.ELEMENT_NODE:
for (var o, a = e.tagName.toLowerCase(), c = "<" + a, u = e.attributes, l = 0; o = u[l]; l++)c += " " + o.name + '="' + n(o.value) + '"';
return _[a] ? (i(e) && (c += "/"), c + ">") : c + ">" + s(e) + "</" + a + ">";
case Node.TEXT_NODE:
var p = e.data;
return t && D[t.localName] ? p : r(p);
case Node.COMMENT_NODE:
return "<!--" + e.data + "-->";
default:
throw console.error(e), new Error("not implemented")
}
}
function s(e) {
e instanceof N.HTMLTemplateElement && (e = e.content);
for (var t = "", n = e.firstChild; n; n = n.nextSibling)t += a(n, e);
return t
}
function c(e, t, n) {
var r = n || "div";
e.textContent = "";
var o = T(e.ownerDocument.createElement(r));
o.innerHTML = t;
for (var i; i = o.firstChild;)e.appendChild(O(i))
}
function u(e) {
w.call(this, e)
}
function l(e, t) {
var n = T(e.cloneNode(!1));
n.innerHTML = t;
for (var r, o = T(document.createDocumentFragment()); r = n.firstChild;)o.appendChild(r);
return O(o)
}
function p(t) {
return function () {
return e.renderAllPending(), M(this)[t]
}
}
function d(e) {
m(u, e, p(e))
}
function f(t) {
Object.defineProperty(u.prototype, t, {
get: p(t), set: function (n) {
e.renderAllPending(), M(this)[t] = n
}, configurable: !0, enumerable: !0
})
}
function h(t) {
Object.defineProperty(u.prototype, t, {
value: function () {
return e.renderAllPending(), M(this)[t].apply(M(this), arguments)
}, configurable: !0, enumerable: !0
})
}
var w = e.wrappers.Element, m = e.defineGetter, g = e.enqueueMutation, v = e.mixin, b = e.nodesWereAdded, y = e.nodesWereRemoved, E = e.registerWrapper, S = e.snapshotNodeList, M = e.unsafeUnwrap, T = e.unwrap, O = e.wrap, N = e.wrappers, j = /[&\u00A0"]/g, L = /[&\u00A0<>]/g, _ = o(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), D = o(["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"]), C = "http://www.w3.org/1999/xhtml", H = /MSIE/.test(navigator.userAgent), x = window.HTMLElement, R = window.HTMLTemplateElement;
u.prototype = Object.create(w.prototype), v(u.prototype, {
get innerHTML() {
return s(this)
}, set innerHTML(e) {
if (H && D[this.localName])return void(this.textContent = e);
var t = S(this.childNodes);
this.invalidateShadowRenderer() ? this instanceof N.HTMLTemplateElement ? c(this.content, e) : c(this, e, this.tagName) : !R && this instanceof N.HTMLTemplateElement ? c(this.content, e) : M(this).innerHTML = e;
var n = S(this.childNodes);
g(this, "childList", {addedNodes: n, removedNodes: t}), y(t), b(n, this)
}, get outerHTML() {
return a(this, this.parentNode)
}, set outerHTML(e) {
var t = this.parentNode;
if (t) {
t.invalidateShadowRenderer();
var n = l(t, e);
t.replaceChild(n, this)
}
}, insertAdjacentHTML: function (e, t) {
var n, r;
switch (String(e).toLowerCase()) {
case"beforebegin":
n = this.parentNode, r = this;
break;
case"afterend":
n = this.parentNode, r = this.nextSibling;
break;
case"afterbegin":
n = this, r = this.firstChild;
break;
case"beforeend":
n = this, r = null;
break;
default:
return
}
var o = l(n, t);
n.insertBefore(o, r)
}, get hidden() {
return this.hasAttribute("hidden")
}, set hidden(e) {
e ? this.setAttribute("hidden", "") : this.removeAttribute("hidden")
}
}), ["clientHeight", "clientLeft", "clientTop", "clientWidth", "offsetHeight", "offsetLeft", "offsetTop", "offsetWidth", "scrollHeight", "scrollWidth"].forEach(d), ["scrollLeft", "scrollTop"].forEach(f), ["focus", "getBoundingClientRect", "getClientRects", "scrollIntoView"].forEach(h), E(x, u, document.createElement("b")), e.wrappers.HTMLElement = u, e.getInnerHTML = s, e.setInnerHTML = c
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = e.unsafeUnwrap, a = e.wrap, s = window.HTMLCanvasElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
getContext: function () {
var e = i(this).getContext.apply(i(this), arguments);
return e && a(e)
}
}), o(s, t, document.createElement("canvas")), e.wrappers.HTMLCanvasElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = window.HTMLContentElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
constructor: t, get select() {
return this.getAttribute("select")
}, set select(e) {
this.setAttribute("select", e)
}, setAttribute: function (e, t) {
n.prototype.setAttribute.call(this, e, t), "select" === String(e).toLowerCase() && this.invalidateShadowRenderer(!0)
}
}), i && o(i, t), e.wrappers.HTMLContentElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = e.wrapHTMLCollection, a = e.unwrap, s = window.HTMLFormElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
get elements() {
return i(a(this).elements)
}
}), o(s, t, document.createElement("form")), e.wrappers.HTMLFormElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
r.call(this, e)
}
function n(e, t) {
if (!(this instanceof n))throw new TypeError("DOM object constructor cannot be called as a function.");
var o = i(document.createElement("img"));
r.call(this, o), a(o, this), void 0 !== e && (o.width = e), void 0 !== t && (o.height = t)
}
var r = e.wrappers.HTMLElement, o = e.registerWrapper, i = e.unwrap, a = e.rewrap, s = window.HTMLImageElement;
t.prototype = Object.create(r.prototype), o(s, t, document.createElement("img")), n.prototype = t.prototype, e.wrappers.HTMLImageElement = t, e.wrappers.Image = n
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = (e.mixin, e.wrappers.NodeList, e.registerWrapper), o = window.HTMLShadowElement;
t.prototype = Object.create(n.prototype), t.prototype.constructor = t, o && r(o, t), e.wrappers.HTMLShadowElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
if (!e.defaultView)return e;
var t = p.get(e);
if (!t) {
for (t = e.implementation.createHTMLDocument(""); t.lastChild;)t.removeChild(t.lastChild);
p.set(e, t)
}
return t
}
function n(e) {
for (var n, r = t(e.ownerDocument), o = c(r.createDocumentFragment()); n = e.firstChild;)o.appendChild(n);
return o
}
function r(e) {
if (o.call(this, e), !d) {
var t = n(e);
l.set(this, u(t))
}
}
var o = e.wrappers.HTMLElement, i = e.mixin, a = e.registerWrapper, s = e.unsafeUnwrap, c = e.unwrap, u = e.wrap, l = new WeakMap, p = new WeakMap, d = window.HTMLTemplateElement;
r.prototype = Object.create(o.prototype), i(r.prototype, {
constructor: r, get content() {
return d ? u(s(this).content) : l.get(this)
}
}), d && a(d, r), e.wrappers.HTMLTemplateElement = r
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.registerWrapper, o = window.HTMLMediaElement;
o && (t.prototype = Object.create(n.prototype), r(o, t, document.createElement("audio")), e.wrappers.HTMLMediaElement = t)
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
r.call(this, e)
}
function n(e) {
if (!(this instanceof n))throw new TypeError("DOM object constructor cannot be called as a function.");
var t = i(document.createElement("audio"));
r.call(this, t), a(t, this), t.setAttribute("preload", "auto"), void 0 !== e && t.setAttribute("src", e)
}
var r = e.wrappers.HTMLMediaElement, o = e.registerWrapper, i = e.unwrap, a = e.rewrap, s = window.HTMLAudioElement;
s && (t.prototype = Object.create(r.prototype), o(s, t, document.createElement("audio")), n.prototype = t.prototype, e.wrappers.HTMLAudioElement = t, e.wrappers.Audio = n)
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
return e.replace(/\s+/g, " ").trim()
}
function n(e) {
o.call(this, e)
}
function r(e, t, n, i) {
if (!(this instanceof r))throw new TypeError("DOM object constructor cannot be called as a function.");
var a = c(document.createElement("option"));
o.call(this, a), s(a, this), void 0 !== e && (a.text = e), void 0 !== t && a.setAttribute("value", t), n === !0 && a.setAttribute("selected", ""), a.selected = i === !0
}
var o = e.wrappers.HTMLElement, i = e.mixin, a = e.registerWrapper, s = e.rewrap, c = e.unwrap, u = e.wrap, l = window.HTMLOptionElement;
n.prototype = Object.create(o.prototype), i(n.prototype, {
get text() {
return t(this.textContent)
}, set text(e) {
this.textContent = t(String(e))
}, get form() {
return u(c(this).form)
}
}), a(l, n, document.createElement("option")), r.prototype = n.prototype, e.wrappers.HTMLOptionElement = n, e.wrappers.Option = r
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = e.unwrap, a = e.wrap, s = window.HTMLSelectElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
add: function (e, t) {
"object" == typeof t && (t = i(t)), i(this).add(i(e), t)
}, remove: function (e) {
return void 0 === e ? void n.prototype.remove.call(this) : ("object" == typeof e && (e = i(e)), void i(this).remove(e))
}, get form() {
return a(i(this).form)
}
}), o(s, t, document.createElement("select")), e.wrappers.HTMLSelectElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = e.unwrap, a = e.wrap, s = e.wrapHTMLCollection, c = window.HTMLTableElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
get caption() {
return a(i(this).caption)
}, createCaption: function () {
return a(i(this).createCaption())
}, get tHead() {
return a(i(this).tHead)
}, createTHead: function () {
return a(i(this).createTHead())
}, createTFoot: function () {
return a(i(this).createTFoot())
}, get tFoot() {
return a(i(this).tFoot)
}, get tBodies() {
return s(i(this).tBodies)
}, createTBody: function () {
return a(i(this).createTBody())
}, get rows() {
return s(i(this).rows)
}, insertRow: function (e) {
return a(i(this).insertRow(e))
}
}), o(c, t, document.createElement("table")), e.wrappers.HTMLTableElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = e.wrapHTMLCollection, a = e.unwrap, s = e.wrap, c = window.HTMLTableSectionElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
constructor: t, get rows() {
return i(a(this).rows)
}, insertRow: function (e) {
return s(a(this).insertRow(e))
}
}), o(c, t, document.createElement("thead")), e.wrappers.HTMLTableSectionElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.HTMLElement, r = e.mixin, o = e.registerWrapper, i = e.wrapHTMLCollection, a = e.unwrap, s = e.wrap, c = window.HTMLTableRowElement;
t.prototype = Object.create(n.prototype), r(t.prototype, {
get cells() {
return i(a(this).cells)
}, insertCell: function (e) {
return s(a(this).insertCell(e))
}
}), o(c, t, document.createElement("tr")), e.wrappers.HTMLTableRowElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
switch (e.localName) {
case"content":
return new n(e);
case"shadow":
return new o(e);
case"template":
return new i(e)
}
r.call(this, e)
}
var n = e.wrappers.HTMLContentElement, r = e.wrappers.HTMLElement, o = e.wrappers.HTMLShadowElement, i = e.wrappers.HTMLTemplateElement, a = (e.mixin, e.registerWrapper), s = window.HTMLUnknownElement;
t.prototype = Object.create(r.prototype), a(s, t), e.wrappers.HTMLUnknownElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.Element, r = e.wrappers.HTMLElement, o = e.registerWrapper, i = (e.defineWrapGetter, e.unsafeUnwrap), a = e.wrap, s = e.mixin, c = "http://www.w3.org/2000/svg", u = window.SVGElement, l = document.createElementNS(c, "title");
if (!("classList" in l)) {
var p = Object.getOwnPropertyDescriptor(n.prototype, "classList");
Object.defineProperty(r.prototype, "classList", p), delete n.prototype.classList
}
t.prototype = Object.create(n.prototype), s(t.prototype, {
get ownerSVGElement() {
return a(i(this).ownerSVGElement)
}
}), o(u, t, document.createElementNS(c, "title")), e.wrappers.SVGElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
d.call(this, e)
}
var n = e.mixin, r = e.registerWrapper, o = e.unwrap, i = e.wrap, a = window.SVGUseElement, s = "http://www.w3.org/2000/svg", c = i(document.createElementNS(s, "g")), u = document.createElementNS(s, "use"), l = c.constructor, p = Object.getPrototypeOf(l.prototype), d = p.constructor;
t.prototype = Object.create(p), "instanceRoot" in u && n(t.prototype, {
get instanceRoot() {
return i(o(this).instanceRoot)
}, get animatedInstanceRoot() {
return i(o(this).animatedInstanceRoot)
}
}), r(a, t, u), e.wrappers.SVGUseElement = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.EventTarget, r = e.mixin, o = e.registerWrapper, i = e.unsafeUnwrap, a = e.wrap, s = window.SVGElementInstance;
s && (t.prototype = Object.create(n.prototype), r(t.prototype, {
get correspondingElement() {
return a(i(this).correspondingElement)
}, get correspondingUseElement() {
return a(i(this).correspondingUseElement)
}, get parentNode() {
return a(i(this).parentNode)
}, get childNodes() {
throw new Error("Not implemented")
}, get firstChild() {
return a(i(this).firstChild)
}, get lastChild() {
return a(i(this).lastChild)
}, get previousSibling() {
return a(i(this).previousSibling)
}, get nextSibling() {
return a(i(this).nextSibling)
}
}), o(s, t), e.wrappers.SVGElementInstance = t)
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
o(e, this)
}
var n = e.mixin, r = e.registerWrapper, o = e.setWrapper, i = e.unsafeUnwrap, a = e.unwrap, s = e.unwrapIfNeeded, c = e.wrap, u = window.CanvasRenderingContext2D;
n(t.prototype, {
get canvas() {
return c(i(this).canvas)
}, drawImage: function () {
arguments[0] = s(arguments[0]), i(this).drawImage.apply(i(this), arguments)
}, createPattern: function () {
return arguments[0] = a(arguments[0]), i(this).createPattern.apply(i(this), arguments)
}
}), r(u, t, document.createElement("canvas").getContext("2d")), e.wrappers.CanvasRenderingContext2D = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
i(e, this)
}
var n = e.addForwardingProperties, r = e.mixin, o = e.registerWrapper, i = e.setWrapper, a = e.unsafeUnwrap, s = e.unwrapIfNeeded, c = e.wrap, u = window.WebGLRenderingContext;
if (u) {
r(t.prototype, {
get canvas() {
return c(a(this).canvas)
}, texImage2D: function () {
arguments[5] = s(arguments[5]), a(this).texImage2D.apply(a(this), arguments)
}, texSubImage2D: function () {
arguments[6] = s(arguments[6]), a(this).texSubImage2D.apply(a(this), arguments)
}
});
var l = Object.getPrototypeOf(u.prototype);
l !== Object.prototype && n(l, t.prototype);
var p = /WebKit/.test(navigator.userAgent) ? {drawingBufferHeight: null, drawingBufferWidth: null} : {};
o(u, t, p), e.wrappers.WebGLRenderingContext = t
}
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.Node, r = e.GetElementsByInterface, o = e.NonElementParentNodeInterface, i = e.ParentNodeInterface, a = e.SelectorsInterface, s = e.mixin, c = e.registerObject, u = e.registerWrapper, l = window.DocumentFragment;
t.prototype = Object.create(n.prototype), s(t.prototype, i), s(t.prototype, a), s(t.prototype, r), s(t.prototype, o), u(l, t, document.createDocumentFragment()), e.wrappers.DocumentFragment = t;
var p = c(document.createComment(""));
e.wrappers.Comment = p
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
var t = p(l(e).ownerDocument.createDocumentFragment());
n.call(this, t), c(t, this);
var o = e.shadowRoot;
h.set(this, o), this.treeScope_ = new r(this, a(o || e)), f.set(this, e)
}
var n = e.wrappers.DocumentFragment, r = e.TreeScope, o = e.elementFromPoint, i = e.getInnerHTML, a = e.getTreeScope, s = e.mixin, c = e.rewrap, u = e.setInnerHTML, l = e.unsafeUnwrap, p = e.unwrap, d = e.wrap, f = new WeakMap, h = new WeakMap;
t.prototype = Object.create(n.prototype), s(t.prototype, {
constructor: t, get innerHTML() {
return i(this)
}, set innerHTML(e) {
u(this, e), this.invalidateShadowRenderer()
}, get olderShadowRoot() {
return h.get(this) || null
}, get host() {
return f.get(this) || null
}, invalidateShadowRenderer: function () {
return f.get(this).invalidateShadowRenderer()
}, elementFromPoint: function (e, t) {
return o(this, this.ownerDocument, e, t)
}, getSelection: function () {
return document.getSelection()
}, get activeElement() {
var e = p(this).ownerDocument.activeElement;
if (!e || !e.nodeType)return null;
for (var t = d(e); !this.contains(t);) {
for (; t.parentNode;)t = t.parentNode;
if (!t.host)return null;
t = t.host
}
return t
}
}), e.wrappers.ShadowRoot = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
var t = p(e).root;
return t instanceof f ? t.host : null
}
function n(t, n) {
if (t.shadowRoot) {
n = Math.min(t.childNodes.length - 1, n);
var r = t.childNodes[n];
if (r) {
var o = e.getDestinationInsertionPoints(r);
if (o.length > 0) {
var i = o[0].parentNode;
i.nodeType == Node.ELEMENT_NODE && (t = i)
}
}
}
return t
}
function r(e) {
return e = l(e), t(e) || e
}
function o(e) {
a(e, this)
}
var i = e.registerWrapper, a = e.setWrapper, s = e.unsafeUnwrap, c = e.unwrap, u = e.unwrapIfNeeded, l = e.wrap, p = e.getTreeScope, d = window.Range, f = e.wrappers.ShadowRoot;
o.prototype = {
get startContainer() {
return r(s(this).startContainer)
}, get endContainer() {
return r(s(this).endContainer)
}, get commonAncestorContainer() {
return r(s(this).commonAncestorContainer)
}, setStart: function (e, t) {
e = n(e, t), s(this).setStart(u(e), t)
}, setEnd: function (e, t) {
e = n(e, t), s(this).setEnd(u(e), t)
}, setStartBefore: function (e) {
s(this).setStartBefore(u(e))
}, setStartAfter: function (e) {
s(this).setStartAfter(u(e))
}, setEndBefore: function (e) {
s(this).setEndBefore(u(e))
}, setEndAfter: function (e) {
s(this).setEndAfter(u(e))
}, selectNode: function (e) {
s(this).selectNode(u(e))
}, selectNodeContents: function (e) {
s(this).selectNodeContents(u(e))
}, compareBoundaryPoints: function (e, t) {
return s(this).compareBoundaryPoints(e, c(t))
}, extractContents: function () {
return l(s(this).extractContents())
}, cloneContents: function () {
return l(s(this).cloneContents())
}, insertNode: function (e) {
s(this).insertNode(u(e))
}, surroundContents: function (e) {
s(this).surroundContents(u(e))
}, cloneRange: function () {
return l(s(this).cloneRange())
}, isPointInRange: function (e, t) {
return s(this).isPointInRange(u(e), t)
}, comparePoint: function (e, t) {
return s(this).comparePoint(u(e), t)
}, intersectsNode: function (e) {
return s(this).intersectsNode(u(e))
}, toString: function () {
return s(this).toString()
}
}, d.prototype.createContextualFragment && (o.prototype.createContextualFragment = function (e) {
return l(s(this).createContextualFragment(e))
}), i(window.Range, o, document.createRange()), e.wrappers.Range = o
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
e.previousSibling_ = e.previousSibling, e.nextSibling_ = e.nextSibling, e.parentNode_ = e.parentNode
}
function n(n, o, i) {
var a = x(n), s = x(o), c = i ? x(i) : null;
if (r(o), t(o), i)n.firstChild === i && (n.firstChild_ = i), i.previousSibling_ = i.previousSibling; else {
n.lastChild_ = n.lastChild, n.lastChild === n.firstChild && (n.firstChild_ = n.firstChild);
var u = R(a.lastChild);
u && (u.nextSibling_ = u.nextSibling)
}
e.originalInsertBefore.call(a, s, c)
}
function r(n) {
var r = x(n), o = r.parentNode;
if (o) {
var i = R(o);
t(n), n.previousSibling && (n.previousSibling.nextSibling_ = n), n.nextSibling && (n.nextSibling.previousSibling_ = n), i.lastChild === n && (i.lastChild_ = n), i.firstChild === n && (i.firstChild_ = n), e.originalRemoveChild.call(o, r)
}
}
function o(e) {
W.set(e, [])
}
function i(e) {
var t = W.get(e);
return t || W.set(e, t = []), t
}
function a(e) {
for (var t = [], n = 0, r = e.firstChild; r; r = r.nextSibling)t[n++] = r;
return t
}
function s() {
for (var e = 0; e < F.length; e++) {
var t = F[e], n = t.parentRenderer;
n && n.dirty || t.render()
}
F = []
}
function c() {
T = null, s()
}
function u(e) {
var t = A.get(e);
return t || (t = new f(e), A.set(e, t)), t
}
function l(e) {
var t = D(e).root;
return t instanceof _ ? t : null
}
function p(e) {
return u(e.host)
}
function d(e) {
this.skip = !1, this.node = e, this.childNodes = []
}
function f(e) {
this.host = e, this.dirty = !1, this.invalidateAttributes(), this.associateNode(e)
}
function h(e) {
for (var t = [], n = e.firstChild; n; n = n.nextSibling)E(n) ? t.push.apply(t, i(n)) : t.push(n);
return t
}
function w(e) {
if (e instanceof j)return e;
if (e instanceof N)return null;
for (var t = e.firstChild; t; t = t.nextSibling) {
var n = w(t);
if (n)return n
}
return null
}
function m(e, t) {
i(t).push(e);
var n = I.get(e);
n ? n.push(t) : I.set(e, [t])
}
function g(e) {
return I.get(e)
}
function v(e) {
I.set(e, void 0)
}
function b(e, t) {
var n = t.getAttribute("select");
if (!n)return !0;
if (n = n.trim(), !n)return !0;
if (!(e instanceof O))return !1;
if (!U.test(n))return !1;
try {
return e.matches(n)
} catch (r) {
return !1
}
}
function y(e, t) {
var n = g(t);
return n && n[n.length - 1] === e
}
function E(e) {
return e instanceof N || e instanceof j
}
function S(e) {
return e.shadowRoot
}
function M(e) {
for (var t = [], n = e.shadowRoot; n; n = n.olderShadowRoot)t.push(n);
return t
}
var T, O = e.wrappers.Element, N = e.wrappers.HTMLContentElement, j = e.wrappers.HTMLShadowElement, L = e.wrappers.Node, _ = e.wrappers.ShadowRoot, D = (e.assert, e.getTreeScope), C = (e.mixin, e.oneOf), H = e.unsafeUnwrap, x = e.unwrap, R = e.wrap, P = e.ArraySplice, W = new WeakMap, I = new WeakMap, A = new WeakMap, k = C(window, ["requestAnimationFrame", "mozRequestAnimationFrame", "webkitRequestAnimationFrame", "setTimeout"]), F = [], B = new P;
B.equals = function (e, t) {
return x(e.node) === t
}, d.prototype = {
append: function (e) {
var t = new d(e);
return this.childNodes.push(t), t
}, sync: function (e) {
if (!this.skip) {
for (var t = this.node, o = this.childNodes, i = a(x(t)), s = e || new WeakMap, c = B.calculateSplices(o, i), u = 0, l = 0, p = 0, d = 0; d < c.length; d++) {
for (var f = c[d]; p < f.index; p++)l++, o[u++].sync(s);
for (var h = f.removed.length, w = 0; h > w; w++) {
var m = R(i[l++]);
s.get(m) || r(m)
}
for (var g = f.addedCount, v = i[l] && R(i[l]), w = 0; g > w; w++) {
var b = o[u++], y = b.node;
n(t, y, v), s.set(y, !0), b.sync(s)
}
p += g
}
for (var d = p; d < o.length; d++)o[d].sync(s)
}
}
}, f.prototype = {
render: function (e) {
if (this.dirty) {
this.invalidateAttributes();
var t = this.host;
this.distribution(t);
var n = e || new d(t);
this.buildRenderTree(n, t);
var r = !e;
r && n.sync(), this.dirty = !1
}
}, get parentRenderer() {
return D(this.host).renderer
}, invalidate: function () {
if (!this.dirty) {
this.dirty = !0;
var e = this.parentRenderer;
if (e && e.invalidate(), F.push(this), T)return;
T = window[k](c, 0)
}
}, distribution: function (e) {
this.resetAllSubtrees(e), this.distributionResolution(e)
}, resetAll: function (e) {
E(e) ? o(e) : v(e), this.resetAllSubtrees(e)
}, resetAllSubtrees: function (e) {
for (var t = e.firstChild; t; t = t.nextSibling)this.resetAll(t);
e.shadowRoot && this.resetAll(e.shadowRoot), e.olderShadowRoot && this.resetAll(e.olderShadowRoot)
}, distributionResolution: function (e) {
if (S(e)) {
for (var t = e, n = h(t), r = M(t), o = 0; o < r.length; o++)this.poolDistribution(r[o], n);
for (var o = r.length - 1; o >= 0; o--) {
var i = r[o], a = w(i);
if (a) {
var s = i.olderShadowRoot;
s && (n = h(s));
for (var c = 0; c < n.length; c++)m(n[c], a)
}
this.distributionResolution(i)
}
}
for (var u = e.firstChild; u; u = u.nextSibling)this.distributionResolution(u)
}, poolDistribution: function (e, t) {
if (!(e instanceof j))if (e instanceof N) {
var n = e;
this.updateDependentAttributes(n.getAttribute("select"));
for (var r = !1, o = 0; o < t.length; o++) {
var e = t[o];
e && b(e, n) && (m(e, n), t[o] = void 0, r = !0)
}
if (!r)for (var i = n.firstChild; i; i = i.nextSibling)m(i, n)
} else for (var i = e.firstChild; i; i = i.nextSibling)this.poolDistribution(i, t)
}, buildRenderTree: function (e, t) {
for (var n = this.compose(t), r = 0; r < n.length; r++) {
var o = n[r], i = e.append(o);
this.buildRenderTree(i, o)
}
if (S(t)) {
var a = u(t);
a.dirty = !1
}
}, compose: function (e) {
for (var t = [], n = e.shadowRoot || e, r = n.firstChild; r; r = r.nextSibling)if (E(r)) {
this.associateNode(n);
for (var o = i(r), a = 0; a < o.length; a++) {
var s = o[a];
y(r, s) && t.push(s)
}
} else t.push(r);
return t
}, invalidateAttributes: function () {
this.attributes = Object.create(null)
}, updateDependentAttributes: function (e) {
if (e) {
var t = this.attributes;
/\.\w+/.test(e) && (t["class"] = !0), /#\w+/.test(e) && (t.id = !0), e.replace(/\[\s*([^\s=\|~\]]+)/g, function (e, n) {
t[n] = !0
})
}
}, dependsOnAttribute: function (e) {
return this.attributes[e]
}, associateNode: function (e) {
H(e).polymerShadowRenderer_ = this
}
};
var U = /^(:not\()?[*.#[a-zA-Z_|]/;
L.prototype.invalidateShadowRenderer = function (e) {
var t = H(this).polymerShadowRenderer_;
return t ? (t.invalidate(), !0) : !1
}, N.prototype.getDistributedNodes = j.prototype.getDistributedNodes = function () {
return s(), i(this)
}, O.prototype.getDestinationInsertionPoints = function () {
return s(), g(this) || []
}, N.prototype.nodeIsInserted_ = j.prototype.nodeIsInserted_ = function () {
this.invalidateShadowRenderer();
var e, t = l(this);
t && (e = p(t)), H(this).polymerShadowRenderer_ = e, e && e.invalidate()
}, e.getRendererForHost = u, e.getShadowTrees = M, e.renderAllPending = s, e.getDestinationInsertionPoints = g, e.visual = {
insertBefore: n,
remove: r
}
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(t) {
if (window[t]) {
r(!e.wrappers[t]);
var c = function (e) {
n.call(this, e)
};
c.prototype = Object.create(n.prototype), o(c.prototype, {
get form() {
return s(a(this).form)
}
}), i(window[t], c, document.createElement(t.slice(4, -7))), e.wrappers[t] = c
}
}
var n = e.wrappers.HTMLElement, r = e.assert, o = e.mixin, i = e.registerWrapper, a = e.unwrap, s = e.wrap, c = ["HTMLButtonElement", "HTMLFieldSetElement", "HTMLInputElement", "HTMLKeygenElement", "HTMLLabelElement", "HTMLLegendElement", "HTMLObjectElement", "HTMLOutputElement", "HTMLTextAreaElement"];
c.forEach(t)
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
r(e, this)
}
var n = e.registerWrapper, r = e.setWrapper, o = e.unsafeUnwrap, i = e.unwrap, a = e.unwrapIfNeeded, s = e.wrap, c = window.Selection;
t.prototype = {
get anchorNode() {
return s(o(this).anchorNode)
}, get focusNode() {
return s(o(this).focusNode)
}, addRange: function (e) {
o(this).addRange(a(e))
}, collapse: function (e, t) {
o(this).collapse(a(e), t)
}, containsNode: function (e, t) {
return o(this).containsNode(a(e), t)
}, getRangeAt: function (e) {
return s(o(this).getRangeAt(e))
}, removeRange: function (e) {
o(this).removeRange(i(e))
}, selectAllChildren: function (e) {
o(this).selectAllChildren(e instanceof ShadowRoot ? o(e.host) : a(e))
}, toString: function () {
return o(this).toString()
}
}, c.prototype.extend && (t.prototype.extend = function (e, t) {
o(this).extend(a(e), t)
}), n(window.Selection, t, window.getSelection()), e.wrappers.Selection = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
r(e, this)
}
var n = e.registerWrapper, r = e.setWrapper, o = e.unsafeUnwrap, i = e.unwrapIfNeeded, a = e.wrap, s = window.TreeWalker;
t.prototype = {
get root() {
return a(o(this).root)
}, get currentNode() {
return a(o(this).currentNode)
}, set currentNode(e) {
o(this).currentNode = i(e)
}, get filter() {
return o(this).filter
}, parentNode: function () {
return a(o(this).parentNode())
}, firstChild: function () {
return a(o(this).firstChild())
}, lastChild: function () {
return a(o(this).lastChild())
}, previousSibling: function () {
return a(o(this).previousSibling())
}, previousNode: function () {
return a(o(this).previousNode())
}, nextNode: function () {
return a(o(this).nextNode())
}
}, n(s, t), e.wrappers.TreeWalker = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
l.call(this, e), this.treeScope_ = new m(this, null)
}
function n(e) {
var n = document[e];
t.prototype[e] = function () {
return D(n.apply(L(this), arguments))
}
}
function r(e, t) {
x.call(L(t), _(e)), o(e, t)
}
function o(e, t) {
e.shadowRoot && t.adoptNode(e.shadowRoot), e instanceof w && i(e, t);
for (var n = e.firstChild; n; n = n.nextSibling)o(n, t)
}
function i(e, t) {
var n = e.olderShadowRoot;
n && t.adoptNode(n)
}
function a(e) {
j(e, this)
}
function s(e, t) {
var n = document.implementation[t];
e.prototype[t] = function () {
return D(n.apply(L(this), arguments))
}
}
function c(e, t) {
var n = document.implementation[t];
e.prototype[t] = function () {
return n.apply(L(this), arguments)
}
}
var u = e.GetElementsByInterface, l = e.wrappers.Node, p = e.ParentNodeInterface, d = e.NonElementParentNodeInterface, f = e.wrappers.Selection, h = e.SelectorsInterface, w = e.wrappers.ShadowRoot, m = e.TreeScope, g = e.cloneNode, v = e.defineGetter, b = e.defineWrapGetter, y = e.elementFromPoint, E = e.forwardMethodsToWrapper, S = e.matchesNames, M = e.mixin, T = e.registerWrapper, O = e.renderAllPending, N = e.rewrap, j = e.setWrapper, L = e.unsafeUnwrap, _ = e.unwrap, D = e.wrap, C = e.wrapEventTargetMethods, H = (e.wrapNodeList,
new WeakMap);
t.prototype = Object.create(l.prototype), b(t, "documentElement"), b(t, "body"), b(t, "head"), v(t, "activeElement", function () {
var e = _(this).activeElement;
if (!e || !e.nodeType)return null;
for (var t = D(e); !this.contains(t);) {
for (; t.parentNode;)t = t.parentNode;
if (!t.host)return null;
t = t.host
}
return t
}), ["createComment", "createDocumentFragment", "createElement", "createElementNS", "createEvent", "createEventNS", "createRange", "createTextNode"].forEach(n);
var x = document.adoptNode, R = document.getSelection;
M(t.prototype, {
adoptNode: function (e) {
return e.parentNode && e.parentNode.removeChild(e), r(e, this), e
}, elementFromPoint: function (e, t) {
return y(this, this, e, t)
}, importNode: function (e, t) {
return g(e, t, L(this))
}, getSelection: function () {
return O(), new f(R.call(_(this)))
}, getElementsByName: function (e) {
return h.querySelectorAll.call(this, "[name=" + JSON.stringify(String(e)) + "]")
}
});
var P = document.createTreeWalker, W = e.wrappers.TreeWalker;
if (t.prototype.createTreeWalker = function (e, t, n, r) {
var o = null;
return n && (n.acceptNode && "function" == typeof n.acceptNode ? o = {
acceptNode: function (e) {
return n.acceptNode(D(e))
}
} : "function" == typeof n && (o = function (e) {
return n(D(e))
})), new W(P.call(_(this), _(e), t, o, r))
}, document.registerElement) {
var I = document.registerElement;
t.prototype.registerElement = function (t, n) {
function r(e) {
return e ? void j(e, this) : i ? document.createElement(i, t) : document.createElement(t)
}
var o, i;
if (void 0 !== n && (o = n.prototype, i = n["extends"]), o || (o = Object.create(HTMLElement.prototype)), e.nativePrototypeTable.get(o))throw new Error("NotSupportedError");
for (var a, s = Object.getPrototypeOf(o), c = []; s && !(a = e.nativePrototypeTable.get(s));)c.push(s), s = Object.getPrototypeOf(s);
if (!a)throw new Error("NotSupportedError");
for (var u = Object.create(a), l = c.length - 1; l >= 0; l--)u = Object.create(u);
["createdCallback", "attachedCallback", "detachedCallback", "attributeChangedCallback"].forEach(function (e) {
var t = o[e];
t && (u[e] = function () {
D(this) instanceof r || N(this), t.apply(D(this), arguments)
})
});
var p = {prototype: u};
i && (p["extends"] = i), r.prototype = o, r.prototype.constructor = r, e.constructorTable.set(u, r), e.nativePrototypeTable.set(o, u);
I.call(_(this), t, p);
return r
}, E([window.HTMLDocument || window.Document], ["registerElement"])
}
E([window.HTMLBodyElement, window.HTMLDocument || window.Document, window.HTMLHeadElement, window.HTMLHtmlElement], ["appendChild", "compareDocumentPosition", "contains", "getElementsByClassName", "getElementsByTagName", "getElementsByTagNameNS", "insertBefore", "querySelector", "querySelectorAll", "removeChild", "replaceChild"]), E([window.HTMLBodyElement, window.HTMLHeadElement, window.HTMLHtmlElement], S), E([window.HTMLDocument || window.Document], ["adoptNode", "importNode", "contains", "createComment", "createDocumentFragment", "createElement", "createElementNS", "createEvent", "createEventNS", "createRange", "createTextNode", "createTreeWalker", "elementFromPoint", "getElementById", "getElementsByName", "getSelection"]), M(t.prototype, u), M(t.prototype, p), M(t.prototype, h), M(t.prototype, d), M(t.prototype, {
get implementation() {
var e = H.get(this);
return e ? e : (e = new a(_(this).implementation), H.set(this, e), e)
}, get defaultView() {
return D(_(this).defaultView)
}
}), T(window.Document, t, document.implementation.createHTMLDocument("")), window.HTMLDocument && T(window.HTMLDocument, t), C([window.HTMLBodyElement, window.HTMLDocument || window.Document, window.HTMLHeadElement]);
var A = document.implementation.createDocument;
a.prototype.createDocument = function () {
return arguments[2] = _(arguments[2]), D(A.apply(L(this), arguments))
}, s(a, "createDocumentType"), s(a, "createHTMLDocument"), c(a, "hasFeature"), T(window.DOMImplementation, a), E([window.DOMImplementation], ["createDocument", "createDocumentType", "createHTMLDocument", "hasFeature"]), e.adoptNodeNoRemove = r, e.wrappers.DOMImplementation = a, e.wrappers.Document = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
n.call(this, e)
}
var n = e.wrappers.EventTarget, r = e.wrappers.Selection, o = e.mixin, i = e.registerWrapper, a = e.renderAllPending, s = e.unwrap, c = e.unwrapIfNeeded, u = e.wrap, l = window.Window, p = window.getComputedStyle, d = window.getDefaultComputedStyle, f = window.getSelection;
t.prototype = Object.create(n.prototype), l.prototype.getComputedStyle = function (e, t) {
return u(this || window).getComputedStyle(c(e), t)
}, d && (l.prototype.getDefaultComputedStyle = function (e, t) {
return u(this || window).getDefaultComputedStyle(c(e), t)
}), l.prototype.getSelection = function () {
return u(this || window).getSelection()
}, delete window.getComputedStyle, delete window.getDefaultComputedStyle, delete window.getSelection, ["addEventListener", "removeEventListener", "dispatchEvent"].forEach(function (e) {
l.prototype[e] = function () {
var t = u(this || window);
return t[e].apply(t, arguments)
}, delete window[e]
}), o(t.prototype, {
getComputedStyle: function (e, t) {
return a(), p.call(s(this), c(e), t)
}, getSelection: function () {
return a(), new r(f.call(s(this)))
}, get document() {
return u(s(this).document)
}
}), d && (t.prototype.getDefaultComputedStyle = function (e, t) {
return a(), d.call(s(this), c(e), t)
}), i(l, t, window), e.wrappers.Window = t
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
var t = e.unwrap, n = window.DataTransfer || window.Clipboard, r = n.prototype.setDragImage;
r && (n.prototype.setDragImage = function (e, n, o) {
r.call(this, t(e), n, o)
})
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
var t;
t = e instanceof i ? e : new i(e && o(e)), r(t, this)
}
var n = e.registerWrapper, r = e.setWrapper, o = e.unwrap, i = window.FormData;
i && (n(i, t, new i), e.wrappers.FormData = t)
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
var t = e.unwrapIfNeeded, n = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function (e) {
return n.call(this, t(e))
}
}(window.ShadowDOMPolyfill), function (e) {
"use strict";
function t(e) {
var t = n[e], r = window[t];
if (r) {
var o = document.createElement(e), i = o.constructor;
window[t] = i
}
}
var n = (e.isWrapperFor, {
a: "HTMLAnchorElement",
area: "HTMLAreaElement",
audio: "HTMLAudioElement",
base: "HTMLBaseElement",
body: "HTMLBodyElement",
br: "HTMLBRElement",
button: "HTMLButtonElement",
canvas: "HTMLCanvasElement",
caption: "HTMLTableCaptionElement",
col: "HTMLTableColElement",
content: "HTMLContentElement",
data: "HTMLDataElement",
datalist: "HTMLDataListElement",
del: "HTMLModElement",
dir: "HTMLDirectoryElement",
div: "HTMLDivElement",
dl: "HTMLDListElement",
embed: "HTMLEmbedElement",
fieldset: "HTMLFieldSetElement",
font: "HTMLFontElement",
form: "HTMLFormElement",
frame: "HTMLFrameElement",
frameset: "HTMLFrameSetElement",
h1: "HTMLHeadingElement",
head: "HTMLHeadElement",
hr: "HTMLHRElement",
html: "HTMLHtmlElement",
iframe: "HTMLIFrameElement",
img: "HTMLImageElement",
input: "HTMLInputElement",
keygen: "HTMLKeygenElement",
label: "HTMLLabelElement",
legend: "HTMLLegendElement",
li: "HTMLLIElement",
link: "HTMLLinkElement",
map: "HTMLMapElement",
marquee: "HTMLMarqueeElement",
menu: "HTMLMenuElement",
menuitem: "HTMLMenuItemElement",
meta: "HTMLMetaElement",
meter: "HTMLMeterElement",
object: "HTMLObjectElement",
ol: "HTMLOListElement",
optgroup: "HTMLOptGroupElement",
option: "HTMLOptionElement",
output: "HTMLOutputElement",
p: "HTMLParagraphElement",
param: "HTMLParamElement",
pre: "HTMLPreElement",
progress: "HTMLProgressElement",
q: "HTMLQuoteElement",
script: "HTMLScriptElement",
select: "HTMLSelectElement",
shadow: "HTMLShadowElement",
source: "HTMLSourceElement",
span: "HTMLSpanElement",
style: "HTMLStyleElement",
table: "HTMLTableElement",
tbody: "HTMLTableSectionElement",
template: "HTMLTemplateElement",
textarea: "HTMLTextAreaElement",
thead: "HTMLTableSectionElement",
time: "HTMLTimeElement",
title: "HTMLTitleElement",
tr: "HTMLTableRowElement",
track: "HTMLTrackElement",
ul: "HTMLUListElement",
video: "HTMLVideoElement"
});
Object.keys(n).forEach(t), Object.getOwnPropertyNames(e.wrappers).forEach(function (t) {
window[t] = e.wrappers[t]
})
}(window.ShadowDOMPolyfill); |
<!DOCTYPE html>
<html>
<head>
<title>Gyro Master</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=10.0, user-scalable=yes">
<meta name="author" content="tetha" />
<script type='text/javascript' src='the.js'></script>
<link rel="stylesheet" type="text/css" href="css/3d.css">
<link rel="stylesheet" type="text/css" href="css/reset.css">
</head>
<body>
<div></div>
<p>lindaサーバーURL:
<select data-bind="options: availableServers,
value: serverUrl,
optionsCaption: '-選択してください-'"></select></p>
<button id="start">START</button>
<div id="data">
<!--
<p>tiltLR: <span data-bind="text: tiltLR"></span></p>
<p>tiltFB: <span data-bind="text: tiltFB"></span></p>
-->
</div>
<table>
<thead>
<tr>
<th>handle</th><th>gX</th><th>gY</th><th>gZ</th>
</tr>
</thead>
<tbody data-bind="foreach: workers">
<tr>
<td data-bind="text: handleName"></td>
<td data-bind="text: gX"></td>
<td data-bind="text: gY"></td>
<td data-bind="text: gZ"></td>
</tr>
</tbody>
</table>
<ul id="output-list"></ul>
<script type='text/javascript'>
require(['app'], function (amber) {
amber.initialize({
//used for all new packages in IDE
'transport.defaultAmdNamespace': "amber-lindaclient"
});
require(["amber-ide-starter-dialog"], function (dlg) { dlg.start(); });
amber.globals.LindaGyroMaster._start();
});
</script>
</body>
</html>
|
#PROJECT
from outcome import Outcome
from odds import Odds
class Bin:
def __init__(
self,
*outcomes
):
self.outcomes = set([outcome for outcome in outcomes])
def add_outcome(
self,
outcome
):
self.outcomes.add(outcome)
def __str__(self):
return ', '.join([str(outcome) for outcome in self.outcomes])
class BinBuilder:
def __init__(
self,
wheel
):
self.wheel = wheel
def build_bins(self):
self.straight_bets()
self.split_bets()
self.street_bets()
self.corner_bets()
self.five_bet()
self.line_bets()
self.dozen_bets()
self.column_bets()
self.even_money_bets()
def straight_bets(self):
outcomes = [
Outcome(str(i), Odds.STRAIGHT_BET)
for i in range(37)
] + [Outcome('00', Odds.STRAIGHT_BET)]
for i, outcome in enumerate(outcomes):
self.wheel.add_outcome(i, outcome)
def split_bets(self):
for row in range(12):
for direction in [1, 2]:
n = 3 * row + direction
bins = [n, n + 1]
outcome = Outcome(
'split {}'.format('-'.join([str(i) for i in bins])),
Odds.SPLIT_BET
)
for bin in bins:
self.wheel.add_outcome(bin, outcome)
for n in range(1, 34):
bins = [n, n + 3]
outcome = Outcome(
'split {}'.format('-'.join([str(i) for i in bins])),
Odds.SPLIT_BET
)
for bin in bins:
self.wheel.add_outcome(bin, outcome)
def street_bets(self):
for row in range(12):
n = 3 * row + 1
bins = [n, n + 1, n + 2]
outcome = Outcome(
'street {}-{}'.format(bins[0], bins[-1]),
Odds.STREET_BET
)
for bin in bins:
self.wheel.add_outcome(bin, outcome)
def corner_bets(self):
for col in [1, 2]:
for row in range(11):
n = 3 * row + col
bins = [n + i for i in [0, 1, 3, 4]]
outcome = Outcome(
'corner {}'.format('-'.join([str(i) for i in bins])),
Odds.CORNER_BET
)
for bin in bins:
self.wheel.add_outcome(bin, outcome)
def five_bet(self):
outcome = Outcome(
'five bet 00-0-1-2-3',
Odds.FIVE_BET
)
for bin in [0, 1, 2, 3, 37]:
self.wheel.add_outcome(bin, outcome)
def line_bets(self):
for row in range(11):
n = 3 * row + 1
bins = [n + i for i in range(6)]
outcome = Outcome(
'line {}-{}'.format(bins[0], bins[-1]),
Odds.LINE_BET
)
for bin in bins:
self.wheel.add_outcome(bin, outcome)
def dozen_bets(self):
#https://pypi.python.org/pypi/inflect/0.2.4
dozen_map = {
1: '1st',
2: '2nd',
3: '3rd'
}
for d in range(3):
outcome = Outcome(
'{} 12'.format(dozen_map[d + 1]),
Odds.DOZEN_BET
)
for m in range(12):
self.wheel.add_outcome(12 * d + m + 1, outcome)
def column_bets(self):
for c in range(3):
outcome = Outcome(
'column {}'.format(c + 1),
Odds.COLUMN_BET
)
for r in range(12):
self.wheel.add_outcome(3 * r + c + 1, outcome)
def even_money_bets(self):
for bin in range(1, 37):
if 1 <= bin < 19:
name = '1 to 18' #low
else:
name = '19 to 36' #high
self.wheel.add_outcome(
bin,
Outcome(name, Odds.EVEN_MONEY_BET)
)
if bin % 2:
name = 'odd'
else:
name = 'even'
self.wheel.add_outcome(
bin,
Outcome(name, Odds.EVEN_MONEY_BET)
)
if bin in (
[1, 3, 5, 7, 9] +
[12, 14, 16, 18] +
[19, 21, 23, 25, 27] +
[30, 32, 34, 36]
):
name = 'red'
else:
name = 'black'
self.wheel.add_outcome(
bin,
Outcome(name, Odds.EVEN_MONEY_BET)
)
|
#!/bin/bash
#SBATCH -n 1
#SBATCH --cpus-per-task=1
#SBATCH --time=24:00:00
FASTA=$1
RNAFOLD=/home/skasinat/scratch/ViennaRNA-2.3.5/src/bin
export PATH=${PATH}:${RNAFOLD}
DNAPARAMS=/home/skasinat/scratch/ViennaRNA-2.3.5/misc/dna_mathews2004.par
# DNAPARAMS=~/Dropbox/git_repos/ViennaRNA-2.3.4/misc/dna_mathews2004.par
OUTFN=${FASTA%.*}.rnafold.txt
# The -p option allows ensemble calculation
# FOLDPARAMS="--noconv --noPS --noGU --paramFile=${DNAPARAMS} -p -g"
FOLDPARAMS="--noconv --noPS --noGU --paramFile=${DNAPARAMS} -p"
RNAfold ${FOLDPARAMS} --infile=${FASTA} > ${OUTFN}
# FOLDPARAMS="--noconv --noGU --paramFile=${DNAPARAMS} -L 500 -g"
# RNALfold ${FOLDPARAMS} --infile=${FASTA} > ${OUTFN}
echo "JOB DONE."
|
#!/usr/bin/ruby
require_relative 'libs'
require_relative 'routes/routes'
require_relative 'routes/helper'
puts '* Clearing staled cache older then %s days' % App.config.clear_interval
# exit unless imagemagic convert is found
App.die('ImageMagic convert not found in path') if `which convert` == ''
# exit uneless unsuported env
App.die('Unsupported RACK_ENV') unless ['production', 'development'].include?(App.config.env)
# secret must be present
App.die('RESIZER_SECRET not defined') unless RackImageResizer.config.secret
# clear stale cache on start
App.clear_cache_do
FileUtils.mkdir_p './log'
|
#pragma once
#include <SDL.h>
#include <string.h>
#include "../Core/C_Vec2.h"
///Forward declaration of StateManager for the pointer to the StateManager.
class S_StateManager;
/**
@brief Contains State functions and data to be inherited by all other states.
@author Jamie Slowgrove
*/
class S_State
{
public:
/**
@brief Constructs the State object.
@param stateManager A pointer to the StateManager.
@param renderer A pointer to the renderer.
@param dimensions The screen dimensions.
*/
S_State(S_StateManager* stateManager, SDL_Renderer* renderer, C_Vec2 dimensions);
/**
@brief A virtual destructor for the State object.
*/
virtual ~S_State();
/**
@brief A pure virtual function to handle the user input for use with the State.
@returns If false then quit State.
*/
virtual bool input() = 0;
/**
@brief A pure virtual function to update the State to allow the State to run.
@param dt The delta time.
*/
virtual void update(float deltaTime) = 0;
/**
@brief A pure virtual function to draw to the screen using the renderer.
*/
virtual void draw() = 0;
protected:
///A pointer to the state manager.
S_StateManager* stateManager;
///A pointer to the renderer.
SDL_Renderer* renderer;
///The screen dimensions.
C_Vec2 dimensions;
}; |
Read:
Chapter 5 of Python Crash Course Book
https://www.amazon.com/Python-Crash-Course-Hands-Project-Based-ebook/dp/B018UXJ9RI
|
/*
* Copyright (c) 2013 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var ALGOLIA_VERSION = '2.8.5';
/*
* Copyright (c) 2013 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/*
* Algolia Search library initialization
* @param applicationID the application ID you have in your admin interface
* @param apiKey a valid API key for the service
* @param methodOrOptions the hash of parameters for initialization. It can contains:
* - method (optional) specify if the protocol used is http or https (http by default to make the first search query faster).
* You need to use https is you are doing something else than just search queries.
* - hosts (optional) the list of hosts that you have received for the service
* - dsn (optional) set to true if your account has the Distributed Search Option
* - dsnHost (optional) override the automatic computation of dsn hostname
*/
var AlgoliaSearch = function(applicationID, apiKey, methodOrOptions, resolveDNS, hosts) {
var self = this;
this.applicationID = applicationID;
this.apiKey = apiKey;
this.dsn = true;
this.dsnHost = null;
this.hosts = [];
this.currentHostIndex = 0;
this.requestTimeoutInMs = 2000;
this.extraHeaders = [];
this.jsonp = null;
var method;
var tld = 'net';
if (typeof methodOrOptions === 'string') { // Old initialization
method = methodOrOptions;
} else {
// Take all option from the hash
var options = methodOrOptions || {};
if (!this._isUndefined(options.method)) {
method = options.method;
}
if (!this._isUndefined(options.tld)) {
tld = options.tld;
}
if (!this._isUndefined(options.dsn)) {
this.dsn = options.dsn;
}
if (!this._isUndefined(options.hosts)) {
hosts = options.hosts;
}
if (!this._isUndefined(options.dsnHost)) {
this.dsnHost = options.dsnHost;
}
if (!this._isUndefined(options.requestTimeoutInMs)) {
this.requestTimeoutInMs = +options.requestTimeoutInMs;
}
if (!this._isUndefined(options.jsonp)) {
this.jsonp = options.jsonp;
}
}
// If hosts is undefined, initialize it with applicationID
if (this._isUndefined(hosts)) {
hosts = [
this.applicationID + '-1.algolia.' + tld,
this.applicationID + '-2.algolia.' + tld,
this.applicationID + '-3.algolia.' + tld
];
}
// detect is we use http or https
this.host_protocol = 'http://';
if (this._isUndefined(method) || method === null) {
this.host_protocol = ('https:' == document.location.protocol ? 'https' : 'http') + '://';
} else if (method === 'https' || method === 'HTTPS') {
this.host_protocol = 'https://';
}
// Add hosts in random order
for (var i = 0; i < hosts.length; ++i) {
if (Math.random() > 0.5) {
this.hosts.reverse();
}
this.hosts.push(this.host_protocol + hosts[i]);
}
if (Math.random() > 0.5) {
this.hosts.reverse();
}
// then add Distributed Search Network host if there is one
if (this.dsn || this.dsnHost != null) {
if (this.dsnHost) {
this.hosts.unshift(this.host_protocol + this.dsnHost);
} else {
this.hosts.unshift(this.host_protocol + this.applicationID + '-dsn.algolia.' + tld);
}
}
};
function AlgoliaExplainResults(hit, titleAttribute, otherAttributes) {
function _getHitExplanationForOneAttr_recurse(obj, foundWords) {
var res = [];
if (typeof obj === 'object' && 'matchedWords' in obj && 'value' in obj) {
var match = false;
for (var j = 0; j < obj.matchedWords.length; ++j) {
var word = obj.matchedWords[j];
if (!(word in foundWords)) {
foundWords[word] = 1;
match = true;
}
}
if (match) {
res.push(obj.value);
}
} else if (Object.prototype.toString.call(obj) === '[object Array]') {
for (var i = 0; i < obj.length; ++i) {
var array = _getHitExplanationForOneAttr_recurse(obj[i], foundWords);
res = res.concat(array);
}
} else if (typeof obj === 'object') {
for (var prop in obj) {
if (obj.hasOwnProperty(prop)){
res = res.concat(_getHitExplanationForOneAttr_recurse(obj[prop], foundWords));
}
}
}
return res;
}
function _getHitExplanationForOneAttr(hit, foundWords, attr) {
var base = hit._highlightResult || hit;
if (attr.indexOf('.') === -1) {
if (attr in base) {
return _getHitExplanationForOneAttr_recurse(base[attr], foundWords);
}
return [];
}
var array = attr.split('.');
var obj = base;
for (var i = 0; i < array.length; ++i) {
if (Object.prototype.toString.call(obj) === '[object Array]') {
var res = [];
for (var j = 0; j < obj.length; ++j) {
res = res.concat(_getHitExplanationForOneAttr(obj[j], foundWords, array.slice(i).join('.')));
}
return res;
}
if (array[i] in obj) {
obj = obj[array[i]];
} else {
return [];
}
}
return _getHitExplanationForOneAttr_recurse(obj, foundWords);
}
var res = {};
var foundWords = {};
var title = _getHitExplanationForOneAttr(hit, foundWords, titleAttribute);
res.title = (title.length > 0) ? title[0] : '';
res.subtitles = [];
if (typeof otherAttributes !== 'undefined') {
for (var i = 0; i < otherAttributes.length; ++i) {
var attr = _getHitExplanationForOneAttr(hit, foundWords, otherAttributes[i]);
for (var j = 0; j < attr.length; ++j) {
res.subtitles.push({ attr: otherAttributes[i], value: attr[j] });
}
}
}
return res;
}
window.AlgoliaSearch = AlgoliaSearch;
AlgoliaSearch.prototype = {
/*
* Delete an index
*
* @param indexName the name of index to delete
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer that contains the task ID
*/
deleteIndex: function(indexName, callback) {
this._jsonRequest({ method: 'DELETE',
url: '/1/indexes/' + encodeURIComponent(indexName),
callback: callback });
},
/**
* Move an existing index.
* @param srcIndexName the name of index to copy.
* @param dstIndexName the new index name that will contains a copy of srcIndexName (destination will be overriten if it already exist).
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer that contains the task ID
*/
moveIndex: function(srcIndexName, dstIndexName, callback) {
var postObj = {operation: 'move', destination: dstIndexName};
this._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(srcIndexName) + '/operation',
body: postObj,
callback: callback });
},
/**
* Copy an existing index.
* @param srcIndexName the name of index to copy.
* @param dstIndexName the new index name that will contains a copy of srcIndexName (destination will be overriten if it already exist).
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer that contains the task ID
*/
copyIndex: function(srcIndexName, dstIndexName, callback) {
var postObj = {operation: 'copy', destination: dstIndexName};
this._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(srcIndexName) + '/operation',
body: postObj,
callback: callback });
},
/**
* Return last log entries.
* @param offset Specify the first entry to retrieve (0-based, 0 is the most recent log entry).
* @param length Specify the maximum number of entries to retrieve starting at offset. Maximum allowed value: 1000.
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer that contains the task ID
*/
getLogs: function(callback, offset, length) {
if (this._isUndefined(offset)) {
offset = 0;
}
if (this._isUndefined(length)) {
length = 10;
}
this._jsonRequest({ method: 'GET',
url: '/1/logs?offset=' + offset + '&length=' + length,
callback: callback });
},
/*
* List all existing indexes (paginated)
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with index list or error description if success is false.
* @param page The page to retrieve, starting at 0.
*/
listIndexes: function(callback, page) {
var params = page ? '?page=' + page : '';
this._jsonRequest({ method: 'GET',
url: '/1/indexes' + params,
callback: callback });
},
/*
* Get the index object initialized
*
* @param indexName the name of index
* @param callback the result callback with one argument (the Index instance)
*/
initIndex: function(indexName) {
return new this.Index(this, indexName);
},
/*
* List all existing user keys with their associated ACLs
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
listUserKeys: function(callback) {
this._jsonRequest({ method: 'GET',
url: '/1/keys',
callback: callback });
},
/*
* Get ACL of a user key
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
getUserKeyACL: function(key, callback) {
this._jsonRequest({ method: 'GET',
url: '/1/keys/' + key,
callback: callback });
},
/*
* Delete an existing user key
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
deleteUserKey: function(key, callback) {
this._jsonRequest({ method: 'DELETE',
url: '/1/keys/' + key,
callback: callback });
},
/*
* Add an existing user key
*
* @param acls the list of ACL for this key. Defined by an array of strings that
* can contains the following values:
* - search: allow to search (https and http)
* - addObject: allows to add/update an object in the index (https only)
* - deleteObject : allows to delete an existing object (https only)
* - deleteIndex : allows to delete index content (https only)
* - settings : allows to get index settings (https only)
* - editSettings : allows to change index settings (https only)
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
addUserKey: function(acls, callback) {
var aclsObject = {};
aclsObject.acl = acls;
this._jsonRequest({ method: 'POST',
url: '/1/keys',
body: aclsObject,
callback: callback });
},
/*
* Add an existing user key
*
* @param acls the list of ACL for this key. Defined by an array of strings that
* can contains the following values:
* - search: allow to search (https and http)
* - addObject: allows to add/update an object in the index (https only)
* - deleteObject : allows to delete an existing object (https only)
* - deleteIndex : allows to delete index content (https only)
* - settings : allows to get index settings (https only)
* - editSettings : allows to change index settings (https only)
* @param validity the number of seconds after which the key will be automatically removed (0 means no time limit for this key)
* @param maxQueriesPerIPPerHour Specify the maximum number of API calls allowed from an IP address per hour.
* @param maxHitsPerQuery Specify the maximum number of hits this API key can retrieve in one call.
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
addUserKeyWithValidity: function(acls, validity, maxQueriesPerIPPerHour, maxHitsPerQuery, callback) {
var indexObj = this;
var aclsObject = {};
aclsObject.acl = acls;
aclsObject.validity = validity;
aclsObject.maxQueriesPerIPPerHour = maxQueriesPerIPPerHour;
aclsObject.maxHitsPerQuery = maxHitsPerQuery;
this._jsonRequest({ method: 'POST',
url: '/1/indexes/' + indexObj.indexName + '/keys',
body: aclsObject,
callback: callback });
},
/**
* Set the extra security tagFilters header
* @param {string|array} tags The list of tags defining the current security filters
*/
setSecurityTags: function(tags) {
if (Object.prototype.toString.call(tags) === '[object Array]') {
var strTags = [];
for (var i = 0; i < tags.length; ++i) {
if (Object.prototype.toString.call(tags[i]) === '[object Array]') {
var oredTags = [];
for (var j = 0; j < tags[i].length; ++j) {
oredTags.push(tags[i][j]);
}
strTags.push('(' + oredTags.join(',') + ')');
} else {
strTags.push(tags[i]);
}
}
tags = strTags.join(',');
}
this.tagFilters = tags;
},
/**
* Set the extra user token header
* @param {string} userToken The token identifying a uniq user (used to apply rate limits)
*/
setUserToken: function(userToken) {
this.userToken = userToken;
},
/*
* Initialize a new batch of search queries
*/
startQueriesBatch: function() {
this.batch = [];
},
/*
* Add a search query in the batch
*
* @param query the full text query
* @param args (optional) if set, contains an object with query parameters:
* - attributes: an array of object attribute names to retrieve
* (if not set all attributes are retrieve)
* - attributesToHighlight: an array of object attribute names to highlight
* (if not set indexed attributes are highlighted)
* - minWordSizefor1Typo: the minimum number of characters to accept one typo.
* Defaults to 3.
* - minWordSizefor2Typos: the minimum number of characters to accept two typos.
* Defaults to 7.
* - getRankingInfo: if set, the result hits will contain ranking information in
* _rankingInfo attribute
* - page: (pagination parameter) page to retrieve (zero base). Defaults to 0.
* - hitsPerPage: (pagination parameter) number of hits per page. Defaults to 10.
*/
addQueryInBatch: function(indexName, query, args) {
var params = 'query=' + encodeURIComponent(query);
if (!this._isUndefined(args) && args !== null) {
params = this._getSearchParams(args, params);
}
this.batch.push({ indexName: indexName, params: params });
},
/*
* Clear all queries in cache
*/
clearCache: function() {
this.cache = {};
},
/*
* Launch the batch of queries using XMLHttpRequest.
* (Optimized for browser using a POST query to minimize number of OPTIONS queries)
*
* @param callback the function that will receive results
* @param delay (optional) if set, wait for this delay (in ms) and only send the batch if there was no other in the meantime.
*/
sendQueriesBatch: function(callback, delay) {
var as = this;
var params = {requests: []};
for (var i = 0; i < as.batch.length; ++i) {
params.requests.push(as.batch[i]);
}
window.clearTimeout(as.onDelayTrigger);
if (!this._isUndefined(delay) && delay !== null && delay > 0) {
var onDelayTrigger = window.setTimeout( function() {
as._sendQueriesBatch(params, callback);
}, delay);
as.onDelayTrigger = onDelayTrigger;
} else {
this._sendQueriesBatch(params, callback);
}
},
/**
* Set the number of milliseconds a request can take before automatically being terminated.
*
* @param {Number} milliseconds
*/
setRequestTimeout: function(milliseconds)
{
if (milliseconds) {
this.requestTimeoutInMs = parseInt(milliseconds, 10);
}
},
/*
* Index class constructor.
* You should not use this method directly but use initIndex() function
*/
Index: function(algoliasearch, indexName) {
this.indexName = indexName;
this.as = algoliasearch;
this.typeAheadArgs = null;
this.typeAheadValueOption = null;
},
/**
* Add an extra field to the HTTP request
*
* @param key the header field name
* @param value the header field value
*/
setExtraHeader: function(key, value) {
this.extraHeaders.push({ key: key, value: value});
},
_sendQueriesBatch: function(params, callback) {
if (this.jsonp === null) {
var self = this;
this._jsonRequest({ cache: this.cache,
method: 'POST',
url: '/1/indexes/*/queries',
body: params,
callback: function(success, content) {
if (!success) {
// retry first with JSONP
self.jsonp = true;
self._sendQueriesBatch(params, callback);
} else {
self.jsonp = false;
callback && callback(success, content);
}
}
});
} else if (this.jsonp) {
var jsonpParams = '';
for (var i = 0; i < params.requests.length; ++i) {
var q = '/1/indexes/' + encodeURIComponent(params.requests[i].indexName) + '?' + params.requests[i].params;
jsonpParams += i + '=' + encodeURIComponent(q) + '&';
}
var pObj = {params: jsonpParams};
this._jsonRequest({ cache: this.cache,
method: 'GET',
url: '/1/indexes/*',
body: pObj,
callback: callback });
} else {
this._jsonRequest({ cache: this.cache,
method: 'POST',
url: '/1/indexes/*/queries',
body: params,
callback: callback});
}
},
/*
* Wrapper that try all hosts to maximize the quality of service
*/
_jsonRequest: function(opts) {
var self = this;
var callback = opts.callback;
var cache = null;
var cacheID = opts.url;
if (!this._isUndefined(opts.body)) {
cacheID = opts.url + '_body_' + JSON.stringify(opts.body);
}
if (!this._isUndefined(opts.cache)) {
cache = opts.cache;
if (!this._isUndefined(cache[cacheID])) {
if (!this._isUndefined(callback)) {
setTimeout(function () { callback(true, cache[cacheID]); }, 1);
}
return;
}
}
opts.successiveRetryCount = 0;
var impl = function() {
if (opts.successiveRetryCount >= self.hosts.length) {
if (!self._isUndefined(callback)) {
opts.successiveRetryCount = 0;
callback(false, { message: 'Cannot connect the Algolia\'s Search API. Please send an email to support@algolia.com to report the issue.' });
}
return;
}
opts.callback = function(retry, success, res, body) {
if (!success && !self._isUndefined(body)) {
window.console && console.log('Error: ' + body.message);
}
if (success && !self._isUndefined(opts.cache)) {
cache[cacheID] = body;
}
if (!success && retry) {
self.currentHostIndex = ++self.currentHostIndex % self.hosts.length;
opts.successiveRetryCount += 1;
impl();
} else {
opts.successiveRetryCount = 0;
if (!self._isUndefined(callback)) {
callback(success, body);
}
}
};
opts.hostname = self.hosts[self.currentHostIndex];
self._jsonRequestByHost(opts);
};
impl();
},
_jsonRequestByHost: function(opts) {
var self = this;
var url = opts.hostname + opts.url;
if (this.jsonp) {
this._makeJsonpRequestByHost(url, opts);
} else {
this._makeXmlHttpRequestByHost(url, opts);
}
},
/**
* Make a JSONP request
*
* @param url request url (includes endpoint and path)
* @param opts all request options
*/
_makeJsonpRequestByHost: function(url, opts) {
//////////////////
//////////////////
/////
///// DISABLED FOR SECURITY PURPOSE
/////
//////////////////
//////////////////
opts.callback(true, false, null, { 'message': 'JSONP not allowed.' });
return;
// if (opts.method !== 'GET') {
// opts.callback(true, false, null, { 'message': 'Method ' + opts.method + ' ' + url + ' is not supported by JSONP.' });
// return;
// }
// this.jsonpCounter = this.jsonpCounter || 0;
// this.jsonpCounter += 1;
// var head = document.getElementsByTagName('head')[0];
// var script = document.createElement('script');
// var cb = 'algoliaJSONP_' + this.jsonpCounter;
// var done = false;
// var ontimeout = null;
// window[cb] = function(data) {
// opts.callback(false, true, null, data);
// try { delete window[cb]; } catch (e) { window[cb] = undefined; }
// };
// script.type = 'text/javascript';
// script.src = url + '?callback=' + cb + '&X-Algolia-Application-Id=' + this.applicationID + '&X-Algolia-API-Key=' + this.apiKey;
// if (this.tagFilters) {
// script.src += '&X-Algolia-TagFilters=' + encodeURIComponent(this.tagFilters);
// }
// if (this.userToken) {
// script.src += '&X-Algolia-UserToken=' + encodeURIComponent(this.userToken);
// }
// for (var i = 0; i < this.extraHeaders.length; ++i) {
// script.src += '&' + this.extraHeaders[i].key + '=' + this.extraHeaders[i].value;
// }
// if (opts.body && opts.body.params) {
// script.src += '&' + opts.body.params;
// }
// ontimeout = setTimeout(function() {
// script.onload = script.onreadystatechange = script.onerror = null;
// window[cb] = function(data) {
// try { delete window[cb]; } catch (e) { window[cb] = undefined; }
// };
// opts.callback(true, false, null, { 'message': 'Timeout - Failed to load JSONP script.' });
// head.removeChild(script);
// clearTimeout(ontimeout);
// ontimeout = null;
// }, this.requestTimeoutInMs);
// script.onload = script.onreadystatechange = function() {
// clearTimeout(ontimeout);
// ontimeout = null;
// if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
// done = true;
// if (typeof window[cb + '_loaded'] === 'undefined') {
// opts.callback(true, false, null, { 'message': 'Failed to load JSONP script.' });
// try { delete window[cb]; } catch (e) { window[cb] = undefined; }
// } else {
// try { delete window[cb + '_loaded']; } catch (e) { window[cb + '_loaded'] = undefined; }
// }
// script.onload = script.onreadystatechange = null; // Handle memory leak in IE
// head.removeChild(script);
// }
// };
// script.onerror = function() {
// clearTimeout(ontimeout);
// ontimeout = null;
// opts.callback(true, false, null, { 'message': 'Failed to load JSONP script.' });
// head.removeChild(script);
// try { delete window[cb]; } catch (e) { window[cb] = undefined; }
// };
// head.appendChild(script);
},
/**
* Make a XmlHttpRequest
*
* @param url request url (includes endpoint and path)
* @param opts all request opts
*/
_makeXmlHttpRequestByHost: function(url, opts) {
var self = this;
var xmlHttp = window.XMLHttpRequest ? new XMLHttpRequest() : {};
var body = null;
var ontimeout = null;
if (!this._isUndefined(opts.body)) {
body = JSON.stringify(opts.body);
}
url += ((url.indexOf('?') == -1) ? '?' : '&') + 'X-Algolia-API-Key=' + this.apiKey;
url += '&X-Algolia-Application-Id=' + this.applicationID;
if (this.userToken) {
url += '&X-Algolia-UserToken=' + encodeURIComponent(this.userToken);
}
if (this.tagFilters) {
url += '&X-Algolia-TagFilters=' + encodeURIComponent(this.tagFilters);
}
for (var i = 0; i < this.extraHeaders.length; ++i) {
url += '&' + this.extraHeaders[i].key + '=' + this.extraHeaders[i].value;
}
if ('withCredentials' in xmlHttp) {
xmlHttp.open(opts.method, url, true);
xmlHttp.timeout = this.requestTimeoutInMs * (opts.successiveRetryCount + 1);
if (body !== null) {
/* This content type is specified to follow CORS 'simple header' directive */
xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
}
} else if (typeof XDomainRequest !== 'undefined') {
// Handle IE8/IE9
// XDomainRequest only exists in IE, and is IE's way of making CORS requests.
xmlHttp = new XDomainRequest();
xmlHttp.open(opts.method, url);
} else {
// very old browser, not supported
opts.callback(false, false, null, { 'message': 'CORS not supported' });
return;
}
ontimeout = setTimeout(function() {
xmlHttp.abort();
// Prevent Internet Explorer 9, JScript Error c00c023f
if (xmlHttp.aborted === true) {
stopLoadAnimation();
return;
}
opts.callback(true, false, null, { 'message': 'Timeout - Could not connect to endpoint ' + url } );
clearTimeout(ontimeout);
ontimeout = null;
}, this.requestTimeoutInMs * (opts.successiveRetryCount + 1));
xmlHttp.onload = function(event) {
clearTimeout(ontimeout);
ontimeout = null;
if (!self._isUndefined(event) && event.target !== null) {
var retry = (event.target.status === 0 || event.target.status === 503);
var success = false;
var response = null;
if (typeof XDomainRequest !== 'undefined') {
// Handle CORS requests IE8/IE9
response = event.target.responseText;
success = (response && response.length > 0);
}
else {
response = event.target.response;
success = (event.target.status === 200 || event.target.status === 201);
}
opts.callback(retry, success, event.target, response ? JSON.parse(response) : null);
} else {
opts.callback(false, true, event, JSON.parse(xmlHttp.responseText));
}
};
xmlHttp.ontimeout = function(event) { // stop the network call but rely on ontimeout to call opt.callback
};
xmlHttp.onerror = function(event) {
clearTimeout(ontimeout);
ontimeout = null;
opts.callback(true, false, null, { 'message': 'Could not connect to host', 'error': event } );
};
xmlHttp.send(body);
},
/*
* Transform search param object in query string
*/
_getSearchParams: function(args, params) {
if (this._isUndefined(args) || args === null) {
return params;
}
for (var key in args) {
if (key !== null && args.hasOwnProperty(key)) {
params += (params.length === 0) ? '?' : '&';
params += key + '=' + encodeURIComponent(Object.prototype.toString.call(args[key]) === '[object Array]' ? JSON.stringify(args[key]) : args[key]);
}
}
return params;
},
_isUndefined: function(obj) {
return obj === void 0;
},
/// internal attributes
applicationID: null,
apiKey: null,
tagFilters: null,
userToken: null,
hosts: [],
cache: {},
extraHeaders: []
};
/*
* Contains all the functions related to one index
* You should use AlgoliaSearch.initIndex(indexName) to retrieve this object
*/
AlgoliaSearch.prototype.Index.prototype = {
/*
* Clear all queries in cache
*/
clearCache: function() {
this.cache = {};
},
/*
* Add an object in this index
*
* @param content contains the javascript object to add inside the index
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that contains 3 elements: createAt, taskId and objectID
* @param objectID (optional) an objectID you want to attribute to this object
* (if the attribute already exist the old object will be overwrite)
*/
addObject: function(content, callback, objectID) {
var indexObj = this;
if (this.as._isUndefined(objectID)) {
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName),
body: content,
callback: callback });
} else {
this.as._jsonRequest({ method: 'PUT',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/' + encodeURIComponent(objectID),
body: content,
callback: callback });
}
},
/*
* Add several objects
*
* @param objects contains an array of objects to add
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that updateAt and taskID
*/
addObjects: function(objects, callback) {
var indexObj = this;
var postObj = {requests:[]};
for (var i = 0; i < objects.length; ++i) {
var request = { action: 'addObject',
body: objects[i] };
postObj.requests.push(request);
}
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/batch',
body: postObj,
callback: callback });
},
/*
* Get an object from this index
*
* @param objectID the unique identifier of the object to retrieve
* @param callback (optional) the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the object to retrieve or the error message if a failure occured
* @param attributes (optional) if set, contains the array of attribute names to retrieve
*/
getObject: function(objectID, callback, attributes) {
var indexObj = this;
var params = '';
if (!this.as._isUndefined(attributes)) {
params = '?attributes=';
for (var i = 0; i < attributes.length; ++i) {
if (i !== 0) {
params += ',';
}
params += attributes[i];
}
}
if (this.as.jsonp === null) {
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/' + encodeURIComponent(objectID) + params,
callback: callback });
} else {
var pObj = {params: params};
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/' + encodeURIComponent(objectID),
callback: callback,
body: pObj});
}
},
/*
* Update partially an object (only update attributes passed in argument)
*
* @param partialObject contains the javascript attributes to override, the
* object must contains an objectID attribute
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that contains 3 elements: createAt, taskId and objectID
*/
partialUpdateObject: function(partialObject, callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/' + encodeURIComponent(partialObject.objectID) + '/partial',
body: partialObject,
callback: callback });
},
/*
* Partially Override the content of several objects
*
* @param objects contains an array of objects to update (each object must contains a objectID attribute)
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that updateAt and taskID
*/
partialUpdateObjects: function(objects, callback) {
var indexObj = this;
var postObj = {requests:[]};
for (var i = 0; i < objects.length; ++i) {
var request = { action: 'partialUpdateObject',
objectID: objects[i].objectID,
body: objects[i] };
postObj.requests.push(request);
}
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/batch',
body: postObj,
callback: callback });
},
/*
* Override the content of object
*
* @param object contains the javascript object to save, the object must contains an objectID attribute
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that updateAt and taskID
*/
saveObject: function(object, callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'PUT',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/' + encodeURIComponent(object.objectID),
body: object,
callback: callback });
},
/*
* Override the content of several objects
*
* @param objects contains an array of objects to update (each object must contains a objectID attribute)
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that updateAt and taskID
*/
saveObjects: function(objects, callback) {
var indexObj = this;
var postObj = {requests:[]};
for (var i = 0; i < objects.length; ++i) {
var request = { action: 'updateObject',
objectID: objects[i].objectID,
body: objects[i] };
postObj.requests.push(request);
}
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/batch',
body: postObj,
callback: callback });
},
/*
* Delete an object from the index
*
* @param objectID the unique identifier of object to delete
* @param callback (optional) the result callback with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that contains 3 elements: createAt, taskId and objectID
*/
deleteObject: function(objectID, callback) {
if (objectID === null || objectID.length === 0) {
callback(false, { message: 'empty objectID'});
return;
}
var indexObj = this;
this.as._jsonRequest({ method: 'DELETE',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/' + encodeURIComponent(objectID),
callback: callback });
},
/*
* Search inside the index using XMLHttpRequest request (Using a POST query to
* minimize number of OPTIONS queries: Cross-Origin Resource Sharing).
*
* @param query the full text query
* @param callback the result callback with two arguments:
* success: boolean set to true if the request was successfull. If false, the content contains the error.
* content: the server answer that contains the list of results.
* @param args (optional) if set, contains an object with query parameters:
* - page: (integer) Pagination parameter used to select the page to retrieve.
* Page is zero-based and defaults to 0. Thus, to retrieve the 10th page you need to set page=9
* - hitsPerPage: (integer) Pagination parameter used to select the number of hits per page. Defaults to 20.
* - attributesToRetrieve: a string that contains the list of object attributes you want to retrieve (let you minimize the answer size).
* Attributes are separated with a comma (for example "name,address").
* You can also use a string array encoding (for example ["name","address"]).
* By default, all attributes are retrieved. You can also use '*' to retrieve all values when an attributesToRetrieve setting is specified for your index.
* - attributesToHighlight: a string that contains the list of attributes you want to highlight according to the query.
* Attributes are separated by a comma. You can also use a string array encoding (for example ["name","address"]).
* If an attribute has no match for the query, the raw value is returned. By default all indexed text attributes are highlighted.
* You can use `*` if you want to highlight all textual attributes. Numerical attributes are not highlighted.
* A matchLevel is returned for each highlighted attribute and can contain:
* - full: if all the query terms were found in the attribute,
* - partial: if only some of the query terms were found,
* - none: if none of the query terms were found.
* - attributesToSnippet: a string that contains the list of attributes to snippet alongside the number of words to return (syntax is `attributeName:nbWords`).
* Attributes are separated by a comma (Example: attributesToSnippet=name:10,content:10).
* You can also use a string array encoding (Example: attributesToSnippet: ["name:10","content:10"]). By default no snippet is computed.
* - minWordSizefor1Typo: the minimum number of characters in a query word to accept one typo in this word. Defaults to 3.
* - minWordSizefor2Typos: the minimum number of characters in a query word to accept two typos in this word. Defaults to 7.
* - getRankingInfo: if set to 1, the result hits will contain ranking information in _rankingInfo attribute.
* - aroundLatLng: search for entries around a given latitude/longitude (specified as two floats separated by a comma).
* For example aroundLatLng=47.316669,5.016670).
* You can specify the maximum distance in meters with the aroundRadius parameter (in meters) and the precision for ranking with aroundPrecision
* (for example if you set aroundPrecision=100, two objects that are distant of less than 100m will be considered as identical for "geo" ranking parameter).
* At indexing, you should specify geoloc of an object with the _geoloc attribute (in the form {"_geoloc":{"lat":48.853409, "lng":2.348800}})
* - insideBoundingBox: search entries inside a given area defined by the two extreme points of a rectangle (defined by 4 floats: p1Lat,p1Lng,p2Lat,p2Lng).
* For example insideBoundingBox=47.3165,4.9665,47.3424,5.0201).
* At indexing, you should specify geoloc of an object with the _geoloc attribute (in the form {"_geoloc":{"lat":48.853409, "lng":2.348800}})
* - numericFilters: a string that contains the list of numeric filters you want to apply separated by a comma.
* The syntax of one filter is `attributeName` followed by `operand` followed by `value`. Supported operands are `<`, `<=`, `=`, `>` and `>=`.
* You can have multiple conditions on one attribute like for example numericFilters=price>100,price<1000.
* You can also use a string array encoding (for example numericFilters: ["price>100","price<1000"]).
* - tagFilters: filter the query by a set of tags. You can AND tags by separating them by commas.
* To OR tags, you must add parentheses. For example, tags=tag1,(tag2,tag3) means tag1 AND (tag2 OR tag3).
* You can also use a string array encoding, for example tagFilters: ["tag1",["tag2","tag3"]] means tag1 AND (tag2 OR tag3).
* At indexing, tags should be added in the _tags** attribute of objects (for example {"_tags":["tag1","tag2"]}).
* - facetFilters: filter the query by a list of facets.
* Facets are separated by commas and each facet is encoded as `attributeName:value`.
* For example: `facetFilters=category:Book,author:John%20Doe`.
* You can also use a string array encoding (for example `["category:Book","author:John%20Doe"]`).
* - facets: List of object attributes that you want to use for faceting.
* Attributes are separated with a comma (for example `"category,author"` ).
* You can also use a JSON string array encoding (for example ["category","author"]).
* Only attributes that have been added in **attributesForFaceting** index setting can be used in this parameter.
* You can also use `*` to perform faceting on all attributes specified in **attributesForFaceting**.
* - queryType: select how the query words are interpreted, it can be one of the following value:
* - prefixAll: all query words are interpreted as prefixes,
* - prefixLast: only the last word is interpreted as a prefix (default behavior),
* - prefixNone: no query word is interpreted as a prefix. This option is not recommended.
* - optionalWords: a string that contains the list of words that should be considered as optional when found in the query.
* The list of words is comma separated.
* - distinct: If set to 1, enable the distinct feature (disabled by default) if the attributeForDistinct index setting is set.
* This feature is similar to the SQL "distinct" keyword: when enabled in a query with the distinct=1 parameter,
* all hits containing a duplicate value for the attributeForDistinct attribute are removed from results.
* For example, if the chosen attribute is show_name and several hits have the same value for show_name, then only the best
* one is kept and others are removed.
* @param delay (optional) if set, wait for this delay (in ms) and only send the query if there was no other in the meantime.
*/
search: function(query, callback, args, delay) {
var indexObj = this;
var params = 'query=' + encodeURIComponent(query);
if (!this.as._isUndefined(args) && args !== null) {
params = this.as._getSearchParams(args, params);
}
window.clearTimeout(indexObj.onDelayTrigger);
if (!this.as._isUndefined(delay) && delay !== null && delay > 0) {
var onDelayTrigger = window.setTimeout( function() {
indexObj._search(params, callback);
}, delay);
indexObj.onDelayTrigger = onDelayTrigger;
} else {
this._search(params, callback);
}
},
/*
* Browse all index content
*
* @param page Pagination parameter used to select the page to retrieve.
* Page is zero-based and defaults to 0. Thus, to retrieve the 10th page you need to set page=9
* @param hitsPerPage: Pagination parameter used to select the number of hits per page. Defaults to 1000.
*/
browse: function(page, callback, hitsPerPage) {
var indexObj = this;
var params = '?page=' + page;
if (!this.as._isUndefined(hitsPerPage)) {
params += '&hitsPerPage=' + hitsPerPage;
}
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/browse' + params,
callback: callback });
},
/*
* Get a Typeahead.js adapter
* @param searchParams contains an object with query parameters (see search for details)
*/
ttAdapter: function(params) {
var self = this;
return function(query, cb) {
self.search(query, function(success, content) {
if (success) {
cb(content.hits);
}
}, params);
};
},
/*
* Wait the publication of a task on the server.
* All server task are asynchronous and you can check with this method that the task is published.
*
* @param taskID the id of the task returned by server
* @param callback the result callback with with two arguments:
* success: boolean set to true if the request was successfull
* content: the server answer that contains the list of results
*/
waitTask: function(taskID, callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/task/' + taskID,
callback: function(success, body) {
if (success) {
if (body.status === 'published') {
callback(true, body);
} else {
setTimeout(function() { indexObj.waitTask(taskID, callback); }, 100);
}
} else {
callback(false, body);
}
}});
},
/*
* This function deletes the index content. Settings and index specific API keys are kept untouched.
*
* @param callback (optional) the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the settings object or the error message if a failure occured
*/
clearIndex: function(callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/clear',
callback: callback });
},
/*
* Get settings of this index
*
* @param callback (optional) the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the settings object or the error message if a failure occured
*/
getSettings: function(callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/settings',
callback: callback });
},
/*
* Set settings for this index
*
* @param settigns the settings object that can contains :
* - minWordSizefor1Typo: (integer) the minimum number of characters to accept one typo (default = 3).
* - minWordSizefor2Typos: (integer) the minimum number of characters to accept two typos (default = 7).
* - hitsPerPage: (integer) the number of hits per page (default = 10).
* - attributesToRetrieve: (array of strings) default list of attributes to retrieve in objects.
* If set to null, all attributes are retrieved.
* - attributesToHighlight: (array of strings) default list of attributes to highlight.
* If set to null, all indexed attributes are highlighted.
* - attributesToSnippet**: (array of strings) default list of attributes to snippet alongside the number of words to return (syntax is attributeName:nbWords).
* By default no snippet is computed. If set to null, no snippet is computed.
* - attributesToIndex: (array of strings) the list of fields you want to index.
* If set to null, all textual and numerical attributes of your objects are indexed, but you should update it to get optimal results.
* This parameter has two important uses:
* - Limit the attributes to index: For example if you store a binary image in base64, you want to store it and be able to
* retrieve it but you don't want to search in the base64 string.
* - Control part of the ranking*: (see the ranking parameter for full explanation) Matches in attributes at the beginning of
* the list will be considered more important than matches in attributes further down the list.
* In one attribute, matching text at the beginning of the attribute will be considered more important than text after, you can disable
* this behavior if you add your attribute inside `unordered(AttributeName)`, for example attributesToIndex: ["title", "unordered(text)"].
* - attributesForFaceting: (array of strings) The list of fields you want to use for faceting.
* All strings in the attribute selected for faceting are extracted and added as a facet. If set to null, no attribute is used for faceting.
* - attributeForDistinct: (string) The attribute name used for the Distinct feature. This feature is similar to the SQL "distinct" keyword: when enabled
* in query with the distinct=1 parameter, all hits containing a duplicate value for this attribute are removed from results.
* For example, if the chosen attribute is show_name and several hits have the same value for show_name, then only the best one is kept and others are removed.
* - ranking: (array of strings) controls the way results are sorted.
* We have six available criteria:
* - typo: sort according to number of typos,
* - geo: sort according to decreassing distance when performing a geo-location based search,
* - proximity: sort according to the proximity of query words in hits,
* - attribute: sort according to the order of attributes defined by attributesToIndex,
* - exact:
* - if the user query contains one word: sort objects having an attribute that is exactly the query word before others.
* For example if you search for the "V" TV show, you want to find it with the "V" query and avoid to have all popular TV
* show starting by the v letter before it.
* - if the user query contains multiple words: sort according to the number of words that matched exactly (and not as a prefix).
* - custom: sort according to a user defined formula set in **customRanking** attribute.
* The standard order is ["typo", "geo", "proximity", "attribute", "exact", "custom"]
* - customRanking: (array of strings) lets you specify part of the ranking.
* The syntax of this condition is an array of strings containing attributes prefixed by asc (ascending order) or desc (descending order) operator.
* For example `"customRanking" => ["desc(population)", "asc(name)"]`
* - queryType: Select how the query words are interpreted, it can be one of the following value:
* - prefixAll: all query words are interpreted as prefixes,
* - prefixLast: only the last word is interpreted as a prefix (default behavior),
* - prefixNone: no query word is interpreted as a prefix. This option is not recommended.
* - highlightPreTag: (string) Specify the string that is inserted before the highlighted parts in the query result (default to "<em>").
* - highlightPostTag: (string) Specify the string that is inserted after the highlighted parts in the query result (default to "</em>").
* - optionalWords: (array of strings) Specify a list of words that should be considered as optional when found in the query.
* @param callback (optional) the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer or the error message if a failure occured
*/
setSettings: function(settings, callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'PUT',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/settings',
body: settings,
callback: callback });
},
/*
* List all existing user keys associated to this index
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
listUserKeys: function(callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/keys',
callback: callback });
},
/*
* Get ACL of a user key associated to this index
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
getUserKeyACL: function(key, callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'GET',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/keys/' + key,
callback: callback });
},
/*
* Delete an existing user key associated to this index
*
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
deleteUserKey: function(key, callback) {
var indexObj = this;
this.as._jsonRequest({ method: 'DELETE',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/keys/' + key,
callback: callback });
},
/*
* Add an existing user key associated to this index
*
* @param acls the list of ACL for this key. Defined by an array of strings that
* can contains the following values:
* - search: allow to search (https and http)
* - addObject: allows to add/update an object in the index (https only)
* - deleteObject : allows to delete an existing object (https only)
* - deleteIndex : allows to delete index content (https only)
* - settings : allows to get index settings (https only)
* - editSettings : allows to change index settings (https only)
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
addUserKey: function(acls, callback) {
var indexObj = this;
var aclsObject = {};
aclsObject.acl = acls;
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/keys',
body: aclsObject,
callback: callback });
},
/*
* Add an existing user key associated to this index
*
* @param acls the list of ACL for this key. Defined by an array of strings that
* can contains the following values:
* - search: allow to search (https and http)
* - addObject: allows to add/update an object in the index (https only)
* - deleteObject : allows to delete an existing object (https only)
* - deleteIndex : allows to delete index content (https only)
* - settings : allows to get index settings (https only)
* - editSettings : allows to change index settings (https only)
* @param validity the number of seconds after which the key will be automatically removed (0 means no time limit for this key)
* @param maxQueriesPerIPPerHour Specify the maximum number of API calls allowed from an IP address per hour.
* @param maxHitsPerQuery Specify the maximum number of hits this API key can retrieve in one call.
* @param callback the result callback with two arguments
* success: boolean set to true if the request was successfull
* content: the server answer with user keys list or error description if success is false.
*/
addUserKeyWithValidity: function(acls, validity, maxQueriesPerIPPerHour, maxHitsPerQuery, callback) {
var indexObj = this;
var aclsObject = {};
aclsObject.acl = acls;
aclsObject.validity = validity;
aclsObject.maxQueriesPerIPPerHour = maxQueriesPerIPPerHour;
aclsObject.maxHitsPerQuery = maxHitsPerQuery;
this.as._jsonRequest({ method: 'POST',
url: '/1/indexes/' + encodeURIComponent(indexObj.indexName) + '/keys',
body: aclsObject,
callback: callback });
},
///
/// Internal methods only after this line
///
_search: function(params, callback) {
var pObj = {params: params};
if (this.as.jsonp === null) {
var self = this;
this.as._jsonRequest({ cache: this.cache,
method: 'POST',
url: '/1/indexes/' + encodeURIComponent(this.indexName) + '/query',
body: pObj,
callback: function(success, content) {
if (!success) {
// retry first with JSONP
self.as.jsonp = true;
self._search(params, callback);
} else {
self.as.jsonp = false;
callback && callback(success, content);
}
}
});
} else if (this.as.jsonp) {
this.as._jsonRequest({ cache: this.cache,
method: 'GET',
url: '/1/indexes/' + encodeURIComponent(this.indexName),
body: pObj,
callback: callback });
} else {
this.as._jsonRequest({ cache: this.cache,
method: 'POST',
url: '/1/indexes/' + encodeURIComponent(this.indexName) + '/query',
body: pObj,
callback: callback});
}
},
// internal attributes
as: null,
indexName: null,
cache: {},
typeAheadArgs: null,
typeAheadValueOption: null,
emptyConstructor: function() {}
};
/*
* Copyright (c) 2014 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
(function($) {
var extend = function(out) {
out = out || {};
for (var i = 1; i < arguments.length; i++) {
if (!arguments[i]) {
continue;
}
for (var key in arguments[i]) {
if (arguments[i].hasOwnProperty(key)) {
out[key] = arguments[i][key];
}
}
}
return out;
};
/**
* Algolia Search Helper providing faceting and disjunctive faceting
* @param {AlgoliaSearch} client an AlgoliaSearch client
* @param {string} index the index name to query
* @param {hash} options an associative array defining the hitsPerPage, list of facets and list of disjunctive facets
*/
window.AlgoliaSearchHelper = function(client, index, options) {
/// Default options
var defaults = {
facets: [], // list of facets to compute
disjunctiveFacets: [], // list of disjunctive facets to compute
hitsPerPage: 20 // number of hits per page
};
this.init(client, index, extend({}, defaults, options));
};
AlgoliaSearchHelper.prototype = {
/**
* Initialize a new AlgoliaSearchHelper
* @param {AlgoliaSearch} client an AlgoliaSearch client
* @param {string} index the index name to query
* @param {hash} options an associative array defining the hitsPerPage, list of facets and list of disjunctive facets
* @return {AlgoliaSearchHelper}
*/
init: function(client, index, options) {
this.client = client;
this.index = index;
this.options = options;
this.page = 0;
this.refinements = {};
this.disjunctiveRefinements = {};
this.extraQueries = [];
},
/**
* Perform a query
* @param {string} q the user query
* @param {function} searchCallback the result callback called with two arguments:
* success: boolean set to true if the request was successfull
* content: the query answer with an extra 'disjunctiveFacets' attribute
*/
search: function(q, searchCallback, searchParams) {
this.q = q;
this.searchCallback = searchCallback;
this.searchParams = searchParams || {};
this.page = this.page || 0;
this.refinements = this.refinements || {};
this.disjunctiveRefinements = this.disjunctiveRefinements || {};
this._search();
},
/**
* Remove all refinements (disjunctive + conjunctive)
*/
clearRefinements: function() {
this.disjunctiveRefinements = {};
this.refinements = {};
},
/**
* Ensure a facet refinement exists
* @param {string} facet the facet to refine
* @param {string} value the associated value
*/
addDisjunctiveRefine: function(facet, value) {
this.disjunctiveRefinements = this.disjunctiveRefinements || {};
this.disjunctiveRefinements[facet] = this.disjunctiveRefinements[facet] || {};
this.disjunctiveRefinements[facet][value] = true;
},
/**
* Ensure a facet refinement does not exist
* @param {string} facet the facet to refine
* @param {string} value the associated value
*/
removeDisjunctiveRefine: function(facet, value) {
this.disjunctiveRefinements = this.disjunctiveRefinements || {};
this.disjunctiveRefinements[facet] = this.disjunctiveRefinements[facet] || {};
try {
delete this.disjunctiveRefinements[facet][value];
} catch (e) {
this.disjunctiveRefinements[facet][value] = undefined; // IE compat
}
},
/**
* Ensure a facet refinement exists
* @param {string} facet the facet to refine
* @param {string} value the associated value
*/
addRefine: function(facet, value) {
var refinement = facet + ':' + value;
this.refinements = this.refinements || {};
this.refinements[refinement] = true;
},
/**
* Ensure a facet refinement does not exist
* @param {string} facet the facet to refine
* @param {string} value the associated value
*/
removeRefine: function(facet, value) {
var refinement = facet + ':' + value;
this.refinements = this.refinements || {};
this.refinements[refinement] = false;
},
/**
* Toggle refinement state of a facet
* @param {string} facet the facet to refine
* @param {string} value the associated value
* @return {boolean} true if the facet has been found
*/
toggleRefine: function(facet, value) {
for (var i = 0; i < this.options.facets.length; ++i) {
if (this.options.facets[i] == facet) {
var refinement = facet + ':' + value;
this.refinements[refinement] = !this.refinements[refinement];
this.page = 0;
this._search();
return true;
}
}
this.disjunctiveRefinements[facet] = this.disjunctiveRefinements[facet] || {};
for (var j = 0; j < this.options.disjunctiveFacets.length; ++j) {
if (this.options.disjunctiveFacets[j] == facet) {
this.disjunctiveRefinements[facet][value] = !this.disjunctiveRefinements[facet][value];
this.page = 0;
this._search();
return true;
}
}
return false;
},
/**
* Check the refinement state of a facet
* @param {string} facet the facet
* @param {string} value the associated value
* @return {boolean} true if refined
*/
isRefined: function(facet, value) {
var refinement = facet + ':' + value;
if (this.refinements[refinement]) {
return true;
}
if (this.disjunctiveRefinements[facet] && this.disjunctiveRefinements[facet][value]) {
return true;
}
return false;
},
/**
* Go to next page
*/
nextPage: function() {
this._gotoPage(this.page + 1);
},
/**
* Go to previous page
*/
previousPage: function() {
if (this.page > 0) {
this._gotoPage(this.page - 1);
}
},
/**
* Goto a page
* @param {integer} page The page number
*/
gotoPage: function(page) {
this._gotoPage(page);
},
/**
* Configure the page but do not trigger a reload
* @param {integer} page The page number
*/
setPage: function(page) {
this.page = page;
},
/**
* Configure the underlying index name
* @param {string} name the index name
*/
setIndex: function(name) {
this.index = name;
},
/**
* Get the underlying configured index name
*/
getIndex: function() {
return this.index;
},
/**
* Clear the extra queries added to the underlying batch of queries
*/
clearExtraQueries: function() {
this.extraQueries = [];
},
/**
* Add an extra query to the underlying batch of queries. Once you add queries
* to the batch, the 2nd parameter of the searchCallback will be an object with a `results`
* attribute listing all search results.
*/
addExtraQuery: function(index, query, params) {
this.extraQueries.push({ index: index, query: query, params: (params || {}) });
},
///////////// PRIVATE
/**
* Goto a page
* @param {integer} page The page number
*/
_gotoPage: function(page) {
this.page = page;
this._search();
},
/**
* Perform the underlying queries
*/
_search: function() {
this.client.startQueriesBatch();
this.client.addQueryInBatch(this.index, this.q, this._getHitsSearchParams());
var disjunctiveFacets = [];
var unusedDisjunctiveFacets = {};
for (var i = 0; i < this.options.disjunctiveFacets.length; ++i) {
var facet = this.options.disjunctiveFacets[i];
if (this._hasDisjunctiveRefinements(facet)) {
disjunctiveFacets.push(facet);
} else {
unusedDisjunctiveFacets[facet] = true;
}
}
for (var i = 0; i < disjunctiveFacets.length; ++i) {
this.client.addQueryInBatch(this.index, this.q, this._getDisjunctiveFacetSearchParams(disjunctiveFacets[i]));
}
for (var i = 0; i < this.extraQueries.length; ++i) {
this.client.addQueryInBatch(this.extraQueries[i].index, this.extraQueries[i].query, this.extraQueries[i].params);
}
var self = this;
this.client.sendQueriesBatch(function(success, content) {
if (!success) {
self.searchCallback(false, content);
return;
}
var aggregatedAnswer = content.results[0];
aggregatedAnswer.disjunctiveFacets = aggregatedAnswer.disjunctiveFacets || {};
aggregatedAnswer.facetStats = aggregatedAnswer.facetStats || {};
for (var facet in unusedDisjunctiveFacets) {
if (aggregatedAnswer.facets[facet] && !aggregatedAnswer.disjunctiveFacets[facet]) {
aggregatedAnswer.disjunctiveFacets[facet] = aggregatedAnswer.facets[facet];
try {
delete aggregatedAnswer.facets[facet];
} catch (e) {
aggregatedAnswer.facets[facet] = undefined; // IE compat
}
}
}
for (var i = 0; i < disjunctiveFacets.length; ++i) {
for (var facet in content.results[i + 1].facets) {
aggregatedAnswer.disjunctiveFacets[facet] = content.results[i + 1].facets[facet];
if (self.disjunctiveRefinements[facet]) {
for (var value in self.disjunctiveRefinements[facet]) {
if (!aggregatedAnswer.disjunctiveFacets[facet][value] && self.disjunctiveRefinements[facet][value]) {
aggregatedAnswer.disjunctiveFacets[facet][value] = 0;
}
}
}
}
for (var stats in content.results[i + 1].facets_stats) {
aggregatedAnswer.facetStats[stats] = content.results[i + 1].facets_stats[stats];
}
}
if (self.extraQueries.length === 0) {
self.searchCallback(true, aggregatedAnswer);
} else {
var c = { results: [ aggregatedAnswer ] };
for (var i = 0; i < self.extraQueries.length; ++i) {
c.results.push(content.results[1 + disjunctiveFacets.length + i]);
}
self.searchCallback(true, c);
}
});
},
/**
* Build search parameters used to fetch hits
* @return {hash}
*/
_getHitsSearchParams: function() {
var facets = [];
for (var i = 0; i < this.options.facets.length; ++i) {
facets.push(this.options.facets[i]);
}
for (var i = 0; i < this.options.disjunctiveFacets.length; ++i) {
var facet = this.options.disjunctiveFacets[i];
if (!this._hasDisjunctiveRefinements(facet)) {
facets.push(facet);
}
}
return extend({}, {
hitsPerPage: this.options.hitsPerPage,
page: this.page,
facets: facets,
facetFilters: this._getFacetFilters()
}, this.searchParams);
},
/**
* Build search parameters used to fetch a disjunctive facet
* @param {string} facet the associated facet name
* @return {hash}
*/
_getDisjunctiveFacetSearchParams: function(facet) {
return extend({}, this.searchParams, {
hitsPerPage: 1,
page: 0,
attributesToRetrieve: [],
attributesToHighlight: [],
attributesToSnippet: [],
facets: facet,
facetFilters: this._getFacetFilters(facet)
});
},
/**
* Test if there are some disjunctive refinements on the facet
*/
_hasDisjunctiveRefinements: function(facet) {
for (var value in this.disjunctiveRefinements[facet]) {
if (this.disjunctiveRefinements[facet][value]) {
return true;
}
}
return false;
},
/**
* Build facetFilters parameter based on current refinements
* @param {string} facet if set, the current disjunctive facet
* @return {hash}
*/
_getFacetFilters: function(facet) {
var facetFilters = [];
for (var refinement in this.refinements) {
if (this.refinements[refinement]) {
facetFilters.push(refinement);
}
}
for (var disjunctiveRefinement in this.disjunctiveRefinements) {
if (disjunctiveRefinement != facet) {
var refinements = [];
for (var value in this.disjunctiveRefinements[disjunctiveRefinement]) {
if (this.disjunctiveRefinements[disjunctiveRefinement][value]) {
refinements.push(disjunctiveRefinement + ':' + value);
}
}
if (refinements.length > 0) {
facetFilters.push(refinements);
}
}
}
return facetFilters;
}
};
})();
/*
* Copyright (c) 2014 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
(function($) {
/**
* Algolia Places API
* @param {string} Your application ID
* @param {string} Your API Key
*/
window.AlgoliaPlaces = function(applicationID, apiKey) {
this.init(applicationID, apiKey);
};
AlgoliaPlaces.prototype = {
/**
* @param {string} Your application ID
* @param {string} Your API Key
*/
init: function(applicationID, apiKey) {
this.client = new AlgoliaSearch(applicationID, apiKey, 'http', true, ['places-1.algolia.io', 'places-2.algolia.io', 'places-3.algolia.io']);
this.cache = {};
},
/**
* Perform a query
* @param {string} q the user query
* @param {function} searchCallback the result callback called with two arguments:
* success: boolean set to true if the request was successfull
* content: the query answer with an extra 'disjunctiveFacets' attribute
* @param {hash} the list of search parameters
*/
search: function(q, searchCallback, searchParams) {
var indexObj = this;
var params = 'query=' + encodeURIComponent(q);
if (!this.client._isUndefined(searchParams) && searchParams != null) {
params = this.client._getSearchParams(searchParams, params);
}
var pObj = {params: params, apiKey: this.client.apiKey, appID: this.client.applicationID};
this.client._jsonRequest({ cache: this.cache,
method: 'POST',
url: '/1/places/query',
body: pObj,
callback: searchCallback,
removeCustomHTTPHeaders: true });
}
};
})();
|
<a name='other w/ per justification'><h1>other w/ per justification</h1></a>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>reverting_id</th>
<th>reverting_user_text</th>
<th>rev_user_text</th>
<th>reverting_comment</th>
<th>diff</th>
</tr>
</thead>
<tbody>
<tr>
<th>29532</th>
<td>10183151</td>
<td>JAnDbot</td>
<td>TXiKiBoT</td>
<td>機器人 移除: [[he:Parts Per Million (כבול)]]</td>
<td>--- \n<br/>+++ \n<br/>@@ -25,7 +25,6 @@\n<br/> [[es:Partes por millón]]<br/> [[fi:Ppm]]<br/> [[fr:Partie par million]]<br/>-[[he:Parts Per Million (כבול)]]<br/> [[hu:Ezreléknél kisebb részek]]<br/> [[it:Parti per milione]]<br/> [[ja:Ppm]]</td>
</tr>
<tr>
<th>31771</th>
<td>13495008</td>
<td>SieBot</td>
<td>Sz-iwbot</td>
<td>機器人 新增: [[es:Anexo:Los 500 mejores álbumes de todos los tiempos según Rolling Stone]]</td>
<td>--- \n<br/>+++ \n<br/>@@ -2019,6 +2019,7 @@\n<br/> [[cs:Rolling Stone - 500 nejlepších alb všech dob]]<br/> [[de:500 beste Alben aller Zeiten (Rolling Stone)]]<br/> [[en:The 500 Greatest Albums of All Time]]<br/>+[[es:Anexo:Los 500 mejores álbumes de todos los tiempos según Rolling Stone]]<br/> [[et:Rolling Stone'i kõigi aegade 500 parema albumi loend]]<br/> [[fi:500 Greatest Albums of All Time]]<br/> [[fr:Les 500 plus grands albums de tous les temps selon Rolling Stone]]</td>
</tr>
<tr>
<th>32083</th>
<td>15638911</td>
<td>WikitanvirBot</td>
<td>Xqbot</td>
<td>r2.7.1) (機器人 修改: [[it:Convocazioni per il campionato mondiale di calcio 2010]]</td>
<td>--- \n<br/>+++ \n<br/>@@ -213,7 +213,7 @@\n<br/> [[fr:Effectifs de la Coupe du monde de football 2010]]<br/> [[hu:2010-es labdarúgó-világbajnokság (keretek)]]<br/> [[id:Skuat Piala Dunia FIFA 2010]]<br/>-[[it:Convocazioni per la fase finale del campionato mondiale di calcio 2010]]<br/>+[[it:Convocazioni per il campionato mondiale di calcio 2010]]<br/> [[ja:2010 FIFAワールドカップ参加チーム]]<br/> [[ko:2010년 FIFA 월드컵 선수 명단]]<br/> [[lt:Sąrašas:XIX pasaulio futbolo čempionato komandų sudėtys]]</td>
</tr>
<tr>
<th>33295</th>
<td>18606712</td>
<td>Ripchip Bot</td>
<td>WikitanvirBot</td>
<td>r2.7.1) (機器人 移除: [[lt:Pay per click]]</td>
<td>--- \n<br/>+++ \n<br/>@@ -98,7 +98,6 @@\n<br/> [[ja:クリック報酬型広告]]<br/> [[kn:ಪೇ-ಪರ್-ಕ್ಲಿಕ್]]<br/> [[ko:클릭당 지불]]<br/>-[[lt:Pay per click]]<br/> [[ms:Bayar per klik]]<br/> [[nl:Pay-per-click]]<br/> [[no:Betalt søkemotorannonsering]]</td>
</tr>
<tr>
<th>33296</th>
<td>18606879</td>
<td>WikitanvirBot</td>
<td>Ripchip Bot</td>
<td>r2.7.1) (機器人 移除: [[lt:Pay per click]]</td>
<td>--- \n<br/>+++ \n<br/>@@ -98,7 +98,6 @@\n<br/> [[ja:クリック報酬型広告]]<br/> [[kn:ಪೇ-ಪರ್-ಕ್ಲಿಕ್]]<br/> [[ko:클릭당 지불]]<br/>-[[lt:Pay per click]]<br/> [[ms:Bayar per klik]]<br/> [[nl:Pay-per-click]]<br/> [[no:Betalt søkemotorannonsering]]</td>
</tr>
<tr>
<th>38248</th>
<td>15958535</td>
<td>ChuispastonBot</td>
<td>MystBot</td>
<td>r2.7.1) (機器人 移除: [[it:Forze armate per Stato]]</td>
<td>--- \n<br/>+++ \n<br/>@@ -254,4 +254,3 @@\n<br/> <br/> [[en:List of militaries by country]]<br/> [[fr:Armées nationales]]<br/>-[[it:Forze armate per Stato]]</td>
</tr>
</tbody>
</table> |
<?php
//connect to da database
include('functions.php');
include('../secure/database.php');
$conn = pg_connect(HOST." ".DBNAME." ".USERNAME." ".PASSWORD) or die('Could not connect:' . pg_last_error());
HTTPSCheck();
session_start();
//Once the button is pressed...
if(isset($_POST['submit'])){
//clears out special chars
$username = htmlspecialchars($_POST['username']);
//runs the usernameAvailable function, if it returns 0 then create the user
if(usernameAvailable($username) == 0){
//salt and hash the password
mt_rand();
$salt = sha1(mt_rand());
$salt2 = sha1(mt_rand());
$pw = sha1($salt . htmlspecialchars($_POST['password']));
//create a query for both the username and password
$user = "INSERT INTO DA.user_info(username) VALUES ($1) ";
$auth = "INSERT INTO DA.authentication(username, password_hash, salt) VALUES($1, $2, $3)";
//prepare
pg_prepare($conn, "user", $user);
pg_prepare($conn, "auth", $auth);
//execute
pg_execute($conn, "user", array($username));
pg_execute($conn, "auth", array($username, $pw, $salt));
//creates a session
$_SESSION['username'] = $username;
} else {
echo '<script language="javascript">';
echo 'alert("Username taken, try again")';
echo '</script>';
}
}
if(isset($_SESSION['username'])){
header('Location: ./profile.php');
}
//function for checking username availability
function usernameAvailable($username)
{
global $conn;
$username = pg_escape_string(htmlspecialchars($username));
$password = pg_escape_string(htmlspecialchars($password));
$query = "SELECT * FROM DA.user_info where username LIKE $1";
pg_prepare($conn, "check",$query);
$result = pg_execute($conn,"check",array($username));
if(pg_num_rows($result)==0)
return 0;
else
return 1;
}
?>
<!DOCTYPE html>
<head>
<title>Robert Stovall Final</title>
<link rel="stylesheet" type="text/css" href="/~rcsc77/cs2830/final/include/styles.css">
<script src="/~rcsc77/cs2830/final/include/jquery.js"></script>
<script src="/~rcsc77/cs2830/final/include/jquery-ui.js"></script>
<script src="/~rcsc77/cs2830/final/include/ajax.js"></script>
</head>
<body>
<?php include "nav.php"; ?>
<h1>User Registration</h1>
<div class="center">
<form id='registration' action="<?= $_SERVER['PHP_SELF'] ?>" method='post'>
<label for='username' >Username:</label>
<input type='text' name='username' id='username' maxlength="50" required/>
<br>
<label for='password' >Password:</label>
<input type='password' name='password' id='password' maxlength="50" required/>
<br>
<br>
<input type='submit' name='submit' value='Register' />
<br>
</form>
<br>
<form action="index.php"style="width: 200px">
<input type="submit" value="Cancel">
</form>
<br>
</div>
</body>
|
namespace DraftSimulator.Web.Areas.HelpPage.ModelDescriptions
{
public class CollectionModelDescription : ModelDescription
{
public ModelDescription ElementDescription { get; set; }
}
} |
---
layout: post
microblog: true
date: 2013-10-22 01:05 +0300
guid: http://desparoz.micro.blog/2013/10/21/t392411340247007233.html
---
ReadKit 2.3 Launches with Streamlined Sharing and a Snazzy New Icon [t.co/mjx4oAWdl...](http://t.co/mjx4oAWdlE)
|
/*
Copyright (C) <2012> <Kieren 'Razish' McDevitt>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "common.h"
#include "game/game.h"
#include "renderer/renderer.h"
#include "API/SDL/include/SDL_opengl.h"
#include "API/SDL/include/SDL_keyboard.h"
#include "API/SDL/include/SDL_events.h"
#include "utils/string.h"
#include "utils/hash.h"
#define CARD_SHUFFLE_POOL (208)
#define NUM_WASTE_PILES (2)
#define NUM_FOUNDATION_PILES (4)
#define NUM_TABLEAU_PILES (7)
#define CARD_ACTUAL_WIDTH (200.0f)
#define CARD_ACTUAL_HEIGHT (271.0f)
#define CARD_SCALE ((SCREEN_WIDTH/13.0f)/CARD_ACTUAL_WIDTH)
#define CARD_WIDTH (CARD_ACTUAL_WIDTH*CARD_SCALE)
#define CARD_HEIGHT (CARD_ACTUAL_HEIGHT*CARD_SCALE)
#define WASTE_Y (CARD_HEIGHT*0.25f)
#define WASTE_X( index ) (((SCREEN_WIDTH/NUM_TABLEAU_PILES)-(CARD_WIDTH/2.0f))*(index+1))
#define FOUNDATION_Y (CARD_HEIGHT*0.25f)
#define FOUNDATION_X( index ) (((SCREEN_WIDTH/NUM_TABLEAU_PILES)-(CARD_WIDTH/2.0f))*(index+4)) //( ( ( (SCREEN_WIDTH/2.0f) / NUM_FOUNDATION_PILES ) - (CARD_WIDTH/2.0f) )*(index+1))
#define TABLEAU_Y (CARD_HEIGHT*1.5f)
#define TABLEAU_X( index ) (((SCREEN_WIDTH/NUM_TABLEAU_PILES)-(CARD_WIDTH/2.0f))*(index+1))
#define TABLEAU_Y_OFFSET (24)
static card_t cards[CARD_NUM_CARDS] = { { 0 } };
static cardStack_t *foundation[NUM_FOUNDATION_PILES] = { NULL };
static cardStack_t *tableau[NUM_TABLEAU_PILES] = { NULL };
static cardStack_t *selectedStack = NULL;
static cardStack_t *waste[NUM_WASTE_PILES] = { NULL };
static int faceDownTexture = -1;
static int foundationTexture = -1;
game_t game = { 0 };
stringID_table_t cardNames[CARD_NUM_CARDS] =
{//They must be in this order! Black magic is used to guess a correct move
//Black
ENUM2STRING(CARD_SPADES_ACE),
ENUM2STRING(CARD_SPADES_2),
ENUM2STRING(CARD_SPADES_3),
ENUM2STRING(CARD_SPADES_4),
ENUM2STRING(CARD_SPADES_5),
ENUM2STRING(CARD_SPADES_6),
ENUM2STRING(CARD_SPADES_7),
ENUM2STRING(CARD_SPADES_8),
ENUM2STRING(CARD_SPADES_9),
ENUM2STRING(CARD_SPADES_10),
ENUM2STRING(CARD_SPADES_JACK),
ENUM2STRING(CARD_SPADES_QUEEN),
ENUM2STRING(CARD_SPADES_KING),
//Red
ENUM2STRING(CARD_HEARTS_ACE),
ENUM2STRING(CARD_HEARTS_2),
ENUM2STRING(CARD_HEARTS_3),
ENUM2STRING(CARD_HEARTS_4),
ENUM2STRING(CARD_HEARTS_5),
ENUM2STRING(CARD_HEARTS_6),
ENUM2STRING(CARD_HEARTS_7),
ENUM2STRING(CARD_HEARTS_8),
ENUM2STRING(CARD_HEARTS_9),
ENUM2STRING(CARD_HEARTS_10),
ENUM2STRING(CARD_HEARTS_JACK),
ENUM2STRING(CARD_HEARTS_QUEEN),
ENUM2STRING(CARD_HEARTS_KING),
//Black
ENUM2STRING(CARD_CLUBS_ACE),
ENUM2STRING(CARD_CLUBS_2),
ENUM2STRING(CARD_CLUBS_3),
ENUM2STRING(CARD_CLUBS_4),
ENUM2STRING(CARD_CLUBS_5),
ENUM2STRING(CARD_CLUBS_6),
ENUM2STRING(CARD_CLUBS_7),
ENUM2STRING(CARD_CLUBS_8),
ENUM2STRING(CARD_CLUBS_9),
ENUM2STRING(CARD_CLUBS_10),
ENUM2STRING(CARD_CLUBS_JACK),
ENUM2STRING(CARD_CLUBS_QUEEN),
ENUM2STRING(CARD_CLUBS_KING),
//Red
ENUM2STRING(CARD_DIAMONDS_ACE),
ENUM2STRING(CARD_DIAMONDS_2),
ENUM2STRING(CARD_DIAMONDS_3),
ENUM2STRING(CARD_DIAMONDS_4),
ENUM2STRING(CARD_DIAMONDS_5),
ENUM2STRING(CARD_DIAMONDS_6),
ENUM2STRING(CARD_DIAMONDS_7),
ENUM2STRING(CARD_DIAMONDS_8),
ENUM2STRING(CARD_DIAMONDS_9),
ENUM2STRING(CARD_DIAMONDS_10),
ENUM2STRING(CARD_DIAMONDS_JACK),
ENUM2STRING(CARD_DIAMONDS_QUEEN),
ENUM2STRING(CARD_DIAMONDS_KING),
};
//old is the card you have selected, new is the card you're placing it on
static bool CanPlace( cardStack_t *old, cardStack_t *new, bool foundation )
{
if ( foundation )
{//Foundation card, same suit and counting up
if ( !old->next && new->data->type == old->data->type-1 )
{//Guaranteed to be the same suit
return true;
}
}
else
{//Tableau card, alternate red/black and counting down
//WARNING: Black magic ahead
int newIndexBelow = old->data->type-12;
int newIndexAbove = (old->data->type+14)%CARD_NUM_CARDS;
if ( newIndexBelow < 0 )
newIndexBelow += CARD_NUM_CARDS;
if ( !new->next && (new->data->type == newIndexBelow || new->data->type == newIndexAbove || !old->data->revealed || !new->data->revealed) )
return true;
}
return false;
}
//old is the card you have selected, new is the card you're placing it on
static bool CanPlaceCard( cardStack_t *old, card_t *new, bool foundation )
{
if ( foundation )
{//Foundation card, same suit and counting up
if ( new->type == old->data->type-1 )
{//Guaranteed to be the same suit
return true;
}
}
else
{//Tableau card, alternate red/black and counting down
//WARNING: Black magic ahead
int newIndexBelow = old->data->type-12;
int newIndexAbove = (old->data->type+14)%CARD_NUM_CARDS;
if ( newIndexBelow < 0 )
newIndexBelow += CARD_NUM_CARDS;
if ( new->type == newIndexBelow || new->type == newIndexAbove || !old->data->revealed || !new->revealed )
return true;
}
return false;
}
static bool CanPickUp( cardStack_t *stack )
{
if ( !stack->data->revealed )
{
if ( !stack->next )
stack->data->revealed = true;
return false;
}
return true;
}
static void EmptyStack( cardStack_t *stack )
{
if ( !stack )
return;
if ( stack->next )
EmptyStack( stack->next );
stack->next = NULL;
stack->data = NULL;
free( stack );
}
static cardStack_t *CardStackGetTop( cardStack_t *stack )
{
cardStack_t *current = stack;
if ( !current )
return NULL;
while ( current->next )
current = current->next;
return current;
}
//returns NULL if the move was invalid, otherwise returns the top of the stack
static cardStack_t *CardStackPush( cardStack_t **stack, card_t *card, bool foundation )
{
cardStack_t *current = NULL;
if ( !*stack )
{//No cards on this stack yet, allocate the root object
*stack = (cardStack_t *)malloc( sizeof( cardStack_t ) );
(*stack)->data = card;
(*stack)->next = NULL;
(*stack)->prev = NULL;
return *stack;
}
//Find the top of the stack, and push more on if it's a valid move
current = CardStackGetTop( *stack );
if ( CanPlaceCard( current, card, foundation ) )
{
// printf( "Inserting a %s on a %s\n", cardNames[card->type].name, cardNames[current->data->type].name );
current->next = (cardStack_t *)malloc( sizeof( cardStack_t ) );
current->next->prev = current;
current = current->next;
current->data = card;
current->next = NULL;
return current;
}
else
{
printf( "Invalid move\n" );
}
return NULL;
}
void Game_Initialise( void )
{
int i = 0;
int cardIndex = 0;
printf( "\tLoading game\n\t----------------------------\n" );
printf( "\tInitialising cards..." );
faceDownTexture = R_LoadTexture( "textures/cards/facedown.png" );
foundationTexture = R_LoadTexture( "textures/cards/foundation.png" );
for ( i=0; i<CARD_NUM_CARDS; i++ )
{//Initialise each card
cards[i].type = i;
cards[i].textureID = R_LoadTexture( va( "textures/cards/%s.png", Nx_strlwr( cardNames[i].name+5 ) /* strip CARD_ */ ) );
if ( !strncmp( cardNames[i].name+5, "spades", 6 ) ) cards[i].suit = SUIT_SPADES;
if ( !strncmp( cardNames[i].name+5, "hearts", 6 ) ) cards[i].suit = SUIT_HEARTS;
if ( !strncmp( cardNames[i].name+5, "diamonds", 8 ) ) cards[i].suit = SUIT_DIAMONDS;
if ( !strncmp( cardNames[i].name+5, "clubs", 5 ) ) cards[i].suit = SUIT_CLUBS;
//printf( "\tCard %s loaded with textureID %i\n", cardNames[i].name, cards[i].textureID );
}
printf( "shuffling..." );
{
cardStack_t *cardHT[CARD_SHUFFLE_POOL] = { 0 };
card_t cardsFake[CARD_NUM_CARDS] = { { 0 } };
memcpy( &cardsFake[0], &cards[0], sizeof( card_t ) * CARD_NUM_CARDS );
for ( i=0; i<CARD_NUM_CARDS; i++ )
{
unsigned int hash = ( SimpleHash( cardNames[cards[i].type].name, CARD_SHUFFLE_POOL ) ^ rand() ) & (CARD_SHUFFLE_POOL-1);
cardStack_t *current = cardHT[hash];
if ( current )
{//Already taken, insert as child
while ( current->next )
current = current->next;
current->next = (cardStack_t *)malloc( sizeof( cardStack_t ) );
current = current->next;
current->data = &cardsFake[i];
current->next = NULL; //redundant? safe!
}
else
{
cardHT[hash] = (cardStack_t *)malloc( sizeof( cardStack_t ) );
current = cardHT[hash];
current->data = &cardsFake[i];
current->next = NULL; //redundant? safe!
}
}
for ( i=0; i<CARD_SHUFFLE_POOL; i++ )
{
cardStack_t *current = cardHT[i];
while ( current )
{
memcpy( &cards[cardIndex++], current->data, sizeof( card_t ) );
current = current->next;
}
}
for ( i=0; i<CARD_NUM_CARDS; i++ )
{
unsigned int hash = ( SimpleHash( cardNames[cardsFake[i].type].name, CARD_SHUFFLE_POOL ) ^ rand() ) & (CARD_SHUFFLE_POOL-1);
cardStack_t *current = cardHT[hash];
cardStack_t *prev = cardHT[hash];
if ( !current )
continue; //er?
while ( stricmp( cardNames[current->data->type].name, cardNames[cardsFake[i].type].name ) )
{
if ( current->next )
{//We didn't get a match on this, but we can try the children
prev = current;
current = current->next;
continue;
}
else
break;
}
//If we got here, 'current' is pointing to the right node and 'prev' will be
// the previous node (or current if it's the first entry)
//This means we can safely remove!
if ( current == prev )
{//First entry in the root table
cardHT[hash] = current->next;
free( current );
}
else
{//At-least the second entry in the list, free and null the prev->next ptr.
prev->next = current->next;
free( current );
}
//The node was located, freed, linked-list was corrected. Everything worked!
}
}
printf( "ready!\n" );
//Set the tableau piles
cardIndex = 0;
for ( i=0; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=1; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=2; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=3; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=4; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=5; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=6; i<NUM_TABLEAU_PILES; i++ ) CardStackPush( &tableau[i], &cards[cardIndex++], false );
for ( i=0; i<NUM_TABLEAU_PILES; i++ ) CardStackGetTop( tableau[i] )->data->revealed = true;
//Populate the waste pile with the remaining cards
while ( cardIndex < CARD_NUM_CARDS ) CardStackPush( &waste[0], &cards[cardIndex++], false );
printf( "\t----------------------------\n\n" );
}
void Game_Render( void )
{
int i=0;
float x = 0.0f;
float y = 0.0f;
cardStack_t *current = NULL;
//Waste piles
R_ResetColor();
if ( game.wasteView )
{
current = waste[0];
if ( current )
{
x = WASTE_X( 0 );
y = WASTE_Y;
while ( current )
{
if ( current == selectedStack )
R_SetColor( 1.0f, 0.878f, 0.5f, 1.0f );
R_DrawRect( current->data->textureID, x, y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
y += TABLEAU_Y_OFFSET;
current = current->next;
}
}
else
R_DrawRect( foundationTexture, WASTE_X( 0 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
current = waste[1];
if ( current )
{
x = WASTE_X( 1 );
y = WASTE_Y;
while ( current )
{
if ( current == selectedStack )
R_SetColor( 1.0f, 0.878f, 0.5f, 1.0f );
R_DrawRect( current->data->textureID, x, y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
y += TABLEAU_Y_OFFSET;
current = current->next;
}
}
else
R_DrawRect( foundationTexture, WASTE_X( 1 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
return;
}
R_DrawRect( waste[0] ? faceDownTexture : foundationTexture, WASTE_X( 0 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
current = CardStackGetTop( waste[1] );
if ( current && current == selectedStack )
R_SetColor( 1.0f, 0.878f, 0.5f, 1.0f );
R_DrawRect( current ? current->data->textureID : foundationTexture, WASTE_X( 1 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
//Tableau piles
for ( i=0; i<NUM_TABLEAU_PILES; i++ )
{
current = tableau[i];
x = TABLEAU_X( i );
y = TABLEAU_Y;
R_ResetColor();
R_DrawRect( foundationTexture, x, y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
while ( current )
{
if ( current == selectedStack )
R_SetColor( 1.0f, 0.878f, 0.5f, 1.0f );
R_DrawRect( (current->data->revealed || game.showAllCards) ? current->data->textureID : faceDownTexture, x, y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
y += TABLEAU_Y_OFFSET;
current = current->next;
}
}
//Foundation piles
for ( i=0; i<NUM_FOUNDATION_PILES; i++ )
{
current = CardStackGetTop( foundation[i] );
R_ResetColor();
if ( selectedStack && selectedStack == current )
R_SetColor( 1.0f, 0.878f, 0.5f, 1.0f );
R_DrawRect( current ? current->data->textureID : foundationTexture, FOUNDATION_X( i ), FOUNDATION_Y, CARD_WIDTH, CARD_HEIGHT, 0.0f, 0.0f, 1.0f, 1.0f );
}
}
static bool PointInElementBounds( int mousePos[2], float x, float y, float w, float h )
{//TODO: Redo for heirarchical positioning.
float elemPosX = ((x) / (float)SCREEN_WIDTH) * (float)WINDOW_WIDTH;
float elemPosY = ((y) / (float)SCREEN_HEIGHT) * (float)WINDOW_HEIGHT;
float elemSizeX = (w / (float)SCREEN_WIDTH) * (float)WINDOW_WIDTH;
float elemSizeY = (h / (float)SCREEN_HEIGHT) * (float)WINDOW_HEIGHT;
return !!( mousePos[0] > elemPosX && mousePos[0] < elemPosX + elemSizeX &&
mousePos[1] > elemPosY && mousePos[1] < elemPosY + elemSizeY );
}
void Game_HandleEvents( int mousePos[], byte mouseState )
{
cardStack_t *card = NULL;
int i = 0, j = 0;
static int lastState = 0;
float x = 0.0f, y = 0.0f;
if ( mouseState != lastState && (mouseState & SDL_BUTTON(SDL_BUTTON_LEFT)) )
{
// TABLEAUS
for ( i=0; i<NUM_TABLEAU_PILES; i++ )
{//Begin tableau collisions
x = TABLEAU_X( i );
y = TABLEAU_Y;
card = tableau[i];
if ( !card )
{//Must be a tableau/foundation root
if ( selectedStack && PointInElementBounds( mousePos, x, y, CARD_WIDTH, CARD_HEIGHT ) &&
(selectedStack->data->type == CARD_SPADES_KING || selectedStack->data->type == CARD_HEARTS_KING || selectedStack->data->type == CARD_CLUBS_KING || selectedStack->data->type == CARD_DIAMONDS_KING) )
{//Clicking on this slot, only place cards (kings) down.
tableau[i] = selectedStack;
if ( selectedStack->prev )
{//The card we're moving was part of another stack
selectedStack->prev->next = NULL;
selectedStack->prev->data->revealed = true;
selectedStack->prev = NULL;
}
else
{//The card we're moving was also a tableau/foundation/waste root
for ( j=0; j<NUM_TABLEAU_PILES; j++ )
{
if ( tableau[j] == selectedStack && j != i )
{
tableau[j] = NULL;
selectedStack->prev = NULL;
break;
}
}
for ( j=0; j<NUM_FOUNDATION_PILES; j++ )
{
if ( foundation[j] == selectedStack )
{
foundation[j] = NULL;
selectedStack->prev = NULL;
break;
}
}
if ( waste[1] == selectedStack )
{
waste[1] = NULL;
selectedStack->prev = NULL;
break;
}
}
//found1:
selectedStack = NULL;
lastState = mouseState;
return;
}
//There are no cards on this tableau pile, and we didn't place anything down.
// Skip to the next tableau pile, no need to try iterating through an empty stack
continue;
}
//If we got here, this tableau pile is not empty, iterate backwards from the top-most element and check for a collision
while ( card && card->next )
{//Iterate up the stack to get the coordinates
y += TABLEAU_Y_OFFSET;
card = card->next;
}
while ( card )
{//And back down, checking coordinates
if ( PointInElementBounds( mousePos, x, y, CARD_WIDTH, CARD_HEIGHT ) )
{
if ( !selectedStack )
{
if ( CanPickUp( card ) )
{
selectedStack = card;
}
}
else
{//Already had a selection, place it and clear the selection
if ( CanPlace( selectedStack, card, false ) )
{//Guaranteed to be the top of the stack
card->next = selectedStack;
if ( selectedStack->prev )
{
selectedStack->prev->next = NULL;
selectedStack->prev->data->revealed = true;
selectedStack->prev = card;
}
else
{
for ( i=0; i<NUM_TABLEAU_PILES; i++ )
{
if ( tableau[i] == selectedStack )
{
tableau[i] = NULL;
selectedStack->prev = card;
goto found2;
}
}
for ( i=0; i<NUM_FOUNDATION_PILES; i++ )
{
if ( foundation[i] == selectedStack )
{
foundation[i] = NULL;
selectedStack->prev = card;
goto found2;
}
}
if ( waste[1] == selectedStack )
{
waste[1] = NULL;
selectedStack->prev = card;
goto found2;
}
}
found2:
selectedStack = NULL;
}
}
lastState = mouseState;
return;
}
y -= TABLEAU_Y_OFFSET;
card = card->prev;
}
}//End tableau collisions
// FOUNDATIONS
for ( i=0; i<NUM_FOUNDATION_PILES; i++ )
{//Look for foundation collisions
x = FOUNDATION_X( i );
y = FOUNDATION_Y;
card = foundation[i];
if ( !card )
{//Check for collisions on foundation roots
if ( selectedStack && PointInElementBounds( mousePos, x, y, CARD_WIDTH, CARD_HEIGHT ) &&
(selectedStack->data->type == CARD_SPADES_ACE || selectedStack->data->type == CARD_HEARTS_ACE || selectedStack->data->type == CARD_CLUBS_ACE || selectedStack->data->type == CARD_DIAMONDS_ACE) )
{
foundation[i] = selectedStack;
if ( selectedStack->prev )
{//The card we're moving was part of another stack
selectedStack->prev->next = NULL;
selectedStack->prev->data->revealed = true;
selectedStack->prev = NULL;
}
else
{//The card we're moving was also a tableau/foundation/waste root
for ( j=0; j<NUM_TABLEAU_PILES; j++ )
{
if ( tableau[j] == selectedStack )
{
tableau[j] = NULL;
selectedStack->prev = NULL;
goto found3;
}
}
for ( j=0; j<NUM_FOUNDATION_PILES; j++ )
{
if ( foundation[j] == selectedStack && j != i )
{
foundation[j] = NULL;
selectedStack->prev = NULL;
goto found3;
}
}
if ( waste[1] == selectedStack )
{
waste[1] = NULL;
selectedStack->prev = NULL;
goto found3;
}
}
found3:
selectedStack = NULL;
lastState = mouseState;
return;
}
continue;
}
else
{//Check for collisions on the top foundation card
card = CardStackGetTop( card );
if ( PointInElementBounds( mousePos, x, y, CARD_WIDTH, CARD_HEIGHT ) )
{
if ( !selectedStack )
{
if ( CanPickUp( card ) )
{
selectedStack = card;
}
}
else
{//Already had a selection, place it and clear the selection
if ( CanPlace( selectedStack, card, true ) )
{//Guaranteed to be the top of the stack
card->next = selectedStack;
if ( selectedStack->prev )
{
selectedStack->prev->next = NULL;
selectedStack->prev->data->revealed = true;
selectedStack->prev = card;
}
else
{
for ( i=0; i<NUM_TABLEAU_PILES; i++ )
{
if ( tableau[i] == selectedStack )
{
tableau[i] = NULL;
selectedStack->prev = card;
goto found4;
}
}
for ( i=0; i<NUM_FOUNDATION_PILES; i++ )
{
if ( foundation[i] == selectedStack )
{
foundation[i] = NULL;
selectedStack->prev = card;
goto found4;
}
}
if ( waste[1] == selectedStack )
{
waste[1] = NULL;
selectedStack->prev = card;
goto found4;
}
}
found4:
selectedStack = NULL;
}
}
lastState = mouseState;
return;
}
}
}//End foundation collisions
//WASTES
if ( PointInElementBounds( mousePos, WASTE_X( 0 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT ) )
{
card = CardStackGetTop( waste[0] );
if ( card )
{//Card exists, pop it to the next waste pile
cardStack_t *dest = CardStackGetTop( waste[1] );
if ( card->prev )
card->prev->next = NULL;
else
waste[0] = NULL;
card->prev = dest;
if ( dest )
dest->next = card;
else
waste[1] = card;
card->data->revealed = true;
}
else
{//No card there, switch the piles
//FIXME: for some reason the top of the stack's prev is NULL. what gives ;_;
cardStack_t *src = NULL;//CardStackGetTop( waste[1] );
while ( (src = CardStackGetTop( waste[1] )) )
{
cardStack_t *dest = CardStackGetTop( waste[0] );
if ( src->prev )
src->prev->next = NULL;
else
waste[1] = NULL;
src->prev = dest;
if ( dest )
dest->next = src;
else
waste[0] = src;
src->data->revealed = false;
// printf( "\tDerped! src->prev == %x\n", src->prev );
// src = src->prev;
}
//printf( "\tNo card on waste[0]\n" );
}
}
if ( PointInElementBounds( mousePos, WASTE_X( 1 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT ) )
{
selectedStack = CardStackGetTop( waste[1] );
lastState = mouseState;
return;
}
#if 0
if ( PointInElementBounds( mousePos, WASTE_X( 0 ), WASTE_Y, CARD_WIDTH, CARD_HEIGHT ) )
{
card = CardStackGetTop( waste[0] );
if ( card )
{//Card exists, pop it to the next waste pile
cardStack_t *dest = CardStackGetTop( waste[1] );
if ( card->prev )
card->prev->next = NULL;
card->prev = dest;
if ( dest )
dest->next = card;
else
waste[1] = card;
}
else
{//No card there, switch the piles
}
}
#endif
selectedStack = NULL;
}
lastState = mouseState;
}
void Game_Shutdown( void )
{
int i = 0;
printf( "\tUnloading game\n\t----------------------------\n" );
for ( i=0; i<NUM_TABLEAU_PILES; i++ )
{
EmptyStack( tableau[i] );
tableau[i] = NULL;
}
for ( i=0; i<NUM_FOUNDATION_PILES; i++ )
{
EmptyStack( foundation[i] );
foundation[i] = NULL;
}
for ( i=0; i<NUM_WASTE_PILES; i++ )
{
EmptyStack( waste[i] );
waste[i] = NULL;
}
memset( cards, 0, sizeof( cards ) );
selectedStack = NULL;
printf( "\t----------------------------\n\n" );
}
|
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2012:1169
#
# Security announcement date: 2012-08-14 18:15:46 UTC
# Script generation date: 2016-05-12 18:10:56 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - condor.x86_64:7.6.5-0.14.2.el6_3
# - condor-classads.x86_64:7.6.5-0.14.2.el6_3
# - condor-debuginfo.x86_64:7.6.5-0.14.2.el6_3
# - condor-kbdd.x86_64:7.6.5-0.14.2.el6_3
# - condor-qmf.x86_64:7.6.5-0.14.2.el6_3
# - condor-vm-gahp.x86_64:7.6.5-0.14.2.el6_3
# - condor-aviary.x86_64:7.6.5-0.14.2.el6_3
# - condor-deltacloud-gahp.x86_64:7.6.5-0.14.2.el6_3
# - condor-plumage.x86_64:7.6.5-0.14.2.el6_3
#
# Last versions recommanded by security team:
# - condor.x86_64:7.8.10-0.2.el6
# - condor-classads.x86_64:7.8.10-0.2.el6
# - condor-debuginfo.x86_64:7.8.10-0.2.el6
# - condor-kbdd.x86_64:7.8.10-0.2.el6
# - condor-qmf.x86_64:7.8.10-0.2.el6
# - condor-vm-gahp.x86_64:7.8.10-0.2.el6
# - condor-aviary.x86_64:7.8.10-0.2.el6
# - condor-deltacloud-gahp.x86_64:7.8.10-0.2.el6
# - condor-plumage.x86_64:7.8.10-0.2.el6
#
# CVE List:
# - CVE-2012-3416
#
# More details:
# - https://www.cyberwatch.fr/vulnerabilites
#
# Licence: Released under The MIT License (MIT), See LICENSE FILE
sudo yum install condor.x86_64-7.8.10 -y
sudo yum install condor-classads.x86_64-7.8.10 -y
sudo yum install condor-debuginfo.x86_64-7.8.10 -y
sudo yum install condor-kbdd.x86_64-7.8.10 -y
sudo yum install condor-qmf.x86_64-7.8.10 -y
sudo yum install condor-vm-gahp.x86_64-7.8.10 -y
sudo yum install condor-aviary.x86_64-7.8.10 -y
sudo yum install condor-deltacloud-gahp.x86_64-7.8.10 -y
sudo yum install condor-plumage.x86_64-7.8.10 -y
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Print Part Of The ASCII Table")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Print Part Of The ASCII Table")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b2ad7a6f-e217-42de-b7be-6b3ca8f95891")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
'use strict';
angular.module('rvplusplus').directive('initFocus', function() {
return {
restrict: 'A', // only activate on element attribute
link: function(scope, element, attrs) {
element.focus();
}
};
});
|
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>CoffeeScript API Documentation</title>
<script src='../javascript/application.js'></script>
<script src='../javascript/search.js'></script>
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../'></div>
<div id='header'>
<div id='menu'>
<a href='../extra/README.md.html' title='Tack_cordova'>
Tack_cordova
</a>
»
<a href='../alphabetical_index.html' title='Index'>
Index
</a>
»
<span class='title'>ApplicationLayout</span>
</div>
</div>
<div id='content'>
<h1>
Class:
ApplicationLayout
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>app/coffee/application/views/layout.coffee</td>
</tr>
<tr>
<td>Inherits:</td>
<td>
Marionette.LayoutView
</td>
</tr>
</table>
<h2>Overview</h2>
<div class='docstring'>
<p>ApplicationLayout class definition
Defines a Marionette.LayoutView to manage
top-level application regions</p>
</div>
<div class='tags'>
</div>
<h2>Variables Summary</h2>
<dl class='constants'>
<dt id='el-variable'>
el
=
</dt>
<dd>
<pre><code class='coffeescript'>'body'</code></pre>
</dd>
<dt id='template-variable'>
template
=
</dt>
<dd>
<pre><code class='coffeescript'>false</code></pre>
</dd>
<dt id='regions-variable'>
regions
=
</dt>
<dd>
<pre><code class='coffeescript'>{
headerRegion: '[data-region=header]',
flashRegion: '[data-region=flash]',
sidebarRegion: '[data-region=sidebar]',
modalRegion: {
selector: '[data-region=modal]',
regionClass: require('../regions/modalRegion')
},
mainRegion: {
selector: '[data-region=main]',
regionClass: require('../regions/animatedRegion'),
inAnimation: 'fadeInUp',
outAnimation: 'fadeOutDown'
}
}</code></pre>
</dd>
</dl>
</div>
<div id='footer'>
By
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.1.2
✲
Press H to see the keyboard shortcuts
✲
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
✲
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html> |
#!/usr/bin/env python
# -*- coding: utf8 -*-
"""The Tornado web framework.
核心模块, 参考示例使用代码:
- 重要模块:
- tornado.web
- tornado.ioloop # 根据示例,可知入口在此.参看: ioloop.py
- tornado.httpserver
The Tornado web framework looks a bit like web.py (http://webpy.org/) or
Google's webapp (http://code.google.com/appengine/docs/python/tools/webapp/),
but with additional tools and optimizations to take advantage of the
Tornado non-blocking web server and tools.
Here is the canonical "Hello, world" example app:
import tornado.httpserver
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
if __name__ == "__main__":
application = tornado.web.Application([
(r"/", MainHandler),
])
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(8888)
tornado.ioloop.IOLoop.instance().start()
See the Tornado walkthrough on GitHub for more details and a good
getting started guide.
"""
import base64
import binascii
import calendar
import Cookie
import cStringIO
import datetime
import email.utils
import escape
import functools
import gzip
import hashlib
import hmac
import httplib
import locale
import logging
import mimetypes
import os.path
import re
import stat
import sys
import template
import time
import types
import urllib
import urlparse
import uuid
"""
# 模块说明: 核心模块
RequestHandler() 需要处理哪些工作:
- 1. HTTP方法支持(GET,POST, HEAD, DELETE, PUT), 预定义各种接口
- 2. 预定义接口: 配对定义[类似 unittest 的 setUp(), tearDown() 方法]
- prepare() # 运行前, 准备工作
- on_connection_close() # 运行后, 清理工作
- 根据需要, 选择使用
- 3. cookies处理:
- set
- get
- clear
- 4. HTTP头处理:
- set_status() # 状态码
- set_header() # 头信息
- 5. 重定向:
- redirect()
"""
class RequestHandler(object):
"""Subclass this class and define get() or post() to make a handler.
If you want to support more methods than the standard GET/HEAD/POST, you
should override the class variable SUPPORTED_METHODS in your
RequestHandler class.
译:
1. 继承此类,并自定义get(), post()方法,创建 handler
2. 若需要支持更多方法(GET/HEAD/POST), 需要 在 子类中 覆写 类变量 SUPPORTED_METHODS
"""
SUPPORTED_METHODS = ("GET", "HEAD", "POST", "DELETE", "PUT")
def __init__(self, application, request, transforms=None):
self.application = application
self.request = request
self._headers_written = False
self._finished = False
self._auto_finish = True
self._transforms = transforms or []
self.ui = _O((n, self._ui_method(m)) for n, m in
application.ui_methods.iteritems())
self.ui["modules"] = _O((n, self._ui_module(n, m)) for n, m in
application.ui_modules.iteritems())
self.clear()
# Check since connection is not available in WSGI
if hasattr(self.request, "connection"):
self.request.connection.stream.set_close_callback(
self.on_connection_close) # 注意 self.on_connection_close() 调用时机
@property
def settings(self):
return self.application.settings
# 如下这部分, 默认的接口定义, 如果子类没有覆写这些方法,就直接抛出异常.
# 也就是说: 这些接口, 必须要 覆写,才可以用
def head(self, *args, **kwargs):
raise HTTPError(405)
def get(self, *args, **kwargs):
raise HTTPError(405)
def post(self, *args, **kwargs):
raise HTTPError(405)
def delete(self, *args, **kwargs):
raise HTTPError(405)
def put(self, *args, **kwargs):
raise HTTPError(405)
# 预定义接口: 准备工作函数, 给需要 个性化配置用
# 注意调用时机: self._execute()
def prepare(self):
"""Called before the actual handler method.
Useful to override in a handler if you want a common bottleneck for
all of your requests.
"""
pass
# 预定义接口2: 执行完后, 附带清理工作.(根据需要自行修改)
# 注意调用时机: __init__()
def on_connection_close(self):
"""Called in async handlers if the client closed the connection.
You may override this to clean up resources associated with
long-lived connections.
Note that the select()-based implementation of IOLoop does not detect
closed connections and so this method will not be called until
you try (and fail) to produce some output. The epoll- and kqueue-
based implementations should detect closed connections even while
the request is idle.
"""
pass
def clear(self):
"""Resets all headers and content for this response."""
self._headers = {
"Server": "TornadoServer/1.0",
"Content-Type": "text/html; charset=UTF-8",
}
if not self.request.supports_http_1_1():
if self.request.headers.get("Connection") == "Keep-Alive":
self.set_header("Connection", "Keep-Alive")
self._write_buffer = []
self._status_code = 200
# 设置 HTTP状态码
def set_status(self, status_code):
"""Sets the status code for our response."""
assert status_code in httplib.responses # 使用 assert 方式 作条件判断, 出错时,直接抛出
self._status_code = status_code
# 设置 HTTP头信息
# 根据 value 类型, 作 格式转换处理
def set_header(self, name, value):
"""Sets the given response header name and value.
If a datetime is given, we automatically format it according to the
HTTP specification. If the value is not a string, we convert it to
a string. All header values are then encoded as UTF-8.
"""
if isinstance(value, datetime.datetime):
t = calendar.timegm(value.utctimetuple())
value = email.utils.formatdate(t, localtime=False, usegmt=True)
elif isinstance(value, int) or isinstance(value, long):
value = str(value)
else:
value = _utf8(value)
# If \n is allowed into the header, it is possible to inject
# additional headers or split the request. Also cap length to
# prevent obviously erroneous values.
safe_value = re.sub(r"[\x00-\x1f]", " ", value)[:4000] # 正则过滤 + 截取4000长度字符串
if safe_value != value:
raise ValueError("Unsafe header value %r", value)
self._headers[name] = value
_ARG_DEFAULT = []
def get_argument(self, name, default=_ARG_DEFAULT, strip=True):
"""Returns the value of the argument with the given name.
If default is not provided, the argument is considered to be
required, and we throw an HTTP 404 exception if it is missing.
If the argument appears in the url more than once, we return the
last value.
The returned value is always unicode.
"""
args = self.get_arguments(name, strip=strip)
if not args:
if default is self._ARG_DEFAULT:
raise HTTPError(404, "Missing argument %s" % name)
return default
return args[-1]
def get_arguments(self, name, strip=True):
"""Returns a list of the arguments with the given name.
If the argument is not present, returns an empty list.
The returned values are always unicode.
"""
values = self.request.arguments.get(name, [])
# Get rid of any weird control chars
values = [re.sub(r"[\x00-\x08\x0e-\x1f]", " ", x) for x in values]
values = [_unicode(x) for x in values]
if strip:
values = [x.strip() for x in values]
return values
@property
def cookies(self):
"""A dictionary of Cookie.Morsel objects."""
# 如果不存在,定义cookies
# 如果存在, 返回之
if not hasattr(self, "_cookies"):
self._cookies = Cookie.BaseCookie() # 定义
if "Cookie" in self.request.headers:
try:
self._cookies.load(self.request.headers["Cookie"]) # 赋值
except:
self.clear_all_cookies() # 异常时,调用 自定义清理函数
return self._cookies
def get_cookie(self, name, default=None):
"""Gets the value of the cookie with the given name, else default."""
if name in self.cookies: # 注意, 因为 cookies() 被定义成 property, 可以直接这样调用
return self.cookies[name].value
return default
def set_cookie(self, name, value, domain=None, expires=None, path="/",
expires_days=None, **kwargs):
"""Sets the given cookie name/value with the given options.
Additional keyword arguments are set on the Cookie.Morsel
directly.
See http://docs.python.org/library/cookie.html#morsel-objects
for available attributes.
"""
name = _utf8(name)
value = _utf8(value)
if re.search(r"[\x00-\x20]", name + value):
# Don't let us accidentally inject bad stuff
raise ValueError("Invalid cookie %r: %r" % (name, value))
if not hasattr(self, "_new_cookies"):
self._new_cookies = []
new_cookie = Cookie.BaseCookie()
self._new_cookies.append(new_cookie)
new_cookie[name] = value
if domain:
new_cookie[name]["domain"] = domain
if expires_days is not None and not expires:
expires = datetime.datetime.utcnow() + datetime.timedelta(
days=expires_days)
if expires:
timestamp = calendar.timegm(expires.utctimetuple())
new_cookie[name]["expires"] = email.utils.formatdate(
timestamp, localtime=False, usegmt=True)
if path:
new_cookie[name]["path"] = path
for k, v in kwargs.iteritems():
new_cookie[name][k] = v
def clear_cookie(self, name, path="/", domain=None):
"""Deletes the cookie with the given name."""
expires = datetime.datetime.utcnow() - datetime.timedelta(days=365)
# 赋空值, 清掉 cookie, 多个web框架,标准实现写法
self.set_cookie(name, value="", path=path, expires=expires,
domain=domain)
def clear_all_cookies(self):
"""Deletes all the cookies the user sent with this request."""
# 注: 注意如上2个相关函数 命名特征
# - 单个操作: clear_cookie()
# - 批量操作: clear_all_cookies()
for name in self.cookies.iterkeys():
self.clear_cookie(name)
def set_secure_cookie(self, name, value, expires_days=30, **kwargs):
"""Signs and timestamps a cookie so it cannot be forged.
You must specify the 'cookie_secret' setting in your Application
to use this method. It should be a long, random sequence of bytes
to be used as the HMAC secret for the signature.
To read a cookie set with this method, use get_secure_cookie().
"""
# 如下几步, 构造 "安全的cookie", 加 时间戳, 防伪造
timestamp = str(int(time.time()))
value = base64.b64encode(value)
signature = self._cookie_signature(name, value, timestamp) # 加时间戳
value = "|".join([value, timestamp, signature])
self.set_cookie(name, value, expires_days=expires_days, **kwargs)
def get_secure_cookie(self, name, include_name=True, value=None):
"""Returns the given signed cookie if it validates, or None.
In older versions of Tornado (0.1 and 0.2), we did not include the
name of the cookie in the cookie signature. To read these old-style
cookies, pass include_name=False to this method. Otherwise, all
attempts to read old-style cookies will fail (and you may log all
your users out whose cookies were written with a previous Tornado
version).
"""
if value is None:
value = self.get_cookie(name)
if not value:
return None
parts = value.split("|")
if len(parts) != 3:
return None
if include_name:
signature = self._cookie_signature(name, parts[0], parts[1])
else:
signature = self._cookie_signature(parts[0], parts[1])
if not _time_independent_equals(parts[2], signature):
logging.warning("Invalid cookie signature %r", value)
return None
timestamp = int(parts[1])
if timestamp < time.time() - 31 * 86400:
logging.warning("Expired cookie %r", value)
return None
# 尝试返回
try:
return base64.b64decode(parts[0])
except:
return None
def _cookie_signature(self, *parts):
self.require_setting("cookie_secret", "secure cookies")
hash = hmac.new(self.application.settings["cookie_secret"],
digestmod=hashlib.sha1)
for part in parts:
hash.update(part)
return hash.hexdigest()
# 关键代码: 重定向
#
def redirect(self, url, permanent=False):
"""Sends a redirect to the given (optionally relative) URL."""
if self._headers_written:
raise Exception("Cannot redirect after headers have been written")
self.set_status(301 if permanent else 302)
# Remove whitespace
url = re.sub(r"[\x00-\x20]+", "", _utf8(url))
self.set_header("Location", urlparse.urljoin(self.request.uri, url))
self.finish() # 调用处理
# 关键代码: 准备 渲染页面的 数据, 常用接口函数
# 特别说明:
# - 这里 write() 方法, 并没有直接 渲染页面, 而是在 准备 渲染数据
# - 实际的 渲染HTML页面操作, 在 finish() 中
def write(self, chunk):
"""Writes the given chunk to the output buffer.
To write the output to the network, use the flush() method below.
If the given chunk is a dictionary, we write it as JSON and set
the Content-Type of the response to be text/javascript.
"""
assert not self._finished
if isinstance(chunk, dict):
chunk = escape.json_encode(chunk)
self.set_header("Content-Type", "text/javascript; charset=UTF-8")
chunk = _utf8(chunk)
self._write_buffer.append(chunk) # 准备 待渲染的 HTML数据
# 关键代码: 渲染页面
#
def render(self, template_name, **kwargs):
"""Renders the template with the given arguments as the response."""
html = self.render_string(template_name, **kwargs)
# Insert the additional JS and CSS added by the modules on the page
js_embed = []
js_files = []
css_embed = []
css_files = []
html_heads = []
html_bodies = []
for module in getattr(self, "_active_modules", {}).itervalues():
# JS 部分
embed_part = module.embedded_javascript()
if embed_part:
js_embed.append(_utf8(embed_part))
file_part = module.javascript_files()
if file_part:
if isinstance(file_part, basestring):
js_files.append(file_part)
else:
js_files.extend(file_part)
# CSS 部分
embed_part = module.embedded_css()
if embed_part:
css_embed.append(_utf8(embed_part))
file_part = module.css_files()
if file_part:
if isinstance(file_part, basestring):
css_files.append(file_part)
else:
css_files.extend(file_part)
# Header 部分
head_part = module.html_head()
if head_part:
html_heads.append(_utf8(head_part))
body_part = module.html_body()
if body_part:
html_bodies.append(_utf8(body_part))
# ----------------------------------------------------------
# 如下是 分块处理部分:
# - 本质工作: 在 拼接一个 长 HTML 字符串(包含 HTML,CSS,JS)
# ----------------------------------------------------------
if js_files:
# Maintain order of JavaScript files given by modules
paths = []
unique_paths = set()
for path in js_files:
if not path.startswith("/") and not path.startswith("http:"):
path = self.static_url(path)
if path not in unique_paths:
paths.append(path)
unique_paths.add(path)
js = ''.join('<script src="' + escape.xhtml_escape(p) +
'" type="text/javascript"></script>'
for p in paths)
sloc = html.rindex('</body>')
html = html[:sloc] + js + '\n' + html[sloc:]
if js_embed:
js = '<script type="text/javascript">\n//<![CDATA[\n' + \
'\n'.join(js_embed) + '\n//]]>\n</script>'
sloc = html.rindex('</body>')
html = html[:sloc] + js + '\n' + html[sloc:]
if css_files:
paths = set()
for path in css_files:
if not path.startswith("/") and not path.startswith("http:"):
paths.add(self.static_url(path))
else:
paths.add(path)
css = ''.join('<link href="' + escape.xhtml_escape(p) + '" '
'type="text/css" rel="stylesheet"/>'
for p in paths)
hloc = html.index('</head>')
html = html[:hloc] + css + '\n' + html[hloc:]
if css_embed:
css = '<style type="text/css">\n' + '\n'.join(css_embed) + \
'\n</style>'
hloc = html.index('</head>')
html = html[:hloc] + css + '\n' + html[hloc:]
if html_heads:
hloc = html.index('</head>')
html = html[:hloc] + ''.join(html_heads) + '\n' + html[hloc:]
if html_bodies:
hloc = html.index('</body>')
html = html[:hloc] + ''.join(html_bodies) + '\n' + html[hloc:]
# 注意
self.finish(html) # 关键调用
def render_string(self, template_name, **kwargs):
"""Generate the given template with the given arguments.
We return the generated string. To generate and write a template
as a response, use render() above.
"""
# If no template_path is specified, use the path of the calling file
template_path = self.get_template_path()
if not template_path:
frame = sys._getframe(0)
web_file = frame.f_code.co_filename
while frame.f_code.co_filename == web_file:
frame = frame.f_back
template_path = os.path.dirname(frame.f_code.co_filename)
if not getattr(RequestHandler, "_templates", None):
RequestHandler._templates = {}
if template_path not in RequestHandler._templates:
loader = self.application.settings.get("template_loader") or\
template.Loader(template_path)
RequestHandler._templates[template_path] = loader # 注意
t = RequestHandler._templates[template_path].load(template_name)
args = dict(
handler=self,
request=self.request,
current_user=self.current_user,
locale=self.locale,
_=self.locale.translate,
static_url=self.static_url,
xsrf_form_html=self.xsrf_form_html,
reverse_url=self.application.reverse_url
)
args.update(self.ui)
args.update(kwargs)
return t.generate(**args)
def flush(self, include_footers=False):
"""Flushes the current output buffer to the nextwork."""
if self.application._wsgi:
raise Exception("WSGI applications do not support flush()")
chunk = "".join(self._write_buffer)
self._write_buffer = []
if not self._headers_written:
self._headers_written = True
for transform in self._transforms:
self._headers, chunk = transform.transform_first_chunk(
self._headers, chunk, include_footers)
headers = self._generate_headers()
else:
for transform in self._transforms:
chunk = transform.transform_chunk(chunk, include_footers)
headers = ""
# Ignore the chunk and only write the headers for HEAD requests
if self.request.method == "HEAD":
if headers:
self.request.write(headers) # 特别注意 self.request.write() 方法
return
if headers or chunk:
self.request.write(headers + chunk)
# 超级关键代码: 写HTML页面
#
#
def finish(self, chunk=None):
"""Finishes this response, ending the HTTP request."""
assert not self._finished
if chunk is not None:
self.write(chunk) # 特别注意, 这里的关键调用
# Automatically support ETags and add the Content-Length header if
# we have not flushed any content yet.
if not self._headers_written:
if (self._status_code == 200 and self.request.method == "GET" and
"Etag" not in self._headers):
hasher = hashlib.sha1()
for part in self._write_buffer:
hasher.update(part)
etag = '"%s"' % hasher.hexdigest()
inm = self.request.headers.get("If-None-Match")
if inm and inm.find(etag) != -1:
self._write_buffer = []
self.set_status(304)
else:
self.set_header("Etag", etag)
if "Content-Length" not in self._headers:
content_length = sum(len(part) for part in self._write_buffer)
self.set_header("Content-Length", content_length)
if hasattr(self.request, "connection"):
# Now that the request is finished, clear the callback we
# set on the IOStream (which would otherwise prevent the
# garbage collection of the RequestHandler when there
# are keepalive connections)
self.request.connection.stream.set_close_callback(None)
if not self.application._wsgi:
self.flush(include_footers=True)
self.request.finish() # 注意调用
self._log()
self._finished = True
# 给浏览器,返回 内部错误
def send_error(self, status_code=500, **kwargs):
"""Sends the given HTTP error code to the browser.
We also send the error HTML for the given error code as returned by
get_error_html. Override that method if you want custom error pages
for your application.
"""
if self._headers_written:
logging.error("Cannot send error response after headers written")
if not self._finished:
self.finish()
return
self.clear()
self.set_status(status_code)
message = self.get_error_html(status_code, **kwargs)
self.finish(message) # 写出信息
def get_error_html(self, status_code, **kwargs):
"""Override to implement custom error pages.
If this error was caused by an uncaught exception, the
exception object can be found in kwargs e.g. kwargs['exception']
"""
return "<html><title>%(code)d: %(message)s</title>" \
"<body>%(code)d: %(message)s</body></html>" % {
"code": status_code,
"message": httplib.responses[status_code],
}
# 本地配置: 通常用于设置 国际化-语言 (浏览器语言)
#
@property
def locale(self):
"""The local for the current session.
Determined by either get_user_locale, which you can override to
set the locale based on, e.g., a user preference stored in a
database, or get_browser_locale, which uses the Accept-Language
header.
"""
if not hasattr(self, "_locale"):
self._locale = self.get_user_locale() # 配置为 用户设置
if not self._locale:
self._locale = self.get_browser_locale() # 配置为 浏览器默认设置
assert self._locale
return self._locale
# 预定义接口 - 用户配置
# - 使用前, 需覆写该函数
def get_user_locale(self):
"""Override to determine the locale from the authenticated user.
If None is returned, we use the Accept-Language header.
"""
return None
# 默认浏览器设置语言环境
def get_browser_locale(self, default="en_US"):
"""Determines the user's locale from Accept-Language header.
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
"""
if "Accept-Language" in self.request.headers:
languages = self.request.headers["Accept-Language"].split(",")
locales = []
for language in languages:
parts = language.strip().split(";")
if len(parts) > 1 and parts[1].startswith("q="):
try:
score = float(parts[1][2:])
except (ValueError, TypeError):
score = 0.0
else:
score = 1.0
locales.append((parts[0], score))
if locales:
locales.sort(key=lambda (l, s): s, reverse=True)
codes = [l[0] for l in locales]
return locale.get(*codes)
return locale.get(default)
# 获取当前用户
@property
def current_user(self):
"""The authenticated user for this request.
Determined by either get_current_user, which you can override to
set the user based on, e.g., a cookie. If that method is not
overridden, this method always returns None.
We lazy-load the current user the first time this method is called
and cache the result after that.
"""
if not hasattr(self, "_current_user"):
self._current_user = self.get_current_user()
return self._current_user
# 预定义接口 - 获取当前用户
# - 使用前, 需覆写
# - 特别说明: 通常都需要用到该接口, 基本上一定是需要 覆写的
def get_current_user(self):
"""Override to determine the current user from, e.g., a cookie."""
return None
# ----------------------------------------------------
# 如下2个函数, 用于获取 默认配置参数
# - 登录 URL
# - 模板路径
# - 支持
# ----------------------------------------------------
def get_login_url(self):
"""Override to customize the login URL based on the request.
By default, we use the 'login_url' application setting.
"""
self.require_setting("login_url", "@tornado.web.authenticated")
return self.application.settings["login_url"]
def get_template_path(self):
"""Override to customize template path for each handler.
By default, we use the 'template_path' application setting.
Return None to load templates relative to the calling file.
"""
return self.application.settings.get("template_path")
# 预防 跨站攻击
#
# - 默认先判断是否记录了 token
# - 若已记录, 直接返回
# - 若未记录, 尝试从 cookie 中 获取
# - 若 cookie 中 存在, 从 cookie 中获取,并返回
# - 若 cookie 中 不存在, 主动生成 token, 并同步写入 cookie. (目的是,无需重复生成)
#
@property
def xsrf_token(self):
"""The XSRF-prevention token for the current user/session.
To prevent cross-site request forgery, we set an '_xsrf' cookie
and include the same '_xsrf' value as an argument with all POST
requests. If the two do not match, we reject the form submission
as a potential forgery.
See http://en.wikipedia.org/wiki/Cross-site_request_forgery
"""
if not hasattr(self, "_xsrf_token"):
token = self.get_cookie("_xsrf") # cookie 中获取
if not token:
token = binascii.b2a_hex(uuid.uuid4().bytes) # token 生成方法
expires_days = 30 if self.current_user else None # token 有效期
self.set_cookie("_xsrf", token, expires_days=expires_days) # 更新 cookie
self._xsrf_token = token # 更新 token
return self._xsrf_token
def check_xsrf_cookie(self):
"""Verifies that the '_xsrf' cookie matches the '_xsrf' argument.
To prevent cross-site request forgery, we set an '_xsrf' cookie
and include the same '_xsrf' value as an argument with all POST
requests. If the two do not match, we reject the form submission
as a potential forgery.
See http://en.wikipedia.org/wiki/Cross-site_request_forgery
"""
if self.request.headers.get("X-Requested-With") == "XMLHttpRequest":
return
token = self.get_argument("_xsrf", None)
if not token:
raise HTTPError(403, "'_xsrf' argument missing from POST")
if self.xsrf_token != token:
raise HTTPError(403, "XSRF cookie does not match POST argument")
# 提交表单 - 预防 xsrf 攻击方法
def xsrf_form_html(self):
"""An HTML <input/> element to be included with all POST forms.
It defines the _xsrf input value, which we check on all POST
requests to prevent cross-site request forgery.
If you have set the 'xsrf_cookies' application setting, you must include this
HTML within all of your HTML forms.
See check_xsrf_cookie() above for more information.
"""
# 特别注意: 该 <表单提交> HTML字符串, 要含有 (name="_xsrf") 字段
return '<input type="hidden" name="_xsrf" value="' + \
escape.xhtml_escape(self.xsrf_token) + '"/>'
# 静态资源路径
def static_url(self, path):
"""Returns a static URL for the given relative static file path.
This method requires you set the 'static_path' setting in your
application (which specifies the root directory of your static
files).
We append ?v=<signature> to the returned URL, which makes our
static file handler set an infinite expiration header on the
returned content. The signature is based on the content of the
file.
If this handler has a "include_host" attribute, we include the
full host for every static URL, including the "http://". Set
this attribute for handlers whose output needs non-relative static
path names.
"""
self.require_setting("static_path", "static_url")
if not hasattr(RequestHandler, "_static_hashes"):
RequestHandler._static_hashes = {}
hashes = RequestHandler._static_hashes
if path not in hashes:
try:
f = open(os.path.join(
self.application.settings["static_path"], path))
hashes[path] = hashlib.md5(f.read()).hexdigest()
f.close()
except:
logging.error("Could not open static file %r", path)
hashes[path] = None
base = self.request.protocol + "://" + self.request.host \
if getattr(self, "include_host", False) else ""
static_url_prefix = self.settings.get('static_url_prefix', '/static/')
if hashes.get(path):
return base + static_url_prefix + path + "?v=" + hashes[path][:5]
else:
return base + static_url_prefix + path
# 异步回调
def async_callback(self, callback, *args, **kwargs):
"""Wrap callbacks with this if they are used on asynchronous requests.
Catches exceptions and properly finishes the request.
"""
if callback is None:
return None
if args or kwargs:
callback = functools.partial(callback, *args, **kwargs)
def wrapper(*args, **kwargs):
try:
return callback(*args, **kwargs)
except Exception, e:
if self._headers_written:
logging.error("Exception after headers written",
exc_info=True)
else:
self._handle_request_exception(e)
return wrapper
def require_setting(self, name, feature="this feature"):
"""Raises an exception if the given app setting is not defined."""
if not self.application.settings.get(name):
raise Exception("You must define the '%s' setting in your "
"application to use %s" % (name, feature))
def reverse_url(self, name, *args):
return self.application.reverse_url(name, *args)
# 关键代码:
#
def _execute(self, transforms, *args, **kwargs):
"""Executes this request with the given output transforms."""
self._transforms = transforms
try:
if self.request.method not in self.SUPPORTED_METHODS:
raise HTTPError(405)
# If XSRF cookies are turned on, reject form submissions without
# the proper cookie
if self.request.method == "POST" and \
self.application.settings.get("xsrf_cookies"):
self.check_xsrf_cookie() # 检查
self.prepare() # 注意调用时机
if not self._finished:
getattr(self, self.request.method.lower())(*args, **kwargs)
if self._auto_finish and not self._finished:
self.finish() # 关键调用
except Exception, e:
self._handle_request_exception(e)
def _generate_headers(self):
lines = [self.request.version + " " + str(self._status_code) + " " +
httplib.responses[self._status_code]]
lines.extend(["%s: %s" % (n, v) for n, v in self._headers.iteritems()])
for cookie_dict in getattr(self, "_new_cookies", []):
for cookie in cookie_dict.values():
lines.append("Set-Cookie: " + cookie.OutputString(None))
return "\r\n".join(lines) + "\r\n\r\n"
# 打印出错日志
def _log(self):
if self._status_code < 400:
log_method = logging.info
elif self._status_code < 500:
log_method = logging.warning
else:
log_method = logging.error
request_time = 1000.0 * self.request.request_time()
# 日志打印
log_method("%d %s %.2fms", self._status_code,
self._request_summary(), request_time)
def _request_summary(self):
return self.request.method + " " + self.request.uri + " (" + \
self.request.remote_ip + ")"
def _handle_request_exception(self, e):
if isinstance(e, HTTPError):
if e.log_message:
format = "%d %s: " + e.log_message
args = [e.status_code, self._request_summary()] + list(e.args)
logging.warning(format, *args)
if e.status_code not in httplib.responses:
logging.error("Bad HTTP status code: %d", e.status_code)
self.send_error(500, exception=e)
else:
self.send_error(e.status_code, exception=e)
else:
logging.error("Uncaught exception %s\n%r", self._request_summary(),
self.request, exc_info=e)
self.send_error(500, exception=e)
def _ui_module(self, name, module):
def render(*args, **kwargs):
if not hasattr(self, "_active_modules"):
self._active_modules = {}
if name not in self._active_modules:
self._active_modules[name] = module(self)
rendered = self._active_modules[name].render(*args, **kwargs)
return rendered
return render
def _ui_method(self, method):
return lambda *args, **kwargs: method(self, *args, **kwargs)
# 装饰器定义: 异步处理
def asynchronous(method):
"""Wrap request handler methods with this if they are asynchronous.
If this decorator is given, the response is not finished when the
method returns. It is up to the request handler to call self.finish()
to finish the HTTP request. Without this decorator, the request is
automatically finished when the get() or post() method returns.
class MyRequestHandler(web.RequestHandler):
@web.asynchronous
def get(self):
http = httpclient.AsyncHTTPClient()
http.fetch("http://friendfeed.com/", self._on_download)
def _on_download(self, response):
self.write("Downloaded!")
self.finish()
"""
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if self.application._wsgi:
raise Exception("@asynchronous is not supported for WSGI apps")
self._auto_finish = False
return method(self, *args, **kwargs)
return wrapper
# 装饰器定义: 去 斜杠(/)
def removeslash(method):
"""Use this decorator to remove trailing slashes from the request path.
For example, a request to '/foo/' would redirect to '/foo' with this
decorator. Your request handler mapping should use a regular expression
like r'/foo/*' in conjunction with using the decorator.
"""
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if self.request.path.endswith("/"): # 结尾含 /
if self.request.method == "GET":
uri = self.request.path.rstrip("/") # 过滤掉 /
if self.request.query:
uri += "?" + self.request.query
self.redirect(uri) # 重定向
return
raise HTTPError(404)
return method(self, *args, **kwargs)
return wrapper
# 装饰器定义: 添加 斜杠(/)
def addslash(method):
"""Use this decorator to add a missing trailing slash to the request path.
For example, a request to '/foo' would redirect to '/foo/' with this
decorator. Your request handler mapping should use a regular expression
like r'/foo/?' in conjunction with using the decorator.
"""
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if not self.request.path.endswith("/"):
if self.request.method == "GET":
uri = self.request.path + "/"
if self.request.query:
uri += "?" + self.request.query
self.redirect(uri) # 重定向
return
raise HTTPError(404)
return method(self, *args, **kwargs)
return wrapper
# ----------------------------------------------------------------
# 入口:
#
#
# ----------------------------------------------------------------
class Application(object):
"""A collection of request handlers that make up a web application.
Instances of this class are callable and can be passed directly to
HTTPServer to serve the application:
application = web.Application([
(r"/", MainPageHandler),
])
http_server = httpserver.HTTPServer(application)
http_server.listen(8080)
ioloop.IOLoop.instance().start()
The constructor for this class takes in a list of URLSpec objects
or (regexp, request_class) tuples. When we receive requests, we
iterate over the list in order and instantiate an instance of the
first request class whose regexp matches the request path.
Each tuple can contain an optional third element, which should be a
dictionary if it is present. That dictionary is passed as keyword
arguments to the contructor of the handler. This pattern is used
for the StaticFileHandler below:
application = web.Application([
(r"/static/(.*)", web.StaticFileHandler, {"path": "/var/www"}),
])
We support virtual hosts with the add_handlers method, which takes in
a host regular expression as the first argument:
application.add_handlers(r"www\.myhost\.com", [
(r"/article/([0-9]+)", ArticleHandler),
])
You can serve static files by sending the static_path setting as a
keyword argument. We will serve those files from the /static/ URI
(this is configurable with the static_url_prefix setting),
and we will serve /favicon.ico and /robots.txt from the same directory.
"""
def __init__(self, handlers=None, default_host="", transforms=None,
wsgi=False, **settings):
"""
:param handlers:
:param default_host:
:param transforms:
:param wsgi:
:param settings:
- gzip : 压缩
- static_path : 静态资源路径
- debug : 调试开关
:return:
"""
if transforms is None:
self.transforms = []
if settings.get("gzip"): # 配置选项
self.transforms.append(GZipContentEncoding)
self.transforms.append(ChunkedTransferEncoding)
else:
self.transforms = transforms
self.handlers = []
self.named_handlers = {}
self.default_host = default_host
self.settings = settings # 自定义配置项
self.ui_modules = {}
self.ui_methods = {}
self._wsgi = wsgi
self._load_ui_modules(settings.get("ui_modules", {}))
self._load_ui_methods(settings.get("ui_methods", {}))
if self.settings.get("static_path"): # 配置项中含: 静态资源路径
path = self.settings["static_path"]
handlers = list(handlers or [])
static_url_prefix = settings.get("static_url_prefix",
"/static/")
handlers = [
(re.escape(static_url_prefix) + r"(.*)", StaticFileHandler,
dict(path=path)),
(r"/(favicon\.ico)", StaticFileHandler, dict(path=path)),
(r"/(robots\.txt)", StaticFileHandler, dict(path=path)),
] + handlers
if handlers:
self.add_handlers(".*$", handlers) # 关键调用
# Automatically reload modified modules
if self.settings.get("debug") and not wsgi: # 调试模式时, 自动监测,并重启项目
import autoreload # tornado 自定义模块
autoreload.start()
def add_handlers(self, host_pattern, host_handlers):
"""Appends the given handlers to our handler list."""
if not host_pattern.endswith("$"):
host_pattern += "$"
handlers = []
# The handlers with the wildcard host_pattern are a special
# case - they're added in the constructor but should have lower
# precedence than the more-precise handlers added later.
# If a wildcard handler group exists, it should always be last
# in the list, so insert new groups just before it.
if self.handlers and self.handlers[-1][0].pattern == '.*$':
self.handlers.insert(-1, (re.compile(host_pattern), handlers)) # 正则匹配
else:
self.handlers.append((re.compile(host_pattern), handlers)) # 正则匹配
for spec in host_handlers:
if type(spec) is type(()): # 元组
assert len(spec) in (2, 3)
pattern = spec[0]
handler = spec[1]
if len(spec) == 3:
kwargs = spec[2]
else:
kwargs = {}
spec = URLSpec(pattern, handler, kwargs) # 关键调用
handlers.append(spec)
if spec.name:
if spec.name in self.named_handlers:
logging.warning(
"Multiple handlers named %s; replacing previous value",
spec.name)
self.named_handlers[spec.name] = spec
def add_transform(self, transform_class):
"""Adds the given OutputTransform to our transform list."""
self.transforms.append(transform_class)
def _get_host_handlers(self, request):
host = request.host.lower().split(':')[0]
for pattern, handlers in self.handlers:
if pattern.match(host):
return handlers
# Look for default host if not behind load balancer (for debugging)
if "X-Real-Ip" not in request.headers:
for pattern, handlers in self.handlers:
if pattern.match(self.default_host):
return handlers
return None
def _load_ui_methods(self, methods):
if type(methods) is types.ModuleType:
self._load_ui_methods(dict((n, getattr(methods, n))
for n in dir(methods)))
elif isinstance(methods, list):
for m in methods:
self._load_ui_methods(m)
else:
for name, fn in methods.iteritems():
if not name.startswith("_") and hasattr(fn, "__call__") \
and name[0].lower() == name[0]:
self.ui_methods[name] = fn
def _load_ui_modules(self, modules):
if type(modules) is types.ModuleType:
self._load_ui_modules(dict((n, getattr(modules, n))
for n in dir(modules)))
elif isinstance(modules, list):
for m in modules:
self._load_ui_modules(m)
else:
assert isinstance(modules, dict)
for name, cls in modules.iteritems():
try:
if issubclass(cls, UIModule):
self.ui_modules[name] = cls
except TypeError:
pass
# 关键定义: 类对象 --> 可调用对象
#
# 注意: 被调用时机
# - wsgi.py
# - WSGIApplication()
# - self.__call__() 方法
#
def __call__(self, request):
"""Called by HTTPServer to execute the request."""
transforms = [t(request) for t in self.transforms]
handler = None
args = []
kwargs = {}
handlers = self._get_host_handlers(request)
if not handlers:
handler = RedirectHandler(
request, "http://" + self.default_host + "/")
else:
for spec in handlers:
match = spec.regex.match(request.path)
if match:
# None-safe wrapper around urllib.unquote to handle
# unmatched optional groups correctly
def unquote(s):
if s is None: return s
return urllib.unquote(s)
handler = spec.handler_class(self, request, **spec.kwargs)
# Pass matched groups to the handler. Since
# match.groups() includes both named and unnamed groups,
# we want to use either groups or groupdict but not both.
kwargs = dict((k, unquote(v))
for (k, v) in match.groupdict().iteritems())
if kwargs:
args = []
else:
args = [unquote(s) for s in match.groups()]
break
if not handler:
handler = ErrorHandler(self, request, 404)
# In debug mode, re-compile templates and reload static files on every
# request so you don't need to restart to see changes
if self.settings.get("debug"):
if getattr(RequestHandler, "_templates", None):
map(lambda loader: loader.reset(),
RequestHandler._templates.values())
RequestHandler._static_hashes = {}
# 关键代码调用时机:
handler._execute(transforms, *args, **kwargs)
return handler
def reverse_url(self, name, *args):
"""Returns a URL path for handler named `name`
The handler must be added to the application as a named URLSpec
"""
if name in self.named_handlers:
return self.named_handlers[name].reverse(*args)
raise KeyError("%s not found in named urls" % name)
# ----------------------------------------------------
# 异常基类
# ----------------------------------------------------
class HTTPError(Exception):
"""An exception that will turn into an HTTP error response."""
def __init__(self, status_code, log_message=None, *args):
self.status_code = status_code
self.log_message = log_message
self.args = args
def __str__(self):
message = "HTTP %d: %s" % (
self.status_code, httplib.responses[self.status_code])
if self.log_message:
return message + " (" + (self.log_message % self.args) + ")"
else:
return message
# ----------------------------------------------------
# 扩展子类: 出错处理
# ----------------------------------------------------
class ErrorHandler(RequestHandler):
"""Generates an error response with status_code for all requests."""
def __init__(self, application, request, status_code):
RequestHandler.__init__(self, application, request)
self.set_status(status_code)
def prepare(self):
raise HTTPError(self._status_code)
# ----------------------------------------------------
# 扩展子类: 重定向处理
# ----------------------------------------------------
class RedirectHandler(RequestHandler):
"""Redirects the client to the given URL for all GET requests.
You should provide the keyword argument "url" to the handler, e.g.:
application = web.Application([
(r"/oldpath", web.RedirectHandler, {"url": "/newpath"}),
])
"""
def __init__(self, application, request, url, permanent=True):
RequestHandler.__init__(self, application, request)
self._url = url
self._permanent = permanent
# GET 请求,变成 重定向调用
def get(self):
self.redirect(self._url, permanent=self._permanent)
# ----------------------------------------------------
# 扩展子类: 静态资源处理
# 说明:
# - 覆写 get(), head() 方法
# ----------------------------------------------------
class StaticFileHandler(RequestHandler):
"""A simple handler that can serve static content from a directory.
To map a path to this handler for a static data directory /var/www,
you would add a line to your application like:
application = web.Application([
(r"/static/(.*)", web.StaticFileHandler, {"path": "/var/www"}),
])
The local root directory of the content should be passed as the "path"
argument to the handler.
To support aggressive browser caching, if the argument "v" is given
with the path, we set an infinite HTTP expiration header. So, if you
want browsers to cache a file indefinitely, send them to, e.g.,
/static/images/myimage.png?v=xxx.
"""
def __init__(self, application, request, path):
RequestHandler.__init__(self, application, request)
self.root = os.path.abspath(path) + os.path.sep
def head(self, path):
self.get(path, include_body=False)
def get(self, path, include_body=True):
abspath = os.path.abspath(os.path.join(self.root, path))
if not abspath.startswith(self.root):
raise HTTPError(403, "%s is not in root static directory", path)
if not os.path.exists(abspath):
raise HTTPError(404)
if not os.path.isfile(abspath):
raise HTTPError(403, "%s is not a file", path)
stat_result = os.stat(abspath)
modified = datetime.datetime.fromtimestamp(stat_result[stat.ST_MTIME])
self.set_header("Last-Modified", modified)
if "v" in self.request.arguments:
self.set_header("Expires", datetime.datetime.utcnow() + \
datetime.timedelta(days=365*10))
self.set_header("Cache-Control", "max-age=" + str(86400*365*10))
else:
self.set_header("Cache-Control", "public")
mime_type, encoding = mimetypes.guess_type(abspath)
if mime_type:
self.set_header("Content-Type", mime_type)
self.set_extra_headers(path)
# Check the If-Modified-Since, and don't send the result if the
# content has not been modified
ims_value = self.request.headers.get("If-Modified-Since")
if ims_value is not None:
date_tuple = email.utils.parsedate(ims_value)
if_since = datetime.datetime.fromtimestamp(time.mktime(date_tuple))
if if_since >= modified:
self.set_status(304)
return
if not include_body:
return
self.set_header("Content-Length", stat_result[stat.ST_SIZE])
file = open(abspath, "rb") # 读文件
try:
self.write(file.read()) # 写出
finally:
file.close()
def set_extra_headers(self, path):
"""For subclass to add extra headers to the response"""
pass
# ----------------------------------------------------
# 扩展子类: 包裹 另外一个 回调
# 说明:
# - 覆写 prepare() 预定义接口
# ----------------------------------------------------
class FallbackHandler(RequestHandler):
"""A RequestHandler that wraps another HTTP server callback.
The fallback is a callable object that accepts an HTTPRequest,
such as an Application or tornado.wsgi.WSGIContainer. This is most
useful to use both tornado RequestHandlers and WSGI in the same server.
Typical usage:
wsgi_app = tornado.wsgi.WSGIContainer(
django.core.handlers.wsgi.WSGIHandler())
application = tornado.web.Application([
(r"/foo", FooHandler),
(r".*", FallbackHandler, dict(fallback=wsgi_app),
])
"""
def __init__(self, app, request, fallback):
RequestHandler.__init__(self, app, request)
self.fallback = fallback
# 覆写接口
def prepare(self):
self.fallback(self.request)
self._finished = True
# ----------------------------------------------------
# 自定义基类: 输出转换
# 说明:
# - 2个子类
# - GZipContentEncoding()
# - ChunkedTransferEncoding()
# ----------------------------------------------------
class OutputTransform(object):
"""A transform modifies the result of an HTTP request (e.g., GZip encoding)
A new transform instance is created for every request. See the
ChunkedTransferEncoding example below if you want to implement a
new Transform.
"""
def __init__(self, request):
pass
def transform_first_chunk(self, headers, chunk, finishing):
return headers, chunk
def transform_chunk(self, chunk, finishing):
return chunk
class GZipContentEncoding(OutputTransform):
"""Applies the gzip content encoding to the response.
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
"""
CONTENT_TYPES = set([
"text/plain", "text/html", "text/css", "text/xml",
"application/x-javascript", "application/xml", "application/atom+xml",
"text/javascript", "application/json", "application/xhtml+xml"])
MIN_LENGTH = 5
def __init__(self, request):
self._gzipping = request.supports_http_1_1() and \
"gzip" in request.headers.get("Accept-Encoding", "")
def transform_first_chunk(self, headers, chunk, finishing):
if self._gzipping:
ctype = headers.get("Content-Type", "").split(";")[0]
self._gzipping = (ctype in self.CONTENT_TYPES) and \
(not finishing or len(chunk) >= self.MIN_LENGTH) and \
(finishing or "Content-Length" not in headers) and \
("Content-Encoding" not in headers)
if self._gzipping:
headers["Content-Encoding"] = "gzip"
self._gzip_value = cStringIO.StringIO()
self._gzip_file = gzip.GzipFile(mode="w", fileobj=self._gzip_value)
self._gzip_pos = 0
chunk = self.transform_chunk(chunk, finishing) # 关键调用
if "Content-Length" in headers:
headers["Content-Length"] = str(len(chunk))
return headers, chunk
def transform_chunk(self, chunk, finishing):
if self._gzipping:
self._gzip_file.write(chunk)
if finishing:
self._gzip_file.close()
else:
self._gzip_file.flush()
chunk = self._gzip_value.getvalue()
if self._gzip_pos > 0:
chunk = chunk[self._gzip_pos:]
self._gzip_pos += len(chunk)
return chunk
class ChunkedTransferEncoding(OutputTransform):
"""Applies the chunked transfer encoding to the response.
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1
"""
def __init__(self, request):
self._chunking = request.supports_http_1_1()
def transform_first_chunk(self, headers, chunk, finishing):
if self._chunking:
# No need to chunk the output if a Content-Length is specified
if "Content-Length" in headers or "Transfer-Encoding" in headers:
self._chunking = False
else:
headers["Transfer-Encoding"] = "chunked"
chunk = self.transform_chunk(chunk, finishing)
return headers, chunk
def transform_chunk(self, block, finishing):
if self._chunking:
# Don't write out empty chunks because that means END-OF-STREAM
# with chunked encoding
if block:
block = ("%x" % len(block)) + "\r\n" + block + "\r\n"
if finishing:
block += "0\r\n\r\n"
return block
# ----------------------------------------------------
# 装饰器定义: 权限认证
# 代码功能逻辑:
# - 若当前用户已登录, 正常调用
# - 若当前用户未登录
# - 若是 GET 请求,
# - 先获取 login(网站登录页面) URL
# - URL中, 记录 next 字段参数, 记录 未登录前 访问的页面
# - 重定向到 login 页面
# - 正确登录后, 会根据 next 参数, 自动跳转到 登录前的页面
# - 其他请求, 直接抛出 403 错误页面
# 批注:
# - 权限验证的典型实现, 值得学习
# - 代码很精简, 并不复杂
# ----------------------------------------------------
def authenticated(method):
"""Decorate methods with this to require that the user be logged in."""
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if not self.current_user: # 用户未登录
if self.request.method == "GET": # GET 请求 处理
url = self.get_login_url() # 获取登录页面的 URL
if "?" not in url:
# 关键处理:
# - 在 URL 中,添加 <next>字段 [格式: ?next=/xxxx.html]
# - 目的: 当用户成功登录后,返回到登录前,访问的页面
url += "?" + urllib.urlencode(dict(next=self.request.uri))
self.redirect(url) # 重定向
return
raise HTTPError(403) # 其他请求, 抛出 403 错误
return method(self, *args, **kwargs) # 用户已登录时, 正常调用
return wrapper
# ----------------------------------------------------
# 预定义接口类: UI模块 (处理 CSS,JS)
# 说明:
# - 预定义了一些接口方法,需要 子类化, 并覆写后,才可使用
# ----------------------------------------------------
class UIModule(object):
"""A UI re-usable, modular unit on a page.
UI modules often execute additional queries, and they can include
additional CSS and JavaScript that will be included in the output
page, which is automatically inserted on page render.
"""
def __init__(self, handler):
self.handler = handler
self.request = handler.request
self.ui = handler.ui
self.current_user = handler.current_user
self.locale = handler.locale
# 预定义接口: 必须要 覆写,才能用
def render(self, *args, **kwargs):
raise NotImplementedError()
def embedded_javascript(self):
"""Returns a JavaScript string that will be embedded in the page."""
return None
def javascript_files(self):
"""Returns a list of JavaScript files required by this module."""
return None
def embedded_css(self):
"""Returns a CSS string that will be embedded in the page."""
return None
def css_files(self):
"""Returns a list of CSS files required by this module."""
return None
def html_head(self):
"""Returns a CSS string that will be put in the <head/> element"""
return None
def html_body(self):
"""Returns an HTML string that will be put in the <body/> element"""
return None
def render_string(self, path, **kwargs):
return self.handler.render_string(path, **kwargs)
# ----------------------------------------------------
# 预定义接口类: URL 匹配
# 说明:
# - URL 与 handler 映射
# ----------------------------------------------------
class URLSpec(object):
"""Specifies mappings between URLs and handlers."""
def __init__(self, pattern, handler_class, kwargs={}, name=None):
"""Creates a URLSpec.
Parameters:
pattern: Regular expression to be matched. Any groups in the regex
will be passed in to the handler's get/post/etc methods as
arguments.
handler_class: RequestHandler subclass to be invoked.
kwargs (optional): A dictionary of additional arguments to be passed
to the handler's constructor.
name (optional): A name for this handler. Used by
Application.reverse_url.
"""
if not pattern.endswith('$'):
pattern += '$'
self.regex = re.compile(pattern) # 正则匹配
self.handler_class = handler_class
self.kwargs = kwargs
self.name = name
self._path, self._group_count = self._find_groups()
def _find_groups(self):
"""Returns a tuple (reverse string, group count) for a url.
For example: Given the url pattern /([0-9]{4})/([a-z-]+)/, this method
would return ('/%s/%s/', 2).
"""
pattern = self.regex.pattern
if pattern.startswith('^'):
pattern = pattern[1:]
if pattern.endswith('$'):
pattern = pattern[:-1]
if self.regex.groups != pattern.count('('):
# The pattern is too complicated for our simplistic matching,
# so we can't support reversing it.
return (None, None)
pieces = []
for fragment in pattern.split('('):
if ')' in fragment:
paren_loc = fragment.index(')')
if paren_loc >= 0:
pieces.append('%s' + fragment[paren_loc + 1:])
else:
pieces.append(fragment)
return (''.join(pieces), self.regex.groups)
def reverse(self, *args):
assert self._path is not None, \
"Cannot reverse url regex " + self.regex.pattern
assert len(args) == self._group_count, "required number of arguments "\
"not found"
if not len(args):
return self._path
return self._path % tuple([str(a) for a in args])
url = URLSpec
# ----------------------------------------------------
# UTF8 编码处理: 编码检查
# 代码逻辑:
# - 若 s 是 unicode 字符串
# - 使用 UTF8编码,并返回
# - 若 s 不是 字符串类型, 直接报错
# - 若 s 是 ASCII 字符串, 直接返回
# ----------------------------------------------------
def _utf8(s):
if isinstance(s, unicode):
return s.encode("utf-8")
assert isinstance(s, str)
return s
# ----------------------------------------------------
# unicode 编码处理: 编码检查
# 代码逻辑:
# - 基本类似 _utf8() 函数
# ----------------------------------------------------
def _unicode(s):
if isinstance(s, str):
try:
return s.decode("utf-8")
except UnicodeDecodeError:
raise HTTPError(400, "Non-utf8 argument")
assert isinstance(s, unicode)
return s
def _time_independent_equals(a, b):
if len(a) != len(b):
return False
result = 0
for x, y in zip(a, b):
result |= ord(x) ^ ord(y)
return result == 0
class _O(dict):
"""Makes a dictionary behave like an object."""
def __getattr__(self, name):
try:
return self[name]
except KeyError:
raise AttributeError(name)
def __setattr__(self, name, value):
self[name] = value
|
/**
* @arliteam/arli v0.2.1
* https://github.com/arliteam/arli
*
* Copyright (c) Mohamed Elkebir (https://getsupercode.com)
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
exports.__esModule = true;
/**
* Test if a date string is in latin DMY format.
*
* Date format: DD/MM/YY[YY] DD.MM.YY[YY] DD-MM-YY[YY] DD MM YY[YY]
*
* https://en.wikipedia.org/wiki/Date_format_by_country
*
* @example
* 30/12/2000 | 30/12/99
* 30-12-2000 | 30-12-99
* 30.12.2000 | 30.12.99
* 30 12 2000 | 30 12 99
*
* @param date A string of date to be tested
*/
exports.isDateDMY = function (date) {
var pattern = /^(31|30|(?:0[1-9]|[1-2][0-9]))(\/|\.|-| )(12|11|10|0[1-9])(\2)(\d{4}|\d{2})$/;
return pattern.test(date);
};
/**
* Test if a date string is in latin MDY format.
*
* Date format: MM/DD/YY[YY] MM.DD.YY[YY] MM-DD-YY[YY] MM DD YY[YY]
*
* https://en.wikipedia.org/wiki/Date_format_by_country
*
* @example
* 12/30/2000 | 12/30/99
* 12-30-2000 | 12-30-99
* 12.30.2000 | 12.30.99
* 12 30 2000 | 12 30 99
*
* @param date A string of date to be tested
*/
exports.isDateMDY = function (date) {
var pattern = /^(12|11|10|0[1-9])(\/|\.|-| )(31|30|(?:0[1-9]|[1-2][0-9]))(\2)(\d{4}|\d{2})$/;
return pattern.test(date);
};
/**
* Test if a date string is in latin YMD format.
*
* Date format: YY[YY]/MM/DD YY[YY].MM.DD YY[YY]-MM-DD YY[YY] MM DD
*
* https://en.wikipedia.org/wiki/Date_format_by_country
*
* @example
* 2000/12/30 | 99/12/30
* 2000-12-30 | 99-12-30
* 2000.12.30 | 99.12.30
* 2000 12 30 | 99 12 30
*
* @param date A string of date to be tested
*/
exports.isDateYMD = function (date) {
var pattern = /^(\d{4}|\d{2})(\/|\.|-| )(12|11|10|0[1-9])(\2)(31|30|(?:0[1-9]|[1-2][0-9]))$/;
return pattern.test(date);
};
|
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
abbf5083-0d7f-4e1b-bc6e-e29bdde4d80f
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#Eleven41.Extensions">Eleven41.Extensions</a></strong></td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
</div>
</div>
</body>
</html> |
package finalir;
public class CoreLabel{
String word;
String lemma;
int position;
public CoreLabel setWord(String s){
word = s;
return this;
}
public String word(){
return word;
}
public CoreLabel setBeginPosition(int t){
position = t;
return this;
}
public int beginPosition(){
return position;
}
public CoreLabel setLemma(String s){
lemma = s;
return this;
}
public String lemma(){
return lemma;
}
public CoreLabel(){}
public CoreLabel(String w,String l,int p){
word = w;
lemma = l;
position = p;
}
} |
---
layout: post
title: ETA expansion causes additional serialization
date: 2016-12-18 00:00:00 +00:00
tags: [compiler, eta-expansion, scala, serialization]
---
From first glance Client1 and Client2 are differ only by 'code refactoring'. However, if the same invocations are done in map (or any other) function on RDD, this small refactoring cause additional serialization of Service object.
{% highlight java %}
trait Service {
def process(s: String)
}
object ServiceImpl extends Service{
override def process(s: String): Unit = {
println(s)
}
}
object Register {
var serviceInst : Service = ServiceImpl
}
object Client1 {
def process(l: List[String]): Unit ={
l.foreach(x => Register.serviceInst.process(x))
}
}
object Client2 {
def process(l: List[String]): Unit ={
l.foreach(Register.serviceInst.process)
}
}
{% endhighlight %}
Result of decompiling each client:
{% highlight java %}
public final class Client1$$anonfun$process$1$$anonfun$apply$1 extends AbstractFunction1<String, BoxedUnit> implements Serializable {
public static final long serialVersionUID = 0L;
public final void apply(final String x$1) {
Register$.MODULE$.serviceInst().process(x$1);
}
}
public static final class Client2$$anonfun$process$1 extends AbstractFunction1<String, BoxedUnit> implements Serializable {
public static final long serialVersionUID = 0L;
private final Service eta$0$1$1;
public final void apply(final String s) {
this.eta$0$1$1.process(s);
}
}
{% endhighlight %}
So, first client doesn't require Service object to be serialiazed, while the second does. It is happening as Scala compiler performs eta-expantion on method given in Client2. Compiler generates new Function that calls process directly on concreate Service instance.
There is great page about ETA expanstion [**read**](http://blog.jaceklaskowski.pl/2013/11/23/how-much-one-ought-to-know-eta-expansion.html) |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* CSVReader Class
*
* Allows to retrieve a CSV file content as a two dimensional array.
* Optionally, the first text line may contains the column names to
* be used to retrieve fields values (default).
*/
class CSVReader
{
var $fields; // columns names retrieved after parsing
var $separator = ','; // separator used to explode each line
var $enclosure = '"'; // enclosure used to decorate each field
var $max_row_size = 4096; // maximum row size to be used for decoding
/**
* Parse a file containing CSV formatted data.
*
* @access public
* @param string
* @param boolean
* @return array
*/
function parse_file($p_Filepath, $p_NamedFields = true)
{
$content = false;
$file = fopen($p_Filepath, 'r');
if ($p_NamedFields) {
$this->fields = fgetcsv($file, $this->max_row_size, $this->separator, $this->enclosure);
}
while ( ($row = fgetcsv($file, $this->max_row_size, $this->separator, $this->enclosure)) != false ) {
if ( $row[0] != null ) { // skip empty lines
if ( !$content ) {
$content = array();
}
if ( $p_NamedFields ) {
$items = array();
foreach ( $this->fields as $id => $field ) {
if ( isset($row[$id]) ) {
$items[$field] = $row[$id];
}
}
$content[] = $items;
} else {
$content[] = $row;
}
}
}
fclose($file);
return $content;
}
}
/* End of file CSVReader.php */
/* Location: ./application/helpers/CSVReader.php */ |
"""
This script exposes a class used to read the Shapefile Index format
used in conjunction with a shapefile. The Index file gives the record
number and content length for every record stored in the main shapefile.
This is useful if you need to extract specific features from a shapefile
without reading the entire file.
How to use:
from ShapefileIndexReader import ShapefileIndex
shx = ShapefileIndex(Path/To/index.shx)
shx.read()
The 'shx' object will expose three properties
1) Path - the path given to the shapefile, if it exists
2) Offsets - an array of byte offsets for each record in the main shapefile
3) Lengths - an array of 16-bit word lengths for each record in the main shapefile
"""
import os
__author__ = 'Sean Taylor Hutchison'
__license__ = 'MIT'
__version__ = '0.1.0'
__maintainer__ = 'Sean Taylor Hutchison'
__email__ = 'seanthutchison@gmail.com'
__status__ = 'Development'
class ShapefileIndex:
Records = []
def __bytes_to_index_records(self,file_bytes):
file_length = len(file_bytes)
num_records = int((file_length - 100) / 8)
for record_counter in range(0,num_records):
byte_position = 100 + (record_counter * 8)
offset = int.from_bytes(file_bytes[byte_position:byte_position+4], byteorder='big')
length = int.from_bytes(file_bytes[byte_position+4:byte_position+8], byteorder='big')
self.Records.append([offset,length])
def read(self):
with open(self.Path, 'rb') as shpindex:
self.__bytes_to_index_records(shpindex.read())
def __init__(self, path=None):
if path and os.path.exists(path) and os.path.splitext(path)[1] == '.shx':
self.Path = path
else:
raise FileNotFoundError |
# coding: utf-8
from app.api_client.error import HTTPError
from app.helpers.login_helpers import generate_buyer_creation_token
from dmapiclient.audit import AuditTypes
from dmutils.email import generate_token, EmailError
from dmutils.forms import FakeCsrf
from ...helpers import BaseApplicationTest
from lxml import html
import mock
import pytest
from flask import session
import flask_featureflags as feature
EMAIL_SENT_MESSAGE = "send a link"
USER_CREATION_EMAIL_ERROR = "Failed to send user creation email."
PASSWORD_RESET_EMAIL_ERROR = "Failed to send password reset."
TOKEN_CREATED_BEFORE_PASSWORD_LAST_CHANGED_ERROR = "This password reset link is invalid."
USER_LINK_EXPIRED_ERROR = "The link you used to create an account may have expired."
def has_validation_errors(data, field_name):
document = html.fromstring(data)
form_field = document.xpath('//input[@name="{}"]'.format(field_name))
return 'invalid' in form_field[0].classes or 'invalid' in form_field[0].getparent().classes
class TestLogin(BaseApplicationTest):
def setup(self):
super(TestLogin, self).setup()
data_api_client_config = {'authenticate_user.return_value': self.user(
123, "email@email.com", 1234, 'name', 'name'
)}
self._data_api_client = mock.patch(
'app.main.views.login.data_api_client', **data_api_client_config
)
self.data_api_client_mock = self._data_api_client.start()
def teardown(self):
self._data_api_client.stop()
def test_should_show_login_page(self):
res = self.client.get(self.expand_path('/login'))
assert res.status_code == 200
assert 'private' in res.headers['Cache-Control']
assert "Sign in to the Marketplace" in res.get_data(as_text=True)
@mock.patch('app.main.views.login.data_api_client')
def test_redirect_on_buyer_login(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data_api_client.get_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
res = self.client.post(self.url_for('main.process_login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
assert res.location == 'http://localhost/2/buyer-dashboard'
assert 'Secure;' in res.headers['Set-Cookie']
@mock.patch('app.main.views.login.data_api_client')
def test_redirect_on_supplier_login(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(
123,
'email@email.com',
None,
None,
'Name',
role='supplier'
)
data_api_client.get_user.return_value = self.user(
123,
'email@email.com',
None,
None,
'Name',
role='supplier'
)
res = self.client.post(self.url_for('main.process_login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert res.status_code == 302
assert res.location == 'http://localhost' + \
self.expand_path('/2/seller-dashboard')
assert 'Secure;' in res.headers['Set-Cookie']
def test_should_redirect_logged_in_buyer(self):
self.login_as_buyer()
res = self.client.get(self.url_for('main.render_login'))
assert res.status_code == 302
assert res.location == 'http://localhost/2/buyer-dashboard'
def test_should_strip_whitespace_surrounding_login_email_address_field(self):
self.client.post(self.expand_path('/login'), data={
'email_address': ' valid@email.com ',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
self.data_api_client_mock.authenticate_user.assert_called_with('valid@email.com', '1234567890')
def test_should_not_strip_whitespace_surrounding_login_password_field(self):
self.client.post(self.expand_path('/login'), data={
'email_address': 'valid@email.com',
'password': ' 1234567890 ',
'csrf_token': FakeCsrf.valid_token,
})
self.data_api_client_mock.authenticate_user.assert_called_with(
'valid@email.com', ' 1234567890 ')
@mock.patch('app.main.views.login.data_api_client')
def test_ok_next_url_redirects_buyer_on_login(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data_api_client.get_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data = {
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
}
res = self.client.post(self.expand_path('/login?next={}'.format(self.expand_path('/bar-foo'))), data=data)
assert res.status_code == 302
assert res.location == 'http://localhost' + self.expand_path('/bar-foo')
@mock.patch('app.main.views.login.data_api_client')
def test_bad_next_url_redirects_user(self, data_api_client):
with self.app.app_context():
data_api_client.authenticate_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data_api_client.get_user.return_value = self.user(123, "email@email.com", None, None, 'Name')
data = {
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
}
res = self.client.post(self.expand_path('/login?next=http://badness.com'), data=data)
assert res.status_code == 302
assert res.location == 'http://localhost/2/buyer-dashboard'
def test_should_have_cookie_on_redirect(self):
with self.app.app_context():
self.app.config['SESSION_COOKIE_DOMAIN'] = '127.0.0.1'
self.app.config['SESSION_COOKIE_SECURE'] = True
res = self.client.post(self.expand_path('/login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
cookie_value = self.get_cookie_by_name(res, 'dm_session')
assert cookie_value['dm_session'] is not None
assert cookie_value["Domain"] == "127.0.0.1"
def test_should_redirect_to_login_on_logout(self):
res = self.client.get(self.expand_path('/logout'))
assert res.status_code == 302
assert res.location == 'http://localhost/2/login'
@mock.patch('app.main.views.login.data_api_client')
def test_should_return_a_403_for_invalid_login(self, data_api_client):
data_api_client.authenticate_user.return_value = None
data_api_client.get_user.return_value = None
res = self.client.post(self.expand_path('/login'), data={
'email_address': 'valid@email.com',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
assert self.strip_all_whitespace("Make sure you've entered the right email address and password") \
in self.strip_all_whitespace(res.get_data(as_text=True))
assert res.status_code == 403
def test_should_be_validation_error_if_no_email_or_password(self):
res = self.client.post(self.expand_path('/login'), data={'csrf_token': FakeCsrf.valid_token})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'email_address')
assert has_validation_errors(data, 'password')
def test_should_be_validation_error_if_invalid_email(self):
res = self.client.post(self.expand_path('/login'), data={
'email_address': 'invalid',
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400
assert has_validation_errors(data, 'email_address')
assert not has_validation_errors(data, 'password')
def test_valid_email_formats(self):
cases = [
'good@example.com',
'good-email@example.com',
'good-email+plus@example.com',
'good@subdomain.example.com',
'good@hyphenated-subdomain.example.com',
]
for address in cases:
res = self.client.post(self.expand_path('/login'), data={
'email_address': address,
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 302, address
def test_invalid_email_formats(self):
cases = [
'',
'bad',
'bad@@example.com',
'bad @example.com',
'bad@.com',
'bad.example.com',
'@',
'@example.com',
'bad@',
'bad@example.com,bad2@example.com',
'bad@example.com bad2@example.com',
'bad@example.com,other.example.com',
]
for address in cases:
res = self.client.post(self.expand_path('/login'), data={
'email_address': address,
'password': '1234567890',
'csrf_token': FakeCsrf.valid_token,
})
data = res.get_data(as_text=True)
assert res.status_code == 400, address
assert has_validation_errors(data, 'email_address'), address
class TestLoginFormsNotAutofillable(BaseApplicationTest):
def _forms_and_inputs_not_autofillable(self, url, expected_title):
response = self.client.get(url)
assert response.status_code == 200
document = html.fromstring(response.get_data(as_text=True))
page_title = document.xpath('//h1/text()')[0].strip()
assert expected_title == page_title
forms = document.xpath('//main[@id="content"]//form')
for form in forms:
assert form.get('autocomplete') == "off"
non_hidden_inputs = form.xpath('//input[@type!="hidden"]')
for input in non_hidden_inputs:
if input.get('type') != 'submit':
assert input.get('autocomplete') == "off"
def test_login_form_and_inputs_not_autofillable(self):
self._forms_and_inputs_not_autofillable(
self.expand_path('/login'),
"Sign in to the Marketplace"
)
@pytest.mark.skip
def test_request_password_reset_form_and_inputs_not_autofillable(self):
self._forms_and_inputs_not_autofillable(
self.expand_path('/reset-password'),
"Reset password"
)
@pytest.mark.skip
@mock.patch('app.main.views.login.data_api_client')
def test_reset_password_form_and_inputs_not_autofillable(
self, data_api_client
):
data_api_client.get_user.return_value = self.user(
123, "email@email.com", 1234, 'email', 'name'
)
with self.app.app_context():
token = generate_token(
{
"user": 123,
"email": 'email@email.com',
},
self.app.config['SECRET_KEY'],
self.app.config['RESET_PASSWORD_SALT'])
url = self.expand_path('/reset-password/{}').format(token)
self._forms_and_inputs_not_autofillable(
url,
"Reset password",
)
class TestTermsUpdate(BaseApplicationTest):
payload = {
'csrf_token': FakeCsrf.valid_token,
'accept_terms': 'y',
}
def test_page_load(self):
with self.app.app_context():
self.login_as_buyer()
res = self.client.get(self.url_for('main.terms_updated'))
assert res.status_code == 200
assert 'terms' in res.get_data(as_text=True)
def test_login_required(self):
with self.app.app_context():
# Not logged in
res = self.client.get(self.url_for('main.terms_updated'))
assert res.status_code == 302
@mock.patch('app.main.views.login.terms_of_use')
@mock.patch('app.main.views.login.data_api_client')
def test_submit(self, data_api_client, terms_of_use):
with self.app.app_context():
self.login_as_buyer(user_id=42)
res = self.client.post(self.url_for('main.accept_updated_terms'), data=self.payload)
data_api_client.update_user.assert_called_once_with(42, fields=mock.ANY)
terms_of_use.set_session_flag.assert_called_once_with(False)
assert res.status_code == 302
@mock.patch('app.main.views.login.data_api_client')
def test_submit_requires_login(self, data_api_client):
with self.app.app_context():
# Not logged in
res = self.client.post(self.url_for('main.accept_updated_terms'), data=self.payload)
data_api_client.update_user.assert_not_called()
assert res.status_code == 302
assert res.location.startswith(self.url_for('main.render_login', _external=True))
@mock.patch('app.main.views.login.data_api_client')
def test_submit_without_accepting(self, data_api_client):
with self.app.app_context():
self.login_as_buyer()
data = dict(self.payload)
data.pop('accept_terms')
res = self.client.post(self.url_for('main.accept_updated_terms'), data=data)
data_api_client.update_user.assert_not_called()
assert res.status_code == 400
|
#wx-nav nav{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;width:100%;overflow:hidden;height:50px;padding-top:8px;background:#f9f9f9;font-size:12px}#wx-nav nav dl{cursor:pointer;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none;-webkit-box-flex:1;-ms-flex-positive:1;-webkit-flex-grow:1;flex-grow:1;text-align:center;line-height:1}#wx-nav nav dl.router-link-active dd,#wx-nav nav dl.router-link-active dt{color:#59850b}#wx-nav nav dt{position:relative;width:28px;height:28px;margin:0 auto;font-size:28px;color:#797979;margin-bottom:2px}#wx-nav nav dd{color:#929292;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9)}
|
import external from '../../../externalModules.js';
import getNumberValues from './getNumberValues.js';
import parseImageId from '../parseImageId.js';
import dataSetCacheManager from '../dataSetCacheManager.js';
import getImagePixelModule from './getImagePixelModule.js';
import getOverlayPlaneModule from './getOverlayPlaneModule.js';
import getLUTs from './getLUTs.js';
import getModalityLUTOutputPixelRepresentation from './getModalityLUTOutputPixelRepresentation.js';
function metaDataProvider(type, imageId) {
const { dicomParser } = external;
const parsedImageId = parseImageId(imageId);
const dataSet = dataSetCacheManager.get(parsedImageId.url);
if (!dataSet) {
return;
}
if (type === 'generalSeriesModule') {
return {
modality: dataSet.string('x00080060'),
seriesInstanceUID: dataSet.string('x0020000e'),
seriesNumber: dataSet.intString('x00200011'),
studyInstanceUID: dataSet.string('x0020000d'),
seriesDate: dicomParser.parseDA(dataSet.string('x00080021')),
seriesTime: dicomParser.parseTM(dataSet.string('x00080031') || ''),
};
}
if (type === 'patientStudyModule') {
return {
patientAge: dataSet.intString('x00101010'),
patientSize: dataSet.floatString('x00101020'),
patientWeight: dataSet.floatString('x00101030'),
};
}
if (type === 'imagePlaneModule') {
const imageOrientationPatient = getNumberValues(dataSet, 'x00200037', 6);
const imagePositionPatient = getNumberValues(dataSet, 'x00200032', 3);
const pixelSpacing = getNumberValues(dataSet, 'x00280030', 2);
let columnPixelSpacing = null;
let rowPixelSpacing = null;
if (pixelSpacing) {
rowPixelSpacing = pixelSpacing[0];
columnPixelSpacing = pixelSpacing[1];
}
let rowCosines = null;
let columnCosines = null;
if (imageOrientationPatient) {
rowCosines = [
parseFloat(imageOrientationPatient[0]),
parseFloat(imageOrientationPatient[1]),
parseFloat(imageOrientationPatient[2]),
];
columnCosines = [
parseFloat(imageOrientationPatient[3]),
parseFloat(imageOrientationPatient[4]),
parseFloat(imageOrientationPatient[5]),
];
}
return {
frameOfReferenceUID: dataSet.string('x00200052'),
rows: dataSet.uint16('x00280010'),
columns: dataSet.uint16('x00280011'),
imageOrientationPatient,
rowCosines,
columnCosines,
imagePositionPatient,
sliceThickness: dataSet.floatString('x00180050'),
sliceLocation: dataSet.floatString('x00201041'),
pixelSpacing,
rowPixelSpacing,
columnPixelSpacing,
};
}
if (type === 'imagePixelModule') {
return getImagePixelModule(dataSet);
}
if (type === 'modalityLutModule') {
return {
rescaleIntercept: dataSet.floatString('x00281052'),
rescaleSlope: dataSet.floatString('x00281053'),
rescaleType: dataSet.string('x00281054'),
modalityLUTSequence: getLUTs(
dataSet.uint16('x00280103'),
dataSet.elements.x00283000
),
};
}
if (type === 'voiLutModule') {
const modalityLUTOutputPixelRepresentation = getModalityLUTOutputPixelRepresentation(
dataSet
);
return {
windowCenter: getNumberValues(dataSet, 'x00281050', 1),
windowWidth: getNumberValues(dataSet, 'x00281051', 1),
voiLUTSequence: getLUTs(
modalityLUTOutputPixelRepresentation,
dataSet.elements.x00283010
),
};
}
if (type === 'sopCommonModule') {
return {
sopClassUID: dataSet.string('x00080016'),
sopInstanceUID: dataSet.string('x00080018'),
};
}
if (type === 'petIsotopeModule') {
const radiopharmaceuticalInfo = dataSet.elements.x00540016;
if (radiopharmaceuticalInfo === undefined) {
return;
}
const firstRadiopharmaceuticalInfoDataSet =
radiopharmaceuticalInfo.items[0].dataSet;
return {
radiopharmaceuticalInfo: {
radiopharmaceuticalStartTime: dicomParser.parseTM(
firstRadiopharmaceuticalInfoDataSet.string('x00181072') || ''
),
radionuclideTotalDose: firstRadiopharmaceuticalInfoDataSet.floatString(
'x00181074'
),
radionuclideHalfLife: firstRadiopharmaceuticalInfoDataSet.floatString(
'x00181075'
),
},
};
}
if (type === 'overlayPlaneModule') {
return getOverlayPlaneModule(dataSet);
}
}
export default metaDataProvider;
|
local ffi = require("ffi")
ffi.cdef [[
struct upipe_mgr *upipe_nacl_g2d_mgr_alloc(void);
struct upipe_mgr *upipe_nacl_audio_mgr_alloc(void);
]]
libupipe_nacl = ffi.load("libupipe_nacl.so.0", true)
libupipe_nacl_static = ffi.load("libupipe-nacl.static.so", true)
|
//
// RestaurantCells.h
// Restaurants
//
// Created by Philip Tolton on 2013-10-08.
// Copyright (c) 2013 Philip Tolton. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RestoScrollView.h"
@interface RestaurantCells : UITableViewCell
@property (strong, nonatomic) IBOutlet UILabel *opened_closed;
@property (strong, nonatomic) IBOutlet UILabel *distanceLabel;
@property (nonatomic, strong) IBOutlet UILabel* restaurantLabel;
@property (nonatomic,strong) IBOutlet RestoScrollView* scrollView;
@property IBOutlet *tap;
@property Restaurant *restaurant;
@end
|
<!DOCTYPE html>
<html>
<head>
<title>Missile Command</title>
<script src="cocos2d.js"></script>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
</head>
<body>
<canvas id="GC"></canvas>
</body>
</html> |
\input{../../common/exo_begin.tex}%
%\firstpassagedo{\refstepcounter{cxtd}\refstepcounter{cxtd}}
\input{../python_td_minute/description_cours.tex}
\begin{xtd}{Recherche dichotomique minutée}{dicho_minute_cor}\label{dicho_minute_label}
\partietdVU{variables, opérations, boucles, tests}{recherche dichotomique}
Au cours de cette première séance, le chargé de TD vous fera découvrir les bases du langage \pythons et la façon d'écrire des programmes à l'ENSAE, notamment l'usage de l'éditeur de texte \textit{SciTe} utilisé à l'ENSAE et de ses deux parties d'écran, l'une pour le programme, l'autre pour son exécution.
L'objectif de cette séance est aussi de programme la recherche dichotomique\footnote{\httpstyle{http://fr.wikipedia.org/wiki/Dichotomie}} qui est un algorithme simple mais qu'il est souvent utile de connaître pour comprendre pourquoi certaines façons de faire sont plus efficaces que d'autres.
\partietda{premiers pas}
Pour ce premier TD et cette première demi-heure, l'objectif est de réussir à exécuter le simple programme suivant~:
\begin{verbatimx}
x = 3
y = x + 5
print x
print x,y
# commentaire
\end{verbatimx}
Parvenir à la réalisation de cet objectif nécessite l'ouverture d'un éditeur de texte, l'écriture du programme, la conservation de ce programme sous forme d'un fichier texte, le nom de ce fichier texte devant se terminer par \codes{.py}, l'interprétation de l'instruction \codes{x = 3}, l'interprétation de l'instruction \codes{print}, la correction des erreurs éventuels, l'exécution du programme, l'utilisation de commentaires...
\partietdb{variable, type}
On cherche à jouer avec les différents types de variables et certains opérations qu'on peut faire avec ou non.
\begin{verbatimx}
i = 3 # entier
r = 3.3 # réel
s = "exemple" # chaîne de caractères
c = (4,5) # couple de valeurs (ou tuple)
l = [ 4, 5, 6.5] # listes de valeurs ou tableaux
x = l [0] # obtention du premier élément de la liste l
d = { "un":1, "deux":2 } # dictionnaire de valeurs
y = d ["un"] # obtention de la valeur associée à l'élément "un"
couple = 4, 5 # collage de deux valeurs en un couple ou (tuple)
print type (l) # on affiche le type de la variable l
mat = [ [0,1], [2,3] ] # liste de listes
print mat [0][1] # obtention du second élément de la première liste
n = None # None signifie que la variable existe mais qu'elle ne contient rien
# elle est souvent utilisé pour signifier qu'il n'y a pas de résultat
# car... une erreur s'est produite, une liste était vide...
\end{verbatimx}
Chaque lettre ou groupe de lettres désigne une variable, c'est une lettre qui permet de la manipuler quelque soit le contenu qui lui est affecté. Dans l'exemple précédent, \codes{i} désigne 3 mais~:
\begin{verbatimx}
i = 3
i = i + 5
\end{verbatimx}
La variable \codes{i} va d'abord correspondre à 3 puis 8 car on lui affecte une nouvelle valeur déduite de la première. L'ajout du mot-clé \codes{print} permet de voir le résultat si celui-ci est syntaxiquement correct. Sans celui-ci, le programme peut marcher ou non mais rien n'apparaîtra dans la seconde partie d'écran de \textit{SciTe}.
On cherche maintenant à voir comment se comporte les différents types de variables avec différentes opérations. \codes{x} et \codes{y} désigne des objets de même type.
\begin{verbatimx}
print x + y # addition
print x - y # soustraction
print x / y # division
print x * y # multiplication
print x % y # modulo
print x == y # égalité
print x < y # inférieur
print x <= y # inférieur ou égal
print min (x,y) # minimum
print max (x,y) # maximum
print zip (x,y) # zip ( [4,5], ["a", "b"] ) donne [ (4,"a"), (5,"b") ]
# de deux listes, on passe à une sorte de matrice
print True and False # et logique
print True or False # ou logique
print (5 < 4) or (5 > 4) # condition
\end{verbatimx}
Ou encore de manipuler des variables~:
\begin{verbatimx}
print -x # opposé
print len ( [ 4,5] ) # obtention du nombre d'éléments d'une liste
print not False # négation
\end{verbatimx}
Les opérations marchent aussi parfois lorsque \codes{x} et \codes{y} ne sont pas de même nature, de type différent~:
\begin{verbatimx}
print [ 3,4 ] * 5
print "azerty" * 4
print 4 * "azerty"
print [ 3,4 ] + (3,4)
\end{verbatimx}
\tdquest Le tableau suivant reprend tous les types standards du langage \python. Pourriez-vous remplir les deux cases correspondant à une opération entre les types \codes{int} et \codes{tuple} dans cet ordre puis dans l'autre. Est-ce la même liste~?
\begin{center}\begin{tabular}{|l|l|l|l|l|l|l|l|l|} \hline
& None & bool & int & float & str & tuple & list & dict \\ \hline
None & == &&&&&&&\\ \hline
bool & == & and or &&&&&&\\ \hline
int & & & \begin{minipage}{2cm}\begin{footnotesize}+ - * / min max \% == < <= \end{footnotesize}\end{minipage} & \begin{minipage}{2cm}\begin{footnotesize}+ - * / min max \% == < <= \end{footnotesize}\end{minipage} && &&\\ \hline
float & &&&&&&&\\ \hline
str & & & * &&&&&\\ \hline
tuple & &&&&&&&\\ \hline
list & &&&&&&&\\ \hline
dict & &&&&&&&\\ \hline
\end{tabular}\end{center}
\tdquest Le langage \pythons propose des conversions d'un type à un autre. Ainsi, il est possible de convertir un nombre en une chaîne de caractères. Quelques sont les lignes parmi les suivantes qui n'ont pas de sens selon le langage \python~:
\begin{verbatimx}
print int (3.4)
print list ( (4,5) )
print tuple ( [ 4,5] )
print dict ( [4,5] )
print str ( { "un":1, "deux":2 } )
\end{verbatimx}
\tdquest
Une chaîne de caractères (\codes{str}) contient toujours du texte. Par exemple, si on veut afficher le message, quelle sont les lignes valides parmi les suivantes~:
\begin{verbatimx}
x = 1.2
y = 1.2 * 6.55
print "Le prix de la baguette est ", x, "francs."
print "Le prix de la baguette est " + x + "francs."
print "Le prix de la baguette est " + str(x) + "francs."
\end{verbatimx}
A chaque fois qu'on affiche un résultat numérique, il est implicitement converti en chaîne de caractères.
\tdquest Que vaut l'expression \codes{ (0,1) <= (0, 2) }~? Une idée de comment ce résultat est construit~?
\partietdc{boucles}
Le tri d'un tableau est une fonctionnalité indispensable et présente dans tous les langages de programmation. En \python, on écrira pour une liste~:
\begin{verbatimx}
l = [ 4, 6, 3, 4, 2, 9] # n'importe quelle liste au hasard
l.sort ()
print l # le programme affiche la liste triée
\end{verbatimx}
\tdquest En utilisant la documentation \pythons ou Internet ou un moteur de recherche, trouver comment classer des éléments en sens décroissant. L'instruction \codes{help} dans le programme lui-même retourne l'aide associée à ce qu'il y a entre parenthèses comme \codes{help(l.sort)}. Toute requête sur un moteur de recherche de type \textit{python <élement recherché>} retourne souvent des résultats pertinents.
\tdquest Le programme suivant affiche tous les éléments du tableau un par un grâce à une boucle \codes{for}~:
\begin{verbatimx}
for i in xrange (0, len (l)) :
print l [i]
\end{verbatimx}
Il utilise une boucle pour parcourir le tableau du début à la fin. Utilisez l'aide concernant la fonction\footnote{Une fonction est différente d'une variable, on la reconnaît grâce aux parenthèses qui suivent un nom. \codesnote{min}, \codesnote{max}, \codesnote{len}, \codesnote{xrange} sont des fonctions. Entre parenthèses, on trouve les variables dont la fonction a besoin pour fonctionner. Chaque fonction effectue des traitements simples ou complexes mais surtout qu'on souhaite répéter plusieurs fois simplement.} \codes{xrange} pour parcourir le tableau en sens inverse.
\tdquest On souhaite écrire un petit programme qui vérifie que le tableau est trié. Il suffit de compléter le programme suivant~:
\begin{verbatimx}
resultat = ...
for i in xrange (0, ...) :
if ... > ... :
resultat = False
break
print "le tableau est-il trié : ", resultat
\end{verbatimx}
\tdquest Il existe une autre boucle \codes{while}. Complétez le programe suivant pour obtenir la même chose qu'à la question précédente~:
\begin{verbatimx}
resultat = ...
i = ...
while i < ...
if ... > ... :
resultat = False
break
print "le tableau est-il trié : ", resultat
\end{verbatimx}
\partietdd{recherche dichotomique}
La recherche dichotomique\footnote{\httpstyle{http://fr.wikipedia.org/wiki/Dichotomie}} consiste à chercher un élément \codes{e} dans un tableau trié \codes{l}. On cherche sa position~:
\begin{itemize}
\item On commence par comparer \codes{e} à l'élément placé au milieu du tableau d'indice \codes{m}, s'ils sont égaux, on a trouvé,
\item s'il est inférieur, on sait qu'il se trouve entre les indices 0 et \codes{m-1},
\item s'il est supérieur, on sait qu'il se trouve entre les indices \codes{m+1} et la fin du tableau.
\end{itemize}
Avec une comparaison, on a déjà éliminé une moitié de tableau dans laquelle on sait que \codes{p} ne se trouve pas. On applique le même raisonnement à l'autre moitié pour réduire la partie du tableau dans laquelle on doit chercher.
\tdquest
Il ne reste plus qu'à écrire le programme qui effectue cette recherche. On cherche à déterminer la position de l'élément~\codes{e} dans la liste~\codes{l}. On utilise les indications suivantes~:
\begin{itemize}
\item il y a une boucle, de préférence \codes{while}
\item il y a deux tests
\item la liste des variables pourrait être \codes{e}, \codes{l}, \codes{a}, \codes{b}, \codes{m}
\end{itemize}
\tdquest Que se passe-t-il lorsqu'on cherche un élément qui ne se trouve pas dans le tableau~?
\partietdEND
\tdquest Si deux joueurs de tennis ont autant de chance l'un que l'autre de gagner un point, combien de points a en moyenne le vainqueur d'un tie-break~? Ecrire un programme qui permette de répondre à la question. Le module \codes{random} permet de générer des nombres aléatoires.
\tdquest Que se passe-t-il si chaque joueur a 75\% de chance de gagner un point sur son service~?
\end{xtd}
\input{../../common/exo_end.tex}%
|
// Template Source: BaseEntityCollectionResponse.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.termstore.requests;
import com.microsoft.graph.termstore.models.Store;
import com.microsoft.graph.http.BaseCollectionResponse;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Store Collection Response.
*/
public class StoreCollectionResponse extends BaseCollectionResponse<Store> {
}
|
//
// LMMessageAdapter.h
// Connect
//
// Created by MoHuilin on 2017/5/16.
// Copyright © 2017年 Connect. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Protofile.pbobjc.h"
#import "MMMessage.h"
@interface LMMessageAdapter : NSObject
/**
* Encapsulates the data body of the im message
* @param message
* @param talkType
* @param ecdhKey
* @return
*/
+ (GPBMessage *)sendAdapterIMPostWithMessage:(MMMessage *)message talkType:(GJGCChatFriendTalkType)talkType ecdhKey:(NSString *)ecdhKey;
/**
* Encapsulates the data body of the message read ack message
* @param message
* @return
*/
+ (MessagePost *)sendAdapterIMReadAckPostWithMessage:(MMMessage *)message;
@end
|
<?php
namespace NRtworks\BusinessDimensionBundle\Model;
use Doctrine\ORM\EntityManager;
use NRtworks\GlobalUtilsFunctionsBundle\Services\arrayFunctions;
use NRtworks\GlobalUtilsFunctionsBundle\Services\APIGetData;
class setUpForDimension extends \Symfony\Component\DependencyInjection\ContainerAware{
protected $em;
protected $arrayFunctions;
protected $possible;
protected $remotePossible;
protected $noexist;
protected $API;
public function __construct(EntityManager $em, arrayFunctions $arrayFunctions, APIGetData $API)
{
$this->em = $em;
$this->arrayFunctions = $arrayFunctions;
$this->API = $API;
$this->possible = array("ChartOfAccounts","Account","BusinessUnit","FiscalYear","Period","Version","Cycle","Currency","CurrencyValuation","Campaign");
$this->remotePossible = array("ChartOfAccounts","Account","BusinessUnit","FiscalYear","Period","Version","Cycle","Currency","Campaign","icousers","Usertype");
$this->noexist = "Unauthorized dimension";
}
// the following function returns the address used to create the object of a related $dimension
public function getAddress($dimension){
if(in_array($dimension,$this->possible))
{
$base = "\NRtworks\BusinessDimensionBundle\Entity\\";
$result = $base . $dimension;
return $result;
}
else
{;
return $this->noexist;
}
}
// the following function returns the address used to get the repository of a related $dimension
public function getRepositoryAddress($dimension){
if(in_array($dimension,$this->possible))
{
$base = "NRtworksBusinessDimensionBundle:";
$result = $base . $dimension;
return $result;
}
else
{
return $this->noexist;
}
}
//the following function returns an object of the entity related to the dimension
public function getObject($dimension)
{
$address = $this->getAddress($dimension);
$element = new $address();
return $element;
}
//the following functions returns an array with parameters of the field to edit (name,editable,type of edit)
public function getDefaultObject($dimension,$highestID = null)
{
$address = $this->getAddress($dimension);
$element = new $address($highestID);
$result = $element->getDefaultObject();
return $result;
}
//the following function returns an object of the given dimension
public function getDefaultTrueObject($dimension,$highestID = null, $number = null)
{
$address = $this->getAddress($dimension);
if($highestID != null && $number != null)
{
$element = new $address($highestID,$number);
}
elseif($highestID != null)
{
$element = new $address($highestID);
}
else
{
$element = new $address();
}
return $element;
}
//the following functions returns an array with parameters of the field to edit (name,editable,type of edit)
public function getFieldsNameToEdit($dimension)
{
$address = $this->getAddress($dimension);
$element = new $address();
$result = $element->fieldsToEditinTreeEdit();
return $result;
}
//the following functions gives the "mandatory" selector for a dimension
public function getBasicDiscriminant($dimension)
{
if(in_array($dimension,$this->possible) || in_array($dimension,$this->remotePossible))
{
$discrim = [];
if($dimension == "Account")
{
$discrim["toSelect"] = ["ChartOfAccount"];
$discrim["howToSelect"] = "UserSelection";
}
elseif($dimension == "CurrencyValuation")
{
$discrim["toSelect"] = ["Campaign"];
$discrim["howToSelect"] = "UserSelection";
}
elseif($dimension == "Cycle" || $dimension == "Version" || $dimension == "Period" || $dimension == "FiscalYear" || $dimension == "Currency")
{
$discrim["toSelect"] = "none";
}
else
{
$discrim["toSelect"]= ["customer"];
}
return $discrim;
}
else
{
return $this->noexist;
}
}
//the following function is building an array for a "select" element to be passed to the front
public function buildSelectElements($dimension,$fieldParameters,$param1)
{
foreach($fieldParameters as &$field)
{
if($field["toDo"] == "edit" && $field["editType"] == "select")
{
//if we are here it means the field is to be edited and is a select, so let's check the options
if(isset($field["options"]["remote"]) && $field["options"]["remote"] != "no")
{
$remoteDimension = $field["options"]["remote"];
//here means that the field is remote so we need to request the data given some parameters
if(in_array($remoteDimension,$this->remotePossible))
{
if($remoteDimension == "Account")
{
$whereArray["chartofaccount"] = 1;
}
elseif($remoteDimension == "Cycle" || $remoteDimension == "Version" || $remoteDimension == "Period" || $remoteDimension == "FiscalYear" || $remoteDimension == "Currency")
{
// no need for generic selector here
}
else
{
$whereArray["customer"] = $param1;
}
if(is_array($field["options"]["fieldFilter"]))
{
foreach($field["options"]["fieldFilter"] as $key=>$value)
{
$whereArray[$key] = $value;
}
}
//\Doctrine\Common\Util\Debug::dump($whereArray);
if(isset($whereArray))
{
$elementList = $this->API->requestQuery($this->API->whichBundle($remoteDimension),$remoteDimension,$whereArray);
}
else
{
$elementList = $this->API->requestAll($this->API->whichBundle($remoteDimension),$remoteDimension);
}
unset($whereArray);
//\Doctrine\Common\Util\Debug::dump($elementList);
$elementsAsArray = $this->arrayFunctions->rebuildObjectsAsArrays($elementList);
//\Doctrine\Common\Util\Debug::dump($elementsAsArray);
//ok we got all we need so let's build the array used to build the HTML select element
$arrayHTML = [];
foreach($elementsAsArray as $element)
{
$subarray = array("value"=>$element[$field["options"]["selectFields"][0]],"text"=>$element[$field["options"]["selectFields"][1]]);
array_push($arrayHTML,$subarray);
}
$field["options"] = $arrayHTML;
}
else
{
return $this->noexist;
}
}
else
{
//here means that the field must have a "local" parameter, set up below
switch($dimension)
{
case "Campaign":
if($field["fieldName"] == "fiscalYear")
{
$field["options"] = $this->getFiscalYearList("selectArray");
}
elseif($field["fieldName"] == "version")
{
$field["options"] = $this->getVersionList("selectArray");
}
elseif($field["fieldName"] == "status")
{
$field["options"] = array(0=>["value"=>"not started","text"=>"not started"],1=>["value"=>"in progress","text"=>"in progress"],2=>["value"=>"closed","text"=>"closed"]);
}
else
{
$field["options"] = array("value"=>"throwError","text"=>"an error has occured");
}
break;
case "Account":
if($field["fieldName"] == "sense")
{
$field["options"] = array(0=>array("value"=>"DR","text"=>"Debit"),1=>array("value"=>"CR","text"=>"Credit"));
}
else
{
$field["options"] = array("value"=>"throwError","text"=>"an error has occured");
}
break;
case "BusinessUnit":
if($field["fieldName"] == "country")
{
$field["options"] = array(0=>array("value"=>"FR","text"=>"France"));
}
else
{
$field["options"] = array("value"=>"throwError","text"=>"an error has occured");
}
break;
default:
$field["options"] = array("value"=>"throwError","text"=>"an error has occured");
break;
}
}
}
}
return $fieldParameters;
}
//the following function returns a list of the fiscal years, however you want it
public function getFiscalYearList($how)
{
switch($how)
{
case "simpleArray":
return array(2012,2013,2014,2015,2016,2017,2018,2019,2020);
break;
case "associativeArray":
return array(2012=>2012,2013=>2013,2014=>2014,2015=>2015,2016=>2016,2017=>2017,2018=>2018,2019=>2019,2020=>2020);
break;
case "selectArray":
$result = [];
$i = 0;
foreach($this->getFiscalYearList("simpleArray") as $year)
{
$result[$i] = array("value"=>$year,"text"=>$year);
$i++;
}
return $result;
break;
default:
return "unknown case";
break;
}
}
//the following function returns a list of the versions, however you want it
public function getVersionList($how)
{
switch($how)
{
case "simpleArray":
return array(1,2,3,4,5);
break;
case "associativeArray":
return array(1=>1,2=>2,3=>3,4=>4,5=>5);
break;
case "selectArray":
$result = [];
$i = 0;
foreach($this->getVersionList("simpleArray") as $version)
{
$result[$i] = array("value"=>$version,"text"=>$version);
$i++;
}
return $result;
break;
default:
return "unknown case";
break;
}
}
//the following function returns a list of elements from an entity given some conditions
public function getFlatList($dimension,$customer = 0,$chartOfAccounts = 0)
{
$address = $this->getRepositoryAddress($dimension);
$repo = $this->em->getRepository($address);
if(in_array($dimension,$this->possible))
{
if($dimension == "Account")
{
return $allaccounts = $repo->findByChartofaccount(1);
}
elseif($dimension == "BusinessUnit")
{
return $allaccounts = $repo->findByCustomer($customer);
}
}
else
{
return $this->noexist;
}
}
//the following function creates a new object with values passed to the function
public function createAnObject($customer,$dimension,$element,$parent = null)
{
if(in_array($dimension,$this->possible))
{
if($dimension == "Account")
{
$newObject = $this->getObject($dimension);
$newObject->fillWithArray($element);
$newObject->setChartOfAccount($parent->getChartOfAccount());
$newObject->setParent($parent);
return $newObject;
}
if($dimension == "BusinessUnit")
{
$newObject = $this->getObject($dimension);
$newObject->setParent($parent);
$newObject->setCustomer($customer);
$newObject->setName($element["name"]);
$newObject->setCode($element["code"]);
$newObject->setCountry($element["country"]);
$newObject->setManager($this->API->requestById($this->API->whichBundle("icousers"),"icousers",$element["manager"]));
$newObject->setSubstitute($this->API->requestById($this->API->whichBundle("icousers"),"icousers",$element["substitute"]));
$newObject->setController($this->API->requestById($this->API->whichBundle("icousers"),"icousers",$element["controller"]));
$newObject->setBusinessCurrency($this->API->requestById($this->API->whichBundle("Currency"),"Currency",$element["businessCurrency"]));
return $newObject;
}
if($dimension == "ChartOfAccounts")
{
$address = $this->getAddress($dimension);
$newObject = new $address();
$newObject->setCustomer($customer);
$newObject->setName($element[1]);
$newObject->setDescription($element[2]);
return $newObject;
}
if($dimension == "Campaign")
{
$address = $this->getAddress($dimension);
$newObject = new $address();
$newObject->setCustomer($customer);
$newObject->setNumber($element[1]);
$newObject->setName($element[2]);
$newObject->setStatus($element[3]);
$newObject->setFiscalYear($element[4]);
$newObject->setVersion($element[5]);
$newObject->setCycle($this->API->requestById($this->API->whichBundle("Cycle"),"Cycle",$element[6]));
$newObject->setPeriod($this->API->requestById($this->API->whichBundle("Period"),"Period",$element[7]));
return $newObject;
}
}
else
{
return $this->noexist;
}
}
//the following function updates an object with values passed to the function
public function updateAnObject($object,$element,$dimension)
{
if(in_array($dimension,$this->possible))
{
if($dimension == "Account")
{
$object->setName($element["name"]);
$object->setCode($element["code"]);
$object->setSense($element["sense"]);
return $object;
}
if($dimension == "ChartOfAccounts")
{
$object->setName($element[1]);
$object->setDescription($element[2]);
return $object;
}
if($dimension == "Campaign")
{
$object->setNumber($element[1]);
$object->setName($element[2]);
$object->setStatus($element[3]);
$object->setFiscalYear($element[4]);
$object->setVersion($element[5]);
$object->setCycle($this->API->requestById($this->API->whichBundle("Cycle"),"Cycle",$element[6]));
$object->setPeriod($this->API->requestById($this->API->whichBundle("Period"),"Period",$element[7]));
return $object;
}
if($dimension == "BusinessUnit")
{
$object->setName($element["name"]);
$object->setCode($element["code"]);
$object->setCountry($element["country"]);
$object->setManager($this->API->requestById($this->API->whichBundle("icousers"),"icousers",$element["manager"]));
$object->setSubstitute($this->API->requestById($this->API->whichBundle("icousers"),"icousers",$element["substitute"]));
$object->setController($this->API->requestById($this->API->whichBundle("icousers"),"icousers",$element["controller"]));
$object->setBusinessCurrency($this->API->requestById($this->API->whichBundle("Currency"),"Currency",$element["businessCurrency"]));
return $object;
}
}
else
{
return $this->noexist;
}
}
//the following function is the model that saves data modified by the user in flat view
public function saveResultsFromFlatView($result,$elementList,$dimension,$nbFields,$customer)
{
$failedLines = [];
$updatedLines = [];
foreach($result as $element)
{
//var_dump($element);
if(isset($element[$nbFields]) && $element[$nbFields] == "NRtworks_FlatView_T0Cr3at3")
{
//a new element
try
{
$newElement = $this->createAnObject($customer,$dimension,$element);
$this->em->persist($newElement);
array_push($updatedLines,$element);
}
catch(Exception $e)
{
array_push($failedLines,$element);
}
}
elseif(isset($element[$nbFields+1]) && $element[$nbFields+1] == "NRtworks_FlatView_ToD3l3t3")
{
//to delete
try
{
$object = $elementList[$this->arrayFunctions->findIndexOfAPropertyByIdInArrayOfObject($elementList,$element[0])];
$this->em->remove($object);
array_push($updatedLines,$element);
}
catch (Exception $e)
{
array_push($failedLines,$element);
}
}
else
{
// element modified or not
try
{
$object = $elementList[$this->arrayFunctions->findIndexOfAPropertyByIdInArrayOfObject($elementList,$element[0])];
$updatedObject = $this->updateAnObject($object,$element,$dimension);
//\Doctrine\Common\Util\Debug::dump($updatedObject);
if($object != $updatedObject)
{
$this->em->merge($updatedObject);
array_push($updatedLines,$element);
}
}
catch (Exception $e)
{
array_push($failedLines,$element);
}
}
}
$this->em->flush();
$result = array(0=>$failedLines,1=>$updatedLines);
return $result;
}
}
?>
|
<!DOCTYPE html>
<html lang="en">
<head>
<!-- start: Meta -->
<meta charset="utf-8" />
<title>Better.com</title>
<meta name="description" content="Better.com" />
<meta name="keywords" content="Better.com" />
<meta name="author" content="" />
<!-- end: Meta -->
<!-- start: Mobile Specific -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!-- end: Mobile Specific -->
<!-- start: Facebook Open Graph -->
<meta property="og:title" content="" />
<meta property="og:description" content="" />
<meta property="og:type" content="" />
<meta property="og:url" content="" />
<meta property="og:image" content="" />
<!-- end: Facebook Open Graph -->
<!-- start: CSS -->
<link href="css/bootstrap/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/layerslider.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9 ]>
<link href="css/styleIE.css" rel="stylesheet">
<![endif]-->
<!--[if IE 9 ]>
<link href="css/styleIE9.css" rel="stylesheet">
<![endif]-->
<!-- end: CSS -->
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<!--start: Header -->
<header>
<!--start: Container -->
<div class="container">
<!--start: Navigation -->
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.html">Better.com</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="index.html">首页</a></li>
<li><a href="album.html">相册</a></li>
<li><a href="diaries.html">日志</a></li>
<li><a href="wiki.html">Wiki</a></li>
</ul>
</div>
<div class="nav pull-right">
<ul class="nav">
<li><a href="login.html">登陆</a></li>
<li><a href="register.html">注册</a></li>
</ul>
</div>
</div>
</div>
<!--end: Navigation -->
</div>
<!--end: Container-->
</header>
<!--end: Header-->
<!--start: Container -->
<div class="container">
<!-- start: Page Title -->
<div class="row-fluid">
<div id="page-title" class="span4 offset4">
<h2>找回密码</h2>
</div>
</div>
<!-- end: Page Title -->
<!--start: Wrapper-->
<div class="row-fluid">
<div id="wrapper" class="full lr-page span4 offset4">
<!-- start: Row -->
<div class="row-fluid">
<div id="login-form" class="span12">
<div class="page-title-small">
<h3>找回密码</h3>
</div>
<h4>无效的用户名或邮箱</h4>
<h4><a href="">重新操作</a></h4>
</div>
</div>
<!-- end: Row -->
</div>
<!-- end: Wrapper -->
</div>
<!-- end: Container -->
<!-- start: Under Footer -->
<div id="under-footer" class="navbar-fixed-bottom">
<!-- start: Container -->
<div class="container">
<!-- start: Row -->
<div class="row-fluid">
<!-- start: Under Footer Logo -->
<div class="span2">
<div id="under-footer-logo">
<a class="brand" href="/index.html">Better.com</a>
</div>
</div>
<!-- end: Under Footer Logo -->
<!-- start: Under Footer Copyright -->
<div class="span9">
<div id="under-footer-copyright">
© 2013, <a href="http://clabs.co">creativeLabs</a>. Designed by <a href="http://clabs.co">creativeLabs</a> in Poland <img src="img/poland.png" alt="Poland" style="margin-top:-4px" />
</div>
</div>
<!-- end: Under Footer Copyright -->
<!-- start: Under Footer Back To Top -->
<div class="span1">
<div id="under-footer-back-to-top">
<a href="#"></a>
</div>
</div>
<!-- end: Under Footer Back To Top -->
</div>
<!-- end: Row -->
</div>
<!-- end: Container -->
</div>
<!-- end: Under Footer -->
<!-- start: Java Script -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery/jquery-1.8.2.js"></script>
<script src="js/bootstrap/bootstrap.js"></script>
<!-- end: Java Script -->
</body>
</html> |
import Tablesaw from '../../dist/tablesaw';
console.log( "this should be the tablesaw object: ", Tablesaw );
|
# Package tockloader.jlinkexe Documentation
Interface for boards using Segger's JLinkExe program.
All communication with the board is done using JLinkExe commands and scripts.
Different MCUs require different command line arguments so that the JLinkExe
tool knows which JTAG interface it is talking to. Since we don't want to burden
the user with specifying the board each time, we default to using a generic
cortex-m0 target, and use that to read the bootloader attributes to get the
correct version. Once we know more about the board we are talking to we use the
correct command line argument for future communication.
## Class JLinkExe
Base class for interacting with hardware boards. All of the class functions
should be overridden to support a new method of interacting with a board.
### \_\_init\_\_
```py
def __init__(self, args)
```
Initialize self. See help(type(self)) for accurate signature.
### attached\_board\_exists
```py
def attached_board_exists(self)
```
For this particular board communication channel, check if there appears
to be a valid board attached to the host that tockloader can communicate
with.
### bootloader\_is\_present
```py
def bootloader_is_present(self)
```
Check for the Tock bootloader. Returns `True` if it is present, `False`
if not, and `None` if unsure.
### determine\_current\_board
```py
def determine_current_board(self)
```
Figure out which board we are connected to. Most likely done by reading
the attributes. Doesn't return anything.
### enter\_bootloader\_mode
```py
def enter_bootloader_mode(self)
```
Get to a mode where we can read & write flash.
### erase\_page
```py
def erase_page(self, address)
```
Erase a specific page of internal flash.
### exit\_bootloader\_mode
```py
def exit_bootloader_mode(self)
```
Get out of bootloader mode and go back to running main code.
### flash\_binary
```py
def flash_binary(self, address, binary)
```
Write using JTAG
### get\_all\_attributes
```py
def get_all_attributes(self)
```
Get all attributes on a board. Returns an array of attribute dicts.
### get\_apps\_start\_address
```py
def get_apps_start_address(self)
```
Return the address in flash where applications start on this platform.
This might be set on the board itself, in the command line arguments
to Tockloader, or just be the default.
### get\_attribute
```py
def get_attribute(self, index)
```
Get a single attribute. Returns a dict with two keys: `key` and `value`.
### get\_board\_arch
```py
def get_board_arch(self)
```
Return the architecture of the board we are connected to.
### get\_board\_name
```py
def get_board_name(self)
```
Return the name of the board we are connected to.
### get\_bootloader\_version
```py
def get_bootloader_version(self)
```
Return the version string of the bootloader. Should return a value
like `0.5.0`, or `None` if it is unknown.
### get\_kernel\_version
```py
def get_kernel_version(self)
```
Return the kernel ABI version installed on the board. If the version
cannot be determined, return `None`.
### get\_page\_size
```py
def get_page_size(self)
```
Return the size of the page in bytes for the connected board.
### open\_link\_to\_board
```py
def open_link_to_board(self)
```
Open a connection to the board.
### print\_known\_boards
```py
def print_known_boards(self)
```
Display the boards that have settings configured in tockloader.
### read\_range
```py
def read_range(self, address, length)
```
Read a specific range of flash.
If this fails for some reason this should return an empty binary array.
### run\_terminal
```py
def run_terminal(self)
```
Use JLinkRTTClient to listen for RTT messages.
### set\_attribute
```py
def set_attribute(self, index, raw)
```
Set a single attribute.
### set\_start\_address
```py
def set_start_address(self, address)
```
Set the address the bootloader jumps to to start the actual code.
### \_configure\_from\_known\_boards
```py
def _configure_from_known_boards(self)
```
If we know the name of the board we are interfacing with, this function
tries to use the `KNOWN_BOARDS` array to populate other needed settings
if they have not already been set from other methods.
This can be used in multiple locations. First, it is used when
tockloader first starts because if a user passes in the `--board`
argument then we know the board and can try to pull in settings from
KNOWN_BOARDS. Ideally, however, the user doesn't have to pass in any
arguments, but then we won't know what board until after we have had a
chance to read its attributes. The board at least needs the "board"
attribute to be set, and then we can use KNOWN_BOARDS to fill in the
rest.
### \_decode\_attribute
```py
def _decode_attribute(self, raw)
```
### \_get\_tockloader\_board\_from\_emulators
```py
def _get_tockloader_board_from_emulators(self, emulators)
```
Returns None or a board name if we can parse the emulators list
and find a valid board.
### \_list\_emulators
```py
def _list_emulators(self)
```
Retrieve a list of JLink compatible devices.
### \_run\_jtag\_commands
```py
def _run_jtag_commands(self, commands, binary, write=True)
```
- `commands`: List of JLinkExe commands. Use {binary} for where the name
of the binary file should be substituted.
- `binary`: A bytes() object that will be used to write to the board.
- `write`: Set to true if the command writes binaries to the board. Set
to false if the command will read bits from the board.
|
---
layout: post
title: Kotlin and Spark
category: 'java'
---
## 1.Kotlin
Kotlin is a new programming language from Jetbrains, the makers of some of the best programming tools in the business, including Intellij IDEA, an IDE for Java and other languages. As a leader in the Java community, Jetbrains understands the pains of Java and the many benefits of the JVM. Not wanting to throw the baby out with the bathwater, Jetbrains designed Kotlin to run on the JVM to get the best out of that platform.
They didn’t constrain it to this runtime, however — developers can also compile their Kotlin code into JavaScript, allowing it to be used in environments like Node.js. To work with untyped and typed environments like these, Kotlin is statically typed by default, but allows developers to define dynamic types as well. This balance provides great power and many opportunities.
## 2.Why Kotlin?
Mike Hearn does a spectacular job explaining why you should consider using Kotlin. In his article, he lists the following reasons:
+ Kotlin compiles to JVM bytecode and JavaScript
+ Kotlin comes from industry, not academia
+ Kotlin is open source and costs nothing to adopt
+ Kotlin programs can use existing Java or JavaScript frameworks
+ The learning curve is very low
+ Kotlin doesn’t require any particular style of programming (OO or functional)
+ Kotlin can be used in Android development in addition to others where Java and JavaScript work
+ There is already excellent IDE support (Intellij and Eclipse)
+ Kotlin is highly suitable for enterprise Java shops
+ It has the strong commercial support of an established software company
## 3.the API’s entry point
fun main(args: Array<String>) = api(composer = ContainerComposer())
{
route(
path("/login", to = LoginController::class, renderWith = "login.vm"),
path("/authorize", to = AuthorizeController::class, renderWith = "authorize.vm"),
path("/token", to = TokenController::class))
}
Run it:
<img src="/images/kotlin.png">
When this main method is executed, Spark will fire up a Web server, and you can immediately hit it like this:
http://localhost:4567/login
We get in browser:
<image src="/images/kotlin2.png">
## 4.Functions and Constructors
To create our Domain Specific Language (DSL) for hosting APIs, we’re using several of Kotlin’s syntactic novelties and language features. Firstly:
+ Constructors: In Kotlin, you do not use the new keyword to instantiate objects; instead, you use the class name together with parenthesis, as if you were invoking the class as a function (a la Python). In the above snippet, a new ContainerComposer object is being created by invoking its default constructor.
+ Functions: Functions, which begin with the fun keyword, can be defined in a class or outside of one (like we did above). This syntax means that we can write Object Oriented (OO) code or not. This will give you more options and potentially remove lots of boilerplate classes.
+ Single expression functions: The fluent API allows us to wire up all our routes in a single expression. When a function consists of a single expression like this, we can drop the curly braces and specify the body of our function after an equals symbol.
+ Omitting the return type: When a function does not return a value (i.e., when it’s “void”), the return type is Unit. In Kotlin, you do not have to specify this; it’s implied.
### resources:
+ [https://kotlinlang.org](https://kotlinlang.org/)
+ [http://sparkjava.com](http://sparkjava.com)
+ http://nordicapis.com/building-apis-on-the-jvm-using-kotlin-and-spark-part-1/ |
/**
* Copyright (C) 2017 Cristian Gomez Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package co.iyubinest.bonzai;
import android.app.Application;
import android.support.annotation.VisibleForTesting;
import com.facebook.stetho.Stetho;
public class App extends Application {
private AppComponent component;
@Override
public void onCreate() {
super.onCreate();
Stetho.initializeWithDefaults(this);
component = DaggerAppComponent.builder().appModule(new AppModule(this)).build();
}
public AppComponent component() {
return component;
}
@VisibleForTesting
public void setComponent(AppComponent component) {
this.component = component;
}
}
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
namespace XForms.Utils.Samples.UWP
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
sealed partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
}
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
}
#endif
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
Xamarin.Forms.Forms.Init(e);
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainPage), e.Arguments);
}
// Ensure the current window is active
Window.Current.Activate();
}
/// <summary>
/// Invoked when Navigation to a certain page fails
/// </summary>
/// <param name="sender">The Frame which failed navigation</param>
/// <param name="e">Details about the navigation failure</param>
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Save application state and stop any background activity
deferral.Complete();
}
}
}
|
#! /usr/bin/env python3
import asyncio
import subprocess
import numpy as np
import time
comm = None
class Camera:
def __init__(self, notify):
self._process = None
self._now_pos = np.array([0., 0., 0.])
self._running = False
self._notify = notify
@asyncio.coroutine
def connect(self):
self._process = yield from asyncio.create_subprocess_exec(
'python2', 'camera.py',
stdin=asyncio.subprocess.PIPE,
stdout=asyncio.subprocess.PIPE
)
self._running = True
@asyncio.coroutine
def run(self):
while self._running:
data = yield from self._process.stdout.readline()
print(data)
self._now_pos = np.array(list(map(float, data.split())))
yield from self._notify(time.time(), self._now_pos)
def stop(self):
self._running = False
self._process.terminate()
|
<?php
include_once 'vendor/swiftmailer/swiftmailer/lib/swift_required.php';
require_once 'lib/includes/utilities.inc.php';
include 'lib/functions/functions.inc.php';
$submit = filter_input(INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
if (isset($submit) && $submit === 'enter') {
$result = login($pdo);
header('Location: addTrivia.php');
exit();
}
?>
<!DOCTYPE html>
<!--
Trivia Game Version 3.0 beta with XML;
by John Pepp
Started: January 31, 2017
Revised: February 27, 2017
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<title>Login</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" href="lib/css/stylesheet.css">
<link rel="stylesheet" href="lib/css/register_stylesheet.css">
</head>
<body>
<div id="shadow">
<div class="textBox">
<h2>Data Successfully Saved!</h2>
</div>
</div>
<div id="container" >
<div id="heading">
<h1>Trivia<span id="toxic">IntoXication</span></h1>
<h2 id="subheading">Don't Drive Drunk! Play this Game Instead!</h2>
</div>
<nav class="nav-bar">
<ul class="topnav" id="myTopnav">
<li><a class="top-link" href="#" > </a></li>
<li><a href="index.php">Home</a></li>
<?php
if (isset($_SESSION['user']->id) && ( $_SESSION['user']->security === 'member' || $_SESSION['user']->security === 'admin' )) {
echo '<li><a href="addTrivia.php">Add Trivia</a></li>';
}
?>
<li><a href="register.php">Register</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li class="icon">
<a href='#'>☰</a>
</li>
</ul>
</nav>
<div class="mainContent">
<form id="login" action="login.php" method="post">
<fieldset>
<legend>Login Form</legend>
<input type="hidden" name="action" value="enter">
<label for="email">Email</label>
<input id="email" type="email" name="email" value="" tabindex="1" autofocus>
<label for="password">Password</label>
<input id="password" type="password" name="password" tabindex="2">
<input type="submit" name="submit" value="enter" tabindex="3">
</fieldset>
</form>
</div>
</div>
<div id="myFooter">
<p class="footer-text">©<?php echo date("Y"); ?> John R. Pepp <span>Dedicated to my mom 11-29-1928 / 02-26-2017</span></p>
</div>
</body>
</html>
|
---
layout: page
title: 404
permalink: /404.html
---
<section class="container full-width" role="main">
<div id="content" class="header-section font star-avenue">
<div style="font-family: 'Dosis'; font-size: 100px; line-height: 1;">404</div>
</div>
<div id="content" class="full-width font star-avenue">
<p class="text-center">What? There's nothing here. Please bring me <a href="{{ site.url }}">back</a>.</p>
</div>
</section> |
<?php
return array (
'id' => 'samsung_sth_a255_ver1',
'fallback' => 'uptext_generic',
'capabilities' =>
array (
'model_name' => 'STH A255',
'brand_name' => 'Samsung',
'streaming_real_media' => 'none',
),
);
|
<?php
return array (
'id' => 'lg_l1150_ver1_sub6232',
'fallback' => 'lg_l1150_ver1',
'capabilities' =>
array (
'max_data_rate' => '9',
),
);
|
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "active_support"
require "test/unit"
require "turn"
require "nokogiri"
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
FROM ubuntu:trusty
MAINTAINER John Dilts <john.dilts@enstratius.com>
RUN apt-get update && apt-get install -y wget curl git-core supervisor
RUN wget http://s3.amazonaws.com/influxdb/influxdb_0.8.8_amd64.deb
RUN dpkg -i influxdb_0.8.8_amd64.deb
ADD https://raw.githubusercontent.com/jbrien/sensu-docker/compose/support/install-sensu.sh /tmp/
RUN chmod +x /tmp/install-sensu.sh
RUN /tmp/install-sensu.sh
ADD influxdb-run.sh /tmp/influxdb-run.sh
ADD supervisor.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8083
EXPOSE 8086
CMD ["/tmp/influxdb-run.sh"]
|
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2016, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// http://www.opensource.org/licenses/mit-license.php
//
////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDED_CMDUNIQUE
#define INCLUDED_CMDUNIQUE
#include <string>
#include <Command.h>
class CmdUnique : public Command
{
public:
CmdUnique ();
int execute (std::string&);
};
#endif
////////////////////////////////////////////////////////////////////////////////
|
{% set page = {
section: "work list",
subsection: "Notes (1 new)"
} %}
{% extends currentApp.filePaths.layoutsDir + "case.html" %}
{% block subsection_primary %}
<h3 class="heading-large mt-0">Notes</h3>
<p class="text">Case notes are a great way of adding extra information for a case, just remember keep it brief and notify the case owner if applicable.</p>
<form>
<fieldset>
<div class="form-group">
<legend class="visually-hidden">Your note</legend>
<label class="form-label" for="add-comment">Your note</label>
<textarea class="form-control form-control-1-1 span-width" id="add-comment" rows="4"></textarea>
</div>
<div class="form-group">
<legend class="visuallyhidden">Form Navigation</legend>
<input type="submit" value="Post note" class="button" id="submitButton" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
</div>
</fieldset>
</form>
<hr>
<h4 class="heading-small">James wicker - 16 Nov 2016</h4>
<p class="">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas
sit aspernatur aut odit aut fugit, sed quia
</p>
<hr>
<h4 class="heading-small">Larissa wilson - 5 Nov 2016</h4>
<p class="">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas
sit aspernatur aut odit aut fugit, sed quia
</p>
<hr>
<h4 class="heading-small">Finley Davies - 30 Oct 2016</h4>
<p class="">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas
sit aspernatur aut odit aut fugit, sed quia
</p>
{% endblock %} |
#if LOW_PASS
{
float RC = 1.0/(CUTOFF*2*3.14);
float dt = 1.0/SAMPLE_RATE;
float alpha = dt/(RC+dt);
float output[numSamples];
output[0] = input[0];
for(i=1; i<numSamples; i++){
output[i] = output[i-1] + (alpha*(input[i] - output[i-1]));
}
}
#endif
#if HIGH_PASS
{
float RC = 1.0/(CUTOFF*2*3.14);
float dt = 1.0/SAMPLE_RATE;
float alpha = RC/(RC + dt);
float output[numSamples];
output[0] = input[0];
for (i = 1; i<numSamples; i++){
output[i] = alpha * (output[i-1] + input[i] - input[i-1]);
}
}
#endif |
/*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: javax.security.cert.CertificateException
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENTATION
#ifndef J2CPP_JAVAX_SECURITY_CERT_CERTIFICATEEXCEPTION_HPP_DECL
#define J2CPP_JAVAX_SECURITY_CERT_CERTIFICATEEXCEPTION_HPP_DECL
namespace j2cpp { namespace java { namespace lang { class String; } } }
namespace j2cpp { namespace java { namespace lang { class Exception; } } }
#include <java/lang/Exception.hpp>
#include <java/lang/String.hpp>
namespace j2cpp {
namespace javax { namespace security { namespace cert {
class CertificateException;
class CertificateException
: public object<CertificateException>
{
public:
J2CPP_DECLARE_CLASS
J2CPP_DECLARE_METHOD(0)
J2CPP_DECLARE_METHOD(1)
explicit CertificateException(jobject jobj)
: object<CertificateException>(jobj)
{
}
operator local_ref<java::lang::Exception>() const;
CertificateException(local_ref< java::lang::String > const&);
CertificateException();
}; //class CertificateException
} //namespace cert
} //namespace security
} //namespace javax
} //namespace j2cpp
#endif //J2CPP_JAVAX_SECURITY_CERT_CERTIFICATEEXCEPTION_HPP_DECL
#else //J2CPP_INCLUDE_IMPLEMENTATION
#ifndef J2CPP_JAVAX_SECURITY_CERT_CERTIFICATEEXCEPTION_HPP_IMPL
#define J2CPP_JAVAX_SECURITY_CERT_CERTIFICATEEXCEPTION_HPP_IMPL
namespace j2cpp {
javax::security::cert::CertificateException::operator local_ref<java::lang::Exception>() const
{
return local_ref<java::lang::Exception>(get_jobject());
}
javax::security::cert::CertificateException::CertificateException(local_ref< java::lang::String > const &a0)
: object<javax::security::cert::CertificateException>(
call_new_object<
javax::security::cert::CertificateException::J2CPP_CLASS_NAME,
javax::security::cert::CertificateException::J2CPP_METHOD_NAME(0),
javax::security::cert::CertificateException::J2CPP_METHOD_SIGNATURE(0)
>(a0)
)
{
}
javax::security::cert::CertificateException::CertificateException()
: object<javax::security::cert::CertificateException>(
call_new_object<
javax::security::cert::CertificateException::J2CPP_CLASS_NAME,
javax::security::cert::CertificateException::J2CPP_METHOD_NAME(1),
javax::security::cert::CertificateException::J2CPP_METHOD_SIGNATURE(1)
>()
)
{
}
J2CPP_DEFINE_CLASS(javax::security::cert::CertificateException,"javax/security/cert/CertificateException")
J2CPP_DEFINE_METHOD(javax::security::cert::CertificateException,0,"<init>","(Ljava/lang/String;)V")
J2CPP_DEFINE_METHOD(javax::security::cert::CertificateException,1,"<init>","()V")
} //namespace j2cpp
#endif //J2CPP_JAVAX_SECURITY_CERT_CERTIFICATEEXCEPTION_HPP_IMPL
#endif //J2CPP_INCLUDE_IMPLEMENTATION
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.