SMART datagrid v1.4 > Classes

Back  Forward

abstract DataLudi.GridBase  class

GridViewTreeView 등 그리드 스타일 컴포넌트의 기반 클래스이다. 

그리드는 하나 이상의 컬럼들과 하나 이상의 행들로 구성된다. 각 열은 컬럼 모델로 정의되고, 각 행은 그리드행 모델로 정의된다. 각각 컬럼 모델 개요그리드행 모델 개요 도움말에서 보다 상세하게 알 수 있다. 

그리드는 DataSet에 연결해서 데이터를 가져오고, 그리드에서 수정한 데이터를 다시 그 DataSet에 반영한다. 또, 그리드에서 데이터 편집은 기본적으로 셀 단위가 아니라 행 단위로 완료되거나 취소된다. 

컬럼과 행으로 조합되는 하나의 데이터셀은 CellIndex로 위치가 정의된다. 그리드는 현재 입력 포커스를 갖는 포커스셀의 위치를 focusedIndex 속성으로 관리한다. 

이 클래스는 추상 클래스일 뿐 아니라, 그리드 객체는 createGridView, createTreeView 등으로 그리드트리 컴포넌트을 생성할 때, 내부적으로 자동 생성되므로 이 객체를 직접 생성할 일은 없다. GridComponent.gridViewTreeComponent.treeView로 접근할 수 있다. 

