| java.lang.Object org.directwebremoting.proxy.io.Context jsx3.lang.Object jsx3.app.Model jsx3.gui.Painted
All known Subclasses: jsx3.gui.Sound, jsx3.gui.Block,
Painted | public class Painted extends jsx3.app.Model (Code) | | Abstract superclass of model objects that are painted to screen.
author: Joe Walker [joe at getahead dot org] author: DRAPGEN - Dwr Reverse Ajax Proxy GENerator |
Method Summary | |
public void | focus(org.directwebremoting.proxy.Callback<String> callback) | public jsx3.lang.Object | getAbsolutePosition(String objRoot, String objGUI) Returns the absolute positioning of the object's on-screen view in relation to JSXROOT (whose left/top is 0/0). | public T | getAbsolutePosition(String objRoot, String objGUI, Class<T> returnType) Returns the absolute positioning of the object's on-screen view in relation to JSXROOT (whose left/top is 0/0). | public void | getAttribute(String strName, org.directwebremoting.proxy.Callback<String> callback) | public jsx3.lang.Object | getAttributes() | public T | getAttributes(Class<T> returnType) | public void | getDynamicProperty(String strName, org.directwebremoting.proxy.Callback<String> callback) | public void | getRendered(jsx3.gui.Event objGUI, org.directwebremoting.proxy.Callback<String> callback) | public void | getRendered(jsx3.lang.Object objGUI, org.directwebremoting.proxy.Callback<String> callback) | public void | onAfterPaint(String objGUI) A hook that subclasses of Painted may override in order to perform additional manipulation of the HTML DOM
created by the paint method. | public void | paint(org.directwebremoting.proxy.Callback<String> callback) | public void | paintChild(jsx3.gui.Painted objChild, boolean bGroup, String objGUI, boolean bCascadeOnly) Paints a child of this object without repainting this entire object. | public void | paintChildren(Object[] c, org.directwebremoting.proxy.Callback<String> callback) Iterates through children and returns concatenation of paint() method for all children.
Parameters: c - the children to paint. | public void | recalcBox(Object[] properties) Removes the box model abstraction for a given object and its descendants. | public jsx3.gui.Painted | removeAttribute(String strName) | public T | removeAttribute(String strName, Class<T> returnType) | public jsx3.gui.Painted | removeAttributes() | public T | removeAttributes(Class<T> returnType) | public void | repaint(org.directwebremoting.proxy.Callback<String> callback) Updates the view of this object by calling paint() and replacing the current view with the
returned HTML. | public jsx3.gui.Painted | setAttribute(String strName, String strValue) | public jsx3.gui.Painted | setDynamicProperty(String strName, String strValue) |
Painted | public Painted(Context context, String extension, ScriptProxy scriptProxy)(Code) | | All reverse ajax proxies need context to work from
Parameters: scriptProxy - The place we are writing scripts to Parameters: context - The script that got us to where we are now |
Painted | public Painted(String strName)(Code) | | instance initializer
Parameters: strName - unique name distinguishing this object from all other JSX GUI objects in the JSX application |
getAbsolutePosition | public jsx3.lang.Object getAbsolutePosition(String objRoot, String objGUI)(Code) | | Returns the absolute positioning of the object's on-screen view in relation to JSXROOT (whose left/top is 0/0).
Returns information as a JavaScript object with properties, L, T, W, H
of @objRoot is null, the on-screen view for JSXROOT is used as the object reference
Parameters: objRoot - object reference to IE DOM object (i.e., div, span, etc); if null is passed, the first div child of JSXROOT's on-screen representation will be used Parameters: objGUI - object reference to item to get absolute position for—as opposed to this instance (useful for determining placement of html objects contained by JSX objects, but not part of the actual JSX DOM) JScript object with properties: L, T, W, H (corresponding to left, top width, height) |
getAbsolutePosition | public T getAbsolutePosition(String objRoot, String objGUI, Class<T> returnType)(Code) | | Returns the absolute positioning of the object's on-screen view in relation to JSXROOT (whose left/top is 0/0).
Returns information as a JavaScript object with properties, L, T, W, H
of @objRoot is null, the on-screen view for JSXROOT is used as the object reference
Parameters: objRoot - object reference to IE DOM object (i.e., div, span, etc); if null is passed, the first div child of JSXROOT's on-screen representation will be used Parameters: objGUI - object reference to item to get absolute position for—as opposed to this instance (useful for determining placement of html objects contained by JSX objects, but not part of the actual JSX DOM) Parameters: returnType - The expected return type JScript object with properties: L, T, W, H (corresponding to left, top width, height) |
getAttributes | public jsx3.lang.Object getAttributes()(Code) | | Returns handle to the JavaScript Object Array containing all events for the JSX GUI object;
NOTE: This object will contain zero or more JavaScript Objects with the following Properties: script, type, system
|
getAttributes | public T getAttributes(Class<T> returnType)(Code) | | Returns handle to the JavaScript Object Array containing all events for the JSX GUI object;
NOTE: This object will contain zero or more JavaScript Objects with the following Properties: script, type, system
Parameters: returnType - The expected return type |
getDynamicProperty | public void getDynamicProperty(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns the value of the dynamic property @strPropName; if not found, returns null
Parameters: strName - property on this GUI object that will now use a dynamic property (e.g., 'jsxleft','jsxtop','jsxheight',etc.); Parameters: callback - value of the property |
getRendered | public void getRendered(jsx3.gui.Event objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns handle/reference to the JSX GUI Object's on-screen counterpartÑbasically a handle to a DHTML object such as a DIV, SPAN, etc
Parameters: objGUI - either the HTML document containing the rendered object or an HTML element in that document.This argument is optional but improves the efficiency of this method if provided. Parameters: callback - IE DHTML object |
getRendered | public void getRendered(jsx3.lang.Object objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Returns handle/reference to the JSX GUI Object's on-screen counterpartÑbasically a handle to a DHTML object such as a DIV, SPAN, etc
Parameters: objGUI - either the HTML document containing the rendered object or an HTML element in that document.This argument is optional but improves the efficiency of this method if provided. Parameters: callback - IE DHTML object |
onAfterPaint | public void onAfterPaint(String objGUI)(Code) | | A hook that subclasses of Painted may override in order to perform additional manipulation of the HTML DOM
created by the paint method. The order of steps follows. All steps occur in a single browser thread so that
the screen does not update between steps 2 and 3.
The paint() method of this object is called.
The result of the paint() method is inserted into the HTML DOM.
The onAfterPaint() method of this object is called, passing in the newly inserted root HTML element.
Parameters: objGUI - the rendered HTML element representing this object. |
paintChild | public void paintChild(jsx3.gui.Painted objChild, boolean bGroup, String objGUI, boolean bCascadeOnly)(Code) | | Paints a child of this object without repainting this entire object. The child is inserted into the view of
this object as the last child object, regardless of its actual position relative to other children. This method
has no effect if this object is not currently painted.
Parameters: objChild - the child object to paint. Parameters: bGroup - true if this method is being called iteratively over a collection ofchildren. This parameter will only be false on the final call in the iteration. Parameters: objGUI - Parameters: bCascadeOnly - |
paintChildren | public void paintChildren(Object[] c, org.directwebremoting.proxy.Callback<String> callback)(Code) | | Iterates through children and returns concatenation of paint() method for all children.
Parameters: c - the children to paint. If not provided this.getChildren() is used. Parameters: callback - DHTML |
recalcBox | public void recalcBox(Object[] properties)(Code) | | Removes the box model abstraction for a given object and its descendants. This effectively resets the box profiler, so dimensions can be recalculated as if the object was just broought into the visual DOM.
Parameters: properties - Will designate by name, those properties that should be updated on the object's VIEW (without requiring the MODEL to repaint), including one or more of the following: padding, margin, border |
removeAttribute | public jsx3.gui.Painted removeAttribute(String strName)(Code) | | removes the specific custom property bound to this object; returns a reference to self (this) to facilitate method chaining
Parameters: strName - the name of the custom property to remove this object |
removeAttribute | public T removeAttribute(String strName, Class<T> returnType)(Code) | | removes the specific custom property bound to this object; returns a reference to self (this) to facilitate method chaining
Parameters: strName - the name of the custom property to remove Parameters: returnType - The expected return type this object |
removeAttributes | public jsx3.gui.Painted removeAttributes()(Code) | | removes all events bound to this object; NOTE: The object must still be painted/repainted for its corresponding on-screen view to be likewise updated; returns a reference to self (this) to facilitate method chaining
this object |
removeAttributes | public T removeAttributes(Class<T> returnType)(Code) | | removes all events bound to this object; NOTE: The object must still be painted/repainted for its corresponding on-screen view to be likewise updated; returns a reference to self (this) to facilitate method chaining
Parameters: returnType - The expected return type this object |
repaint | public void repaint(org.directwebremoting.proxy.Callback<String> callback)(Code) | | Updates the view of this object by calling paint() and replacing the current view with the
returned HTML. This method has no effect if this object is not currently displayed.
Parameters: callback - the result of calling paint() or null if this object is not displayed. |
setAttribute | public jsx3.gui.Painted setAttribute(String strName, String strValue)(Code) | | Sets a property on the object that when the object is rendered on-screen, the HTML tag will be assigned the given name/value pair as a tag attribute
Parameters: strName - the name of the property/attribute Parameters: strValue - the value for the property; may not contain double-quotes; escape via jsx3.util.strEscapeHTML if necessary or use combinations of single-quotes and escaped single-quotes this object (this) |
setDynamicProperty | public jsx3.gui.Painted setDynamicProperty(String strName, String strValue)(Code) | | assigns a dynamic property to one of this object's properties
returns reference to self to facilitate method chaining;
Parameters: strName - property on this GUI object that will now use a dynamic property (e.g., 'jsxleft','jsxtop','jsxheight',etc.); Parameters: strValue - name of a dynamic style, whose value will be used this object |
Methods inherited from jsx3.app.Model | public void adoptChild(jsx3.app.Model objChild, boolean bRepaint, boolean bForce)(Code)(Java Doc) public jsx3.app.Model doClone(int intPersist, int intMode)(Code)(Java Doc) public T doClone(int intPersist, int intMode, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf)(Code)(Java Doc) public T findAncestor(org.directwebremoting.proxy.CodeBlock fctTest, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf)(Code)(Java Doc) public T findDescendants(org.directwebremoting.proxy.CodeBlock fctTest, boolean bDepthFirst, boolean bMultiple, boolean bShallow, boolean bIncludeSelf, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfName(String strName)(Code)(Java Doc) public T getAncestorOfName(String strName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(String strType)(Code)(Java Doc) public T getAncestorOfType(String strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(Class strType)(Code)(Java Doc) public T getAncestorOfType(Class strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType)(Code)(Java Doc) public T getAncestorOfType(org.directwebremoting.proxy.CodeBlock strType, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(int vntIndexOrName)(Code)(Java Doc) public T getChild(int vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getChild(String vntIndexOrName)(Code)(Java Doc) public T getChild(String vntIndexOrName, Class<T> returnType)(Code)(Java Doc) public void getChildIndex(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getChildren(org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly)(Code)(Java Doc) public T getDescendantOfName(String strName, boolean bDepthFirst, boolean bChildOnly, Class<T> returnType)(Code)(Java Doc) public void getDescendantsOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(String strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public void getDescendantsOfType(Class strType, boolean bShallow, org.directwebremoting.proxy.Callback<Object[]> callback)(Code)(Java Doc) public jsx3.app.Model getFirstChild()(Code)(Java Doc) public T getFirstChild(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(org.directwebremoting.proxy.CodeBlock strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(Class strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(Class strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getFirstChildOfType(String strType, boolean bExact)(Code)(Java Doc) public T getFirstChildOfType(String strType, boolean bExact, Class<T> returnType)(Code)(Java Doc) public void getHelpId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getId(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getLastChild()(Code)(Java Doc) public T getLastChild(Class<T> returnType)(Code)(Java Doc) public void getLoadType(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public void getMetaValue(String strKey, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getNS(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public void getName(org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.app.Model getNextSibling()(Code)(Java Doc) public T getNextSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model getParent()(Code)(Java Doc) public T getParent(Class<T> returnType)(Code)(Java Doc) public void getPersistence(org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model getPreviousSibling()(Code)(Java Doc) public T getPreviousSibling(Class<T> returnType)(Code)(Java Doc) public jsx3.app.Server getServer()(Code)(Java Doc) public jsx3.net.URIResolver getUriResolver()(Code)(Java Doc) public T getUriResolver(Class<T> returnType)(Code)(Java Doc) public void insertBefore(jsx3.app.Model objMoveChild, jsx3.app.Model objPrecedeChild, boolean bRepaint, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public jsx3.app.Model load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(java.net.URI strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T load(String strURL, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void loadAndCache(java.net.URI strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public void loadAndCache(String strURL, boolean bRepaint, jsx3.app.Cache objCache, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public jsx3.app.Model loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(jsx3.xml.CdfDocument strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver)(Code)(Java Doc) public T loadXML(String strXML, boolean bRepaint, jsx3.net.URIResolver objResolver, Class<T> returnType)(Code)(Java Doc) public void onAfterAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onAfterAttach()(Code)(Java Doc) public void onBeforeAssemble(jsx3.app.Model objParent, jsx3.app.Server objServer)(Code)(Java Doc) public void onChangeServer(jsx3.app.Server objNewServer, jsx3.app.Server objOldServer)(Code)(Java Doc) public void onDestroy(jsx3.app.Model objParent)(Code)(Java Doc) public void onRemoveChild(Object[] objChild, int intIndex)(Code)(Java Doc) public void onRemoveChild(jsx3.app.Model objChild, int intIndex)(Code)(Java Doc) public void onSetChild(java.lang.Object objChild, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void onSetParent(java.lang.Object objParent, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)(Java Doc) public void publish(jsx3.lang.Object objEvent, org.directwebremoting.proxy.Callback<Integer> callback)(Code)(Java Doc) public jsx3.app.Model removeChild(jsx3.app.Model vntItem)(Code)(Java Doc) public T removeChild(jsx3.app.Model vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChild(int vntItem)(Code)(Java Doc) public T removeChild(int vntItem, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model removeChildren(Object[] arrChildren)(Code)(Java Doc) public T removeChildren(Object[] arrChildren, Class<T> returnType)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, java.net.URI strSourceURL, String strNS)(Code)(Java Doc) public jsx3.app.Model setChild(jsx3.app.Model objChild, int intPersist, String strSourceURL, String strNS)(Code)(Java Doc) public void setHelpId(String strId)(Code)(Java Doc) public void setLoadType(int intLoadType)(Code)(Java Doc) public void setMetaValue(String strKey, String strValue)(Code)(Java Doc) public void setName(String strName)(Code)(Java Doc) public jsx3.app.Model setPersistence(int intPersist)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, jsx3.lang.Object objHandler, String objFunction)(Code)(Java Doc) public void subscribe(String strEventId, jsx3.lang.Object objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, String objFunction)(Code)(Java Doc) public void subscribe(Object[] strEventId, String objHandler, org.directwebremoting.proxy.CodeBlock objFunction)(Code)(Java Doc) public void subscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler, String objFunction)(Code)(Java Doc) public void toXML(jsx3.lang.Object objProperties, org.directwebremoting.proxy.Callback<String> callback)(Code)(Java Doc) public jsx3.xml.CdfDocument toXMLDoc(jsx3.lang.Object objProperties)(Code)(Java Doc) public T toXMLDoc(jsx3.lang.Object objProperties, Class<T> returnType)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, String objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(Object[] strEventId, jsx3.lang.Object objHandler)(Code)(Java Doc) public void unsubscribe(String strEventId, org.directwebremoting.proxy.CodeBlock objHandler)(Code)(Java Doc) public void unsubscribeAll(String strEventId)(Code)(Java Doc)
|
Methods inherited from jsx3.lang.Object | public void ignoreReturn()(Code)(Java Doc)
|
|
|