Interface GridColumnViewModel
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,IViewModel,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
GridColumnViewModelImpl
A representation of the model object 'Grid Column View Model'.
The view model that represents one column of grid
The following features are supported:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Header' attribute.org.eclipse.emf.common.util.EList<String>Returns the value of the 'Headers' attribute list.intReturns the value of the 'Height In Rows' attribute.intgetIndex()Returns the value of the 'Index' attribute.getType()Returns the value of the 'Type' attribute.intgetWidth()Returns the value of the 'Width' attribute.booleanReturns the value of the 'Editable' attribute.booleanisTree()Returns the value of the 'Tree' attribute.voidsetEditable(boolean value) Sets the value of the 'Editable' attribute.voidSets the value of the 'Header' attribute.voidsetHeightInRows(int value) Sets the value of the 'Height In Rows' attribute.voidsetIndex(int value) Sets the value of the 'Index' attribute.voidsetTree(boolean value) Sets the value of the 'Tree' attribute.voidsetType(GridColumnType value) Sets the value of the 'Type' attribute.voidsetWidth(int value) Sets the value of the 'Width' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com._1c.g5.aef2.viewModels.IViewModel
getEventChannel, getParent, setEventChannel, setParentMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getHeader
String getHeader()Returns the value of the 'Header' attribute. The default value is"". The header text of the column- Returns:
- the value of the 'Header' attribute.
- See Also:
-
setHeader
Sets the value of the 'Header' attribute.- Parameters:
value- the new value of the 'Header' attribute.- See Also:
-
getIndex
int getIndex()Returns the value of the 'Index' attribute. The default value is"-1". The index of the column- Returns:
- the value of the 'Index' attribute.
- See Also:
-
setIndex
void setIndex(int value) Sets the value of the 'Index' attribute.- Parameters:
value- the new value of the 'Index' attribute.- See Also:
-
isTree
boolean isTree()Returns the value of the 'Tree' attribute. The default value is"false". The 'tree' flag of the column- Returns:
- the value of the 'Tree' attribute.
- See Also:
-
setTree
void setTree(boolean value) Sets the value of the 'Tree' attribute.- Parameters:
value- the new value of the 'Tree' attribute.- See Also:
-
getType
GridColumnType getType()Returns the value of the 'Type' attribute. The default value is"Text". The literals are from the enumerationGridColumnType. The type of the column- Returns:
- the value of the 'Type' attribute.
- See Also:
-
setType
Sets the value of the 'Type' attribute.- Parameters:
value- the new value of the 'Type' attribute.- See Also:
-
isEditable
boolean isEditable()Returns the value of the 'Editable' attribute. The default value is"true". The editable flag of the column- Returns:
- the value of the 'Editable' attribute.
- See Also:
-
setEditable
void setEditable(boolean value) Sets the value of the 'Editable' attribute.- Parameters:
value- the new value of the 'Editable' attribute.- See Also:
-
getWidth
int getWidth()Returns the value of the 'Width' attribute. The default value is"150". The width of the column in pixels- Returns:
- the value of the 'Width' attribute.
- See Also:
-
setWidth
void setWidth(int value) Sets the value of the 'Width' attribute.- Parameters:
value- the new value of the 'Width' attribute.- See Also:
-
getHeaders
org.eclipse.emf.common.util.EList<String> getHeaders()Returns the value of the 'Headers' attribute list. The list contents are of typeString. The headers text of the column- Returns:
- the value of the 'Headers' attribute list.
- See Also:
-
getHeightInRows
int getHeightInRows()Returns the value of the 'Height In Rows' attribute. The default value is"1". The height of the column in row count- Returns:
- the value of the 'Height In Rows' attribute.
- See Also:
-
setHeightInRows
void setHeightInRows(int value) Sets the value of the 'Height In Rows' attribute.- Parameters:
value- the new value of the 'Height In Rows' attribute.- See Also:
-