| javax.swing.JApplet org.swingml.SwingMLRenderer
SwingMLRenderer | public class SwingMLRenderer extends JApplet (Code) | | This class represents the heart of the SwingML system. Use this class as
either an application or applet. The two most significant methods are the
submit() and render() methods.
author: Ezequiel Cuellar author: Robert J. Morris |
Method Summary | |
public static void | addRenderingListener(IRenderListener aListener) | public void | destroy() | static void | endRendering(Node xmlNode) | public void | executeRemoteAction(SwingMLServerResponse response, RemoteAction action, Container aContainer) Executes the given action. | public URL | getCodeBase() | public static SwingMLDesktop | getDesktop() | public URL | getDocumentBase() | public Node | getDocumentNode(String xml) Parse the given xml and return the root node. | public static SwingMLRenderer | getRenderer() | public static List | getRenderingListeners() | public static String | getWindowIconURL() | public void | init() Called when a SwingMLRenderer instance is displayed or run as an applet. | public static boolean | isRendering() | public static void | main(String args) When this class is used as the entry point for an application. | public void | processAndRender(String xml, Container containerToReplace, boolean repaint) | public void | processAndRender(String xml, Container containerToReplace, boolean repaint, boolean renderImmediately) NOTE** - Render the new components and then remove their old counterparts afterwards. | public static void | removeRenderingListener(Object aListener) | public void | render(String aSpec, Container aContainer) Screens should be rendered on background thread as to not lock up the UI. | public void | render(String xml, Container parent, boolean renderImmediately) | protected static void | setRenderer(SwingMLRenderer aRenderer) | public static void | setWindowIconURL(String windowIconURL) | public void | updateContentPane() |
SwingMLRenderer | public SwingMLRenderer()(Code) | | |
destroy | public void destroy()(Code) | | |
endRendering | static void endRendering(Node xmlNode)(Code) | | |
getDocumentBase | public URL getDocumentBase()(Code) | | |
getDocumentNode | public Node getDocumentNode(String xml)(Code) | | Parse the given xml and return the root node.
Parameters: xml - Node - the root node |
getRenderingListeners | public static List getRenderingListeners()(Code) | | |
getWindowIconURL | public static String getWindowIconURL()(Code) | | |
init | public void init()(Code) | | Called when a SwingMLRenderer instance is displayed or run as an applet.
|
isRendering | public static boolean isRendering()(Code) | | |
main | public static void main(String args) throws SwingMLInitializationError(Code) | | When this class is used as the entry point for an application. This
method expects that the 0th element in the args[] parameter contains the
URL of the SwingML document to render.
|
processAndRender | public void processAndRender(String xml, Container containerToReplace, boolean repaint)(Code) | | |
processAndRender | public void processAndRender(String xml, Container containerToReplace, boolean repaint, boolean renderImmediately)(Code) | | NOTE** - Render the new components and then remove their old counterparts afterwards.
This reduces the flashing on screen caused by first removing components and then re-rendering them.
Parameters: xml - Parameters: containerToReplace - Parameters: repaint - Parameters: renderImmediately - |
removeRenderingListener | public static void removeRenderingListener(Object aListener)(Code) | | |
render | public void render(String aSpec, Container aContainer)(Code) | | Screens should be rendered on background thread as to not lock up the UI.
Parameters: xml - Parameters: aContainer - |
setWindowIconURL | public static void setWindowIconURL(String windowIconURL)(Code) | | |
updateContentPane | public void updateContentPane()(Code) | | |
|
|