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); } } }
public String getWalletDescription() { if (walletInfo != null) { return walletInfo.getProperty(WalletInfoData.DESCRIPTION_PROPERTY); } else { return ""; } }
public void setWalletInfo(WalletInfoData walletInfo) { this.walletInfo = walletInfo; if (walletInfo != null && wallet != null) { if (wallet.getVersion() == null) { wallet.setVersion(walletInfo.getWalletVersion()); } } }