Class DwtAddRemove
Object
|
+--DwtControl
|
+--DwtComposite
|
+--DwtAddRemove
- class
DwtAddRemove
- extends DwtComposite
Defined in DwtAddRemove.js
Constructor Summary |
DwtAddRemove
(parent, className, posStyle, sourceListClassName, targetListClassName)
Constructs a control that shows two lists of items and allows the user
to move items between the two lists.
|
Methods inherited from class DwtControl |
addControlListener, removeControlListener, addDisposeListener, removeDisposeListener, addListener, notifyListeners, isListenerRegistered, removeListener, removeAllListeners, getDocument, getData, setData, isDisposed, isInitialized, getPropagationForEvent, getReturnValueForEvent, reparent, reparentHtmlElement, setHandler, clearHandler, getBounds, setBounds, getClassName, setClassName, getCursor, setCursor, getDragSource, setDragSource, getDropTarget, setDropTarget, getEnabled, getHtmlElement, setHtmlElementId, getX, getXW, getY, getYH, getLocation, setLocation, getScrollStyle, setScrollStyle, getW, getH, getSize, setSize, getToolTipContent, setToolTipContent, getVisible, setVisible, setVisibility, getZIndex, setZIndex, zShow, setDisplay, preventSelection, preventContextMenu, _checkState, _isInputEl, _setEventHdlrs, _setMouseEventHdlrs, _setKeyPressEventHdlr, _dndDoHover, _getDnDIcon, _setDnDIconState, _destroyDnDIcon, _isValidDragObject, _dragEnter, _dragOver, _dragHover, _dragLeave, _drop, _initCtrl, setContent, clearContent, _badDropEffect, _handleHoverOver, _handleHoverOut
|
_orientation
Object _orientation
_selection
Object _selection
DwtAddRemove
DwtAddRemove(parent, className, posStyle, sourceListClassName, targetListClassName)
Constructs a control that shows two lists of items and allows the user
to move items between the two lists.
Parameters:
parent
- The parent container for this control.
className
- (optional) The CSS class for this control. Default value is "DwtAddRemove".
posStyle
- (optional) The position style of this control.
sourceListClassName
- The css class name for the source list.
targetListClassName
- The css class name for the target list.
_addAllButtonListener
void _addAllButtonListener(event)
_addButtonListener
void _addButtonListener(event)
_createHTML
void _createHTML(sourceListClassName, targetListClassName)
_removeAllButtonListener
void _removeAllButtonListener(event)
_removeButtonListener
void _removeButtonListener(event)
_sourceListListener
void _sourceListListener(event)
_targetListListener
void _targetListListener(event)
addSourceItem
void addSourceItem(item)
addSourceItems
void addSourceItems(items)
addStateChangeListener
void addStateChangeListener(listener)
addTargetItem
void addTargetItem(item, skipNotify)
addTargetItems
void addTargetItems(items, skipNotify)
getSourceItems
Object getSourceItems()
DwtAddRemove.prototype.setOrientation = function(orientation) {
this._orientation = orientation;
}
DwtAddRemove.prototype.getOrientation = function() {
return this._orientation;
}
DwtAddRemove.prototype.isHorizontal = function() {
return this._orientation === DwtAddRemove.ORIENTATION_HORIZONTAL;
}
DwtAddRemove.prototype.isVertical = function() {
return this._orientation === DwtAddRemove.ORIENTATION_VERTICAL;
}
DwtAddRemove.prototype.setSelection = function(selection) {
this._selection = selection;
}
DwtAddRemove.prototype.getSelection = function() {
return this._selection;
}
DwtAddRemove.prototype.isSingleSelect = function() {
return this._selection === DwtAddRemove.SELECTION_SINGLE;
}
DwtAddRemove.prototype.isMultiSelect = function() {
return this._selection === DwtAddRemove.SELECTION_MULTIPLE;
}
/
getTargetItems
Object getTargetItems()
removeAllSourceItems
void removeAllSourceItems()
removeAllTargetItems
void removeAllTargetItems(skipNotify)
removeSourceItem
void removeSourceItem(item)
removeSourceItems
void removeSourceItems(items)
removeStateChangeListener
void removeStateChangeListener(listener)
removeTargetItem
void removeTargetItem(item, skipNotify)
setEnabled
void setEnabled(enabled)
setSourceItems
void setSourceItems(items)
setTargetItems
void setTargetItems(items)
toString
Object toString()
Documentation generated by
JSDoc on Thu Apr 27 13:54:36 2006