Inherited Classes
GridView, TreeView
Constructor
function GridBase (dom: Boolean, container: String, readMode: Boolean);
Properties
autoFill
body
checkBar
columnCount
columnLayout
columnLayouts
columns
dataCellRenderers
dataRowCount
dataSource
defaultStyles
descendantDataCount
descendantRowCount
displayOptions
displayRowCount
editOptions
filtered
focusedColumn
focusedDataIndex
focusedDataRow
focusedIndex
focusedRow
focusedRowIndex
footer
fullDisplayRowCount
groupPanel
header
hscrollBar
isEmpty
leftCol
leftPos
lookupProvider
maxRowCount
operateOptions
readMode
rowCount
rowFilter
rowGroup
rowIndicator
rowSource
scrollEdgeStyles
sorted
styleManager
styles
summaryMode
topIndex
undoable
visibleColumnCount
vscrollBar
Methods
addLookupSource
append
beginUpdate
cancel
cancelEditor
canRedo
canUndo
checkAll
checkRows
clearCellStyles
clearColumnStyles
clearColumnTags
clearImagePool
clearLookupData
clearRowHeights
clearSelection
clearStyles
clearUndo
closeFilterSelector
closeProgress
columnByField
columnByName
columnByTag
columnsByField
columnsByTag
commit
commitEditor
commitOrCancel
createColumn
createColumns
deleteCheckedRows
deleteRows
deleteSelection
edit
endUpdate
eraseSelection
excludeColumn
existsCellStyle
existsLookupData
fillEditSearchItems
fillLookupRows
fillLookupValues
fitColumnWidth
fitRowHeight
generateColumns
getAllRows
getCellIndex
getCellStyle
getCellStyleId
getCellValue
getCheckedDataIndices
getCheckedRowIndices
getCheckedRows
getColumn
getColumnNames
getDataCellRect
getDataColumns
getEditingRow
getFieldValues
getFirstCell
getFirstColumn
getGroupLevel
getGroupLevels
getHiddenColumns
getLastColumn
getLeafColumns
getLeafRows
getPopupMenu
getRow
getRowHeight
getRowIndexOfDataIndex
getRowIndices
getRowIndicesOfDataIndices
getRowOfDataIndex
getRows
getSelectedDataIndices
getSelectedRowIndices
getSelectedRows
getSelection
getSortCases
getSortDirections
getSortFieldCount
getSortFields
getSummary
getTopRows
getUnCheckedDataIndices
getUnCheckedRowIndices
getUnCheckedRows
getValueAt
getValueColumns
getVisibleColumn
getVisibleColumns
hideEditor
hideToast
initializeReuse
insert
invalidate
invalidateLayout
isAllChecked
isCheckable
isChecked
isDeletedRow
isEditing
isGroupedColumn
isRowEditing
isValidCell
isValidColumn
isValidRow
linearizeColumns
loadPalettes
loadStyles
makeCellVisible
makeColumnVisible
makeRowVisible
orderBy
orderByFields
pointToIndex
redo
refreshView
registerCellEditors
registerCellRenderers
registerCellStyle
registerCellStyles
registerColumnLayouts
registerColumnStyles
registerFillPalette
registerImageList
registerPopupMenu
registerStrokePalette
removeLookupSource
resetGrid
resetSize
restoreColumns
revealRow
revertSelection
saveColumnLayout
searchCell
searchRow
selectColumnFilters
setAllChecked
setCellStyle
setCellStyleRows
setCellStyles
setCellValue
setCheckable
setChecked
setColumnsProperty
setColumnsVisible
setContextMenu
setCursor
setDefaultContextMenu
setFocusedCell
setFocusedColumn
setFocusedIndex
setFocusedRow
setOptions
setProgress
setRowHeight
setRowHeights
setSelection
setValueAt
showEditor
showProgress
showToast
sortColumn
sortColumnWithStyle
toggleChecked
undo
unregisterAllCellStyle
unregisterCellEditors
unregisterCellRenderers
unregisterCellStyle
unregisterCellStyles
unregisterColumnStyles
unregisterImageList
unregisterPalette
unregisterPopupMenu
unsortColumn
unsortColumnWithStyle
update
updateNow
visitAllColumns
visitColumns
visitRows
Events
onAllCheck
onAllChecked
onAutoFilled
onBeforePaste
onCellButtonClicked
onCheckBarHeadClicked
onCheckBarHeadDblClicked
onCheckCellClicked
onCheckCellDblClicked
onCheckedChanged
onClickableCellClicked
onColumnChecked
onColumnHeaderClicked
onColumnHeaderDblClicked
onColumnMoved
onColumnParentChanged
onColumnResized
onColumnResizing
onColumnVisibleChanged
onContextMenuClicked
onContextMenuPopup
onCopy
onCurrentChanged
onCurrentChanging
onCurrentRowChanged
onDataButtonClicked
onDataCellClick
onDataCellClicked
onDataCellDblClicked
onDeleting
onDescendantDataCountChanged
onDescendantRowCountChanged
onDisplayRowCountChanged
onEditCanceled
onEditCellUpdated
onEditChanged
onEditCommitted
onEditorButtonClicked
onEditRowCanceled
onEditRowCommitted
onEditRowPasted
onEditSearch
onErrorClicked
onExcludeColumn
onFiltered
onFiltering
onFooterCellClicked
onFooterCellDblClicked
onFooterHeadClicked
onFooterHeadDblClicked
onHeaderHeadClicked
onHeaderHeadDblClicked
onHeaderSummaryCellClicked
onHeaderSummaryCellDblClicked
onHeaderSummaryHeadClicked
onHeaderSummaryHeadDblClicked
onInserting
onInsertStarted
onKeyDown
onLeftPosChanged
onPaste
onPasted
onPopupMenuClicked
onPopupMenuPopup
onRowChecked
onRowCountChanged
onRowIndicatorCellClick
onRowIndicatorCellClicked
onRowIndicatorCellDblClicked
onRowResized
onRowResizing
onRowsChecked
onScrollToBottom
onScrollToTop
onSelectionChanged
onSelectionCleared
onSelectionEnded
onSelectionResized
onShowEditor
onSorted
onSorting
onStateCellClicked
onStateCellDblClicked
onTopIndexChanged
onUndoStateChanged
onUpdateStarted
onUpdating
onValidateCell
onValidateRow

 

See Also
GridComponent.gridView
TreeComponent.treeView
컬럼 모델 개요
행 모델 개요
컬럼
아이템
GridView
TreeView
createGridView
createTreeView
Examples
그리드 시작하기