/**
 * VChatLog.java
 * <p>
 * @version 1.0
 * @author generated by the objectspace voyager vcc 2.0 beta 1 utility.
 */

package com.WorldOfBeverage.examples.VoyagerChat;

public class VChatLog extends com.objectspace.voyager.VObject implements com.WorldOfBeverage.examples.VoyagerChat.ChatListener
  {
  private static final com.objectspace.voyager.util.Token __classname = new com.objectspace.voyager.util.Token( "com.WorldOfBeverage.examples.VoyagerChat.ChatLog" );
  private static final com.objectspace.voyager.util.Token __class0 = new com.objectspace.voyager.util.Token( "<init>()" );
  private static final com.objectspace.voyager.util.Token __instance0 = new com.objectspace.voyager.util.Token( "newMessage(Lcom.WorldOfBeverage.examples.VoyagerChat.ChatEvent;)V" );
  private static final com.objectspace.voyager.util.Token __instance1 = new com.objectspace.voyager.util.Token( "getGUI()Ljava.awt.Component;" );
  
  static
    {
    __register( new com.WorldOfBeverage.examples.VoyagerChat.VChatLog() );
    }
  
  /**
   * Called to force static registration.
   */
  protected void __register()
    {
    }
  
  /**
   * Construct a VChatLog that is not associated with an object.
   * This function is used internally by Voyager and should not
   * be invoked by user code. Any attempt to send a message to a
   * reference created using this default constructor will cause a
   * NullPointerException to be thrown.
   */
  public VChatLog()
    {
    }
  
  public String getOriginalClassName()
    {
    return "com.WorldOfBeverage.examples.VoyagerChat.ChatLog";
    }
  
  public boolean originalIsInterface()
    {
    return false;
    }
  
  /**
   * Construct a VChatLog and connect it to the specified object.
   * @param reference A reference to the object to connect to.
   * @exception com.objectspace.voyager.VoyagerException A voyager-related exception occurred.
   */
  public VChatLog( com.objectspace.voyager.space.VSubspace reference ) throws com.objectspace.voyager.VoyagerException
    {
    __connectTo( reference );
    }
  
  //******** constructors

  /**
   * @param __address The address of the program where the instantiation should occur.
   * @param __timeout The timeout value in milliseconds.
   * @exception com.objectspace.voyager.VoyagerException A voyager-related exception occurred.
   */
  public VChatLog( java.lang.String __address, long __timeout ) throws com.objectspace.voyager.VoyagerException
    {
    com.objectspace.voyager.message.Messenger __messenger = __newConstructorDefaultMessenger();
    __constructor( __address, __classname, __messenger, __class0, __timeout );
    }
  
  //******** constructors

  /**
   * @param __address The address of the program where the instantiation should occur.
   * @exception com.objectspace.voyager.VoyagerException A voyager-related exception occurred.
   */
  public VChatLog( java.lang.String __address ) throws com.objectspace.voyager.VoyagerException
    {
    this( __address, __DEFAULT_TIMEOUT );
    }
  
  //******** primary methods

  /**
   * @param __messenger The messenger that should be used to invoke the method
   */
  public com.objectspace.voyager.message.Result newMessage( com.WorldOfBeverage.examples.VoyagerChat.ChatEvent event, com.objectspace.voyager.message.Messenger __messenger )
    {
    __messenger.writeObject( event );
    return __instanceMethod( __messenger, __instance0 );
    }
  
  //******** primary methods


  public void newMessage( com.WorldOfBeverage.examples.VoyagerChat.ChatEvent event )
    {
    com.objectspace.voyager.message.Result __result = newMessage( event, __newDefaultMessenger() );
    __result.rethrowExceptionRuntime();
    }
  
  //******** accessors

  /**
   * @param __messenger The messenger that should be used to invoke the method
   */
  public com.objectspace.voyager.message.Result getGUI( com.objectspace.voyager.message.Messenger __messenger )
    {
    return __instanceMethod( __messenger, __instance1 );
    }
  
  //******** accessors

  /**
   * @exception com.objectspace.voyager.VoyagerException A voyager-related exception occurred.
   */
  public java.awt.Component getGUI() throws com.objectspace.voyager.VoyagerException
    {
    com.objectspace.voyager.message.Result __result = getGUI( __newDefaultMessenger() );
    return (java.awt.Component) __result.readObject();
    }
  }

