Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
bb7c76a1
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bb7c76a1
编写于
7月 24, 2014
作者:
F
frederikheremans
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #336 from ejyanezp/master
Activiti Forms with interdependent Properties
上级
d3b6063d
086236d6
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
33 addition
and
0 deletion
+33
-0
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/form/AbstractFormPropertyRenderer.java
...tiviti/explorer/ui/form/AbstractFormPropertyRenderer.java
+20
-0
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/form/FormPropertiesComponent.java
...rg/activiti/explorer/ui/form/FormPropertiesComponent.java
+3
-0
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/form/FormPropertyRenderer.java
...a/org/activiti/explorer/ui/form/FormPropertyRenderer.java
+10
-0
未找到文件。
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/form/AbstractFormPropertyRenderer.java
浏览文件 @
bb7c76a1
...
...
@@ -58,4 +58,24 @@ public abstract class AbstractFormPropertyRenderer implements FormPropertyRender
return
ExplorerApp
.
get
().
getI18nManager
().
getMessage
(
key
,
params
);
}
/**
* Get the Vaadin form that contains the renderer
*/
@Override
public
com
.
vaadin
.
ui
.
Form
getForm
()
{
return
theForm
;
}
/**
* Set the Vaadin form that contains de renderer
*/
@Override
public
void
setForm
(
com
.
vaadin
.
ui
.
Form
p_form
)
{
theForm
=
p_form
;
}
/**
* The form that contains this renderer
*/
transient
private
com
.
vaadin
.
ui
.
Form
theForm
=
null
;
}
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/form/FormPropertiesComponent.java
浏览文件 @
bb7c76a1
...
...
@@ -66,6 +66,9 @@ public class FormPropertiesComponent extends VerticalLayout {
for
(
FormProperty
formProperty
:
formProperties
)
{
FormPropertyRenderer
renderer
=
getRenderer
(
formProperty
);
// Be able to get the Form from any Renderer.
renderer
.
setForm
(
form
);
Field
editorComponent
=
renderer
.
getPropertyField
(
formProperty
);
if
(
editorComponent
!=
null
)
{
// Get label for editor component.
...
...
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/form/FormPropertyRenderer.java
浏览文件 @
bb7c76a1
...
...
@@ -51,4 +51,14 @@ public interface FormPropertyRenderer extends Serializable {
* {@link FormPropertyRenderer#getPropertyField(FormProperty)}.
*/
String
getFieldValue
(
FormProperty
formProperty
,
Field
field
);
/**
* Get the Vaadin form that contains this renderer
*/
com
.
vaadin
.
ui
.
Form
getForm
();
/**
* Set the Vaadin form that contains this renderer
*/
void
setForm
(
com
.
vaadin
.
ui
.
Form
p_form
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录