@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);
   }
 }
Exemplo n.º 2
0
  /**
   * 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);
    }
  }
Exemplo n.º 3
0
  /**
   * 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);
  }