コード例 #1
0
  /** @param b */
  public void setUsePopup(boolean b, boolean useModal) {
    _usePopup = b;
    /* Claudio Pi - 5/25/04 Added for modal popup windows */
    _useModal = useModal;

    if (_usePopup) {
      _browseImage.setVisible(false);
      _browsePopupImageLink.setVisible(true);
    } else {
      _browseImage.setVisible(true);
      _browsePopupImageLink.setVisible(false);
    }
  }
コード例 #2
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);
 }
コード例 #3
0
 /**
  * Sets the flag for ability to respond to user input (true = does respond).
  *
  * @param enabled boolean
  */
 public void setReadOnly(boolean enabled) {
   // super.setEnabled(enabled);
   if (_editHandle instanceof HtmlTextEdit) ((HtmlTextEdit) _editHandle).setReadOnly(enabled);
   if (_usePopup) _browsePopupImageLink.setVisible(!enabled);
   else _browseImage.setVisible(!enabled);
 }