API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.widget. JOTExampleWidget View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTWidgetBase
          JOTExampleWidget
Implements
Subclasses
Description
public class JOTExampleWidget
Example widget that shows the ammount of memory available on the server Uses ajax to autorefresh
See also:   
Constructors
public JOTExampleWidget ()
Methods
Hide/Show inherited methods
public void customizeProperties () [Specified in JOTWidgetBase]
publicstatic String decodeCommas (String value) [Inherited From JOTWidgetBase]
  Put the commas back after parsing the args.
public void dumpWidgetProperties () [Inherited From JOTWidgetBase]
publicstatic String encodeCommas (String value) [Inherited From JOTWidgetBase]
  When passing arguments to a widget they are comma separated, do if an arg value contains a comma this causes problems, so use encodeCommas(argValue) to encode the commas in your args value.
public void executeAjaxCall (JOTFlowRequest request, HttpServletResponse response) throws Exception [Inherited From JOTWidgetBase]
public String getAjaxAction ()
public String getAjaxCallbackJavascript () [Specified in JOTWidgetBase]
public int getId () [Inherited From JOTWidgetBase]
public String getJscriptCallbackFunctionName () [Inherited From JOTWidgetBase]
public String getJscriptFuncName () [Inherited From JOTWidgetBase]
protectedsynchronized int getNextUniqueId () [Inherited From JOTWidgetBase]
  We want each widget in the "page" to have a unique id, to avoid issues with same widget several time in same page So we create a unique id in the request scope which shoudl provide what we wat here.
public JOTWidgetBaseProperties getProperties () [Inherited From JOTWidgetBase]
public String getShortName () [Specified in JOTWidgetBase]
public JOTWidgetBaseProperties getWidgetProperties ()
public void init (HttpServletRequest request, HttpServletResponse response) [Inherited From JOTWidgetBase]
  "Manual" constructor
public void init (JOTView view) [Inherited From JOTWidgetBase]
Standard widdget constructor, calls customizeProperties
public boolean isAjaxEnabled () [Inherited From JOTWidgetBase]
  Can be ovveriden to disable ajax
protected Hashtable parseArgs (String args) [Inherited From JOTWidgetBase]
  Parse the args String
public void parseProperties (JOTFlowRequest request) [Inherited From JOTWidgetBase]
public void prepareViewData () throws Exception [Inherited From JOTWidgetBase]
  Will be called when the ajax call is made.
public String render (String args) [Inherited From JOTWidgetBase]
  Will be called by jot, when a widget is found in a view.
public String renderPropertiesScreen (int id) [Inherited From JOTWidgetBase]
public String renderWidget (Hashtable options) [Specified in JOTWidgetBase]
public boolean validatePermissions ()
public Hashtable widgetAjaxCall (JOTFlowRequest request) [Specified in JOTWidgetBase]
Fields
Hide/Show inherited fields
protectedfinalstatic Pattern ARG_PATTERN [Inherited From JOTWidgetBase]
public JOTWidgetBaseProperties properties [Inherited From JOTWidgetBase]
public JOTFlowRequest request [Inherited From JOTWidgetBase]
public HttpServletResponse response [Inherited From JOTWidgetBase]
public HttpSession session [Inherited From JOTWidgetBase]
public int uniqueId [Inherited From JOTWidgetBase]
protected JOTView view [Inherited From JOTWidgetBase]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar