Class DwtListView
Class Detail
DwtListView(params, parent, className, posStyle, headerList, noMaximize, view)
Creates a list view.
Author: Parag Shah, Conrad Damon.
Method Detail
addActionListener(listener)
Adds an action listener.
addItem(item, index, skipNotify, itemIndex)
Adds a row for the given item to the list view.
addItems(itemArray)
Adds the items.
addSelectionListener(listener)
Adds a selection listener.
addStateChangeListener(listener)
Adds a state change listener.
deselectAll()
De-selects all items in the list.
{Object}
findItem(el)
Starts with an element and works its way up the element chain until it finds one
with an ID that maps to an item, then returns the associated item.
{Element}
findItemDiv(el)
Starts with an element and works its way up the element chain until it finds one
with an ID that maps to an item.
{number}
getItemIndex(item)
Gets the index of the given item.
{Array}
getSelectedItems()
Gets the selected items.
{number}
getSelectionCount()
Gets the selection count.
{Object}
getTargetItem(ev)
Gets the item associated with the given event. Starts with the
event target and works its way up the element chain until it finds one
with an ID that maps to an item.
{Object}
getTargetItemDiv(ev)
Gets the item DIV associated with the given event. Starts with the
event target and works its way up the element chain until it finds one
with an ID that maps to an item.
removeActionListener(listener)
Removes an action listener.
removeAll(skipNotify)
Removes all the items from the list.
removeItem(item, skipNotify, skipAlternation)
Removes a row for the given item to the list view.
removeSelectionListener(listener)
Removes a selection listener.
removeStateChangeListener(listener)
Adds a state change listener.
scrollPage(up)
Scrolls the list view up or down one page.
selectAll()
Selects all items in the list.
selectItem(selected, selected)
Selects or deselects a single item.
set(list, defaultColumnSort, noResultsOk)
Creates a list view out of the given vector of items. The derived class should override _createItemHtml()
in order to display an item.
setEnabled(enabled)
Sets the enabled flag.
setSize(width, height)
Sets the size of the view.
setUI(defaultColumnSort, noResultsOk)
Renders the list view using the current list of items.
{number}
size()
Gets the count of items in the list.
useListElement()
Use the list elements
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:28 GMT-0400 (EDT)
|