public class ContentBlock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINER_TYPE
The value returned by
getType() for container blocks. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributes()
Returns the block's attributes as a JSON string.
|
Rectangle |
getBox()
Returns the box that represents the position of this block.
|
ContentBlock[] |
getChildren()
Returns the children of this block.
|
java.util.EnumSet<ConversionState> |
getConversionState()
Returns the current conversion state of this block, as a set
of ConversionState values.
|
java.lang.String |
getId()
Returns the identifier of this block.
|
ContentBlock |
getParent()
Returns the parent of this block.
|
ContentPart |
getPart()
Returns the part that contains this block.
|
java.lang.String |
getRenderingId()
Returns an identifier that can be used to match corresponding calls to
ICanvas.startGroup(String, float, float, float, float, boolean) . |
java.lang.String |
getType()
Returns the type of this block.
|
boolean |
isValid()
Tells whether this block is still valid.
|
public static final java.lang.String CONTAINER_TYPE
getType()
for container blocks.public final ContentPart getPart()
Note: do not close the returned object as it is owned by another entity.
public final boolean isValid()
IEditorListener.partChanged(Editor)
.true
if this block is valid.public final java.lang.String getType()
public final java.lang.String getId()
public final java.lang.String getRenderingId()
ICanvas.startGroup(String, float, float, float, float, boolean)
.public final java.lang.String getAttributes()
public final Rectangle getBox()
public final ContentBlock[] getChildren()
public final java.util.EnumSet<ConversionState> getConversionState()
public final ContentBlock getParent()
null
if this block is the root block.