public final class TableConfigurationHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<VEnablementConfiguration> |
findEnablementConfiguration(VTableControl tableControl,
VDomainModelReference columnDmr)
Returns the
VEnablementConfiguration for the given VDomainModelReference, if any. |
static Optional<Integer> |
getColumnWeight(VTableControl tableControl,
VDomainModelReference domainModelReference)
Retrieve any column weight information available for the given column.
|
static Optional<Integer> |
getColumnWidth(VTableControl tableControl,
VDomainModelReference domainModelReference)
Retrieve any column width information available for the given column.
|
static boolean |
isReadOnly(VTableControl tableControl,
VDomainModelReference domainModelReference)
Retrieve the readonly state for the table control of a
VDomainModelReference. |
static void |
updateWidthConfiguration(VTableControl tableControl,
VDomainModelReference domainModelReference,
org.eclipse.swt.widgets.Widget tableColumn)
Updates the
VWidthConfiguration for a column. |
public static boolean isReadOnly(VTableControl tableControl, VDomainModelReference domainModelReference)
VDomainModelReference.tableControl - the VTableControl to get the readonly state of a column fordomainModelReference - the VDomainModelReference to get the state forpublic static Optional<VEnablementConfiguration> findEnablementConfiguration(VTableControl tableControl, VDomainModelReference columnDmr)
VEnablementConfiguration for the given VDomainModelReference, if any.tableControl - the VTableControlcolumnDmr - the VDomainModelReference a VDomainModelReference within the tableOptional containing the VEnablementConfigurationpublic static Optional<Integer> getColumnWidth(VTableControl tableControl, VDomainModelReference domainModelReference)
tableControl - the VTableControl containing the column configurationdomainModelReference - the column VDomainModelReferencepublic static Optional<Integer> getColumnWeight(VTableControl tableControl, VDomainModelReference domainModelReference)
tableControl - the VTableControl containing the column configurationdomainModelReference - the column VDomainModelReferencepublic static void updateWidthConfiguration(VTableControl tableControl, VDomainModelReference domainModelReference, org.eclipse.swt.widgets.Widget tableColumn)
VWidthConfiguration for a column. If there is no configuration one will be created.tableControl - the VTableControl containing the column configurationdomainModelReference - the column VDomainModelReferencetableColumn - the table columnCopyright © 2019. All rights reserved.