Description
richtexttoolbar
A class that acts as the parent controller for the individual format tools
[gregor 11.15.05]
Details
Properties (5)
-
_atools
-
<attribute name="_atools" value="$once{new Array()}" />
-
_debugformat
-
<attribute name="_debugformat" value="true" />
private var _debugformat;
Whether to print a lot of debug information
-
editor
-
<attribute name="editor" value="null" />
The reference to the richtexteditor associated with this toolbar.
-
_fontmap
-
<attribute name="_fontmap" value="$once{ { 'Times New Roman' : 'Times', 'Courier New' : 'Courier' } }" />
Fonts can have different names so we provide different options to
provide that mapping here.
-
_passthruchanges
-
<attribute name="_passthruchanges" value="true" />
private var _passthruchanges;
Whether value changes in components should be passed through to the editor
Methods (6)
-
construct()
-
<method name="construct" args="parent, args" />
private function construct(parent, args);
-
init()
-
-
matcheditorformat()
-
<method name="matcheditorformat" />
public function matcheditorformat();
Update the GUI to match the format specified in the editor's currentformat
-
matchformat()
-
<method name="matchformat" args="spec" />
public function matchformat(spec : textformat);
Update the GUI to match the format passed in
-
registerTool()
-
<method name="registerTool" args="myref, myfmt" />
public function registerTool(myref, myfmt);
add tool into the richtexttoolbar's tools array .
-
reset()
-
Reset the state of the richtexttoolbar's tools.
LZX Synopsis
<class name="
lz.richtexttoolbar" extends="
LzView
">
<attribute name="
_atools
" value="
$once{new Array()}" />
<attribute name="
editor
" value="
null" />
<attribute name="
_fontmap
" value="
$once{ { 'Times New Roman' : 'Times', 'Courier New' : 'Courier' } }" />
<method name="
construct
" args="
parent,
args" />
<method name="
reset
" />
</class>
JavaScript Synopsis
public
lz.richtexttoolbar extends
LzView
{
prototype private function
construct
(
parent,
args);
prototype private function
init
();
prototype public function
matchformat
(
spec : textformat);
prototype public function
reset
();
}