Package snap.view

Class UILoader

java.lang.Object
snap.view.UILoader

public class UILoader extends Object
This class handles loading UI from
  • Constructor Details

    • UILoader

      public UILoader()
  • Method Details

    • loadViewForOwner

      public static ParentView loadViewForOwner(ViewOwner anOwner)
      Loads the snap UI file for given view owner and returns root view.
    • loadViewForOwnerAndUrl

      public static ParentView loadViewForOwnerAndUrl(ViewOwner anOwner, WebURL snapUrl)
      Loads the snap UI file for given class and returns root view.
    • loadViewForClass

      public static ParentView loadViewForClass(Class<?> aClass)
      Loads the snap UI file for given class and returns root view.
    • loadViewForUrl

      public static ParentView loadViewForUrl(WebURL snapUrl)
      Loads the snap UI file for given URL and returns root view.
    • loadViewForString

      public static View loadViewForString(String snapString)
      Loads the sanp UI file for given snap UI string and returns root view.
    • loadViewForBytes

      public static View loadViewForBytes(byte[] fileBytes)
      Loads the snap UI file for given bytes and returns root view.
    • getSnapUrlForOwner

      public static WebURL getSnapUrlForOwner(ViewOwner anOwner)
      Returns a UI source for given view owner.
    • getSnapUrlForClass

      public static WebURL getSnapUrlForClass(Class<?> aClass)
      Returns a UI source for given class.