superwaba.ext.xplat.html
Class HtmlContainer
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Container
|
+--superwaba.ext.xplat.html.HtmlContainer
- public class HtmlContainer
- extends Container
HtmlContainer renders an HTML Page
| Fields inherited from class waba.ui.Container |
BORDER_LOWERED,
BORDER_NONE,
BORDER_RAISED,
BORDER_SIMPLE,
children,
lastH,
lastW,
lastX,
lastY,
parentWindow,
started,
tabOrder,
tail |
| Fields inherited from class waba.ui.Control |
AFTER,
appId,
appObj,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
clearValueInt,
clearValueStr,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
focusTraversable,
font,
foreColor,
foreDis,
height,
highlightRectsCount,
isHighlighting,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
uiCE,
uiFlat,
uiPalm,
uiVista,
visible,
width,
x,
x2,
y,
y2 |
| Methods inherited from class waba.ui.Container |
add,
add,
add,
broadcastEvent,
clear,
findChild,
getChildren,
getClientRect,
getClientRect,
onAdd,
onColorsChanged,
onRemove,
onStart,
paintChildren,
remove,
setBorderStyle,
setEnabled,
setHighlighting,
swapToTopmostWindow |
| Methods inherited from class waba.ui.Control |
addTimer,
changeHighlighted,
contains,
createGraphics,
drawHighlight,
getAbsoluteRect,
getBackColor,
getFont,
getFontMetrics,
getForeColor,
getNext,
getParent,
getParentWindow,
getPos,
getPreferredHeight,
getPreferredWidth,
getRect,
getSize,
isDisplayed,
isEnabled,
isVisible,
onBoundsChanged,
onFontChanged,
onWindowPaintFinished,
postEvent,
removeTimer,
repaint,
requestFocus,
setBackColor,
setBackForeColors,
setFocusLess,
setFont,
setForeColor,
setRect,
setRect,
setRect,
setVisible,
translateFromOrigin,
uiStyleChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
vOffset
public int vOffset
hOffset
public int hOffset
vOffsetNew
protected int vOffsetNew
hOffsetNew
protected int hOffsetNew
rWidth
protected int rWidth
rHeight
protected int rHeight
HtmlContainer
public HtmlContainer()
- Constructor
getVerticalScrollbar
public ScrollBar getVerticalScrollbar()
getHorizontalScrollbar
public ScrollBar getHorizontalScrollbar()
onNavigate
public void onNavigate(java.lang.String location)
- Called when a control was pressed in order to navigate
to another location
- Parameters:
location - URL of the location where to navigate
getZoomFactor
public float getZoomFactor()
- added zoom factor for client side scaling of content
setZoomFactor
public void setZoomFactor(float zoom)
- added zoom factor for client side scaling of content
- Parameters:
zoom -
setDocument
public void setDocument(Document doc)
- Sets the document to be displayed in this HtmlContainer.
- Parameters:
doc - document to be rendered.
getMaxHeight
protected int getMaxHeight()
repaintNow
public void repaintNow()
- Description copied from class: Control
- Redraws the control immediately. If this control is a Window, the whole window area is
marked for repaint (useful if you're removing some controls from a container)
- Overrides:
- repaintNow in class Control
onPaint
public void onPaint(Graphics g)
- Description copied from class: Container
- Draws the border (if any). If you override this method, be sure to call
super.onPaint(g);, or the border will not be drawn.
- Overrides:
- onPaint in class Container
- Tags copied from class: Control
- Parameters:
g - the graphics object for drawing- See Also:
Graphics
onEvent
public void onEvent(Event event)
- Description copied from class: Control
- Called to process key, pen, control and other posted events.
- Overrides:
- onEvent in class Control
- Tags copied from class: Control
- Parameters:
event - the event to process- See Also:
Event,
KeyEvent,
PenEvent
createGraphics
public Graphics createGraphics(Control c)
- Creates a Graphics object which can be used to draw in the given control.
This method translates the graphics to the origin of the control, taking
the current scroll into account.
It sets a clipping rectangle on the graphics.
- Parameters:
c - control to be repainted.- Returns:
- the created Graphics