Class RTableCell
java.lang.Object
org.loboevolution.html.renderer.RRectangle
org.loboevolution.html.renderer.BaseElementRenderable
org.loboevolution.html.renderer.RBlock
org.loboevolution.html.renderer.table.RTableCell
- All Implemented Interfaces:
ImageObserver
,UINode
,BoundableRenderable
,RCollection
,RElement
,Renderable
,RenderableContainer
RTableCell class.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final RenderableContainer
protected boolean
protected final ModelNode
protected RCollection
protected RCollection
protected static final Color
Constant SELECTION_COLORprotected static final Color
Constant SELECTION_XORFields inherited from class org.loboevolution.html.renderer.RBlock
bodyLayout, defaultOverflowX, defaultOverflowY, endSelection, frameContext, hasHScrollBar, hasVScrollBar, listNesting, rendererContext, startSelection
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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
blur()
blur.boolean
contains
(int x, int y) contains.doCellLayout
(int width, int height, boolean expandWidth, boolean expandHeight, boolean sizeOnly) doCellLayout.void
focus()
focus.getBlockBackgroundColor.getBounds.int
Getter for the field colSpan.int
getDeclaredHeightImpl
(HTMLElementImpl element, int availHeight) getDeclaredHeightImpl.int
getDeclaredWidthImpl
(HTMLElementImpl element, int availWidth) getDeclaredWidthImpl.getGUIPoint
(int clientX, int clientY) getGUIPoint.getHeightText.getModelNode.getOrigin.getOriginalOrCurrentParent.getOriginalParent.getOriginRelativeTo
(RCollection ancestor) getOriginRelativeTo.getOriginRelativeToAbs
(RCollection ancestor) getOriginRelativeToAbs.getOriginRelativeToNoScroll
(RCollection ancestor) getOriginRelativeToNoScroll.getParent.getRenderable
(int x, int y) getRenderable.getRenderablePoint
(int guiX, int guiY) getRenderablePoint.int
Getter for the field rowSpan.getSize()
getSize.int
getVirtualColumn.int
getVirtualRow.getVisualBounds.getWidthText.final void
invalidateLayoutUpTree.boolean
isDelegated.protected boolean
isMarginBoundary.boolean
isValid()
isValid.void
markLayoutValid.void
onMouseMoved
(MouseEvent event, int x, int y, boolean triggerEvent, ModelNode limit) onMouseMoved.void
onMouseOut
(MouseEvent event, int x, int y, ModelNode limit) onMouseOut.boolean
onRightClick
(MouseEvent event, int x, int y) onRightClick.final void
paintTranslated.void
relayout()
relayout.void
relayoutIfValid.void
repaint()
repaint.void
repaint
(int x, int y, int width, int height) repaint.void
setCellBounds
(SizeInfo[] colSizes, SizeInfo[] rowSizes, int hasBorder, int cellSpacingX, int cellSpacingY) setCellBounds.void
setOriginalParent
(RCollection origParent) setOriginalParent.void
setParent
(RCollection parent) setParent.Methods inherited from class org.loboevolution.html.renderer.RBlock
clearStyle, doLayout, doLayout, ensureVisible, extractSelectionText, getClipBoundsWithoutInsets, getExportableFloatingInfo, getFirstBaselineOffset, getFirstLineHeight, getLowestRenderableSpot, getPaintedBackgroundColor, getRBlockViewport, getRenderables, getViewportListNesting, getVisualHeight, getVisualWidth, getVScrollBarWidth, getX, getY, invalidateLayoutLocal, isOverflowVisibleX, isOverflowVisibleY, layout, onDoubleClick, onMouseClick, onMouseDisarmed, onMousePressed, onMouseReleased, onMouseScroll, paint, paintSelection, repaint, scrollByUnits, scrollTo, setSelectionEnd, setSelectionStart, toString, updateWidgetBounds
Methods inherited from class org.loboevolution.html.renderer.BaseElementRenderable
addComponent, addDelayedPair, applyStyle, clearDelayedPairs, clearGUIComponents, 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, layout, prePaint, sendDelayedPairsToParent, sendGUIComponentsToParent, setupRelativePosition, translateDescendentPoint, updateAllWidgetBounds, updateWidgetBounds
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, 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, getWidth, invalidateLayoutUpTree, isDelegated, onMouseMoved, onMouseOut, 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, focus, getRenderable
Methods inherited from interface org.loboevolution.html.renderer.Renderable
findHtmlRenderable, isFixed
Methods inherited from interface org.loboevolution.html.renderer.RenderableContainer
focus, getGUIPoint, getOriginRelativeToAbs, getVisualBounds, invalidateLayoutUpTree, relayout, repaint
-
Field Details
-
SELECTION_COLOR
Constant SELECTION_COLOR -
SELECTION_XOR
Constant SELECTION_XOR -
container
-
layoutUpTreeCanBeInvalidated
protected boolean layoutUpTreeCanBeInvalidated -
modelNode
-
originalParent
-
parent
-
-
Constructor Details
-
RTableCell
Constructor for RTableCell.
- Parameters:
info
- aRBlockInfo
object.
-
-
Method Details
-
doCellLayout
public Dimension doCellLayout(int width, int height, boolean expandWidth, boolean expandHeight, boolean sizeOnly) doCellLayout.
- Parameters:
width
- The width available, including insets.height
- The height available, including insets.expandWidth
- a boolean.expandHeight
- a boolean.sizeOnly
- a boolean.- Returns:
- a
Dimension
object.
-
getColSpan
public int getColSpan()Getter for the field colSpan.
- Returns:
- a
Integer
object.
-
getHeightText
getHeightText.
- Returns:
- a
String
object.
-
getRowSpan
public int getRowSpan()Getter for the field rowSpan.
- Returns:
- a
Integer
object.
-
getVirtualColumn
public int getVirtualColumn()getVirtualColumn.
- Returns:
- Returns the virtualColumn.
-
getVirtualRow
public int getVirtualRow()getVirtualRow.
- Returns:
- Returns the virtualRow.
-
getWidthText
getWidthText.
- Returns:
- a
String
object.
-
isMarginBoundary
protected boolean isMarginBoundary()isMarginBoundary.
- Overrides:
isMarginBoundary
in classBaseElementRenderable
- Returns:
- a boolean.
-
setCellBounds
public void setCellBounds(SizeInfo[] colSizes, SizeInfo[] rowSizes, int hasBorder, int cellSpacingX, int cellSpacingY) setCellBounds.
-
blur
public void blur()blur.
- Specified by:
blur
in interfaceRCollection
-
focus
public void focus()focus.
- Specified by:
focus
in interfaceRCollection
-
getRenderable
getRenderable.
- Specified by:
getRenderable
in interfaceRCollection
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a
BoundableRenderable
object.
-
onMouseMoved
onMouseMoved.
- Specified by:
onMouseMoved
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.triggerEvent
- a boolean.limit
- aModelNode
object.
-
onMouseOut
onMouseOut.
- Specified by:
onMouseOut
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.limit
- aModelNode
object.
-
onRightClick
onRightClick.
- Specified by:
onRightClick
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
getDeclaredWidthImpl
getDeclaredWidthImpl.
- Parameters:
element
- aHTMLElementImpl
object.availWidth
- aInteger
object.- Returns:
- a
Integer
object.
-
getDeclaredHeightImpl
getDeclaredHeightImpl.
- Parameters:
element
- aHTMLElementImpl
object.availHeight
- aInteger
object.- Returns:
- a
Integer
object.
-
contains
public boolean contains(int x, int y) contains.
- Specified by:
contains
in interfaceBoundableRenderable
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
getBlockBackgroundColor
getBlockBackgroundColor.
- Returns:
- a
Color
object.
-
getBounds
getBounds.
- Specified by:
getBounds
in interfaceBoundableRenderable
- Returns:
- a
Rectangle
object.
-
getVisualBounds
getVisualBounds.
- Specified by:
getVisualBounds
in interfaceBoundableRenderable
- Returns:
- a
Rectangle
object.
-
getGUIPoint
getGUIPoint.
- Specified by:
getGUIPoint
in interfaceBoundableRenderable
- Parameters:
clientX
- aInteger
object.clientY
- aInteger
object.- Returns:
- a
Point
object.
-
getModelNode
getModelNode.
- Specified by:
getModelNode
in interfaceBoundableRenderable
- Specified by:
getModelNode
in interfaceRenderable
- Returns:
- a
ModelNode
object.
-
getOrigin
getOrigin.
- Specified by:
getOrigin
in interfaceBoundableRenderable
- Returns:
- a
Point
object.
-
getOriginalOrCurrentParent
getOriginalOrCurrentParent.
- Specified by:
getOriginalOrCurrentParent
in interfaceBoundableRenderable
- Returns:
- a
RCollection
object.
-
getOriginalParent
getOriginalParent.
This is the parent based on the original element hierarchy.- Specified by:
getOriginalParent
in interfaceBoundableRenderable
- Returns:
- a
RCollection
object.
-
getOriginRelativeTo
getOriginRelativeTo.
- Specified by:
getOriginRelativeTo
in interfaceBoundableRenderable
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getOriginRelativeToNoScroll
getOriginRelativeToNoScroll.
- Specified by:
getOriginRelativeToNoScroll
in interfaceBoundableRenderable
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getOriginRelativeToAbs
getOriginRelativeToAbs.
- Specified by:
getOriginRelativeToAbs
in interfaceBoundableRenderable
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getParent
getParent.
- Specified by:
getParent
in interfaceBoundableRenderable
- Returns:
- a
RCollection
object.
-
getRenderablePoint
getRenderablePoint.
- Specified by:
getRenderablePoint
in interfaceBoundableRenderable
- Parameters:
guiX
- aInteger
object.guiY
- aInteger
object.- Returns:
- a
Point
object.
-
getSize
getSize.
- Specified by:
getSize
in interfaceBoundableRenderable
- Returns:
- a
Dimension
object.
-
invalidateLayoutUpTree
public final void invalidateLayoutUpTree()invalidateLayoutUpTree.
Invalidates this Renderable and its parent (i.e. all ancestors).- Specified by:
invalidateLayoutUpTree
in interfaceBoundableRenderable
-
isValid
public boolean isValid()isValid.
- Returns:
- a boolean.
-
markLayoutValid
public void markLayoutValid()markLayoutValid.
-
paintTranslated
paintTranslated.
- Specified by:
paintTranslated
in interfaceBoundableRenderable
- Parameters:
g
- aGraphics
object.
-
relayout
public void relayout()relayout.
Invalidates the current Renderable (which invalidates its ancestors) and then requests the top level GUI container to do the layout and repaint. It's safe to call this method outside the GUI thread.- Specified by:
relayout
in interfaceBoundableRenderable
-
relayoutIfValid
public void relayoutIfValid()relayoutIfValid.
-
repaint
public void repaint()repaint.
- Specified by:
repaint
in interfaceBoundableRenderable
-
repaint
public void repaint(int x, int y, int width, int height) repaint.
-
setOriginalParent
setOriginalParent.
- Specified by:
setOriginalParent
in interfaceBoundableRenderable
- Parameters:
origParent
- aRCollection
object.
-
setParent
setParent.
- Specified by:
setParent
in interfaceBoundableRenderable
- Parameters:
parent
- aRCollection
object.
-
isDelegated
public boolean isDelegated()Description copied from interface:BoundableRenderable
isDelegated.
- Specified by:
isDelegated
in interfaceBoundableRenderable
- Returns:
- a boolean.
-
getRectangle
- Specified by:
getRectangle
in interfaceBoundableRenderable
-