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.EPropertiesHolderImpl
org.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, textLength
id, ID_EDEFAULT
eAdapters, 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, getChildrenGroup
adaptAndAdd, adaptAndAdd, charAt, createSplitNode, getText, getTextLength, getWrapperBlock, invalidate, isEmpty, mapToModel, revalidate, size, wrap
eBasicSetContainer, getBody, getContainingBlock, getFollowingLeafNode, getId, getParent, getPrecedingLeafNode, isSplittable, setId, translateToAbsolute
eAdapters, eBasicAdapters, eBasicProperties, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, 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, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
adaptAndAdd, adaptAndAdd, wrap
charAt, getBody, getContainingBlock, getFollowingLeafNode, getId, getParent, getPrecedingLeafNode, getText, getTextLength, isEmpty, isSplittable, mapToModel, setId, size, translateToAbsolute
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected 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 FlowContainer
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ElementContainerImpl
public AlignmentEnum getAlignment()
getAlignment
in interface BlockEntity
AlignmentEnum
,
BlockEntity.isSetAlignment()
,
BlockEntity.unsetAlignment()
,
BlockEntity.setAlignment(AlignmentEnum)
,
RichtextPackage.getBlockEntity_Alignment()
public void setAlignment(AlignmentEnum newAlignment)
setAlignment
in interface BlockEntity
newAlignment
- the new value of the 'Alignment' attribute.AlignmentEnum
,
BlockEntity.isSetAlignment()
,
BlockEntity.unsetAlignment()
,
BlockEntity.getAlignment()
public void unsetAlignment()
unsetAlignment
in interface BlockEntity
BlockEntity.isSetAlignment()
,
BlockEntity.getAlignment()
,
BlockEntity.setAlignment(AlignmentEnum)
public boolean isSetAlignment()
isSetAlignment
in interface BlockEntity
BlockEntity.unsetAlignment()
,
BlockEntity.getAlignment()
,
BlockEntity.setAlignment(AlignmentEnum)
public java.lang.String getClazz()
getClazz
in interface BlockEntity
BlockEntity.isSetClazz()
,
BlockEntity.unsetClazz()
,
BlockEntity.setClazz(String)
,
RichtextPackage.getBlockEntity_Clazz()
public void setClazz(java.lang.String newClazz)
setClazz
in interface BlockEntity
newClazz
- the new value of the 'Clazz' attribute.BlockEntity.isSetClazz()
,
BlockEntity.unsetClazz()
,
BlockEntity.getClazz()
public void unsetClazz()
unsetClazz
in interface BlockEntity
BlockEntity.isSetClazz()
,
BlockEntity.getClazz()
,
BlockEntity.setClazz(String)
public boolean isSetClazz()
isSetClazz
in interface BlockEntity
BlockEntity.unsetClazz()
,
BlockEntity.getClazz()
,
BlockEntity.setClazz(String)
public int getBorder()
getBorder
in interface Table
Table.isSetBorder()
,
Table.unsetBorder()
,
Table.setBorder(int)
,
RichtextPackage.getTable_Border()
public void setBorder(int newBorder)
setBorder
in interface Table
newBorder
- the new value of the 'Border' attribute.Table.isSetBorder()
,
Table.unsetBorder()
,
Table.getBorder()
public void unsetBorder()
unsetBorder
in interface Table
Table.isSetBorder()
,
Table.getBorder()
,
Table.setBorder(int)
public boolean isSetBorder()
isSetBorder
in interface Table
Table.unsetBorder()
,
Table.getBorder()
,
Table.setBorder(int)
public java.lang.String getStyle()
getStyle
in interface BlockEntity
BlockEntity.setStyle(String)
,
RichtextPackage.getBlockEntity_Style()
public void setStyle(java.lang.String newStyle)
setStyle
in interface BlockEntity
newStyle
- 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.InternalEObject
eGet
in class ElementContainerImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class ElementContainerImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class ElementContainerImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class ElementContainerImpl
public int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
eBaseStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eBaseStructuralFeatureID
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
eDerivedStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eDerivedStructuralFeatureID
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.String toString()
toString
in class ElementContainerImpl
public java.lang.String getDisplayName()
getDisplayName
in interface FlowType
public FlowType split(int offset, FlowContainer upto)
split
in interface FlowType
split
in class FlowContainerImpl
public int calculateNumColumns()
Table
calculateNumColumns
in interface Table
public int calculateNumRows()
Table
calculateNumRows
in interface Table
public boolean isPercentageBased()
Table
isPercentageBased
in interface Table
public int calculatePixelWidth()
Table
calculatePixelWidth
in interface Table