public class InlineGroupView extends GroupView
StyledView.Display
Modifier and Type | Field and Description |
---|---|
protected Gadget[] |
customViewGadgets |
protected Gadget[] |
endLabelGadgets |
protected Gadget[] |
startLabelGadgets |
element, style, viewToolTip
Constructor and Description |
---|
InlineGroupView(Element element,
Style style) |
Modifier and Type | Method and Description |
---|---|
protected static void |
appendGadgets(Gadget[] gadgets,
GadgetList gadgetList) |
protected Gadget[] |
contentToGadgets(StyledElementViewPart[] content,
Style contentStyle,
StyledElementViewPart.Role role,
boolean noWrap,
StyledViewFactory viewFactory)
Convert TextLabelVPs that do not support word wrap to ParagraphTextVPs
that support word wrap when added to ParagraphVPs.
|
Gadget[] |
getCustomViewGadgets() |
void |
getCustomViewGadgets(GadgetList gadgetList) |
StyledView.Display |
getDisplay()
Returns the CSS display used for this view of an element.
|
Gadget[] |
getEndLabelGadgets() |
void |
getEndLabelGadgets(GadgetList gadgetList) |
Gadget[] |
getStartLabelGadgets() |
void |
getStartLabelGadgets(GadgetList gadgetList) |
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. |
boolean |
isCustomView()
Returns
true if this view is a custom replacement for the
normal view of an element; false otherwise. |
boolean |
isInlineDisplay()
Returns
true if the display returned by
StyledView.getDisplay() is an inline-like display;
false if it is a block-like display. |
addChildViewGadgets, getGadgets, removeChildViewGadgets
contentToGadget, contentToImage, detachingFromModel, getElement, getMarginBottom, getMarginTop, getModel, getStyle, getViewFactory, getViewToolTip, hasDynamicVerticalMargins, isTreeView, isTreeViewContainer, singleContentToGadget
protected Gadget[] startLabelGadgets
protected Gadget[] customViewGadgets
protected Gadget[] endLabelGadgets
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 ViewBase
protected Gadget[] contentToGadgets(StyledElementViewPart[] content, Style contentStyle, StyledElementViewPart.Role role, boolean noWrap, StyledViewFactory viewFactory)
public boolean isCustomView()
ElementViewBase
true
if this view is a custom replacement for the
normal view of an element; false
otherwise.public Gadget[] getStartLabelGadgets()
public Gadget[] getCustomViewGadgets()
public Gadget[] getEndLabelGadgets()
public void getStartLabelGadgets(GadgetList gadgetList)
getStartLabelGadgets
in class GroupView
public void getCustomViewGadgets(GadgetList gadgetList)
getCustomViewGadgets
in class GroupView
public void getEndLabelGadgets(GadgetList gadgetList)
getEndLabelGadgets
in class GroupView
protected static final void appendGadgets(Gadget[] gadgets, GadgetList gadgetList)
public StyledView.Display getDisplay()
StyledView
public boolean isInlineDisplay()
StyledView
true
if the display returned by
StyledView.getDisplay()
is an inline-like display;
false
if it is a block-like display.