Ignore:
Timestamp:
2003-05-27T15:40:47+12:00 (21 years ago)
Author:
mdewsnip
Message:

Fixed tabbing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/shell/GShellEvent.java

    r4293 r4364  
    5454/** This class encapsulates all the information created by an event within a <strong>GShell</strong> process. */
    5555public class GShellEvent
    56     extends AWTEvent {
    57     /** The status of the process at the completion of event. */
    58     private int status = -1;
    59     /** The process type (such as COPY, BUILD or IMPORT). */
    60     private int type = -1;
    61     /** Any message associated with this event. */
    62     private String message = null;
    63     /* Constructor.
    64       * @param source The <strong>GShell</strong> that fired this message.
    65       * @param id The event identifier as an <strong>int</strong>.
    66       * @param type The process type as an <strong>int</strong>.
    67       * @param message A <strong>String</strong> representing any message attatched with this event.
    68       * @param status The status of the process post event, as an <strong>int</strong>.
     56    extends AWTEvent {
     57    /** The status of the process at the completion of event. */
     58    private int status = -1;
     59    /** The process type (such as COPY, BUILD or IMPORT). */
     60    private int type = -1;
     61    /** Any message associated with this event. */
     62    private String message = null;
     63    /* Constructor.
     64     * @param source The <strong>GShell</strong> that fired this message.
     65     * @param id The event identifier as an <strong>int</strong>.
     66     * @param type The process type as an <strong>int</strong>.
     67     * @param message A <strong>String</strong> representing any message attatched with this event.
     68     * @param status The status of the process post event, as an <strong>int</strong>.
    6969      */
    70     public GShellEvent(Object source, int id, int type, String message,
    71                               int status) {
    72           super(source, id);
    73           this.message = message;
    74           this.status = status;
    75           this.type = type;
    76     }
    77     /** Gets the message associated with this event.
     70    public GShellEvent(Object source, int id, int type, String message,
     71               int status) {
     72    super(source, id);
     73    this.message = message;
     74    this.status = status;
     75    this.type = type;
     76    }
     77    /** Gets the message associated with this event.
    7878      * @return The message as a <strong>String</strong> or <i>null</i>.
    7979      */
    80     public String getMessage() {
    81           return message;
    82     }
    83     /** Gets the status associated with this event. This status can then be matched back to the constants in <strong>GShell</strong>.
     80    public String getMessage() {
     81    return message;
     82    }
     83    /** Gets the status associated with this event. This status can then be matched back to the constants in <strong>GShell</strong>.
    8484      * @return An <strong>int</strong> signifying the process status.
    8585      */
    86     public int getStatus() {
    87           return status;
    88     }
    89     /** Gets the type associated with this event. This type can then be matched back to the constants in <strong>GShell</strong>.
     86    public int getStatus() {
     87    return status;
     88    }
     89    /** Gets the type associated with this event. This type can then be matched back to the constants in <strong>GShell</strong>.
    9090      * @return An <strong>int</strong> signifying the process type.
    9191      */
    92     public int getType() {
    93           return type;
    94     }
     92    public int getType() {
     93    return type;
     94    }
    9595
    96     public String toString() {
    97           return "org.greenstone.gatherer.shell.GShellEvent[" + message + "," + status + "," + type + "]";
    98     }
     96    public String toString() {
     97    return "org.greenstone.gatherer.shell.GShellEvent[" + message + "," + status + "," + type + "]";
     98    }
    9999}
Note: See TracChangeset for help on using the changeset viewer.