IDEMPIERE-1915 Tool Tip panel collapses when clicking into it or out of a field on window

This commit is contained in:
Elaine Tan 2014-04-28 15:44:23 +08:00
parent 898e61f153
commit 80f1cafe49
5 changed files with 1 additions and 34 deletions

View File

@ -527,7 +527,6 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(field.getDescription()));
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("onBlur", "zWatch.fire('onFieldTooltip', this);");
editor.setGridTab(this.getGridTab());
field.addPropertyChangeListener(editor);

View File

@ -411,7 +411,6 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(gridPanelFields[i].getDescription()));
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("onBlur", "zWatch.fire('onFieldTooltip', this);");
// Default Focus
if (defaultFocusField == null && gridPanelFields[i].isDefaultFocus())

View File

@ -285,7 +285,6 @@ public class ProcessParameterPanel extends Panel implements
WEditor editor = WebEditorFactory.getEditor(mField, false);
editor.setProcessParameter(true);
editor.getComponent().addEventListener(Events.ON_FOCUS, this);
editor.getComponent().addEventListener(Events.ON_BLUR, this);
editor.addValueChangeListener(this);
editor.dynamicDisplay();
// MField => VEditor - New Field value to be updated to editor
@ -342,7 +341,6 @@ public class ProcessParameterPanel extends Panel implements
//override attribute
editor2.getComponent().setWidgetAttribute("columnName", mField2.getColumnName()+"_To");
editor2.getComponent().addEventListener(Events.ON_FOCUS, this);
editor2.getComponent().addEventListener(Events.ON_BLUR, this);
// New Field value to be updated to editor
mField2.addPropertyChangeListener(editor2);
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")) {
dynamicDisplay();
}

View File

@ -588,6 +588,7 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
@Override
public void updateHelpContext(String ctxType, int recordId) {
Clients.response(new AuScript("zWatch.fire('onFieldTooltip', this);"));
helpController.renderCtxHelp(ctxType, recordId);
}

View File

@ -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
{
super.onEvent(event);
@ -899,7 +889,6 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
for (WEditor editor : editors)
{
editor.getComponent().addEventListener(Events.ON_FOCUS, this);
editor.getComponent().addEventListener(Events.ON_BLUR, this);
}
}
}