Package org.loboevolution.html.control
Class RUIControl
- All Implemented Interfaces:
ImageObserver
,UINode
,BoundableRenderable
,RCollection
,RElement
,Renderable
,RenderableContainer
- Direct Known Subclasses:
RImgControl
RUIControl class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected final ModelNode
final UIControl
Fields inherited from class org.loboevolution.html.renderer.BaseElementRenderable
backgroundColor, backgroundImage, borderBottomColor, borderInfo, borderInsets, borderLeftColor, borderRightColor, borderTopColor, delayedPairs, INVALID_SIZE, lastBackgroundImageUri, layoutDeepCanBeInvalidated, marginInsets, overflowX, overflowY, paddingInsets, relativeOffsetX, relativeOffsetY, SCROLL_BAR_THICKNESS, userAgentContext, zIndex
Fields inherited from class org.loboevolution.html.renderer.BaseBoundableRenderable
container, layoutUpTreeCanBeInvalidated, originalParent, parent, SELECTION_COLOR, SELECTION_XOR
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface org.loboevolution.html.renderer.Renderable
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionRUIControl
(ModelNode me, UIControl widget, RenderableContainer container, UserAgentContext ucontext) Constructor for RUIControl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doLayout
(int availWidth, int availHeight, boolean sizeOnly) doLayout.boolean
extractSelectionText
(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.void
focus()
focus.getBlockBackgroundColor.getForegroundColor.getLowestRenderableSpot
(int x, int y) getLowestRenderableSpot.getPaintedBackgroundColor.getRenderables.int
Vertical alignment for elements rendered in a line.boolean
hasBackground.final void
invalidateLayoutLocal.final void
paint.boolean
paintSelection
(Graphics g, boolean isSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.void
Calledvoid
updateWidgetBounds
(int guiX, int guiY) updateWidgetBounds.Methods inherited from class org.loboevolution.html.renderer.BaseElementRenderable
addComponent, addDelayedPair, applyStyle, clearDelayedPairs, clearGUIComponents, clearStyle, getBorderInsets, getClipBounds, getCollapsibleMarginBottom, getCollapsibleMarginTop, getDeclaredHeight, getDeclaredMaxHeight, getDeclaredMaxWidth, getDeclaredMinHeight, getDeclaredMinWidth, getDeclaredWidth, getDelayedPairs, getInnerHeight, getInnerWidth, getInsets, getInsetsMarginBorder, getInsetsPadding, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getParentContainer, getZIndex, hasDeclaredWidth, imageUpdate, invalidateLayoutDeep, isContainedByNode, isMarginBoundary, layout, prePaint, sendDelayedPairsToParent, sendGUIComponentsToParent, setupRelativePosition, translateDescendentPoint, updateAllWidgetBounds, updateWidgetBounds
Methods inherited from class org.loboevolution.html.renderer.BaseRCollection
blur, getClipBoundsWithoutInsets, getDeclaredHeightImpl, getDeclaredWidthImpl, getRenderable, onMouseMoved, onMouseOut, onRightClick
Methods inherited from class org.loboevolution.html.renderer.BaseBoundableRenderable
contains, getBounds, getGUIPoint, getModelNode, getOrigin, getOriginalOrCurrentParent, getOriginalParent, getOriginRelativeTo, getOriginRelativeToAbs, getOriginRelativeToNoScroll, getParent, getRectangle, getRenderablePoint, getSize, getVisualBounds, getVisualHeight, getVisualWidth, invalidateLayoutUpTree, isDelegated, isValid, markLayoutValid, onDoubleClick, onMouseClick, onMouseDisarmed, onMousePressed, onMouseReleased, onMouseScroll, paintTranslated, relayout, relayoutIfValid, repaint, repaint, setOriginalParent, setParent
Methods inherited from class org.loboevolution.html.renderer.RRectangle
setBounds, setOrigin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.loboevolution.html.renderer.BoundableRenderable
contains, getBounds, getGUIPoint, getHeight, getModelNode, getOrdinal, getOrigin, getOriginalOrCurrentParent, getOriginalParent, getOriginRelativeTo, getOriginRelativeToAbs, getOriginRelativeToNoScroll, getParent, getRectangle, getRenderablePoint, getSize, getVisualBounds, getVisualHeight, getVisualWidth, getWidth, getX, getY, invalidateLayoutUpTree, isDelegated, onDoubleClick, onMouseClick, onMouseDisarmed, onMouseMoved, onMouseOut, onMousePressed, onMouseReleased, onMouseScroll, onRightClick, paintTranslated, relayout, repaint, repaint, setBounds, setDelegator, setHeight, setOrdinal, setOrigin, setOriginalParent, setParent, setWidth, setX, setY
Methods inherited from interface org.loboevolution.html.renderer.RCollection
blur, getClipBoundsWithoutInsets, getRenderable
Methods inherited from interface org.loboevolution.html.renderer.Renderable
findHtmlRenderable, isFixed
Methods inherited from interface org.loboevolution.html.renderer.RenderableContainer
getGUIPoint, getOriginRelativeToAbs, getVisualBounds, getVisualHeight, getVisualWidth, getY, invalidateLayoutUpTree, relayout, repaint
-
Field Details
-
declaredHeight
protected int declaredHeight -
declaredWidth
protected int declaredWidth -
modelNode
-
widget
-
-
Constructor Details
-
RUIControl
public RUIControl(ModelNode me, UIControl widget, RenderableContainer container, UserAgentContext ucontext) Constructor for RUIControl.
- Parameters:
me
- aModelNode
object.widget
- aUIControl
object.container
- aRenderableContainer
object.ucontext
- aUserAgentContext
object.
-
-
Method Details
-
doLayout
public void doLayout(int availWidth, int availHeight, boolean sizeOnly) doLayout.
- Specified by:
doLayout
in classBaseElementRenderable
- Parameters:
availWidth
- aInteger
object.availHeight
- aInteger
object.sizeOnly
- a boolean.
-
extractSelectionText
public boolean extractSelectionText(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.
- Specified by:
extractSelectionText
in interfaceBoundableRenderable
- Overrides:
extractSelectionText
in classBaseRCollection
- Parameters:
buffer
- aStringBuilder
object.inSelection
- a boolean.startPoint
- aRenderableSpot
object.endPoint
- aRenderableSpot
object.- Returns:
- a boolean.
-
focus
public void focus()focus.
- Specified by:
focus
in interfaceRCollection
- Specified by:
focus
in interfaceRenderableContainer
- Overrides:
focus
in classBaseRCollection
-
getBlockBackgroundColor
getBlockBackgroundColor.
- Overrides:
getBlockBackgroundColor
in classBaseBoundableRenderable
- Returns:
- a
Color
object.
-
getForegroundColor
getForegroundColor.
- Returns:
- a
Color
object.
-
getLowestRenderableSpot
getLowestRenderableSpot.
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a
RenderableSpot
object.
-
getPaintedBackgroundColor
getPaintedBackgroundColor.
- Returns:
- a
Color
object.
-
getRenderables
getRenderables.
- Returns:
- a
List
object.
-
getVAlign
public int getVAlign()Vertical alignment for elements rendered in a line. Returns one of the constants defined in this class.- Returns:
- a
Integer
object.
-
hasBackground
public boolean hasBackground()hasBackground.
- Returns:
- a boolean.
-
invalidateLayoutLocal
public final void invalidateLayoutLocal()invalidateLayoutLocal.
- Overrides:
invalidateLayoutLocal
in classBaseElementRenderable
-
paint
paint.
- Specified by:
paint
in interfaceRenderable
- Overrides:
paint
in classBaseElementRenderable
- Parameters:
g
- aGraphics
object.
-
paintSelection
public boolean paintSelection(Graphics g, boolean isSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.
- Specified by:
paintSelection
in interfaceBoundableRenderable
- Overrides:
paintSelection
in classBaseRCollection
- Parameters:
g
- aGraphics
object.isSelection
- a boolean.startPoint
- aRenderableSpot
object.endPoint
- aRenderableSpot
object.- Returns:
- a boolean.
-
repaint
Called- Parameters:
modelNode
- aModelNode
object.
-
updateWidgetBounds
public void updateWidgetBounds(int guiX, int guiY) updateWidgetBounds.
Updates bounds of all descendent's GUI components, based on root bounds.- Specified by:
updateWidgetBounds
in interfaceRCollection
- Overrides:
updateWidgetBounds
in classBaseRCollection
- Parameters:
guiX
- aInteger
object.guiY
- aInteger
object.
-