Package snap.view
Class UILoader
java.lang.Object
snap.view.UILoader
This class handles loading UI from
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebURL
getSnapUrlForClass
(Class<?> aClass) Returns a UI source for given class.static WebURL
getSnapUrlForOwner
(ViewOwner anOwner) Returns a UI source for given view owner.static View
loadViewForBytes
(byte[] fileBytes) Loads the snap UI file for given bytes and returns root view.static ParentView
loadViewForClass
(Class<?> aClass) Loads the snap UI file for given class and returns root view.static ParentView
loadViewForOwner
(ViewOwner anOwner) Loads the snap UI file for given view owner and returns root view.static ParentView
loadViewForOwnerAndUrl
(ViewOwner anOwner, WebURL snapUrl) Loads the snap UI file for given class and returns root view.static View
loadViewForString
(String snapString) Loads the sanp UI file for given snap UI string and returns root view.static ParentView
loadViewForUrl
(WebURL snapUrl) Loads the snap UI file for given URL and returns root view.
-
Constructor Details
-
UILoader
public UILoader()
-
-
Method Details
-
loadViewForOwner
Loads the snap UI file for given view owner and returns root view. -
loadViewForOwnerAndUrl
Loads the snap UI file for given class and returns root view. -
loadViewForClass
Loads the snap UI file for given class and returns root view. -
loadViewForUrl
Loads the snap UI file for given URL and returns root view. -
loadViewForString
Loads the sanp UI file for given snap UI string and returns root view. -
loadViewForBytes
Loads the snap UI file for given bytes and returns root view. -
getSnapUrlForOwner
Returns a UI source for given view owner. -
getSnapUrlForClass
Returns a UI source for given class.
-