public class CollapsibleParagraphView extends ParagraphView implements CollapsibleView
StyledView.Display
Modifier and Type | Field and Description |
---|---|
protected boolean |
collapsed |
protected Image |
collapsedImage |
protected Style.TextAlign |
collapsedImageAlign |
protected byte |
notCollapsibleFoot |
protected byte |
notCollapsibleHead |
CUSTOM_VIEW, flags, INLINE_VIEW
element, style, viewToolTip
Constructor and Description |
---|
CollapsibleParagraphView(Element element,
Style style) |
Modifier and Type | Method and Description |
---|---|
protected Division |
createDivision(Style style,
StyledElementView view,
StyledElementViewPart.Role role) |
void |
initView(ViewParameters param,
ViewParameters paramBefore,
Style styleBefore,
ViewParameters paramAfter,
Style styleAfter,
StyledViewFactory viewFactory)
Creates one or more
Gadget s,
themselves implementing the StyledElementViewPart interface,
which are used to render an element graphically on screen. |
addChildViewGadgets, addInlineContent, getDisplay, getViewGadget, insertGadgets, isInlineDisplay, removeChildViewGadgets
getGadget, getGadgets, isCustomView
contentToGadget, contentToImage, detachingFromModel, getElement, getMarginBottom, getMarginTop, getModel, getStyle, getViewFactory, getViewToolTip, hasDynamicVerticalMargins, isTreeView, isTreeViewContainer, singleContentToGadget
protected boolean collapsed
protected byte notCollapsibleHead
protected byte notCollapsibleFoot
protected Style.TextAlign collapsedImageAlign
protected Image collapsedImage
public void initView(ViewParameters param, ViewParameters paramBefore, Style styleBefore, ViewParameters paramAfter, Style styleAfter, StyledViewFactory viewFactory)
StyledElementView
Gadget
s,
themselves implementing the StyledElementViewPart
interface,
which are used to render an element graphically on screen.initView
in interface StyledElementView
initView
in class ParagraphView
protected Division createDivision(Style style, StyledElementView view, StyledElementViewPart.Role role)
createDivision
in class ParagraphView