Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
...
...
public static final java.lang.String REDIRECT_URL_PROPERTY = "userviewRedirectUrl"“userviewRedirectUrl”;
Property key to set a url for redirection.属性键设置重定向的URL。
public static final java.lang.String REDIRECT_PARENT_PROPERTY = "userviewRedirectParent";“userviewRedirectParent”;
属性键将重定向目标设置为父窗口。期望“真”或“假”作为值。Property key to set the redirection target to parent window. The property expecting "true" or "false" as value.
public static final java.lang.String ALERT_MESSAGE_PROPERTY = "userviewAlertMessage";
Property key to set a alert message to show when a page loaded.
...
“userviewAlertMessage”;
属性键设置一个警告消息,显示何时加载页面。
public abstract java.lang.String getCategory()
Category to be displayed in Userview Builder palette 在UserView Builder调色板中显示的类别
public abstract java.lang.String getIcon()
Icon path to be displayed in Userview Builder palette图标路径将显示在UserView Builder调色板中
public abstract java.lang.String getRenderPage()
Get render HTML template for UI获取用于UI的呈现HTML模板
public abstract boolean isHomePageSupported公共抽象布尔isHomePageSupported()
Used to determine this menu item can used as home page or not.用于确定此菜单项是否可用作主页。
public abstract java.lang.String getDecoratedMenu()
Get Decorated menu HTML for rendering.
...
获取用于渲染的装饰菜单HTML。
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.获取用于渲染的菜单html。它将调用 getDecoratedMenu方法来检索菜单HTML。如果返回空值,则会根据getURL方法和“label”属性生成默认菜单HTML。
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.
It is used to use the system predefined template for rendering. Options are as following:
获取JSP文件的路径来呈现HTML模板。如果这个值不是NULL,则getRenderPage返回的值 将被忽略。
它用于使用系统预定义的模板进行渲染。选项如下:
- userview - userview / plugin / datalist.jsp
- userviewuserview / plugin / form.jsp
- userviewuserview / plugin / runProcess.jsp
- userviewuserview / plugin / unauthorized.jsp
...
public java.lang.String getUrl()
Gets URL of this menu获取此菜单的URL
public void setUrl(java.lang.String url)
Sets URL of this menu设置此菜单的URL
public java.lang.String getKey()
Gets userview key of this menu
获取此菜单的userview键
public void setKey(java.lang.String key)
Sets userview key of this menu设置此菜单的用户视图键
public java.util.Map getRequestParameters()
Gets request parameters获取请求参数
public void setRequestParameters(java.util.Map requestParameters)
Sets request parameters设置请求参数
public java.lang.Object getRequestParameter(java.lang.String requestParameter)
Convenience method to get a parameter value便捷方法获取参数值
public java.lang.String getRequestParameterString(java.lang.String requestParameter)
Convenience method to get a parameter String value.
便捷方法获取参数字符串值。
返回 空字符串而不是NULL。Return Empty string instead of NULL.
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.系统用于检索JSP文件页面以避免逻辑再次运行。它将调用一次getJspPage方法来初始化值。
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.系统用来检索HTML模板,以避免逻辑再次运行。它将调用一次getRenderPage方法来初始化值。
public org.joget.apps.userview.model.Userview getUserview()
Gets the userview which this menu is belongs to.获取该菜单所属的用户视图。
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.设置此属性强制用户视图重定向到一个特定的URL。
public void setRedirectUrl(java.lang.String redirectUrl, booleanredirectUrl,boolean redirectToParent)
Set this property to force the userview to redirect to a specific URL with option to redirect in the parent window.将此属性设置为强制用户视图重定向到特定的URL,并在父窗口中选择重定向。
public void setAlertMessage(java.lang.String message)
Set this property to display an alert message/prompt.
设置此属性以显示警报消息/提示。
Code Block |
---|
{
|
Code Block |
{ name : 'id', label : 'ID', type : 'hidden' } |
Code Block |
---|
{ name : 'customId', label : '@@userview.datalistmenu.customId@@', type : 'textfield', regex_validation : '^[a-zA-Z0-9_]+$', validation_message : '@@userview.datalistmenu.invalidId@@' } |
Code Block |
---|
{ name : 'label', label : '@@userview.datalistmenu.label@@', type : 'textfield', required : 'True', value : 'List' } |
以下是HTML页面菜单 元素的示例菜单模板 。它使用 FreeMaker 语法构造。这个模板将被getRenderPage 方法使用并返回 。 Following is a sample menu template of a HTML Page menu element. It is constructed using FreeMaker syntax. This template will be used and returned by Userview Menu Plugin method.
Code Block | ||
---|---|---|
| ||
public String getRenderPage() { PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager"); Map dataModel = new HashMap(); dataModel.put("element", this); return pluginManager.getPluginFreeMarkerTemplate(dataModel, getClassName(), "/templates/htmlPageMenu.ftl", null); } |
Code Block | ||
---|---|---|
| ||
<div class="ui-html"> ${element.properties.content!} </div> |
"true".equals(getRequestParameterString("isPreview")
...