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

📄 javax.comm.parallelportevent.html

📁 java串口通讯api
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Sun Nov 15 16:06:15 PST 1998 -->
<title>
  Class javax.comm.ParallelPortEvent
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-javax.comm.html">This Package</a>  <a href="javax.comm.ParallelPort.html#_top_">Previous</a>  <a href="javax.comm.SerialPort.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class javax.comm.ParallelPortEvent
</h1>
<pre>
java.lang.Object
   |
   +----java.util.EventObject
           |
           +----javax.comm.ParallelPortEvent
</pre>
<hr>
<dl>
  <dt> public class <b>ParallelPortEvent</b>
  <dt> extends EventObject
</dl>
A parallel port event.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="javax.comm.ParallelPort.html#_top_">ParallelPort</a>, <a href="javax.comm.ParallelPortEventListener.html#_top_">ParallelPortEventListener</a>, EventObject
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#eventType"><b>eventType</b></a>
  <dd>  For compatibility with version 1.0 of the CommAPI only.
<b>Deprecated.</b>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PAR_EV_BUFFER"><b>PAR_EV_BUFFER</b></a>
  <dd>  The port's output buffer is empty.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PAR_EV_ERROR"><b>PAR_EV_ERROR</b></a>
  <dd>  An error occurred on the port.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ParallelPortEvent(javax.comm.ParallelPort, int, boolean, boolean)"><b>ParallelPortEvent</b></a>(ParallelPort, int, boolean, boolean)
  <dd>  Constructs a <CODE>ParallelPortEvent</CODE> with the specified parallel port, event type, old and new values.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getEventType()"><b>getEventType</b></a>()
  <dd>  Gets the type of this event.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getNewValue()"><b>getNewValue</b></a>()
  <dd>  Gets the new value of the state change that caused the <CODE>ParallelPortEvent</CODE> to be propagated.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getOldValue()"><b>getOldValue</b></a>()
  <dd>  Gets the old value of the state change that caused the <CODE>ParallelPortEvent</CODE> to be propagated.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="eventType"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>eventType</b>
<pre>
 public int eventType
</pre>
<dl>
<dd><b> Note: eventType is deprecated.</b>
<i>Replaced by <CODE>getEventType</CODE> method.</i>
<p>
  <dd> For compatibility with version 1.0 of the CommAPI only.<p>
</dl>
<a name="PAR_EV_ERROR"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>PAR_EV_ERROR</b>
<pre>
 public static final int PAR_EV_ERROR
</pre>
<dl>
  <dd> An error occurred on the port.<p>
</dl>
<a name="PAR_EV_BUFFER"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>PAR_EV_BUFFER</b>
<pre>
 public static final int PAR_EV_BUFFER
</pre>
<dl>
  <dd> The port's output buffer is empty.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ParallelPortEvent"></a>
<a name="ParallelPortEvent(javax.comm.ParallelPort, int, boolean, boolean)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ParallelPortEvent</b>
<pre>
 public ParallelPortEvent(<a href="javax.comm.ParallelPort.html#_top_">ParallelPort</a> srcport,
                          int eventtype,
                          boolean oldvalue,
                          boolean newvalue)
</pre>
<dl>
  <dd> Constructs a <CODE>ParallelPortEvent</CODE> with the specified parallel port, event type, old and new values. Application programs should not directly create <CODE>ParallelPortEvent</CODE> objects.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> srcport - source parallel port
    <dd> eventtype - event type
    <dd> oldvalue - old value
    <dd> newvalue - new value
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getEventType()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getEventType"><b>getEventType</b></a>
<pre>
 public int getEventType()
</pre>
<dl>
  <dd> Gets the type of this event.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> integer that can be either <CODE>PAR_EV_ERROR</CODE>                  or <CODE>PAR_EV_BUFFER</CODE>
  </dl></dd>
</dl>
<a name="getNewValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getNewValue"><b>getNewValue</b></a>
<pre>
 public boolean getNewValue()
</pre>
<dl>
  <dd> Gets the new value of the state change that caused the <CODE>ParallelPortEvent</CODE> to be propagated.
<p>
</dl>
<a name="getOldValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getOldValue"><b>getOldValue</b></a>
<pre>
 public boolean getOldValue()
</pre>
<dl>
  <dd> Gets the old value of the state change that caused the <CODE>ParallelPortEvent</CODE> to be propagated.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-javax.comm.html">This Package</a>  <a href="javax.comm.ParallelPort.html#_top_">Previous</a>  <a href="javax.comm.SerialPort.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>

⌨️ 快捷键说明

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