Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.globalretailtech.pos.services
Class DeviceService  view DeviceService download DeviceService.java

java.lang.Object
  extended bycom.globalretailtech.pos.services.DeviceService
Direct Known Subclasses:
posCashDrawer

public class DeviceService
extends java.lang.Object

Super class for JFC JPOS services. Opens property file based on service name, from there it figures out the size and layout for the service. Creates a device properties pane used to show the configued properties.


Field Summary
protected  boolean autoDisable
           
private  boolean AutoDisable
           
protected  int capPowerReporting
           
private  int CapPowerReporting
           
protected  java.lang.String checkHealthText
           
private  java.lang.String CheckHealthText
           
protected static boolean claimed
           
private  boolean Claimed
           
protected  int dataCount
           
private  int DataCount
           
protected  boolean dataEventEnabled
           
private  boolean DataEventEnabled
           
private  javax.swing.JPanel dev
           
private  java.lang.String DeviceControlDescription
           
private  int DeviceControlVersion
           
protected  boolean deviceEnabled
           
private  boolean DeviceEnabled
           
protected  java.lang.String deviceServiceDescription
           
private  java.lang.String DeviceServiceDescription
           
protected  int deviceServiceVersion
           
private  int DeviceServiceVersion
           
private static java.util.Vector event_list
           
protected  EventCallbacks eventCallbacks
           
private static int EventCount
           
private  javax.swing.JFrame frame
          the device panel (properties) for this device
protected  boolean freezeEvents
           
private  boolean FreezeEvents
           
 int h
          Height position in grid
protected  JposEntry jposEntry
           
protected  int outputID
           
private  int OutputID
           
protected  java.lang.String physicalDeviceDescription
           
private  java.lang.String PhysicalDeviceDescription
           
protected  java.lang.String physicalDeviceName
           
private  java.lang.String PhysicalDeviceName
           
protected  int powerNotify
           
private  int PowerNotify
           
protected  int powerState
           
private  int PowerState
           
protected  int state
           
private  int State
           
 int w
          Width position in grid
 int x
          X position in grid
 int y
          Y position in grid
 
Constructor Summary
DeviceService()
          Constructor creates the device panel based on name.
 
Method Summary
 void checkHealth(int level)
          See JPOS
 void claim(int timeout)
          See JPOS
 void close()
           
 javax.swing.JPanel devPanel()
           
 void directIO(int command, int[] data, java.lang.Object object)
          See JPOS
 void display()
           
 void fireEvent(jpos.events.DataEvent ev)
          See JPOS
 javax.swing.JFrame frame()
           
 java.lang.String getCheckHealthText()
          See JPOS
 boolean getClaimed()
          See JPOS
 boolean getDeviceEnabled()
          See JPOS
 java.lang.String getDeviceServiceDescription()
          See JPOS
 int getDeviceServiceVersion()
          See JPOS
 boolean getFreezeEvents()
          See JPOS
 java.lang.String getPhysicalDeviceDescription()
          See JPOS
 java.lang.String getPhysicalDeviceName()
          See JPOS
 int getState()
          See JPOS
 void open(java.lang.String logicalName, EventCallbacks cb)
           
 void release()
          See JPOS
 void setCheckHealthText(java.lang.String s)
          See JPOS
 void setClaimed(boolean b)
          See JPOS
 void setDeviceEnabled(boolean b)
          See JPOS
 void setDeviceServiceDescription(java.lang.String s)
          See JPOS
 void setDeviceServiceVersion(int v)
          See JPOS
 void setFreezeEvents(boolean freezeEvents)
          See JPOS
(package private)  void setJposEntry(JposEntry entry)
           
 void setPhysicalDeviceDescription(java.lang.String s)
          See JPOS
 void setPhysicalDeviceName(java.lang.String s)
          See JPOS
 void setState(int s)
          See JPOS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EventCount

private static int EventCount

event_list

private static java.util.Vector event_list

AutoDisable

private boolean AutoDisable

CapPowerReporting

private int CapPowerReporting

CheckHealthText

private java.lang.String CheckHealthText

Claimed

private boolean Claimed

DataCount

private int DataCount

DataEventEnabled

private boolean DataEventEnabled

DeviceEnabled

private boolean DeviceEnabled

FreezeEvents

private boolean FreezeEvents

OutputID

private int OutputID

PowerNotify

private int PowerNotify

PowerState

private int PowerState

State

private int State

DeviceControlDescription

private java.lang.String DeviceControlDescription

DeviceControlVersion

private int DeviceControlVersion

DeviceServiceDescription

private java.lang.String DeviceServiceDescription

DeviceServiceVersion

private int DeviceServiceVersion

PhysicalDeviceDescription

private java.lang.String PhysicalDeviceDescription

PhysicalDeviceName

private java.lang.String PhysicalDeviceName

x

public int x
X position in grid


y

public int y
Y position in grid


h

public int h
Height position in grid


w

public int w
Width position in grid


frame

private javax.swing.JFrame frame
the device panel (properties) for this device


dev

private javax.swing.JPanel dev

autoDisable

protected boolean autoDisable

capPowerReporting

protected int capPowerReporting

checkHealthText

protected java.lang.String checkHealthText

dataCount

protected int dataCount

dataEventEnabled

protected boolean dataEventEnabled

deviceEnabled

protected boolean deviceEnabled

outputID

protected int outputID

powerNotify

protected int powerNotify

powerState

protected int powerState

deviceServiceDescription

protected java.lang.String deviceServiceDescription

deviceServiceVersion

protected int deviceServiceVersion

freezeEvents

protected boolean freezeEvents

physicalDeviceDescription

protected java.lang.String physicalDeviceDescription

physicalDeviceName

protected java.lang.String physicalDeviceName

state

protected int state

claimed

protected static boolean claimed

eventCallbacks

protected EventCallbacks eventCallbacks

jposEntry

protected JposEntry jposEntry
Constructor Detail

DeviceService

public DeviceService()
Constructor creates the device panel based on name.

Method Detail

frame

public javax.swing.JFrame frame()

devPanel

public javax.swing.JPanel devPanel()

display

public void display()

open

public void open(java.lang.String logicalName,
                 EventCallbacks cb)
          throws JposException

close

public void close()
           throws JposException

fireEvent

public void fireEvent(jpos.events.DataEvent ev)
See JPOS


getCheckHealthText

public java.lang.String getCheckHealthText()
                                    throws jpos.JposException
See JPOS


setCheckHealthText

public void setCheckHealthText(java.lang.String s)
                        throws jpos.JposException
See JPOS


getClaimed

public boolean getClaimed()
                   throws jpos.JposException
See JPOS


setClaimed

public void setClaimed(boolean b)
                throws jpos.JposException
See JPOS


getDeviceEnabled

public boolean getDeviceEnabled()
                         throws jpos.JposException
See JPOS


setDeviceEnabled

public void setDeviceEnabled(boolean b)
                      throws jpos.JposException
See JPOS


getDeviceServiceDescription

public java.lang.String getDeviceServiceDescription()
                                             throws jpos.JposException
See JPOS


setDeviceServiceDescription

public void setDeviceServiceDescription(java.lang.String s)
                                 throws jpos.JposException
See JPOS


getDeviceServiceVersion

public int getDeviceServiceVersion()
                            throws jpos.JposException
See JPOS


setDeviceServiceVersion

public void setDeviceServiceVersion(int v)
                             throws jpos.JposException
See JPOS


getFreezeEvents

public boolean getFreezeEvents()
                        throws jpos.JposException
See JPOS


setFreezeEvents

public void setFreezeEvents(boolean freezeEvents)
                     throws jpos.JposException
See JPOS


getPhysicalDeviceDescription

public java.lang.String getPhysicalDeviceDescription()
                                              throws jpos.JposException
See JPOS


setPhysicalDeviceDescription

public void setPhysicalDeviceDescription(java.lang.String s)
                                  throws jpos.JposException
See JPOS


getPhysicalDeviceName

public java.lang.String getPhysicalDeviceName()
                                       throws jpos.JposException
See JPOS


setPhysicalDeviceName

public void setPhysicalDeviceName(java.lang.String s)
                           throws jpos.JposException
See JPOS


getState

public int getState()
             throws jpos.JposException
See JPOS


setState

public void setState(int s)
              throws jpos.JposException
See JPOS


claim

public void claim(int timeout)
           throws jpos.JposException
See JPOS


checkHealth

public void checkHealth(int level)
                 throws jpos.JposException
See JPOS


directIO

public void directIO(int command,
                     int[] data,
                     java.lang.Object object)
              throws jpos.JposException
See JPOS


release

public void release()
             throws jpos.JposException
See JPOS


setJposEntry

void setJposEntry(JposEntry entry)