Package com.vaadin.client
Class SuperDevMode
- java.lang.Object
-
- com.vaadin.client.SuperDevMode
-
public class SuperDevMode extends Object
Class that enables SuperDevMode using a ?superdevmode parameter in the url.- Since:
- 7.0
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SuperDevMode.RecompileResult
-
Field Summary
Fields Modifier and Type Field Description protected static String
SKIP_RECOMPILE
-
Constructor Summary
Constructors Constructor Description SuperDevMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
disableDevModeAndReload()
static boolean
enableBasedOnParameter()
Enables SuperDevMode if the url contains the "superdevmode" parameter.protected static String
getSuperDevWidgetSetUrl(String widgetsetName, String serverUrl)
protected static boolean
isSuperDevModeEnabledInModule()
protected static boolean
isSuperDevModeEnabledInModule(String moduleName)
protected static boolean
recompileIfNeeded(String serverUrl)
The URL of the code server.protected static void
redirect(boolean devModeOn)
-
-
-
Field Detail
-
SKIP_RECOMPILE
protected static final String SKIP_RECOMPILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSuperDevWidgetSetUrl
protected static String getSuperDevWidgetSetUrl(String widgetsetName, String serverUrl)
-
disableDevModeAndReload
protected static void disableDevModeAndReload()
-
redirect
protected static void redirect(boolean devModeOn)
-
recompileIfNeeded
protected static boolean recompileIfNeeded(String serverUrl)
The URL of the code server. The default URL (http://localhost:9876/) will be used if this is empty or null.- Parameters:
serverUrl
- The url of the code server or null to use the default- Returns:
- true if recompile started, false if we are running in SuperDevMode
-
isSuperDevModeEnabledInModule
protected static boolean isSuperDevModeEnabledInModule()
-
isSuperDevModeEnabledInModule
protected static boolean isSuperDevModeEnabledInModule(String moduleName)
-
enableBasedOnParameter
public static boolean enableBasedOnParameter()
Enables SuperDevMode if the url contains the "superdevmode" parameter.The caller should not continue initialization of the application if this method returns true. The application will be restarted once compilation is done and then this method will return false.
- Returns:
- true if a recompile operation has started and the page will be reloaded once it is done, false if no recompilation will be done.
-
-