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 intprotected intprotected final ModelNodefinal UIControlFields 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, zIndexFields inherited from class org.loboevolution.html.renderer.BaseBoundableRenderable
container, layoutUpTreeCanBeInvalidated, originalParent, parent, SELECTION_COLOR, SELECTION_XORFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields 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 TypeMethodDescriptionvoiddoLayout(int availWidth, int availHeight, boolean sizeOnly) doLayout.booleanextractSelectionText(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.voidfocus()focus.getBlockBackgroundColor.getForegroundColor.getLowestRenderableSpot(int x, int y) getLowestRenderableSpot.getPaintedBackgroundColor.getRenderables.intVertical alignment for elements rendered in a line.booleanhasBackground.final voidinvalidateLayoutLocal.final voidpaint.booleanpaintSelection(Graphics g, boolean isSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.voidCalledvoidupdateWidgetBounds(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, updateWidgetBoundsMethods inherited from class org.loboevolution.html.renderer.BaseRCollection
blur, getClipBoundsWithoutInsets, getDeclaredHeightImpl, getDeclaredWidthImpl, getRenderable, onMouseMoved, onMouseOut, onRightClickMethods 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, setParentMethods inherited from class org.loboevolution.html.renderer.RRectangle
setBounds, setOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, setYMethods inherited from interface org.loboevolution.html.renderer.RCollection
blur, getClipBoundsWithoutInsets, getRenderableMethods inherited from interface org.loboevolution.html.renderer.Renderable
findHtmlRenderable, isFixedMethods 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- aModelNodeobject.widget- aUIControlobject.container- aRenderableContainerobject.ucontext- aUserAgentContextobject.
-
-
Method Details
-
doLayout
public void doLayout(int availWidth, int availHeight, boolean sizeOnly) doLayout.
- Specified by:
doLayoutin classBaseElementRenderable- Parameters:
availWidth- aIntegerobject.availHeight- aIntegerobject.sizeOnly- a boolean.
-
extractSelectionText
public boolean extractSelectionText(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.
- Specified by:
extractSelectionTextin interfaceBoundableRenderable- Overrides:
extractSelectionTextin classBaseRCollection- Parameters:
buffer- aStringBuilderobject.inSelection- a boolean.startPoint- aRenderableSpotobject.endPoint- aRenderableSpotobject.- Returns:
- a boolean.
-
focus
public void focus()focus.
- Specified by:
focusin interfaceRCollection- Specified by:
focusin interfaceRenderableContainer- Overrides:
focusin classBaseRCollection
-
getBlockBackgroundColor
getBlockBackgroundColor.
- Overrides:
getBlockBackgroundColorin classBaseBoundableRenderable- Returns:
- a
Colorobject.
-
getForegroundColor
getForegroundColor.
- Returns:
- a
Colorobject.
-
getLowestRenderableSpot
getLowestRenderableSpot.
- Parameters:
x- aIntegerobject.y- aIntegerobject.- Returns:
- a
RenderableSpotobject.
-
getPaintedBackgroundColor
getPaintedBackgroundColor.
- Returns:
- a
Colorobject.
-
getRenderables
getRenderables.
- Returns:
- a
Listobject.
-
getVAlign
public int getVAlign()Vertical alignment for elements rendered in a line. Returns one of the constants defined in this class.- Returns:
- a
Integerobject.
-
hasBackground
public boolean hasBackground()hasBackground.
- Returns:
- a boolean.
-
invalidateLayoutLocal
public final void invalidateLayoutLocal()invalidateLayoutLocal.
- Overrides:
invalidateLayoutLocalin classBaseElementRenderable
-
paint
paint.
- Specified by:
paintin interfaceRenderable- Overrides:
paintin classBaseElementRenderable- Parameters:
g- aGraphicsobject.
-
paintSelection
public boolean paintSelection(Graphics g, boolean isSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.
- Specified by:
paintSelectionin interfaceBoundableRenderable- Overrides:
paintSelectionin classBaseRCollection- Parameters:
g- aGraphicsobject.isSelection- a boolean.startPoint- aRenderableSpotobject.endPoint- aRenderableSpotobject.- Returns:
- a boolean.
-
repaint
Called- Parameters:
modelNode- aModelNodeobject.
-
updateWidgetBounds
public void updateWidgetBounds(int guiX, int guiY) updateWidgetBounds.
Updates bounds of all descendent's GUI components, based on root bounds.- Specified by:
updateWidgetBoundsin interfaceRCollection- Overrides:
updateWidgetBoundsin classBaseRCollection- Parameters:
guiX- aIntegerobject.guiY- aIntegerobject.
-