- java.lang.Object
-
- io.github.mmm.ui.tvm.TvmApplication
-
- All Implemented Interfaces:
UiApplication
public abstract class TvmApplication extends Object implements UiApplication
Base class for you main application to build your client with TeaVM.
Example:public class MyTvmApp extends
TvmApplication
{ protected void start() { MyApp myApp = new MyApp(); myApp.run(); } public static void main(String[] args) { new MyTvmApp().run(); } }- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description TvmApplication()
The constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getContextPath()
static boolean
isUseAnchor()
protected static void
setContextPath(String contextPath)
static void
setUseAnchor(boolean useAnchor)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.ui.api.UiApplication
start
-
-
-
-
Method Detail
-
getContextPath
public static String getContextPath()
- Returns:
- the context path of this application. So if your application is running in the root context this should be
"/" what is the default. Otherwise you can
set
the context path according to your app (e.g. "/my-cool-app/" or even "/my-cool-app/index.html").
-
setContextPath
protected static void setContextPath(String contextPath)
- Parameters:
contextPath
- new value ofgetContextPath()
.
-
isUseAnchor
public static boolean isUseAnchor()
- Returns:
true
to use the anchor (the URL part starting with the hash sign '#') for state management andUiPlace
s.
-
setUseAnchor
public static void setUseAnchor(boolean useAnchor)
- Parameters:
useAnchor
- new value ofisUseAnchor()
.
-
-