use of org.adempiere.webui.editor.WDateEditor in project adempiere by adempiere.
the class WPaySelect method valueChange.
/**
* Capture value changes in WSearchEditor components specifically.
* Copy and override as required.
* @param evt
*/
public void valueChange(ValueChangeEvent evt) {
Object c = null;
if (evt.getSource() instanceof WSearchEditor)
c = ((WSearchEditor) evt.getSource()).getComponent();
else if (evt.getSource() instanceof WPAttributeEditor)
c = ((WPAttributeEditor) evt.getSource()).getComponent();
else if (evt.getSource() instanceof WDateEditor)
c = ((WDateEditor) evt.getSource()).getComponent();
if (c == null)
return;
// Pass it off to the event handler to process.
Event e = new Event("onChange", (Component) c);
onEvent(e);
}
use of org.adempiere.webui.editor.WDateEditor in project adempiere by adempiere.
the class WTrxMaterial method dynParameter.
// jbInit
/**
* Initialize Parameter fields
* @throws Exception if Lookups cannot be initialized
*/
private void dynParameter() throws Exception {
Properties ctx = Env.getCtx();
// Organization
MLookup orgLookup = MLookupFactory.get(ctx, m_WindowNo, 0, 3660, DisplayType.TableDir);
orgField = new WTableDirEditor("AD_Org_ID", false, false, true, orgLookup);
// orgField.addVetoableChangeListener(this);
// Locator
MLocatorLookup locatorLookup = new MLocatorLookup(ctx, m_WindowNo);
locatorField = new WLocatorEditor("M_Locator_ID", false, false, true, locatorLookup, m_WindowNo);
// locatorField.addVetoableChangeListener(this);
// Product
MLookup productLookup = MLookupFactory.get(ctx, m_WindowNo, 0, 3668, DisplayType.Search);
productField = new WSearchEditor("M_Product_ID", false, false, true, productLookup);
productField.addValueChangeListener(this);
// Movement Type
MLookup mtypeLookup = MLookupFactory.get(ctx, m_WindowNo, 0, 3666, DisplayType.List);
mtypeField = new WTableDirEditor("MovementType", false, false, true, mtypeLookup);
// Dates
dateFField = new WDateEditor("DateFrom", false, false, true, Msg.getMsg(Env.getCtx(), "DateFrom"));
dateTField = new WDateEditor("DateTo", false, false, true, Msg.getMsg(Env.getCtx(), "DateTo"));
//
confirmPanel.addActionListener(this);
statusBar.setStatusLine("");
}
use of org.adempiere.webui.editor.WDateEditor in project adempiere by adempiere.
the class WCRPDetail method jbInit.
private void jbInit() {
dateFrom = new WDateEditor("DateFrom", true, false, true, "DateFrom");
dateTo = new WDateEditor("DateTo", true, false, true, "DateTo");
Rows rows = new Rows();
Row row = null;
new GridFactory();
Grid northPanel = GridFactory.newGridLayout();
rows.setParent(northPanel);
row = rows.newRow();
row.appendChild(new Label(Msg.translate(Env.getCtx(), "S_Resource_ID")).rightAlign());
row.appendChild(resource.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateFrom")).rightAlign());
row.appendChild(dateFrom.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateTo")).rightAlign());
row.appendChild(dateTo.getComponent());
ConfirmPanel confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(this);
North north = new North();
north.appendChild(northPanel);
mainLayout.appendChild(north);
//West west = new West();
//chartPanel.setWidth("400");
//west.appendChild(chartPanel);
//west.setSplittable(true);
//west.setAutoscroll(true);
//mainLayout.appendChild(west);
South south = new South();
south.appendChild(confirmPanel);
mainLayout.appendChild(south);
}
Aggregations