| java.lang.Object org.zkoss.zkmob.UiManager
UiManager | public class UiManager (Code) | | The static facade for UI component management.
|
Method Summary | |
public static void | alert(Display disp, Throwable e) | public static void | applyItemProperties(ZkComponent parent, Item component, Attributes attrs) Utility to apply common properties to Item component. | public static ZkComponent | create(ZkComponent parent, String tag, Attributes attrs, String hostURL, String pathURL) given Ui tag name and create an associated Ui component. | public static Vector | createComponents(ZkComponent parent, InputStream is, String hostURL, String pathURL) | public static String | getHostURL(HttpConnection conn) | public static String | getPathURL(HttpConnection conn) | public static SAXParser | getSAXParser() | static Image | loadImage(String url) utility to be called by
ImageRequest only. | public static void | loadImageOnThread(Imageable item, String hostURL, String pathURL, String url) utility to load Image on a separate thread. | static void | loadPage(Browser browser, String url) | public static ZkDesktop | loadPage(Browser browser, InputStream is, String url, String hostURL, String pathURL) | public static void | loadPageOnThread(Browser browser, String url) | public static int[] | parseSize(String sizestr) parse a "width,height" into int[] where int[0] is width, int[1] is height. | public static String | prefixURL(String hostURL, String pathURL, String url) | public static void | registerCommand(ZkComponent owner, Command cmd, ZkDesktop zk) | public static void | registerUiFactory(String name, UiFactory uiFactory) register an UiFactory to a Ui tag name. | public static InputStream | request(HttpConnection conn, String request) | public static void | setItemAttr(Item item, String attr, String val) Given Item, attribute name, and value; then set the attribute of the Item if match. |
applyItemProperties | public static void applyItemProperties(ZkComponent parent, Item component, Attributes attrs)(Code) | | Utility to apply common properties to Item component.
|
create | public static ZkComponent create(ZkComponent parent, String tag, Attributes attrs, String hostURL, String pathURL)(Code) | | given Ui tag name and create an associated Ui component.
Parameters: parent - the parent component Parameters: tag - the Ui tag name Parameters: attrs - the Ui tag attributes Parameters: hostURL - the host URL |
getHostURL | public static String getHostURL(HttpConnection conn)(Code) | | |
getPathURL | public static String getPathURL(HttpConnection conn)(Code) | | |
loadImage | static Image loadImage(String url)(Code) | | utility to be called by
ImageRequest only.
Parameters: url - The image url the Image object |
loadImageOnThread | public static void loadImageOnThread(Imageable item, String hostURL, String pathURL, String url)(Code) | | utility to load Image on a separate thread.
Parameters: item - Imageable item to be setup the loaded image Parameters: url - the Image url |
parseSize | public static int[] parseSize(String sizestr)(Code) | | parse a "width,height" into int[] where int[0] is width, int[1] is height.
Parameters: sizestr - The size in string format of "width, height" int[] where int[0] is width, int[1] is height. |
registerUiFactory | public static void registerUiFactory(String name, UiFactory uiFactory)(Code) | | register an UiFactory to a Ui tag name.
Parameters: name - the Ui tag name Parameters: uiFactory - an UiFactory used to create an Ui component |
setItemAttr | public static void setItemAttr(Item item, String attr, String val)(Code) | | Given Item, attribute name, and value; then set the attribute of the Item if match.
Parameters: item - The Item to be set Parameters: attr - The attribute name Parameters: val - The value |
|
|