示例#1
0
 /**
  * {@inheritDoc}
  *
  * @param e Action event
  */
 @Override
 public void actionPerformed(final ActionEvent e) {
   invite.accept();
 }
示例#2
0
 /** {@inheritDoc} */
 @Override
 public String toString() {
   return invite.getChannel() + "(" + Arrays.toString(invite.getSource()) + ")";
 }
示例#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;
  }