use of org.adempiere.webui.component.ConfirmPanel in project adempiere by adempiere.
the class WBOMDrop method initForm.
/**
* Initialize Panel
* @param WindowNo window
* @param frame parent frame
*/
protected void initForm() {
log.info("");
try {
confirmPanel = new ConfirmPanel(true);
// Top Selection Panel
createSelectionPanel(true, true, true);
// Center
createMainPanel();
confirmPanel.addActionListener(Events.ON_CLICK, this);
} catch (Exception e) {
log.log(Level.SEVERE, "", e);
}
//sizeIt();
}
use of org.adempiere.webui.component.ConfirmPanel in project adempiere by adempiere.
the class WDocActionPanel method initComponents.
private void initComponents() {
lblDocAction = new Label();
lblDocAction.setId("lblDocAction");
lblDocAction.setValue(Msg.translate(Env.getCtx(), "DocAction"));
label = new Label();
label.setId("label");
lstDocAction = new Listbox();
lstDocAction.setId("lstDocAction");
lstDocAction.setRows(0);
lstDocAction.setMold("select");
lstDocAction.setWidth("100px");
lstDocAction.addEventListener(Events.ON_SELECT, this);
confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(Events.ON_CLICK, this);
}
use of org.adempiere.webui.component.ConfirmPanel in project adempiere by adempiere.
the class RolePanel method init.
private void init() {
//this.setContentSclass(ITheme.LOGIN_WINDOW_CLASS);
Div div = new Div();
ThemeUtils.addSclass("ad-rolepanel-header", div);
//TODO - localization
Label label = new Label("Login");
ThemeUtils.addSclass("ad-rolepanel-header-text", label);
div.appendChild(label);
this.appendChild(div);
Table table = new Table();
table.setId("grdChooseRole");
ThemeUtils.addSclass("ad-rolepanel-body", table);
this.appendChild(table);
Tr tr = new Tr();
table.appendChild(tr);
Td td = new Td();
ThemeUtils.addSclass("ad-rolepanel-header-logo", td);
tr.appendChild(td);
td.setDynamicProperty("colspan", "2");
Image image = new Image();
image.setSrc(ThemeUtils.getLargeLogo());
ThemeUtils.addSclass("ad-rolepanel-header-logo", image);
td.appendChild(image);
tr = new Tr();
tr.setId("rowRole");
table.appendChild(tr);
td = new Td();
tr.appendChild(td);
ThemeUtils.addSclass("login-label", td);
td.appendChild(lblRole.rightAlign());
td = new Td();
ThemeUtils.addSclass("login-field", td);
tr.appendChild(td);
td.appendChild(lstRole);
tr = new Tr();
tr.setId("rowclient");
table.appendChild(tr);
td = new Td();
tr.appendChild(td);
ThemeUtils.addSclass("login-label", td);
td.appendChild(lblClient.rightAlign());
td = new Td();
ThemeUtils.addSclass("login-field", td);
tr.appendChild(td);
td.appendChild(lstClient);
tr = new Tr();
tr.setId("rowOrganisation");
table.appendChild(tr);
td = new Td();
tr.appendChild(td);
ThemeUtils.addSclass("login-label", td);
td.appendChild(lblOrganisation.rightAlign());
td = new Td();
ThemeUtils.addSclass("login-field", td);
tr.appendChild(td);
td.appendChild(lstOrganisation);
tr = new Tr();
tr.setId("rowWarehouse");
table.appendChild(tr);
td = new Td();
tr.appendChild(td);
ThemeUtils.addSclass("login-label", td);
td.appendChild(lblWarehouse.rightAlign());
td = new Td();
ThemeUtils.addSclass("login-field", td);
tr.appendChild(td);
td.appendChild(lstWarehouse);
div = new Div();
ThemeUtils.addSclass("ad-rolepanel-footer", div);
ConfirmPanel pnlButtons = new ConfirmPanel(true);
pnlButtons.addActionListener(this);
ThemeUtils.addSclass("ad-rolepanel-footer-pnl", pnlButtons);
pnlButtons.getButton(ConfirmPanel.A_OK).setSclass("login-btn");
pnlButtons.getButton(ConfirmPanel.A_CANCEL).setSclass("login-btn");
div.appendChild(pnlButtons);
this.appendChild(div);
}
use of org.adempiere.webui.component.ConfirmPanel in project adempiere by adempiere.
the class WHRActionNotice method zkInit.
/**
* Static Init
*
* @throws Exception
*/
private void zkInit() throws Exception {
form.setWidth("99%");
form.setHeight("100%");
form.setStyle("position: absolute; padding: 0; margin: 0");
form.appendChild(mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setStyle("position: absolute");
// Process
labelProcess.setText(Msg.translate(Env.getCtx(), "HR_Process_ID"));
fieldProcess.addEventListener(Events.ON_SELECT, this);
// BPartner
labelBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
fieldEmployee.addEventListener(Events.ON_SELECT, this);
// Date
labelValidFrom.setText(Msg.translate(Env.getCtx(), "Date"));
fieldValidFrom.addValueChangeListener(this);
// Concept
labelConcept.setText(Msg.translate(Env.getCtx(), "HR_Concept_ID"));
fieldConcept.addEventListener(Events.ON_SELECT, this);
// Concept's
labelColumnType.setText(Msg.translate(Env.getCtx(), "ColumnType"));
labelDescription.setText(Msg.translate(Env.getCtx(), "Description"));
fieldDate.setVisible(false);
fieldDate.addValueChangeListener(this);
fieldQty.setVisible(false);
fieldQty.addValueChangeListener(this);
fieldAmount.setVisible(false);
fieldAmount.addValueChangeListener(this);
fieldText.setVisible(false);
fieldText.addValueChangeListener(this);
fieldDescription.addValueChangeListener(this);
fieldColumnType.setReadWrite(false);
ConfirmPanel panel = new ConfirmPanel(false, false, false, false, false, false, false);
bOk = panel.createButton(ConfirmPanel.A_OK);
bOk.addActionListener(this);
North north = new North();
north.setStyle("border: none");
mainLayout.appendChild(north);
north.appendChild(parameterPanel);
Rows rows = new Rows();
rows.setParent(parameterPanel);
Row row = rows.newRow();
row.appendChild(labelProcess.rightAlign());
row.appendChild(fieldProcess);
fieldProcess.setWidth("100%");
row.appendChild(labelBPartner.rightAlign());
row.appendChild(fieldEmployee);
fieldEmployee.setWidth("100%");
row = rows.newRow();
row.appendChild(labelValidFrom.rightAlign());
row.appendChild(fieldValidFrom.getComponent());
row.appendChild(labelConcept.rightAlign());
row.appendChild(fieldConcept);
fieldConcept.setWidth("100%");
row = rows.newRow();
// Add div for Qty-Amount-Date-Text-RuleEngine
Div div = new Div();
row.appendChild(labelColumnType.rightAlign());
row.appendChild(fieldColumnType.getComponent());
row.appendChild(new Space());
div.appendChild(fieldDate.getComponent());
div.appendChild(fieldQty.getComponent());
div.appendChild(fieldAmount.getComponent());
div.appendChild(fieldText.getComponent());
div.appendChild(fieldTextLookup);
row.appendChild(div);
fieldDate.fillHorizontal();
fieldQty.fillHorizontal();
fieldAmount.fillHorizontal();
fieldText.fillHorizontal();
fieldValidFrom.fillHorizontal();
fieldTextLookup.setWidth("100%");
// End Yamel Senih
row = rows.newRow();
row.appendChild(labelDescription.rightAlign());
row.appendChild(fieldDescription.getComponent());
row.appendChild(new Space());
row.appendChild(bOk);
//
Center center = new Center();
center.setFlex(true);
center.appendChild(miniTable);
mainLayout.appendChild(center);
miniTable.setVflex(true);
miniTable.setFixedLayout(true);
miniTable.setWidth("99%");
miniTable.setHeight("99%");
configureMiniTable();
}
use of org.adempiere.webui.component.ConfirmPanel in project adempiere by adempiere.
the class WWFPanelManufacturing method initForm.
@Override
protected void initForm() {
this.setHeight("100%");
Borderlayout layout = new Borderlayout();
layout.setStyle("width: 100%; height: 100%; position: absolute;");
appendChild(layout);
String sql = MRole.getDefault().addAccessSQL("SELECT AD_Workflow_ID, Name FROM AD_Workflow WHERE " + WF_WhereClause + " ORDER BY 2", "AD_Workflow", MRole.SQL_NOTQUALIFIED, // all
MRole.SQL_RO);
KeyNamePair[] pp = DB.getKeyNamePairs(sql, true);
workflowList = ListboxFactory.newDropdownListbox();
for (KeyNamePair knp : pp) {
workflowList.addItem(knp);
}
workflowList.addEventListener(Events.ON_SELECT, this);
North north = new North();
layout.appendChild(north);
north.appendChild(workflowList);
workflowList.setStyle("margin-left: 10px; margin-top: 5px;");
north.setHeight("30px");
imageMap = new Imagemap();
Center center = new Center();
layout.appendChild(center);
center.setAutoscroll(true);
// center.setFlex(true);
center.appendChild(imageMap);
ConfirmPanel confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(this);
South south = new South();
layout.appendChild(south);
south.appendChild(confirmPanel);
south.setHeight("36px");
}
Aggregations