?? field.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 + -