src/main/java/xelfi/compiler/OutputCallback.java
author Jaroslav Tulach <jaroslav.tulach@xelfi.cz>
Tue, 17 Jan 2017 21:11:58 +0100
changeset 9 c2fdec0483a7
parent 0 189280700bc7
permissions -rw-r--r--
Removing non-UTF character
jaroslav@0
     1
package xelfi.compiler;
jaroslav@0
     2
jaroslav@0
     3
  /** Pass this interface to outLine() function of Output and you will be able to handle
jaroslav@0
     4
    some events with the text you prints. */
jaroslav@0
     5
public interface OutputCallback
jaroslav@0
     6
{
jaroslav@0
     7
    /** One mouse click on the text. 
jaroslav@0
     8
      @param index id of the text item. It is returned by the outLine method of Output */
jaroslav@0
     9
  void selection(int index);
jaroslav@0
    10
jaroslav@0
    11
    /** Double click, or pressing <enter> on the text. 
jaroslav@0
    12
      @param index id of the text item. It is returned by the outLine method of Output */
jaroslav@0
    13
  void action(int index);
jaroslav@0
    14
jaroslav@0
    15
    /** String is cleared from the output 
jaroslav@9
    16
      @param index id of the text item. It is  returned by the outLine method of Output */
jaroslav@0
    17
  void clear(int index);
jaroslav@0
    18
}
jaroslav@0
    19
jaroslav@0
    20
jaroslav@0
    21
jaroslav@0
    22