IDEMPIERE-5274 : Report customization panel : increase width of print… (#1302)
* IDEMPIERE-5274 : Report customization panel : increase width of print format name Co-Authored-By: hengsin <152246+hengsin@users.noreply.github.com>
This commit is contained in:
parent
00c112b263
commit
36158fdbc4
|
@ -63,18 +63,17 @@ import org.zkoss.zk.ui.WrongValueException;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Auxhead;
|
||||
import org.zkoss.zul.Auxheader;
|
||||
import org.zkoss.zul.Div;
|
||||
import org.zkoss.zul.Filedownload;
|
||||
import org.zkoss.zul.Foot;
|
||||
import org.zkoss.zul.Footer;
|
||||
import org.zkoss.zul.Hbox;
|
||||
import org.zkoss.zul.Hlayout;
|
||||
import org.zkoss.zul.Separator;
|
||||
import org.zkoss.zul.Vbox;
|
||||
|
||||
|
||||
@org.idempiere.ui.zk.annotation.Form
|
||||
@org.idempiere.ui.zk.annotation.Form
|
||||
public class WReportCustomization implements IFormController,EventListener<Event> {
|
||||
|
||||
private CustomForm form = new CustomForm();
|
||||
|
@ -92,7 +91,7 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
|||
private ReportEngine m_reportEngine=null;
|
||||
public ArrayList<MPrintFormatItem> pfi ;
|
||||
|
||||
private Auxheader headerPanel=new Auxheader();
|
||||
private Hlayout headerPanel=new Hlayout();
|
||||
private WStringEditor name = new WStringEditor();
|
||||
private String tempName = "";
|
||||
private Button newPrintFormat;
|
||||
|
@ -186,6 +185,7 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
|||
|
||||
headerPanel.appendChild(name.getComponent());
|
||||
headerPanel.appendChild(new Separator("vertical"));
|
||||
ZKUpdateUtil.setHflex(name.getComponent(), "1");
|
||||
|
||||
name.getComponent().addEventListener(Events.ON_FOCUS, this);
|
||||
name.getComponent().addEventListener(Events.ON_BLUR, this);
|
||||
|
@ -197,9 +197,7 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
|||
newPrintFormat.addActionListener(this);
|
||||
|
||||
headerPanel.appendChild(newPrintFormat);
|
||||
Separator tor =new Separator("vertical");
|
||||
tor.setSpacing("23%");
|
||||
headerPanel.appendChild(tor);
|
||||
headerPanel.setValign("middle");
|
||||
|
||||
selectAll = new Label(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "SelectAll")));
|
||||
selectAll.setStyle("cursor:pointer;text-decoration: underline;");
|
||||
|
@ -210,7 +208,9 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
|||
deselectAll.setAttribute("name", "DeselectAll");
|
||||
selectAll.addEventListener(Events.ON_CLICK, this);
|
||||
deselectAll.addEventListener(Events.ON_CLICK, this);
|
||||
headerPanel.appendChild(new Separator("vertical"));
|
||||
Separator sep = new Separator("vertical");
|
||||
sep.setHflex("1");
|
||||
headerPanel.appendChild(sep);
|
||||
headerPanel.appendChild(selectAll);
|
||||
headerPanel.appendChild(new Separator("vertical"));
|
||||
headerPanel.appendChild(pipeSeparator);
|
||||
|
@ -218,11 +218,10 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
|||
headerPanel.appendChild(deselectAll);
|
||||
headerPanel.appendChild(new Separator("vertical"));
|
||||
|
||||
Auxhead head=new Auxhead();
|
||||
head.appendChild(headerPanel);
|
||||
form.appendChild(head);
|
||||
form.appendChild(headerPanel);
|
||||
headerPanel.setHflex("1");
|
||||
|
||||
headerPanel.appendChild(new Separator("horizontal"));
|
||||
form.appendChild(new Separator("horizontal"));
|
||||
|
||||
ZKUpdateUtil.setWidth(tabbox, "100%");
|
||||
ZKUpdateUtil.setHeight(tabbox, "84%");//IDEMPIERE-2476, Pritesh Shah
|
||||
|
|
Loading…
Reference in New Issue