@Override public void process(Situation context) { super.process(context); table.addClientEventHandler( SEditTable.CLIENT_EVENT_VALUE_CHANGED, "OnlineOrder.handleTableDataChange"); final Label nameLabel = createLabelControl(ID_Label_CustomerName); final Label mobileLable = createLabelControl(ID_Label_MobileNo); final Label dateLabel = createLabelControl(ID_Label_BookingDate); final Button saveButton = createButtonControl(ID_Button_Save); final Button cancelButton = createButtonControl(ID_Button_Cancel); nameLabel.setText(orderInfo.getRealName()); mobileLable.setText(orderInfo.getConsigneeTel()); dateLabel.setText(DateUtil.dateFromat(orderInfo.getCreateDate())); searateAction(saveButton); cancelAction(cancelButton); }
@Override public Object[] getElements(Context context, STableStatus tablestatus) { return orderInfo.getItems(); }