Package org.openbravo.client.myob
Class URLWidgetProvider
- java.lang.Object
-
- org.openbravo.client.myob.WidgetProvider
-
- org.openbravo.client.myob.URLWidgetProvider
-
public class URLWidgetProvider extends WidgetProvider
Responsible for creating the URL Widgets.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.myob.WidgetProvider
FIELDDEFINITIONS, PARAMETERS, TITLE, WIDGETCLASSID
-
-
Constructor Summary
Constructors Constructor Description URLWidgetProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate()
As a default will generate javascript which extends the OBShowParameterWidget widget.String
getClientSideWidgetClassName()
org.codehaus.jettison.json.JSONObject
getWidgetClassDefinition()
org.codehaus.jettison.json.JSONObject
getWidgetInstanceDefinition(WidgetInstance widgetInstance)
boolean
validate()
Override this method to make validations on widget classes.-
Methods inherited from class org.openbravo.client.myob.WidgetProvider
addDefaultWidgetProperties, createValueMap, getParameters, getWidgetClass, setParameters, setWidgetClass
-
-
-
-
Method Detail
-
generate
public String generate()
Description copied from class:WidgetProvider
As a default will generate javascript which extends the OBShowParameterWidget widget.- Overrides:
generate
in classWidgetProvider
-
getClientSideWidgetClassName
public String getClientSideWidgetClassName()
- Overrides:
getClientSideWidgetClassName
in classWidgetProvider
-
getWidgetClassDefinition
public org.codehaus.jettison.json.JSONObject getWidgetClassDefinition()
- Overrides:
getWidgetClassDefinition
in classWidgetProvider
-
getWidgetInstanceDefinition
public org.codehaus.jettison.json.JSONObject getWidgetInstanceDefinition(WidgetInstance widgetInstance)
- Overrides:
getWidgetInstanceDefinition
in classWidgetProvider
-
validate
public boolean validate()
Description copied from class:WidgetProvider
Override this method to make validations on widget classes. If this method returns false the widget class won't be available for users to add new instances.- Overrides:
validate
in classWidgetProvider
- Returns:
- true if the widget class definition is valid.
-
-