Пример #1
0
 /**
  * Sets the flag for ability to respond to user input (true = does respond).
  *
  * @param enabled boolean
  */
 public void setEnabled(boolean enabled) {
   super.setEnabled(enabled);
   if (_editHandle instanceof HtmlFormComponent)
     ((HtmlFormComponent) _editHandle).setEnabled(enabled);
   if (_usePopup) _browsePopupImageLink.setVisible(enabled);
   else _browseImage.setVisible(enabled);
 }
Пример #2
0
 /*
  * (non-Javadoc)
  *
  * @see com.salmonllc.html.HtmlComponent#generateHTML(java.io.PrintWriter,
  *      int)
  */
 public void generateHTML(PrintWriter p, int rowNo) throws Exception {
   generatePopupHtml(rowNo);
   boolean editReadOnly = setEditReadOnly(rowNo);
   super.generateHTML(p, rowNo);
   getEditField().setReadOnly(editReadOnly);
   generateDivHtml(p, rowNo);
 }
Пример #3
0
  /*
   * (non-Javadoc)
   *
   * @see com.salmonllc.html.HtmlComponent#setTheme(java.lang.String)
   */
  public void setTheme(String theme) {
    Props p = getPage().getPageProperties();
    _popupAttributes = p.getThemeProperty(theme, Props.LOOKUP_COMPONENT_POPUPATTRIBUTES);

    _lookUpPageURL = p.getThemeProperty(theme, Props.LOOKUP_COMPONENT_URL);
    _usePopup = p.getThemeBooleanProperty(theme, Props.LOOKUP_COMPONENT_USEPOPUP, false);
    _useModal = p.getThemeBooleanProperty(theme, Props.LOOKUP_COMPONENT_POPUPMODAL, false);
    _popupWidth = p.getThemeIntProperty(theme, Props.LOOKUP_COMPONENT_POPUPWIDTH, 300);
    _popupHeight = p.getThemeIntProperty(theme, Props.LOOKUP_COMPONENT_POPUPHEIGHT, 300);
    _popupTop = p.getThemeIntProperty(theme, Props.LOOKUP_COMPONENT_POPUPTOP, 0);
    _popupLeft = p.getThemeIntProperty(theme, Props.LOOKUP_COMPONENT_POPUPLEFT, 0);
    _popupPosition =
        p.getThemeProperty(
            theme, Props.LOOKUP_COMPONENT_POPUPPOSITION, Constants.POPUP_POSITION_CUSTOM);
    _useDiv = p.getThemeBooleanProperty(theme, Props.LOOKUP_COMPONENT_POPUPDIV, false);
    _divBorderStyle = p.getThemeProperty(theme, Props.LOOKUP_COMPONENT_POPUPDIVBORDERSTYLE);
    setEditDescription(p.getThemeBooleanProperty(theme, Props.LOOKUP_COMPONENT_EDITDESCRIPTION));
    super.setTheme(theme);
  }