IDEMPIERE-393 Setup wizards / Implement opening form from zoom button

This commit is contained in:
Carlos Ruiz 2013-01-24 10:55:17 -08:00
parent c2941041fe
commit 62e2b95508
1 changed files with 11 additions and 3 deletions

View File

@ -33,6 +33,7 @@ import org.adempiere.webui.component.Panel;
import org.adempiere.webui.component.Row; import org.adempiere.webui.component.Row;
import org.adempiere.webui.component.Rows; import org.adempiere.webui.component.Rows;
import org.adempiere.webui.component.Textbox; import org.adempiere.webui.component.Textbox;
import org.adempiere.webui.component.Window;
import org.adempiere.webui.editor.WSearchEditor; import org.adempiere.webui.editor.WSearchEditor;
import org.adempiere.webui.editor.WTableDirEditor; import org.adempiere.webui.editor.WTableDirEditor;
import org.adempiere.webui.panel.ADForm; import org.adempiere.webui.panel.ADForm;
@ -482,9 +483,16 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
} }
private void zoom() { private void zoom() {
if(m_node != null) if (m_node != null) {
if (MWFNode.ACTION_UserWindow.equals(m_node.getAction())) {
AEnv.zoom(m_node.getAD_Window_ID(), null); AEnv.zoom(m_node.getAD_Window_ID(), null);
} else if (MWFNode.ACTION_UserForm.equals(m_node.getAction())) {
int AD_Form_ID = m_node.getAD_Form_ID();
ADForm form = ADForm.openForm(AD_Form_ID);
form.setAttribute(Window.MODE_KEY, form.getWindowMode());
AEnv.showWindow(form);
}
}
} }
private void repaintTree() { private void repaintTree() {