Package org.teamapps.webcontroller
Class SimpleWebController
- java.lang.Object
-
- org.teamapps.webcontroller.SimpleWebController
-
- All Implemented Interfaces:
WebController
public class SimpleWebController extends java.lang.Object implements WebController
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBACKGROUND_DEFAULT
-
Constructor Summary
Constructors Constructor Description SimpleWebController(java.util.function.Function<SessionContext,Component> componentSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebControllercreateDefaultController(java.util.function.Function<SessionContext,Component> componentSupplier)static WebControllercreateDefaultController(java.util.function.Function<SessionContext,Component> componentSupplier, org.teamapps.common.format.Color defaultBackgroundColor)static WebControllercreateDefaultController(java.util.function.Function<SessionContext,Component> componentSupplier, org.teamapps.common.format.Color defaultBackgroundColor, boolean showBackgroundImage)voidonSessionStart(SessionContext context)voidsetDefaultBackgroundColor(org.teamapps.common.format.Color defaultBackgroundColor)voidsetShowBackgroundImage(boolean showBackgroundImage)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teamapps.webcontroller.WebController
createSessionConfiguration, destroy, getDefaultIconTheme, getIconProvider, getServletRegistrations
-
-
-
-
Field Detail
-
BACKGROUND_DEFAULT
public static final java.lang.String BACKGROUND_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleWebController
public SimpleWebController(java.util.function.Function<SessionContext,Component> componentSupplier)
-
-
Method Detail
-
createDefaultController
public static WebController createDefaultController(java.util.function.Function<SessionContext,Component> componentSupplier)
-
createDefaultController
public static WebController createDefaultController(java.util.function.Function<SessionContext,Component> componentSupplier, org.teamapps.common.format.Color defaultBackgroundColor)
-
createDefaultController
public static WebController createDefaultController(java.util.function.Function<SessionContext,Component> componentSupplier, org.teamapps.common.format.Color defaultBackgroundColor, boolean showBackgroundImage)
-
setShowBackgroundImage
public void setShowBackgroundImage(boolean showBackgroundImage)
-
setDefaultBackgroundColor
public void setDefaultBackgroundColor(org.teamapps.common.format.Color defaultBackgroundColor)
-
onSessionStart
public void onSessionStart(SessionContext context)
- Specified by:
onSessionStartin interfaceWebController
-
-