/**
  * Creates a new instance of FakeInputWindow.
  *
  * @param target The message target that output gets sent to
  */
 public FakeWriteableFrameContainer(final MessageTarget target) {
   super(
       target.getIcon(),
       target.getName(),
       target.getTitle(),
       InputWindow.class,
       target.getConfigManager(),
       target.getCommandParser(),
       Collections.<String>emptyList());
   this.target = target;
 }
예제 #2
0
파일: Me.java 프로젝트: wudigithub1/client
 /** {@inheritDoc} */
 @Override
 public void execute(
     final InputWindow origin,
     final Server server,
     final MessageTarget target,
     final boolean isSilent,
     final CommandArguments args) {
   if (args.getArguments().length == 0) {
     showUsage(origin, isSilent, "me", "<action>");
   } else {
     target.sendAction(args.getArgumentsAsString());
   }
 }
 /** {@inheritDoc} */
 @Override
 public void sendLine(final String line) {
   target.sendLine(line);
 }
 /** {@inheritDoc} */
 @Override
 public Server getServer() {
   return target.getServer();
 }
 /** {@inheritDoc} */
 @Override
 public int getMaxLineLength() {
   return target.getMaxLineLength();
 }
 /** {@inheritDoc} */
 @Override
 public TabCompleter getTabCompleter() {
   return target.getTabCompleter();
 }