public class GenericSerialSenderBean extends JPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
PROP_BAUDRATE |
static String |
PROP_COMMAND |
static String |
PROP_DATASIZE |
static String |
PROP_FLOWCONTROL |
static String |
PROP_LINEENDING |
static String |
PROP_PARITY |
static String |
PROP_PORTNAME |
static String |
PROP_RAW |
static String |
PROP_SEPARATOR |
static String |
PROP_SERIALCOMMANDTEXTFIELD |
static String |
PROP_STOPBITS |
static String |
PROP_USESIGNS |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
GenericSerialSenderBean()
Creates new form GenericSerialSenderBean
|
GenericSerialSenderBean(GuiUtils guiUtils)
Creates new form GenericSerialSenderBean
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
int |
getBaud() |
String |
getCommand() |
int |
getDataSize() |
LocalSerialPort.FlowControl |
getFlowControl() |
String |
getLineEnding() |
LocalSerialPort.Parity |
getParity() |
String |
getPortName() |
boolean |
getRaw() |
String |
getSeparator() |
int |
getStopBits() |
boolean |
getUseSigns() |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setBaud(int baud) |
void |
setCommand(String command) |
void |
setDataSize(int dataSize) |
void |
setFlowControl(LocalSerialPort.FlowControl flowControl) |
void |
setHardware(IHarcHardware hardware) |
void |
setLineEnding(String lineEnding) |
void |
setParity(LocalSerialPort.Parity parity) |
void |
setPortName(String portName) |
void |
setRaw(boolean raw) |
void |
setSeparator(String separator) |
void |
setStopBits(int stopBits) |
void |
setup(String desiredPort) |
void |
setUseSigns(boolean useSigns) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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
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, 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
public static final String PROP_PORTNAME
public static final String PROP_BAUDRATE
public static final String PROP_DATASIZE
public static final String PROP_FLOWCONTROL
public static final String PROP_PARITY
public static final String PROP_STOPBITS
public static final String PROP_COMMAND
public static final String PROP_RAW
public static final String PROP_USESIGNS
public static final String PROP_SEPARATOR
public static final String PROP_LINEENDING
public static final String PROP_SERIALCOMMANDTEXTFIELD
public GenericSerialSenderBean(GuiUtils guiUtils)
guiUtils
- public GenericSerialSenderBean()
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in class Container
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in class Component
public String getPortName()
public final void setPortName(String portName)
portName
- the portName to setpublic int getBaud()
public final void setBaud(int baud)
baud
- public int getDataSize()
public final void setDataSize(int dataSize)
dataSize
- the dataSize to setpublic LocalSerialPort.FlowControl getFlowControl()
public final void setFlowControl(LocalSerialPort.FlowControl flowControl)
flowControl
- the flowControl to setpublic LocalSerialPort.Parity getParity()
public final void setParity(LocalSerialPort.Parity parity)
parity
- the parity to setpublic int getStopBits()
public final void setStopBits(int stopBits)
stopBits
- the stopBits to setpublic String getCommand()
public void setCommand(String command)
command
- the command to setpublic boolean getRaw()
public void setRaw(boolean raw)
raw
- the raw to setpublic boolean getUseSigns()
public void setUseSigns(boolean useSigns)
useSigns
- the useSigns to setpublic String getSeparator()
public void setSeparator(String separator)
separator
- the separator to setpublic String getLineEnding()
public void setLineEnding(String lineEnding)
lineEnding
- the lineEnding to setpublic void setHardware(IHarcHardware hardware)
public void setup(String desiredPort) throws IOException
IOException
Copyright © 2016. All rights reserved.