IDEMPIERE-785 Save and new button is not working.
This commit is contained in:
parent
9b89a3cfa2
commit
4e038d62bb
|
@ -971,17 +971,11 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
public void focusToFirstEditor() {
|
public void focusToFirstEditor() {
|
||||||
WEditor toFocus = null;
|
WEditor toFocus = null;
|
||||||
for (WEditor editor : editors) {
|
for (WEditor editor : editors) {
|
||||||
if (editor.isVisible() && editor.getComponent().getParent() != null) {
|
if (editor.isVisible() && editor.isReadWrite() && editor.getComponent().getParent() != null
|
||||||
|
&& !(editor instanceof WImageEditor)) {
|
||||||
toFocus = editor;
|
toFocus = editor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (toFocus == null) {
|
|
||||||
if (editor.isVisible() && editor.isReadWrite() && editor.getComponent().getParent() != null
|
|
||||||
&& !(editor instanceof WImageEditor)) {
|
|
||||||
toFocus = editor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (toFocus != null) {
|
if (toFocus != null) {
|
||||||
focusToEditor(toFocus);
|
focusToEditor(toFocus);
|
||||||
|
|
|
@ -1923,7 +1923,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dirtyTabpanel != null && dirtyTabpanel.getGridTab().isDetail()) {
|
if (dirtyTabpanel != null && dirtyTabpanel != adTabbox.getSelectedTabpanel()) {
|
||||||
Executions.getCurrent().setAttribute("adtabpane.saved", dirtyTabpanel);
|
Executions.getCurrent().setAttribute("adtabpane.saved", dirtyTabpanel);
|
||||||
dirtyTabpanel.getGridTab().refreshParentTabs();
|
dirtyTabpanel.getGridTab().refreshParentTabs();
|
||||||
}
|
}
|
||||||
|
|
|
@ -586,13 +586,9 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
|
||||||
WEditor firstEditor = null;
|
WEditor firstEditor = null;
|
||||||
for (WEditor editor : getEditors()) {
|
for (WEditor editor : getEditors()) {
|
||||||
if (editor.isVisible() && editor.getComponent().getParent() != null) {
|
if (editor.isVisible() && editor.getComponent().getParent() != null) {
|
||||||
toFocus = editor;
|
if (editor.isReadWrite()) {
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (editor.isVisible() && editor.getComponent().getParent() != null) {
|
|
||||||
if (toFocus == null && editor.isReadWrite()) {
|
|
||||||
toFocus = editor;
|
toFocus = editor;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (firstEditor == null)
|
if (firstEditor == null)
|
||||||
firstEditor = editor;
|
firstEditor = editor;
|
||||||
|
|
Loading…
Reference in New Issue