org.harctoolbox.irscrutinizer.sendinghardware
Class GenericSerialSenderBean

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.harctoolbox.irscrutinizer.sendinghardware.GenericSerialSenderBean
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class GenericSerialSenderBean
extends javax.swing.JPanel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String PROP_BAUDRATE
           
static java.lang.String PROP_COMMAND
           
static java.lang.String PROP_DATASIZE
           
static java.lang.String PROP_FLOWCONTROL
           
static java.lang.String PROP_LINEENDING
           
static java.lang.String PROP_PARITY
           
static java.lang.String PROP_PORTNAME
           
static java.lang.String PROP_RAW
           
static java.lang.String PROP_SEPARATOR
           
static java.lang.String PROP_SERIALCOMMANDTEXTFIELD
           
static java.lang.String PROP_STOPBITS
           
static java.lang.String PROP_USESIGNS
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GenericSerialSenderBean()
          Creates new form GenericSerialSenderBean
GenericSerialSenderBean(org.harctoolbox.guicomponents.GuiUtils guiUtils)
          Creates new form GenericSerialSenderBean
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 int getBaud()
           
 java.lang.String getCommand()
           
 int getDataSize()
           
 org.harctoolbox.harchardware.comm.LocalSerialPort.FlowControl getFlowControl()
           
 java.lang.String getLineEnding()
           
 org.harctoolbox.harchardware.comm.LocalSerialPort.Parity getParity()
           
 java.lang.String getPortName()
           
 boolean getRaw()
           
 java.lang.String getSeparator()
           
 int getStopBits()
           
 boolean getUseSigns()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setBaud(int baud)
           
 void setCommand(java.lang.String command)
           
 void setDataSize(int dataSize)
           
 void setFlowControl(org.harctoolbox.harchardware.comm.LocalSerialPort.FlowControl flowControl)
           
 void setHardware(org.harctoolbox.harchardware.IHarcHardware hardware)
           
 void setLineEnding(java.lang.String lineEnding)
           
 void setParity(org.harctoolbox.harchardware.comm.LocalSerialPort.Parity parity)
           
 void setPortName(java.lang.String portName)
           
 void setRaw(boolean raw)
           
 void setSeparator(java.lang.String separator)
           
 void setStopBits(int stopBits)
           
 void setup(java.lang.String desiredPort)
           
 void setUseSigns(boolean useSigns)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_PORTNAME

public static final java.lang.String PROP_PORTNAME
See Also:
Constant Field Values

PROP_BAUDRATE

public static final java.lang.String PROP_BAUDRATE
See Also:
Constant Field Values

PROP_DATASIZE

public static final java.lang.String PROP_DATASIZE
See Also:
Constant Field Values

PROP_FLOWCONTROL

public static final java.lang.String PROP_FLOWCONTROL
See Also:
Constant Field Values

PROP_PARITY

public static final java.lang.String PROP_PARITY
See Also:
Constant Field Values

PROP_STOPBITS

public static final java.lang.String PROP_STOPBITS
See Also:
Constant Field Values

PROP_COMMAND

public static final java.lang.String PROP_COMMAND
See Also:
Constant Field Values

PROP_RAW

public static final java.lang.String PROP_RAW
See Also:
Constant Field Values

PROP_USESIGNS

public static final java.lang.String PROP_USESIGNS
See Also:
Constant Field Values

PROP_SEPARATOR

public static final java.lang.String PROP_SEPARATOR
See Also:
Constant Field Values

PROP_LINEENDING

public static final java.lang.String PROP_LINEENDING
See Also:
Constant Field Values

PROP_SERIALCOMMANDTEXTFIELD

public static final java.lang.String PROP_SERIALCOMMANDTEXTFIELD
See Also:
Constant Field Values
Constructor Detail

GenericSerialSenderBean

public GenericSerialSenderBean(org.harctoolbox.guicomponents.GuiUtils guiUtils)
Creates new form GenericSerialSenderBean

Parameters:
guiUtils -

GenericSerialSenderBean

public GenericSerialSenderBean()
Creates new form GenericSerialSenderBean

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Overrides:
addPropertyChangeListener in class java.awt.Container

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Overrides:
removePropertyChangeListener in class java.awt.Component

getPortName

public java.lang.String getPortName()
Returns:
the portName

setPortName

public final void setPortName(java.lang.String portName)
Parameters:
portName - the portName to set

getBaud

public int getBaud()
Returns:
the baudRate

setBaud

public final void setBaud(int baud)
Parameters:
baud -

getDataSize

public int getDataSize()
Returns:
the dataSize

setDataSize

public final void setDataSize(int dataSize)
Parameters:
dataSize - the dataSize to set

getFlowControl

public org.harctoolbox.harchardware.comm.LocalSerialPort.FlowControl getFlowControl()
Returns:
the flowControl

setFlowControl

public final void setFlowControl(org.harctoolbox.harchardware.comm.LocalSerialPort.FlowControl flowControl)
Parameters:
flowControl - the flowControl to set

getParity

public org.harctoolbox.harchardware.comm.LocalSerialPort.Parity getParity()
Returns:
the parity

setParity

public final void setParity(org.harctoolbox.harchardware.comm.LocalSerialPort.Parity parity)
Parameters:
parity - the parity to set

getStopBits

public int getStopBits()
Returns:
the stopBits

setStopBits

public final void setStopBits(int stopBits)
Parameters:
stopBits - the stopBits to set

getCommand

public java.lang.String getCommand()
Returns:
the command

setCommand

public void setCommand(java.lang.String command)
Parameters:
command - the command to set

getRaw

public boolean getRaw()
Returns:
the raw

setRaw

public void setRaw(boolean raw)
Parameters:
raw - the raw to set

getUseSigns

public boolean getUseSigns()
Returns:
the useSigns

setUseSigns

public void setUseSigns(boolean useSigns)
Parameters:
useSigns - the useSigns to set

getSeparator

public java.lang.String getSeparator()
Returns:
the separator

setSeparator

public void setSeparator(java.lang.String separator)
Parameters:
separator - the separator to set

getLineEnding

public java.lang.String getLineEnding()
Returns:
the lineEnding

setLineEnding

public void setLineEnding(java.lang.String lineEnding)
Parameters:
lineEnding - the lineEnding to set

setHardware

public void setHardware(org.harctoolbox.harchardware.IHarcHardware hardware)

setup

public void setup(java.lang.String desiredPort)
           throws java.io.IOException
Throws:
java.io.IOException