Example #1
0
 /**
  * {@inheritDoc}
  *
  * @param e Action event
  */
 @Override
 public void actionPerformed(final ActionEvent e) {
   invite.accept();
 }
Example #2
0
 /** {@inheritDoc} */
 @Override
 public String toString() {
   return invite.getChannel() + "(" + Arrays.toString(invite.getSource()) + ")";
 }
Example #3
0
  /**
   * Instantiates a new invite action.
   *
   * @param invite Invite for the action
   */
  public InviteAction(final Invite invite) {
    super(invite.getChannel() + " (" + invite.getSource()[0] + ")");

    this.invite = invite;
  }