コード例 #1
0
 protected void setValue(FileModel fileModel) {
   String currentValue = getDisplayedContent(fileModel);
   // if current value has changed, update view with current value
   if (!Util.equalWithNull(currentValue, this.currentValue)) {
     updateCurrentValue(currentValue);
   }
 }
コード例 #2
0
 @Override
 public void onSave() {
   String currentValue = getFileBasedMiniAppView().getValue();
   // if current value has changed, update store, which publishes to other
   // presenters
   if (!Util.equalWithNull(currentValue, this.currentValue)) {
     this.currentValue = currentValue;
     getFileModel().setContent(currentValue);
     getFileModel().setLastModified(new Date()); // TODO: move to FileSystem
     getFileSystem().getTreeStore().update(getFileModel());
   }
 }
コード例 #3
0
ファイル: RegExValidator.java プロジェクト: Rebelo/GXT-ADMZ
 /**
  * Sets the regular expression.
  *
  * @param regex the regular expression
  */
 public void setRegex(String regex) {
   if (!Util.equalWithNull(this.regex, regex)) {
     compiledRegExp = null;
     this.regex = regex;
   }
 }