mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Refs #1665 [Desktop] Scheduled task editor layout & behavior
This commit is contained in:
parent
b28d8a7fa6
commit
6c2fb88dad
@ -35,6 +35,7 @@ import java.awt.event.ActionListener;
|
||||
import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author krivopustov
|
||||
@ -328,6 +329,12 @@ public class DesktopLookupField
|
||||
optionsInitialized = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setOptionsMap(Map<String, Object> map) {
|
||||
super.setOptionsMap(map);
|
||||
optionsInitialized = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return ((JComponent) comboBox.getEditor().getEditorComponent()).getToolTipText();
|
||||
|
@ -18,42 +18,44 @@
|
||||
</datasource>
|
||||
</dsContext>
|
||||
|
||||
<layout expand="windowActions">
|
||||
<layout expand="windowActions" spacing="true">
|
||||
<grid spacing="true">
|
||||
<columns count="3"/>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="msg://com.haulmont.cuba.core.entity/ScheduledTask.definedBy"/>
|
||||
<lookupField id="definedByField" datasource="taskDs" property="definedBy" width="300px"
|
||||
<lookupField id="definedByField" datasource="taskDs" property="definedBy" width="400px"
|
||||
required="true"/>
|
||||
<groupBox id="methodParamsBox" rowspan="10" width="400px" caption="msg://methodParams">
|
||||
</groupBox>
|
||||
<label value=""/> <!-- temporary workaround until #1701 is fixed -->
|
||||
</row>
|
||||
<row>
|
||||
<label id="beanNameLabel" value="msg://com.haulmont.cuba.core.entity/ScheduledTask.beanName"/>
|
||||
<lookupField id="beanNameField" datasource="taskDs" property="beanName" width="300px"
|
||||
<lookupField id="beanNameField" datasource="taskDs" property="beanName" width="400px"
|
||||
required="true"/>
|
||||
<label value=""/> <!-- temporary workaround until #1701 is fixed -->
|
||||
</row>
|
||||
<row>
|
||||
<label id="methodNameLabel"
|
||||
value="msg://com.haulmont.cuba.core.entity/ScheduledTask.methodName"/>
|
||||
<lookupField id="methodNameField" width="300px" captionProperty="methodSignature"
|
||||
required="true"/>
|
||||
value="msg://com.haulmont.cuba.core.entity/ScheduledTask.methodName" align="MIDDLE_LEFT"/>
|
||||
<lookupField id="methodNameField" width="400px" captionProperty="methodSignature"
|
||||
required="true" align="MIDDLE_LEFT"/>
|
||||
<groupBox id="methodParamsBox" caption="msg://methodParams" width="400px">
|
||||
</groupBox>
|
||||
</row>
|
||||
<row>
|
||||
<label id="classNameLabel" value="msg://com.haulmont.cuba.core.entity/ScheduledTask.className"/>
|
||||
<textField id="classNameField" datasource="taskDs" property="className" width="300px"
|
||||
<textField id="classNameField" datasource="taskDs" property="className" width="400px"
|
||||
required="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label id="scriptNameLabel"
|
||||
value="msg://com.haulmont.cuba.core.entity/ScheduledTask.scriptName"/>
|
||||
<textField id="scriptNameField" datasource="taskDs" property="scriptName" width="300px"
|
||||
<textField id="scriptNameField" datasource="taskDs" property="scriptName" width="400px"
|
||||
required="true"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="msg://com.haulmont.cuba.core.entity/ScheduledTask.userName"/>
|
||||
<lookupField id="userNameField" datasource="taskDs" property="userName" width="300px"/>
|
||||
<lookupField id="userNameField" datasource="taskDs" property="userName" width="400px"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="msg://com.haulmont.cuba.core.entity/ScheduledTask.singleton"/>
|
||||
@ -78,7 +80,7 @@
|
||||
<row>
|
||||
<label value="msg://com.haulmont.cuba.core.entity/ScheduledTask.permittedServers"/>
|
||||
<textField id="permittedServersField" datasource="taskDs" property="permittedServers"
|
||||
width="500px" colspan="1"/>
|
||||
width="400px"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="msg://com.haulmont.cuba.core.entity/ScheduledTask.logStart"/>
|
||||
@ -91,7 +93,7 @@
|
||||
<row>
|
||||
<label value="msg://com.haulmont.cuba.core.entity/ScheduledTask.description"/>
|
||||
<textField id="description" datasource="taskDs" property="description"
|
||||
width="500px" rows="3" colspan="1"/>
|
||||
width="400px" rows="3"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
Loading…
Reference in New Issue
Block a user