Microsoft SDK for Java

ActiveXControl Class

The ActiveXControl Class of the com.ms.ActiveX package exposes methods, properties, and events used to host Microsoft® ActiveX® controls. Instances of the ActiveXControl class are objects that enable Java components to host ActiveX controls.

public class ActiveXControl extends ActiveXComponent
             implements Serializable, HeavyComponent
{
  // Fields
  public static final int CURRENCY;
  public static final int DATE;
  public static final int DOUBLE;

  // Constructors
  public ActiveXControl();
  public ActiveXControl(String clsid);
  public ActiveXControl(IUnknown punk);

  // Methods
  public void activate();
  public void activateNoGUI();
  public void addActiveXControlListener(
        ActiveXControlListener listener);
  protected void createControl(String clsid) throws Exception;
  protected void createControl(IUnknown punk) throws Exception;
  protected void finalize() throws Throwable;
  public Dimension getMinimumSize();
  public Dimension getPreferredSize();
  public boolean isFocusTraversable();
  public synchronized void processComponentEvent(
        ComponentEvent event);
  public void processFocusEvent(FocusEvent event);
  public void removeActiveXControlListener(
        ActiveXControlListener listener);
  public void removeNotify();
  public void setBackground(Color c);
  public void setDesignMode(boolean b);
  public void setFont(Font f);
  public void setForeground(Color c);
  public void setProperty(String name, String value);
  public void setProperty(String name, int value);
  public void setProperty(String name, short value);
  public void setProperty(String name, boolean value);
  public void setProperty(String name, long value, int flag);
  public void setProperty(String name, double value);
  public void setProperty(String name, double value, int flag);
  public void setProperty(String name, float value);
  public void setProperty(String name, Variant value);
  public void showPropertyDialog();
}

Hierarchy

Canvas
  |
  +--ActiveXComponent
     |
     +--ActiveXControl

© 1999 Microsoft Corporation. All rights reserved. Terms of use.