@Override protected void onLayout(boolean arg0, int l, int t, int r, int b) { if (arg0) { this.innerView.layout(l - l, t - t, r - l, b - t); super.layout(l, t, r, b); } }
/** * Validate instance. * * @param request the request * @throws ServiceVersionException the service version exception * @throws ServiceValidationException the service validation exception */ protected void internalValidate(ServiceRequestBase request) throws ServiceVersionException, ServiceValidationException { super.internalValidate(request); if (this.endDate.compareTo(this.startDate) < 0) { throw new ServiceValidationException(Strings.EndDateMustBeGreaterThanStartDate); } }
/** * Write to XML. * * @param writer the writer * @throws Exception the exception */ protected void internalWriteViewToXml(EwsServiceXmlWriter writer) throws Exception { super.internalWriteViewToXml(writer); writer.writeAttributeValue(XmlAttributeNames.StartDate, this.startDate); writer.writeAttributeValue(XmlAttributeNames.EndDate, this.endDate); }