private void handleSendConfirm() { if (!everythingValid()) { // Sanity check log.error("Unexpected validity failure."); validateAmount(); validateAddress(); validateTxMessage(); return; } state = State.PREPARATION; updateView(); if (application.getWallet() != null) { onMakeTransaction(address, sendAmount, getTxMessage()); } }
private void validateEverything() { validateAddress(); validateAmount(); validateTxMessage(); }