|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--TinyMCE_Layer
Defined in TinyMCE_Layer.class.js
Constructor Summary | |
TinyMCE_Layer
(<string> id, <boolean> bm)
Constructor for the TinyMCE Layer. |
Method Summary | |
HTMLElement
|
create(<string> n, <string> c, <HTMLElement> p)
Creates a element for the layer based on the id and specified name. |
Object
|
getAbsPosition(<DOMElement> n)
Returns the absolute x, y cordinate of the specified node. |
HTMLElement
|
getBlocker()
Returns the blocker DOM element, this is a invisible iframe. |
HTMLElement
|
getElement()
Returns the DOM element that the layer is binded to. |
void
|
hide()
Hides the layer. |
boolean
|
isVisible()
Returns true/false if the layer is visible or not. |
void
|
moveBy(<int> x, <int> y)
Moves the layer relative in pixels. |
void
|
moveRelativeTo(<HTMLElement> re, <string> p)
Moves the layer relative to the specified HTML element. |
void
|
moveTo(<int> x, <int> y)
Moves the layer absolute in pixels. |
int
|
parseInt(<string> s)
Parses a int value this method will return 0 if the string is empty. |
void
|
resizeBy(<int> w, <int> h)
Resizes the layer by the specified relative width and height. |
void
|
resizeTo(<int> w, <int> h)
Resizes the layer to the specified width and height. |
void
|
setBlockMode(<boolean> s)
Sets the block mode. |
void
|
show()
Shows the layer. |
void
|
updateBlocker()
Updates the select/iframe/flash blocker this will also block the caret in Firefox. |
Constructor Detail |
TinyMCE_Layer(<string> id, <boolean> bm)
id
- Unique ID name for the layer.
bm
- Block mode, defaults to true.
Method Detail |
HTMLElement create(<string> n, <string> c, <HTMLElement> p)
n
- Element tag name, like div.
c
- Optional class name to set as class attribute value.
p
- Optional parent element reference, defaults to body.
Object getAbsPosition(<DOMElement> n)
n
- DOM node to retrive x, y of.
HTMLElement getBlocker()
HTMLElement getElement()
void hide()
boolean isVisible()
void moveBy(<int> x, <int> y)
x
- Horizontal relative position in pixels.
y
- Vertical relative position in pixels.
void moveRelativeTo(<HTMLElement> re, <string> p)
re
- Element to move the layer relative to.
p
- Position of the layer tl = top left, tr = top right, bl = bottom left, br = bottom right.
void moveTo(<int> x, <int> y)
x
- Horizontal absolute position in pixels.
y
- Vertical absolute position in pixels.
int parseInt(<string> s)
s
- String to parse value of.
void resizeBy(<int> w, <int> h)
w
- Relative width value.
h
- Relative height value.
void resizeTo(<int> w, <int> h)
w
- Width value.
h
- Height value.
void setBlockMode(<boolean> s)
s
- Block mode state, true is the default value.
void show()
void updateBlocker()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |