示例#1
0
  public void setWalletDescription(String walletDescription) {
    if (walletInfo != null) {
      if (walletDescription == null) {
        walletDescription = "";
      }
      String currentWalletDescription = walletInfo.getProperty(WalletInfoData.DESCRIPTION_PROPERTY);
      if (!walletDescription.equals(currentWalletDescription)) {
        walletInfo.put(WalletInfoData.DESCRIPTION_PROPERTY, walletDescription);
        if (wallet != null) {
          wallet.setDescription(walletDescription);
        }

        setDirty(true);
      }
    }
  }
示例#2
0
 public String getWalletDescription() {
   if (walletInfo != null) {
     return walletInfo.getProperty(WalletInfoData.DESCRIPTION_PROPERTY);
   } else {
     return "";
   }
 }
示例#3
0
 public void setWalletInfo(WalletInfoData walletInfo) {
   this.walletInfo = walletInfo;
   if (walletInfo != null && wallet != null) {
     if (wallet.getVersion() == null) {
       wallet.setVersion(walletInfo.getWalletVersion());
     }
   }
 }