<< Click to Display Table of Contents >>

Windows.js

 

 

Namespace

SuperGIS.Windows


Class

MergeStyle(styles)






Class

HTMLObject(object Node)

control HTMLObject.

Method

Node

getNode()

return Node.

Method

number

getWidth()

return width.

Method

number

getHeight()

return height.

Method

void

applyAttributes(opts)

apply attributes.

Method

void

applyStyles(styles)

apply styles.





Class

HTMLContainer(object Node)

control HTMLContainer.

Method

void

processChildren(object Func)

the result of processing the children of a node.

Method

void

clearChildren()

clear all children.

Method

Obj

appendObject(objType, opts, styles)

append an object.

Method

Elem

appendElement(elemType, opts, styles)

append an element

Method

object

appendCanvas(opts, styles)

append a canvas.

Method

void

removeChildren(object Obj)

remove children

Method

vod

appendText(string Value)

append a text.

Method

void

appendInputText(string Value)

append an input text.

Method

void

appendInputPassword()

append an input password.

Method

void

appendInputCheckBox(string Value)

append an input check box.

Method

Rdo

appendInputRadio(string Title, string Group, string ID)

append an input radio.

Method

A

appendHyperLink(string Text, string Href, opts, styles)

append a hyperlink.

Method

Btn

appendButton(string Text, funcClick)

append a button.

Method

Sel

appendSelect(Values, curValue)

append a Sel object.





Class

ContextMenu(object ParentElem, posX, posy, Boolean SelfDelete)

control context menu.

Method

void

DestroyMenu()

destroy menus.

Method

void

AddItem(txtItem, clickEvent)

add an item to the menu.





Class

TabCtrl(object ParentElem, Boolean WizardMode)

control the tab control.

Method

void

AttachTab(object TabRow, object ContextCell)

attach a tab.

Method

number

getTabCount()

return tab conut.

Method

Tabs[n]

getTab()

return a specified tab.

Method

Tabs

getTabs()

return all tabs.

Method

void

clearTabs()

clear all tabs.

Method

Item

AddItem(string Title, img Normal, img Active)

add an item to tab.

Method

CurrentTab

getCurrentTab()

return current tab.

Method

void

ShowTab(n)

show tab.





Class

ListCtrl(object ParentElem, string Group, funcItemSelected)

control the list control.

Method

void

setSelectedColor(v)

set the color of selected item.

Method

void

setSelectedBGColor(v)

set the background color of selected item.

Method

List

getItems()

return a list of items.

Method

void

AddItem(string Title, string ID)

add an item

Method

void

RemoveItem(string ID)

remove a item by assining its ID.

Method

void

clear()

clear the list.

Method

Item

getSelectItem()

return the selected item.

Method

Itms

getSeclectedItems()

return the selected items.

Method

void

Select(n)

select a specified item.





Class

TreeCtrl(object ParentElem, string Root, number Column)

control the tree control.

Method

SelectedColor

getSelectedColor()

return the color of selected item.

Method

void

setSelectedColor(v)

set the color of selected item.

Method

SelectedBGColor

getSelectedBGColor(v)

return the background color of selected item.

Method

void

setSelectedBGColor(v)

set the background color of selected item.

Method

void

setItemHeight(v)

set the height of the item.

Method

CurrentSel

getCurrentSelect()

return current selected item.

Method

void

TreeItem(object IconCell, object TitleCells, object SubCell, number Column)

Method

Root

getRoot()

return the root of the tree.

Method

void

setShowIcon(v)

set icon display.

Method

void

setIcon(e, c)

set icon.

Method

void

clearItems()

clear items in the tree.

Method

Item

AppendItem(string Titles, number Column, object Parent)

append an item.

Method

void

Select(object Item)

select an item.





Enum

TreeExpandCode




(COLLAPSE


define the tree expand mode as collapse.


EXPAND


define the tree expand mode as expand.


TOGGLE)


define the tree expand mode as toggle.





Class

Dialog(object Parent)

control the dialog.

Property

HTML

HeaderRow

HeaderRow

Property

HTML

Header

Header

Property

HTML

ContentRow

ContentRow

Property

HTML

Content

Content

Method

void

Destroy()

destroy the dialog.





Function

AttributeTable(object Tbl)


Method

void

clearRows()

clear rows.

Method

void

removeRow()

remove a row.

Method

HTML

createHead(opts, styles)

create Head.

Method

HTML

createFoot(opts, styles)

create Foot.

Method

HTML

createRow(opts, styles)

create Row.

Method

HTML

createCell(string Value, optsCell, styles)

create Cell.

Method

void

createAttribute(string Title, string Value)

create Attribute.

 

 


© 2017 Supergeo Technologies Inc.