public abstract class RichTextEditPart extends org.eclipse.gef.editparts.AbstractGraphicalEditPart implements ITextControlEditPart
setText(String)
.Modifier and Type | Field and Description |
---|---|
protected com.ibm.xtools.richtext.emf.internal.html.HTMLReader |
htmlReader |
figure, sourceConnections, targetConnections
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
Constructor and Description |
---|
RichTextEditPart() |
Modifier and Type | Method and Description |
---|---|
protected void |
createEditPolicies() |
protected org.eclipse.draw2d.IFigure |
createFigure() |
org.eclipse.draw2d.IFigure |
getContentPane() |
protected org.eclipse.gef.tools.DirectEditManager |
getManager()
Provides DirectEditManager that can handle the direct edit request of
this edit part.
|
abstract java.lang.String |
getText()
Gets the rich text content of this edit part
|
protected boolean |
isShowScrollbar()
If rich text content can not all be displayed within the visible area of
this edit part, this method determines if the tool should display scroll
bar or not.
|
protected void |
performDirectEdit()
Performs direct edit request.
|
void |
performRequest(org.eclipse.gef.Request req) |
abstract void |
setText(java.lang.String text)
Sets the rich text content of this edit part
|
activate, addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getDragTracker, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, isSelectable, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisuals
activateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getChildren, getCommand, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getModel, getModelChildren, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, refreshChildren, refreshVisuals, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregister, unregisterAccessibility, unregisterModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addNodeListener, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
protected org.eclipse.draw2d.IFigure createFigure()
createFigure
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
protected boolean isShowScrollbar()
public org.eclipse.draw2d.IFigure getContentPane()
getContentPane
in interface org.eclipse.gef.GraphicalEditPart
getContentPane
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public void performRequest(org.eclipse.gef.Request req)
performRequest
in interface org.eclipse.gef.EditPart
performRequest
in class org.eclipse.gef.editparts.AbstractEditPart
protected void performDirectEdit()
DirectEditManager
protected org.eclipse.gef.tools.DirectEditManager getManager()
protected void createEditPolicies()
createEditPolicies
in class org.eclipse.gef.editparts.AbstractEditPart
public abstract java.lang.String getText()
getText
in interface ITextControlEditPart
ITextControlEditPart.getText()
public abstract void setText(java.lang.String text)
setText
in interface ITextControlEditPart
text
- text contentITextControlEditPart.setText(java.lang.String)