public class HTMLDiv extends HTMLContainer implements HandlesMouseEvents
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCROLLSYNC_METHOD_BOTH |
static java.lang.String |
SCROLLSYNC_METHOD_HORIZONTAL |
static java.lang.String |
SCROLLSYNC_METHOD_NONE |
static java.lang.String |
SCROLLSYNC_METHOD_VERTICAL |
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX
Constructor and Description |
---|
HTMLDiv(java.lang.String id)
create a division
|
HTMLDiv(java.lang.String id,
boolean allowMixed)
create a division
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultHTML(java.lang.String defaultHTML) |
void |
addMouseEvent(HTMLMouseEvent me)
Add a mouse event to this component.
|
void |
addSrollingSync(java.lang.String divId,
java.lang.String method) |
protected void |
compile(ClientBrowser browser)
This is the spot to put all your generation
of the HTML components.
|
java.lang.String |
getId()
get the ID of this component
|
protected void |
iGenerate(ClientBrowser browser,
java.lang.StringBuilder buffer)
generate the raw HTML for this component.
|
protected void |
iSetId(java.lang.String id)
set the ID of this component.
|
void |
setBackgroundColor(java.lang.String backgroundColor) |
void |
setBackgroundImage(java.lang.String image) |
void |
setBorderBottomColor(java.lang.String borderBottomColor) |
void |
setBorderBottomStyle(java.lang.String borderBottomStyle) |
void |
setBorderBottomWidth(int borderBottomWidth) |
void |
setBorderColor(java.lang.String borderColor) |
void |
setBorderLeftColor(java.lang.String borderLeftColor) |
void |
setBorderLeftStyle(java.lang.String borderLeftStyle) |
void |
setBorderLeftWidth(int borderLeftWidth) |
void |
setBorderRightColor(java.lang.String borderRightColor) |
void |
setBorderRightStyle(java.lang.String borderRightStyle) |
void |
setBorderRightWidth(int borderRightWidth) |
void |
setBorderStyle(java.lang.String borderStyle) |
void |
setBorderTopColor(java.lang.String borderTopColor) |
void |
setBorderTopStyle(java.lang.String borderTopStyle) |
void |
setBorderTopWidth(int borderTopWidth) |
void |
setBorderWidth(int w) |
void |
setBottom(int v) |
void |
setClip(java.lang.String top,
java.lang.String bottom,
java.lang.String left,
java.lang.String right) |
void |
setColour(java.lang.String type,
java.awt.Color color) |
void |
setCursor(java.lang.String v) |
void |
setDisplayMode(java.lang.String displayMode) |
void |
setHeight(java.lang.String v) |
void |
setId(java.lang.String id)
set the ID of this component.
|
void |
setLeft(int v) |
void |
setLeftMargin(java.lang.String v) |
void |
setMarginHeight(java.lang.String v) |
void |
setMarginWidth(java.lang.String v) |
void |
setMaxWidth(java.lang.String w)
the max width
|
void |
setNoWrap(boolean flag)
do not wrap this division
|
void |
setOverflow(java.lang.String v) |
void |
setOverflowX(java.lang.String v) |
void |
setOverflowY(java.lang.String v) |
void |
setPosition(java.lang.String type) |
void |
setRight(int v) |
void |
setTop(int v) |
void |
setTopMargin(java.lang.String v) |
void |
setType(java.lang.String type)
set the type
|
void |
setVisible(boolean visible) |
void |
setWidth(java.lang.String v) |
void |
setZ(int index) |
addComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponent
addJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touch
public static final java.lang.String SCROLLSYNC_METHOD_NONE
public static final java.lang.String SCROLLSYNC_METHOD_VERTICAL
public static final java.lang.String SCROLLSYNC_METHOD_HORIZONTAL
public static final java.lang.String SCROLLSYNC_METHOD_BOTH
public HTMLDiv(@Nullable java.lang.String id, boolean allowMixed)
id
- The identifier for the divisionallowMixed
- allow mixed cause IDspublic HTMLDiv(@Nullable java.lang.String id)
id
- The identifier for the division@CheckReturnValue @Nullable public java.lang.String getId()
getId
in class HTMLComponent
public final void setType(@Nullable java.lang.String type)
type
- the typepublic final void setId(@Nonnull java.lang.String id)
id
- The id of the componentprotected final void iSetId(@Nonnull java.lang.String id)
HTMLComponent
iSetId
in class HTMLComponent
id
- The id of the componentpublic void addMouseEvent(HTMLMouseEvent me)
addMouseEvent
in interface HandlesMouseEvents
me
- The mouse eventpublic void setBackgroundImage(java.lang.String image)
image
- public void setColour(java.lang.String type, java.awt.Color color)
type
- the typecolor
- public void setZ(int index)
index
- public void setPosition(java.lang.String type)
type
- the typepublic void setVisible(boolean visible)
visible
- public void setLeft(int v)
v
- the valuepublic void setTop(int v)
v
- the valuepublic void setBorderWidth(int w)
w
- public void setRight(int v)
v
- the valuepublic void setNoWrap(boolean flag)
flag
- true to not wrap.public void setBottom(int v)
v
- the valuepublic void setWidth(java.lang.String v)
v
- the valuepublic void setMaxWidth(java.lang.String w)
w
- widthpublic void setHeight(java.lang.String v)
v
- the valuepublic void setOverflow(java.lang.String v)
v
- the valuepublic void setOverflowY(java.lang.String v)
v
- the valuepublic void setOverflowX(java.lang.String v)
v
- the valuepublic void setClip(java.lang.String top, java.lang.String bottom, java.lang.String left, java.lang.String right)
top
- bottom
- left
- right
- public void setCursor(java.lang.String v)
v
- the valuepublic void setDisplayMode(java.lang.String displayMode)
displayMode
- public void setTopMargin(java.lang.String v)
v
- the valuepublic void setLeftMargin(java.lang.String v)
v
- the valuepublic void setMarginHeight(java.lang.String v)
v
- the valuepublic void setMarginWidth(java.lang.String v)
v
- the valuepublic void setBorderColor(java.lang.String borderColor)
borderColor
- public void setBorderStyle(java.lang.String borderStyle)
borderStyle
- public void setBorderBottomColor(java.lang.String borderBottomColor)
borderBottomColor
- public void setBorderBottomWidth(int borderBottomWidth)
borderBottomWidth
- public void setBorderBottomStyle(java.lang.String borderBottomStyle)
borderBottomStyle
- public void setBorderLeftColor(java.lang.String borderLeftColor)
borderLeftColor
- public void setBorderLeftWidth(int borderLeftWidth)
borderLeftWidth
- public void setBorderLeftStyle(java.lang.String borderLeftStyle)
borderLeftStyle
- public void setBorderRightColor(java.lang.String borderRightColor)
borderRightColor
- public void setBorderRightWidth(int borderRightWidth)
borderRightWidth
- public void setBorderRightStyle(java.lang.String borderRightStyle)
borderRightStyle
- public void setBorderTopColor(java.lang.String borderTopColor)
borderTopColor
- public void setBorderTopWidth(int borderTopWidth)
borderTopWidth
- public void setBorderTopStyle(java.lang.String borderTopStyle)
borderTopStyle
- public void setBackgroundColor(java.lang.String backgroundColor)
backgroundColor
- public void addSrollingSync(java.lang.String divId, java.lang.String method)
divId
- method
- protected void compile(ClientBrowser browser)
HTMLComponent
compile
in class HTMLComponent
browser
- public void addDefaultHTML(java.lang.String defaultHTML)
protected void iGenerate(ClientBrowser browser, java.lang.StringBuilder buffer)
iGenerate
in class HTMLComponent
browser
- The target browserbuffer
- The generate HTMLstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.