⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 field.java

📁 Java in view PDF documents, the source code for the document. I hope someone can be improved.
💻 JAVA
字号:
import com.jacob.com.*;

public class Field extends Dispatch
{
	/**
	 * This constructor is used instead of a case operation to
	 * turn a Dispatch object into a wider object - it must exist
	 * in every wrapper class whose instances may be returned from
	 * method calls wrapped in VT_DISPATCH Variants.
	 */
	public Field(Dispatch d)
	{
		// take over the IDispatch pointer
	  m_pDispatch = d.m_pDispatch;
		// null out the input's pointer
		d.m_pDispatch = 0;
	}

  public Variant getProperties()
  {
    return Dispatch.get(this, "Properties");
  }

  public int getActualSize()
	{
	  return Dispatch.get(this, "ActualSize").toInt();
	}

  public int getAttributes()
	{
	  return Dispatch.get(this, "Attributes").toInt();
	}

  public int getDefinedSize()
	{
	  return Dispatch.get(this, "DefinedSize").toInt();
	}

  public String getName()
	{
	  return Dispatch.get(this, "Name").toString();
	}

  public int getType()
	{
	  return Dispatch.get(this, "Type").toInt();
	}

  public Variant getValue()
	{
	  return Dispatch.get(this, "Value");
	}

  public void setValue(Variant pvar)
	{
	  Dispatch.put(this, "Value", pvar);
	}

  public byte getPrecision()
	{
	  return Dispatch.get(this, "Precision").toByte();
	}

  public byte getNumericScale()
	{
	  return Dispatch.get(this, "NumericScale").toByte();
	}

  public void AppendChunk(Variant Data)
	{
	  Dispatch.call(this, "AppendChunk", Data);
	}

  public Variant GetChunk(int Length)
	{
	  return Dispatch.call(this, "GetChunk", new Variant(Length));
	}

  public Variant getOriginalValue()
	{
	  return Dispatch.get(this, "OriginalValue");
	}

  public Variant getUnderlyingValue()
	{
	  return Dispatch.get(this, "UnderlyingValue");
	}

  public Variant getDataFormat()
	{
	  return Dispatch.get(this, "DataFormat");
	}

  public void setDataFormat(Variant ppiDF)
	{
	  Dispatch.put(this, "DataFormat", ppiDF);
	}

  public void setPrecision(byte pb)
	{
	  Dispatch.put(this, "Precision", new Variant(pb));
	}

  public void setNumericScale(byte pb)
	{
	  Dispatch.put(this, "NumericScale", new Variant(pb));
	}

  public void setType(int pDataType)
	{
	  Dispatch.put(this, "Type", new Variant(pDataType));
	}

  public void setDefinedSize(int pl)
	{
	  Dispatch.put(this, "DefinedSize", new Variant(pl));
	}

  public void setAttributes(int pl)
	{
	  Dispatch.put(this, "Attributes", new Variant(pl));
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -