| Method Summary | |
|---|---|
| jsx3.vector.Tag | Instantiates and returns a new instance of jsx3.vector.Canvas. |
| jsx3.vector.Tag | Creates the vector tag tree that will render this GUI control. |
| jsx3.vector.Tag | Returns the vector canvas on which this control paints itself. |
| void | Renders a cross-platform vector event handler. |
| boolean | updateVector(objVector : jsx3.vector.Tag) Updates the pre-existing vector tree of this control on, for example, a resize or repaint event. |
| Methods Inherited From jsx3.gui.Interactive |
|---|
| doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy |
| Methods Inherited From jsx3.gui.Painted |
|---|
| focus, getAbsolutePosition, getAttribute, getAttributes, getDynamicProperty, getRendered, insertHTML, onAfterPaint, onAfterRestoreView, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute, setDynamicProperty |
| Methods Inherited From jsx3.util.EventDispatcher |
|---|
| publish, subscribe, unsubscribe, unsubscribeAll |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Method Detail |
|---|
jsx3.vector.Canvas. The implementation of
createVector() in this class calls this method to create the base vector tag. This method may be
overridden to provide a base tag of another type that Canvas.
CustomVector.prototype.createVector = function() {
var objCanvas = this.jsxsuper();
// modify objCanvas, add children, etc.
return objCanvas;
};
This method should do the work of creating and updating the vector tree to the state when it is ready to be
rendered on screen, but without calling updateVector() directly.createVector() is called to create it.strEvtType bubbles up to the
HTML element rendered by objElm, the instance method of this object whose name is
strMethod will be called with two parameters: the browser event wrapped in an instance of
jsx3.gui.Event, and the native HTMLElement that defined the event handler.jsx3.gui.Event.CLICK, etc.true if the update is successful or false to
force the vector tree to be completely recreated with createVector().
The basic template for a method overriding this method is:
CustomVector.prototype.updateVector = function(objVector) {
this.jsxsuper(objVector);
// modify objCanvas, modify children, etc.
return true;
};
true if the tree could be updated inline or false if it must be
recreated by calling createVector().