Package com.vdoc.sdk.commons.utils
Class WidgetUtils
java.lang.Object
com.vdoc.sdk.commons.utils.WidgetUtils
Utility class for widgets
- Author:
- famaridon
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.axemble.vdp.ui.framework.widgets.CtlImageButtonbuildViewIconButton(String actionName) Build the view's icon buttonstatic com.axemble.vdp.ui.framework.widgets.CtlImageBuild the view's imagestatic voidclearTemplateCache(IConfiguration configuration) Clear the template cache if the configuration is in debug modestatic com.axemble.vdp.ui.framework.template.TemplateWritergetTemplateWriter(String relativePath) Retrieve the template writerstatic StringgetWidgetHtml(IWidget widget) Get the html made by anIWidgetstatic StringgetWidgetUniqueIdentifier(com.axemble.vdp.ui.framework.foundation.Navigator navigator, com.axemble.vdp.ui.framework.foundation.Widget widget) Get the widget's unique identifier
-
Method Details
-
getWidgetHtml
Get the html made by anIWidget- Parameters:
widget- theIWidgetwe want the html- Returns:
- the HTML
-
getTemplateWriter
public static com.axemble.vdp.ui.framework.template.TemplateWriter getTemplateWriter(String relativePath) throws RenderException Retrieve the template writer- Parameters:
relativePath- the template writer's path- Returns:
- the template writer
- Throws:
RenderException- on error
-
clearTemplateCache
Clear the template cache if the configuration is in debug mode- Parameters:
configuration- the configuration
-
buildViewIconButton
public static com.axemble.vdp.ui.framework.widgets.CtlImageButton buildViewIconButton(String actionName) Build the view's icon button- Parameters:
actionName- the name of the button- Returns:
- the image button
-
buildViewImage
public static com.axemble.vdp.ui.framework.widgets.CtlImage buildViewImage()Build the view's image- Returns:
- the image
-