public class TableImpl extends ElementContainerImpl implements Table
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImplorg.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList| Modifier and Type | Field and Description |
|---|---|
protected AlignmentEnum |
alignment
The cached value of the '
Alignment' attribute. |
protected static AlignmentEnum |
ALIGNMENT_EDEFAULT
The default value of the '
Alignment' attribute. |
protected boolean |
alignmentESet
This is true if the Alignment attribute has been set.
|
protected int |
border
The cached value of the '
Border' attribute. |
protected static int |
BORDER_EDEFAULT
The default value of the '
Border' attribute. |
protected boolean |
borderESet
This is true if the Border attribute has been set.
|
protected java.lang.String |
clazz
The cached value of the '
Clazz' attribute. |
protected static java.lang.String |
CLAZZ_EDEFAULT
The default value of the '
Clazz' attribute. |
protected boolean |
clazzESet
This is true if the Clazz attribute has been set.
|
protected java.lang.String |
style
The cached value of the '
Style' attribute. |
protected static java.lang.String |
STYLE_EDEFAULT
The default value of the '
Style' attribute. |
lengthInvalid, textLengthid, ID_EDEFAULTeAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY| Constructor and Description |
|---|
TableImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsChild(FlowType child) |
int |
calculateNumColumns()
Calculates the number of columns in the table and returns the result
|
int |
calculateNumRows()
Calculates the number of rows in the table and returns the result
|
int |
calculatePixelWidth()
Calculate the width of the table by adding up the column widths
Only Applicable for non-percentage based tables
|
static Table |
create(int cols,
int rows) |
int |
eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass) |
int |
eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
void |
eUnset(int featureID) |
AlignmentEnum |
getAlignment() |
int |
getBorder() |
java.lang.String |
getClazz() |
java.lang.String |
getDisplayName() |
java.lang.String |
getStyle() |
boolean |
isPercentageBased()
Returns true if the column's width is a percentage
|
boolean |
isSetAlignment() |
boolean |
isSetBorder() |
boolean |
isSetClazz() |
void |
setAlignment(AlignmentEnum newAlignment) |
void |
setBorder(int newBorder) |
void |
setClazz(java.lang.String newClazz) |
void |
setStyle(java.lang.String newStyle) |
FlowType |
split(int offset,
FlowContainer upto) |
java.lang.String |
toString() |
void |
unsetAlignment() |
void |
unsetBorder() |
void |
unsetClazz() |
eInverseRemove, getChildren, getChildrenGroupadaptAndAdd, adaptAndAdd, charAt, createSplitNode, getText, getTextLength, getWrapperBlock, invalidate, isEmpty, mapToModel, revalidate, size, wrapeBasicSetContainer, getBody, getContainingBlock, getFollowingLeafNode, getId, getParent, getPrecedingLeafNode, isSplittable, setId, translateToAbsoluteeAdapters, eBasicAdapters, eBasicProperties, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenadaptAndAdd, adaptAndAdd, wrapcharAt, getBody, getContainingBlock, getFollowingLeafNode, getId, getParent, getPrecedingLeafNode, getText, getTextLength, isEmpty, isSplittable, mapToModel, setId, size, translateToAbsoluteeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetprotected static final AlignmentEnum ALIGNMENT_EDEFAULT
Alignment' attribute.
getAlignment()protected AlignmentEnum alignment
Alignment' attribute.
getAlignment()protected boolean alignmentESet
protected static final java.lang.String STYLE_EDEFAULT
Style' attribute.
getStyle()protected java.lang.String style
Style' attribute.
getStyle()protected static final java.lang.String CLAZZ_EDEFAULT
Clazz' attribute.
getClazz(),
Constant Field Valuesprotected java.lang.String clazz
Clazz' attribute.
getClazz()protected boolean clazzESet
protected static final int BORDER_EDEFAULT
Border' attribute.
getBorder(),
Constant Field Valuesprotected int border
Border' attribute.
getBorder()protected boolean borderESet
public static Table create(int cols, int rows)
public boolean acceptsChild(FlowType child)
acceptsChild in interface FlowContainerprotected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class ElementContainerImplpublic AlignmentEnum getAlignment()
getAlignment in interface BlockEntityAlignmentEnum,
BlockEntity.isSetAlignment(),
BlockEntity.unsetAlignment(),
BlockEntity.setAlignment(AlignmentEnum),
RichtextPackage.getBlockEntity_Alignment()public void setAlignment(AlignmentEnum newAlignment)
setAlignment in interface BlockEntitynewAlignment - the new value of the 'Alignment' attribute.AlignmentEnum,
BlockEntity.isSetAlignment(),
BlockEntity.unsetAlignment(),
BlockEntity.getAlignment()public void unsetAlignment()
unsetAlignment in interface BlockEntityBlockEntity.isSetAlignment(),
BlockEntity.getAlignment(),
BlockEntity.setAlignment(AlignmentEnum)public boolean isSetAlignment()
isSetAlignment in interface BlockEntityBlockEntity.unsetAlignment(),
BlockEntity.getAlignment(),
BlockEntity.setAlignment(AlignmentEnum)public java.lang.String getClazz()
getClazz in interface BlockEntityBlockEntity.isSetClazz(),
BlockEntity.unsetClazz(),
BlockEntity.setClazz(String),
RichtextPackage.getBlockEntity_Clazz()public void setClazz(java.lang.String newClazz)
setClazz in interface BlockEntitynewClazz - the new value of the 'Clazz' attribute.BlockEntity.isSetClazz(),
BlockEntity.unsetClazz(),
BlockEntity.getClazz()public void unsetClazz()
unsetClazz in interface BlockEntityBlockEntity.isSetClazz(),
BlockEntity.getClazz(),
BlockEntity.setClazz(String)public boolean isSetClazz()
isSetClazz in interface BlockEntityBlockEntity.unsetClazz(),
BlockEntity.getClazz(),
BlockEntity.setClazz(String)public int getBorder()
getBorder in interface TableTable.isSetBorder(),
Table.unsetBorder(),
Table.setBorder(int),
RichtextPackage.getTable_Border()public void setBorder(int newBorder)
setBorder in interface TablenewBorder - the new value of the 'Border' attribute.Table.isSetBorder(),
Table.unsetBorder(),
Table.getBorder()public void unsetBorder()
unsetBorder in interface TableTable.isSetBorder(),
Table.getBorder(),
Table.setBorder(int)public boolean isSetBorder()
isSetBorder in interface TableTable.unsetBorder(),
Table.getBorder(),
Table.setBorder(int)public java.lang.String getStyle()
getStyle in interface BlockEntityBlockEntity.setStyle(String),
RichtextPackage.getBlockEntity_Style()public void setStyle(java.lang.String newStyle)
setStyle in interface BlockEntitynewStyle - the new value of the 'Style' attribute.BlockEntity.getStyle()public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class ElementContainerImplpublic void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class ElementContainerImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class ElementContainerImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class ElementContainerImplpublic int eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass)
eBaseStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObjecteBaseStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic int eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass)
eDerivedStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObjecteDerivedStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic java.lang.String toString()
toString in class ElementContainerImplpublic java.lang.String getDisplayName()
getDisplayName in interface FlowTypepublic FlowType split(int offset, FlowContainer upto)
split in interface FlowTypesplit in class FlowContainerImplpublic int calculateNumColumns()
TablecalculateNumColumns in interface Tablepublic int calculateNumRows()
TablecalculateNumRows in interface Tablepublic boolean isPercentageBased()
TableisPercentageBased in interface Tablepublic int calculatePixelWidth()
TablecalculatePixelWidth in interface Table