IDEMPIERE-1915 Tool Tip panel collapses when clicking into it or out of a field on window
This commit is contained in:
parent
898e61f153
commit
80f1cafe49
|
@ -527,7 +527,6 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(field.getDescription()));
|
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(field.getDescription()));
|
||||||
editor.getComponent().setWidgetOverride("fieldHelp", HelpController.escapeJavascriptContent(field.getHelp()));
|
editor.getComponent().setWidgetOverride("fieldHelp", HelpController.escapeJavascriptContent(field.getHelp()));
|
||||||
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader(), this.fieldDescription(), this.fieldHelp());");
|
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader(), this.fieldDescription(), this.fieldHelp());");
|
||||||
editor.getComponent().setWidgetListener("onBlur", "zWatch.fire('onFieldTooltip', this);");
|
|
||||||
|
|
||||||
editor.setGridTab(this.getGridTab());
|
editor.setGridTab(this.getGridTab());
|
||||||
field.addPropertyChangeListener(editor);
|
field.addPropertyChangeListener(editor);
|
||||||
|
|
|
@ -411,7 +411,6 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
|
||||||
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(gridPanelFields[i].getDescription()));
|
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(gridPanelFields[i].getDescription()));
|
||||||
editor.getComponent().setWidgetOverride("fieldHelp", HelpController.escapeJavascriptContent(gridPanelFields[i].getHelp()));
|
editor.getComponent().setWidgetOverride("fieldHelp", HelpController.escapeJavascriptContent(gridPanelFields[i].getHelp()));
|
||||||
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader(), this.fieldDescription(), this.fieldHelp());");
|
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader(), this.fieldDescription(), this.fieldHelp());");
|
||||||
editor.getComponent().setWidgetListener("onBlur", "zWatch.fire('onFieldTooltip', this);");
|
|
||||||
|
|
||||||
// Default Focus
|
// Default Focus
|
||||||
if (defaultFocusField == null && gridPanelFields[i].isDefaultFocus())
|
if (defaultFocusField == null && gridPanelFields[i].isDefaultFocus())
|
||||||
|
|
|
@ -285,7 +285,6 @@ public class ProcessParameterPanel extends Panel implements
|
||||||
WEditor editor = WebEditorFactory.getEditor(mField, false);
|
WEditor editor = WebEditorFactory.getEditor(mField, false);
|
||||||
editor.setProcessParameter(true);
|
editor.setProcessParameter(true);
|
||||||
editor.getComponent().addEventListener(Events.ON_FOCUS, this);
|
editor.getComponent().addEventListener(Events.ON_FOCUS, this);
|
||||||
editor.getComponent().addEventListener(Events.ON_BLUR, this);
|
|
||||||
editor.addValueChangeListener(this);
|
editor.addValueChangeListener(this);
|
||||||
editor.dynamicDisplay();
|
editor.dynamicDisplay();
|
||||||
// MField => VEditor - New Field value to be updated to editor
|
// MField => VEditor - New Field value to be updated to editor
|
||||||
|
@ -342,7 +341,6 @@ public class ProcessParameterPanel extends Panel implements
|
||||||
//override attribute
|
//override attribute
|
||||||
editor2.getComponent().setWidgetAttribute("columnName", mField2.getColumnName()+"_To");
|
editor2.getComponent().setWidgetAttribute("columnName", mField2.getColumnName()+"_To");
|
||||||
editor2.getComponent().addEventListener(Events.ON_FOCUS, this);
|
editor2.getComponent().addEventListener(Events.ON_FOCUS, this);
|
||||||
editor2.getComponent().addEventListener(Events.ON_BLUR, this);
|
|
||||||
// New Field value to be updated to editor
|
// New Field value to be updated to editor
|
||||||
mField2.addPropertyChangeListener(editor2);
|
mField2.addPropertyChangeListener(editor2);
|
||||||
editor2.dynamicDisplay();
|
editor2.dynamicDisplay();
|
||||||
|
@ -640,25 +638,6 @@ public class ProcessParameterPanel extends Panel implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (event.getName().equals(Events.ON_BLUR)) {
|
|
||||||
for (WEditor editor : m_wEditors)
|
|
||||||
{
|
|
||||||
if (editor.isComponentOfEditor(event.getTarget()))
|
|
||||||
{
|
|
||||||
SessionManager.getAppDesktop().updateHelpTooltip(null);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (WEditor editor : m_wEditors2)
|
|
||||||
{
|
|
||||||
if (editor != null && editor.getComponent() != null && editor.isComponentOfEditor(event.getTarget()))
|
|
||||||
{
|
|
||||||
SessionManager.getAppDesktop().updateHelpTooltip(null);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (event.getName().equals("onDynamicDisplay")) {
|
else if (event.getName().equals("onDynamicDisplay")) {
|
||||||
dynamicDisplay();
|
dynamicDisplay();
|
||||||
}
|
}
|
||||||
|
|
|
@ -588,6 +588,7 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateHelpContext(String ctxType, int recordId) {
|
public void updateHelpContext(String ctxType, int recordId) {
|
||||||
|
Clients.response(new AuScript("zWatch.fire('onFieldTooltip', this);"));
|
||||||
helpController.renderCtxHelp(ctxType, recordId);
|
helpController.renderCtxHelp(ctxType, recordId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -876,16 +876,6 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (event.getName().equals(Events.ON_BLUR)) {
|
|
||||||
for (WEditor editor : editors)
|
|
||||||
{
|
|
||||||
if (editor.isComponentOfEditor(event.getTarget()))
|
|
||||||
{
|
|
||||||
SessionManager.getAppDesktop().updateHelpTooltip(null);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
super.onEvent(event);
|
super.onEvent(event);
|
||||||
|
@ -899,7 +889,6 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
||||||
for (WEditor editor : editors)
|
for (WEditor editor : editors)
|
||||||
{
|
{
|
||||||
editor.getComponent().addEventListener(Events.ON_FOCUS, this);
|
editor.getComponent().addEventListener(Events.ON_FOCUS, this);
|
||||||
editor.getComponent().addEventListener(Events.ON_BLUR, this);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue