|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.View
com.inet.html.views.BoxView
com.inet.html.views.ContentView
com.inet.html.views.InsertedContentView
public class InsertedContentView
This view can be used to insert content without changing the document. It's primary use are :before, :after and list numbering.
Field Summary |
---|
Fields inherited from class com.inet.html.views.ContentView |
---|
CJK_TYPE_CHARACTER, CJK_TYPE_NONE, CJK_TYPE_PUNCTUATION |
Fields inherited from class com.inet.html.views.BoxView |
---|
BASELINE, STATUS_REQ_LAYOUT, STATUS_REQ_PRELAYOUT, STATUS_UPTODATE |
Fields inherited from class javax.swing.text.View |
---|
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
InsertedContentView(javax.swing.text.Element elem)
Creates a new, empty view |
|
InsertedContentView(javax.swing.text.Element elem,
ViewPainter viewPainter)
Creates a new, empty view |
|
InsertedContentView(javax.swing.text.Element elem,
ViewPainter viewPainter,
ContentPainter contentPainter)
Creates a new, empty view with a specific content painter |
Method Summary | |
---|---|
float |
getMinimumSpan(int axis)
|
int |
getTextLength()
Returns the number of displayed by this view. |
void |
setNewContent(java.lang.String newContent)
Set the content which this view displays. |
void |
setParent(javax.swing.text.View parent)
|
java.lang.String |
toString()
|
Methods inherited from class com.inet.html.views.ContentView |
---|
createFragment, getBottomInset, getCJKType, getContentPainter, getFont, getLeftInset, getMargins, getPreferredSpan, getRightInset, getTopInset, insertUpdate, isBlock, isBreakable, modelToView, paint, paramString, performLayout, performLayoutVAlign, performLayoutWidth, setBreakable, setCJKType, setIsNativeLTR, setSize, setSizeContent, viewToModel |
Methods inherited from class javax.swing.text.View |
---|
append, breakView, changedUpdate, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getMaximumSpan, getNextVisualPositionFrom, getParent, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, removeUpdate, replace, viewToModel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InsertedContentView(javax.swing.text.Element elem)
elem
- the parent element, which is in this case the surrounding blockpublic InsertedContentView(javax.swing.text.Element elem, ViewPainter viewPainter)
elem
- the parent element, which is in this case the surrounding blockviewPainter
- painter to use for painting the viewpublic InsertedContentView(javax.swing.text.Element elem, ViewPainter viewPainter, ContentPainter contentPainter)
elem
- the parent element, which is in this case the surrounding blockviewPainter
- painter to use for painting the viewcontentPainter
- the painter to be used by this viewMethod Detail |
---|
public void setParent(javax.swing.text.View parent)
setParent
in class ContentView
public void setNewContent(java.lang.String newContent)
newContent
- content string.public float getMinimumSpan(int axis)
getMinimumSpan
in class ContentView
public java.lang.String toString()
toString
in class ContentView
public int getTextLength()
getTextLength
in class ContentView
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |