// ##################################################
  // # render
  // ##################################################//
  public void renderControl(ScServletData data, JwHtmlBuffer buf) {
    JwGeographicCoordinate c = null;
    if (getModel() != null) {
      if (getModel() instanceof JwGeographicCoordinate) c = (JwGeographicCoordinate) getModel();
      else c = (JwGeographicCoordinate) getValueAdaptor().getValue(getModel());
    }

    if (c != null) {
      _degrees.setValue((double) c.getDegrees().intValue());
      _minutes.setValue((double) c.getMinutes().intValue());
      _seconds.setValue(c.getSeconds().doubleValue());
      _direction.setSelectedValue(c.getDirection());
    }

    _degrees.render(data, buf);
    buf.print(JwConstantsIF.SYMBOL_DEGREE);
    buf.printNonBreakingSpace();

    _minutes.render(data, buf);
    buf.printLiteral("'");
    buf.printNonBreakingSpace();

    _seconds.render(data, buf);
    buf.print("\"");
    buf.printNonBreakingSpace();

    _direction.render(data, buf);
  }