Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

REDIRECT_URL_PROPERTY
public static final java.lang.String REDIRECT_URL_PROPERTY = "userviewRedirectUrl";

...

REDIRECT_PARENT_PROPERTY
public static final java.lang.String REDIRECT_PARENT_PROPERTY = "userviewRedirectParent";

...

ALERT_MESSAGE_PROPERTY
public static final java.lang.String ALERT_MESSAGE_PROPERTY = "userviewAlertMessage";

...

getCategory
public abstract java.lang.String getCategory()

Category to be displayed in Userview Builder palette 

getIcon
public abstract java.lang.String getIcon()

Icon path to be displayed in Userview Builder palette

getRenderPage
public abstract java.lang.String getRenderPage()

Get render HTML template for UI

...

getDecoratedMenu
public abstract java.lang.String getDecoratedMenu()

...

Overridable Methods
getMenu
public java.lang.String getMenu()

Get menu html for rendering. It will call getDecoratedMenu method to retrieve the menu HTML. If empty value is return, a default menu HTML will be generated based on getURL method and "label" property.

getJspPage
public java.lang.String getJspPage()

Get path of JSP file to render the HTML template. If this value is not NULL, value returned by getRenderPage will be ignored.

...

Utility Methods
getUrl
public java.lang.String getUrl()

Gets URL of this menu

setUrl
public void setUrl(java.lang.String url)

Sets URL of this menu

getKey
public java.lang.String getKey()

Gets userview key of this menu

setKey
public void setKey(java.lang.String key)

Sets userview key of this menu

...

Return Empty string instead of NULL.

getReadyJspPage
public java.lang.String getReadyJspPage()

Used by the system to retrieve the JSP file page to avoid the logic to run again. It will called the getJspPage method once to initial the value.

getReadyRenderPage
public java.lang.String getReadyRenderPage()

Used by the system to retrieve the HTML template to avoid the logic to run again. It will called the getRenderPage method once to initial the value.

getUserview
public org.joget.apps.userview.model.Userview getUserview()

Gets the userview which this menu is belongs to.

setUserview
public void setUserview(org.joget.apps.userview.model.Userview userview)

Sets the userview which this menu is belongs to.

...

public void setRedirectUrl(java.lang.String redirectUrl)

Set this property to force the userview to redirect to a specific URL.

...

public void setRedirectUrl(java.lang.String redirectUrl, boolean redirectToParent)

...

public void setAlertMessage(java.lang.String message)

Set this property to display an alert message/prompt.

...

"true".equals(getRequestParameterString("isPreview")

Tutorials

Related Community Plugins

  • List Menu
    org.joget.apps.userview.lib.DataListMenu (wflow-core)
  • Form Menu
    org.joget.apps.userview.lib.FormMenu (wflow-core)
  • HTML Page
    org.joget.apps.userview.lib.HtmlPage (wflow-core)
  • Inbox
    org.joget.apps.userview.lib.InboxMenu (wflow-core)
  • Link
    org.joget.apps.userview.lib.Link (wflow-core)
  • Run Process
    org.joget.apps.userview.lib.RunProcess (wflow-core)Not available right now