Name

richtexttoolbar

Synopsis

LZX: richtexttoolbar
JavaScript: lz.richtexttoolbar
Type: Class
Access: public
Topic: Incubator.Rich Text Editor
Declared in: lps/components/incubator/rich-text/richtexttoolbar-class.lzx

Description

richtexttoolbar A class that acts as the parent controller for the individual format tools [gregor 11.15.05]

Superclass Chain

node (LzNode) » view (LzView) » richtexttoolbar

Known Subclasses

Details

Properties (5)

_atools
<attribute name="_atools" value="$once{new Array()}" />
private var _atools;
_debugformat
<attribute name="_debugformat" value="true" />
private var _debugformat;
Whether to print a lot of debug information
editor
<attribute name="editor" value="null" />
public var editor;
The reference to the richtexteditor associated with this toolbar.
_fontmap
<attribute name="_fontmap" value="$once{ { 'Times New Roman' : 'Times', 'Courier New' : 'Courier' } }" />
private var _fontmap;
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()
<method name="init" />
private function 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()
<method name="reset" />
public function 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=" _debugformat " value="true" />
  <attribute name=" editor " value="null" />
  <attribute name=" _fontmap " value="$once{ { 'Times New Roman' : 'Times', 'Courier New' : 'Courier' } }" />
  <attribute name=" _passthruchanges " value="true" />
  <method name=" construct " args="parent, args" />
  <method name=" init " />
  <method name=" matcheditorformat " />
  <method name=" matchformat " args="spec" />
  <method name=" registerTool " args="myref, myfmt" />
  <method name=" reset " />
</class>

JavaScript Synopsis

public lz.richtexttoolbar extends  LzView  {
  private var _atools ;
  private var _debugformat ;
  public var editor ;
  private var _fontmap ;
  private var _passthruchanges ;
  prototype private function construct (parent, args);
  prototype private function init ();
  prototype public function matcheditorformat ();
  prototype public function matchformat (spec : textformat);
  prototype public function registerTool (myref, myfmt);
  prototype public function reset ();
}