use of org.zkoss.zul.South in project adempiere by adempiere.
the class WGenForm method zkInit.
// init
/**
* Static Init.
* <pre>
* selPanel (tabbed)
* fOrg, fBPartner
* scrollPane & miniTable
* genPanel
* info
* </pre>
* @throws Exception
*/
void zkInit() throws Exception {
//
selPanel.setWidth("99%");
selPanel.setHeight("90%");
selPanel.setStyle("border: none; position: absolute");
DesktopTabpanel tabpanel = new DesktopTabpanel();
tabpanel.appendChild(selPanel);
Tabpanels tabPanels = new Tabpanels();
tabPanels.appendChild(tabpanel);
tabbedPane.appendChild(tabPanels);
Tabs tabs = new Tabs();
tabbedPane.appendChild(tabs);
Tab tab = new Tab(Msg.getMsg(Env.getCtx(), "Select"));
tabs.appendChild(tab);
North north = new North();
selPanel.appendChild(north);
north.appendChild(selNorthPanel);
South south = new South();
selPanel.appendChild(south);
south.appendChild(confirmPanelSel);
Center center = new Center();
selPanel.appendChild(center);
center.appendChild(miniTable);
center.setHflex("true");
center.setVflex("true");
miniTable.setHeight("99%");
confirmPanelSel.addActionListener(this);
//
tabpanel = new DesktopTabpanel();
tabPanels.appendChild(tabpanel);
tabpanel.appendChild(genPanel);
tab = new Tab(Msg.getMsg(Env.getCtx(), "Generate"));
tabs.appendChild(tab);
genPanel.setWidth("99%");
genPanel.setHeight("90%");
genPanel.setStyle("border: none; position: absolute");
center = new Center();
genPanel.appendChild(center);
Div div = new Div();
div.appendChild(info);
center.appendChild(div);
south = new South();
genPanel.appendChild(south);
south.appendChild(confirmPanelGen);
confirmPanelGen.addActionListener(this);
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WBrowser method statInit.
/**
* Static Setup - add fields to parameterPanel (GridLayout)
*/
private void statInit() {
searchGrid.init();
Panel search = searchGrid.getPanel();
search.setStyle("background-color: transparent");
topPanel.appendChild(search);
topPanel.setStyle("overflow-y:auto");
//
if (getAD_Process_ID() > 0) {
// FR [ 245 ]
initProcessInfo();
// FR [ 265 ]
parameterPanel = new ProcessPanel(getWindowNo(), getBrowseProcessInfo(), "100%", ProcessPanel.COLUMNS_2);
parameterPanel.setShowDescription(false);
parameterPanel.setShowButtons(false);
//
parameterPanel.createFieldsAndEditors();
// If don't have parameters then don'show collapsible panel
if (parameterPanel.hasParameters()) {
Panel panel = parameterPanel.getPanel();
panel.setWidth("100%");
panel.setHeight("100%");
panel.setStyle("overflow-y:auto");
South south = new South();
south.setBorder("none");
south.setAutoscroll(true);
south.setFlex(true);
south.setCollapsible(true);
south.setTitle(Msg.getMsg(Env.getCtx(), ("Parameter")));
south.setCollapsible(true);
south.setAutoscroll(true);
south.appendChild(panel);
south.setStyle("background-color: transparent");
south.setStyle("border: none");
south.setHeight("40%");
//
detailPanel.appendChild(south);
}
//
detailPanel.setStyle("overflow-y:auto");
}
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WTask method zkInit.
/**
* Static Layout
* @throws Exception
*/
private void zkInit() throws Exception {
Borderlayout layout = new Borderlayout();
layout.setWidth("100%");
layout.setHeight("100%");
layout.setStyle("position: absolute;");
this.setHeight("100%");
this.setWidth("100%");
appendChild(layout);
Center center = new Center();
layout.appendChild(center);
Div div = new Div();
div.setStyle("width: 100%; height:100%; overflow: auto");
div.appendChild(info);
center.appendChild(div);
center.setHflex("true");
center.setVflex("true");
South south = new South();
layout.appendChild(south);
south.setStyle("border: none");
south.appendChild(confirmPanel);
//
confirmPanel.addActionListener(this);
confirmPanel.getOKButton().setEnabled(false);
ThemeUtils.sendDeferLayoutEvent(layout, 100);
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class InfoPanel method init.
protected void init() {
ThemeUtils.addSclass("ad-infopanel", this);
if (isModal()) {
setAttribute(Window.MODE_KEY, Window.MODE_MODAL);
setBorder("normal");
setClosable(true);
setWidth(p_width + "px");
setHeight(p_height + "px");
setContentStyle("overflow: auto");
setSizable(true);
setMaximizable(true);
ThemeUtils.addSclass("ad-infopanel-modal", this);
} else {
setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
// setBorder("none");
// setWidth("100%");
// setHeight("100%");
// setStyle("position: absolute");
ThemeUtils.addSclass("ad-infopanel-embedded", this);
}
// Elaine 2008/12/16
confirmPanel = new ConfirmPanel(true, true, false, true, true, true);
confirmPanel.addActionListener(Events.ON_CLICK, this);
// Elaine 2008/12/16
confirmPanel.getButton(ConfirmPanel.A_CUSTOMIZE).setVisible(hasCustomize());
confirmPanel.getButton(ConfirmPanel.A_HISTORY).setVisible(hasHistory());
confirmPanel.getButton(ConfirmPanel.A_ZOOM).setVisible(hasZoom());
confirmPanel.getButton(ConfirmPanel.A_OK).setVisible(p_saveResults);
checkAutoQuery.setText(Msg.getMsg(Env.getCtx(), "AutoRefresh"));
checkAutoQuery.setTooltip(Msg.getMsg(Env.getCtx(), "AutoRefresh"));
checkAutoQuery.setName("AutoQuery");
checkAutoQuery.setSelected(MSysConfig.getValue(SYSCONFIG_INFO_AUTO_QUERY, "Y", Env.getAD_Client_ID(Env.getCtx())).equals("Y"));
checkAutoQuery.setAttribute("zk_component_ID", "Lookup_Confirm_checkAutoQuery");
checkAutoQuery.addActionListener(this);
confirmPanel.getButton(ConfirmPanel.A_REFRESH).getParent().insertBefore(checkAutoQuery, confirmPanel.getButton(ConfirmPanel.A_REFRESH));
confirmPanel.getButton(ConfirmPanel.A_REFRESH).getParent().insertBefore(new Separator("vertical"), confirmPanel.getButton(ConfirmPanel.A_REFRESH));
//
statusBar.setEastVisibility(false);
statusBar.setAttribute("zk_component_ID", "info_statusBar");
//
p_southLayout.setVflex("min");
Center center = new Center();
center.appendChild(confirmPanel);
p_southLayout.appendChild(center);
South south = new South();
south.appendChild(statusBar);
p_southLayout.appendChild(south);
//
// Reset button
bReset = confirmPanel.createButton(ConfirmPanel.A_RESET);
bReset.addActionListener(this);
lblReset = new Label();
lblReset.setValue(Util.cleanAmp(Msg.translate(Env.getCtx(), "Reset")));
p_table.setOddRowSclass(null);
p_table.setAttribute("zk_component_ID", "Lookup_Data_SearchResults");
p_table.setVflex(true);
// Sizes
p_centerNorth.setVflex("min");
p_centerCenter.setVflex("1");
p_centerSouth.setHeight("25%");
//
ThemeUtils.addSclass("info-panel-center", p_centerLayout);
// May be empty
p_centerLayout.appendChild(p_centerNorth);
// the table
p_centerLayout.appendChild(p_centerCenter);
// detail tabs or other
p_centerLayout.appendChild(p_centerSouth);
//
// Need to use a container for p_table so we can insert paging if required.
Div div = new Div();
div.appendChild(p_table);
div.setVflex("1");
div.setHflex("1");
p_centerCenter.appendChild(div);
p_centerCenter.setAutoscroll(false);
p_centerCenter.setHflex("1");
//
p_centerSouth.setCollapsible(true);
p_centerSouth.setSplittable(true);
p_centerSouth.setHflex("1");
// Setup the north reset button and criteria grid
West spWest = new West();
spWest.setHflex("min");
ThemeUtils.addSclass("criteria", spWest);
Center spCenter = new Center();
//spCenter.setWidth("100%");
spCenter.setHflex("1");
spCenter.setVflex("min");
ThemeUtils.addSclass("criteria", spCenter);
p_northLayout.setHflex("min");
p_northLayout.setVflex("min");
p_northLayout.appendChild(spWest);
p_northLayout.appendChild(spCenter);
// spWest - the reset button
Grid bGrid = GridFactory.newGridLayout();
bGrid.setSizedByContent(true);
Columns bColumns = new Columns();
Column col = new Column();
col.setHflex("min");
bColumns.appendChild(col);
bGrid.appendChild(bColumns);
Rows bRows = new Rows();
Row bRow = new Row();
bGrid.appendChild(bRows);
bRows.appendChild(bRow);
bRow.appendChild(bReset);
bRow = new Row();
bRows.appendChild(bRow);
bRow.appendChild(lblReset);
spWest.appendChild(bGrid);
// The criteria table
//p_criteriaGrid.setSizedByContent(true);
spCenter.appendChild(p_criteriaGrid);
Borderlayout mainPanel = new Borderlayout();
mainPanel.setWidth("100%");
mainPanel.setHeight("100%");
//
North north = new North();
mainPanel.appendChild(north);
north.appendChild(p_northLayout);
//
center = new Center();
mainPanel.appendChild(center);
center.appendChild(p_centerLayout);
//
south = new South();
mainPanel.appendChild(south);
south.appendChild(p_southLayout);
//
if (!isModal()) {
mainPanel.setStyle("position: absolute");
}
this.appendChild(mainPanel);
this.addEventListener(Events.ON_OK, this);
this.setVisible(true);
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class InfoPAttributeInstancePanel method jbInit.
/**
* Static Init
* @throws Exception
*/
private void jbInit() throws Exception {
showAll.setText(Msg.getMsg(Env.getCtx(), "ShowAll"));
showAll.addActionListener(this);
showAll.setAttribute("zk_component_ID", "Lookup_Criteria_showAll");
m_table.setAttribute("zk_component_ID", "Lookup_Data_ASIResults");
Borderlayout borderlayout = new Borderlayout();
//
//this.doModal();
setAttribute(Window.MODE_MODAL, Boolean.TRUE);
//setAttribute(Window.MODE_KEY, Window.MODE_MODAL);
setBorder("normal");
setClosable(true);
this.setContentStyle("overflow: auto");
this.setSizable(true);
this.setMaximizable(true);
//
// As a modal window, the panel can't extend past the parent
this.setWidth("100%");
this.setHeight("100%");
this.setMaximized(true);
//
borderlayout.setWidth("100%");
borderlayout.setHeight("100%");
borderlayout.setStyle("border: none; position: relative");
this.appendChild(borderlayout);
North north = new North();
borderlayout.appendChild(north);
Div div = new Div();
div.setAlign("right");
div.appendChild(showAll);
north.appendChild(div);
Center center = new Center();
center.setAutoscroll(true);
center.setHflex("true");
center.setVflex("true");
borderlayout.appendChild(center);
center.appendChild(m_table);
South south = new South();
borderlayout.appendChild(south);
south.appendChild(confirmPanel);
// ConfirmPanel
confirmPanel.addActionListener(this);
}
Aggregations