public abstract class LoggerControl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTO_UPDATE_CANT |
static int |
AUTO_UPDATE_FAIL |
static int |
AUTO_UPDATE_SUCCESS |
Constructor and Description |
---|
LoggerControl(ControlDescription controlDescription,
LoggerForm loggerForm) |
Modifier and Type | Method and Description |
---|---|
void |
addF1KeyListener(javax.swing.JComponent component) |
static void |
addFocusListenerToAllSubComponants(java.awt.event.FocusListener l,
java.awt.Component component) |
static void |
addMouseListenerToAllSubComponants(java.awt.event.MouseListener l,
java.awt.Component component) |
int |
autoUpdate()
Automatically update a control.
|
void |
clear() |
void |
clearDataError() |
void |
clearDataWarning()
clear DataWarning field
|
void |
f1Pressed() |
abstract int |
fillNMEAControlData(NMEADataUnit dataUnit)
Called once a correct NMEA data unit has been found
to write the data into the control.
|
NMEADataBlock |
findNMEADataBlock()
The NMEA datablock name must be stored somewhere - how about as Topic ?
|
javax.swing.JPanel |
getComponent() |
ControlDescription |
getControlDescription() |
abstract java.lang.Object |
getData() |
abstract java.lang.String |
getDataError() |
java.lang.String |
getDataWarning() |
LoggerForm |
getLoggerForm() |
void |
lFocusGained(java.awt.event.FocusEvent fe) |
abstract void |
setData(java.lang.Object data)
this will populate the Field with either last entered data or most up to date entry
|
abstract void |
setDefault()
Return to the default value based on the associated control description
|
void |
setToolTipToAllSubJComponants(java.awt.Component component) |
int |
updateNMEAData()
Tries to find the appropriate NMEA string by searching
multiple data blocks if necessary.
|
int |
updateNMEAData(NMEADataUnit nmeaData)
Used when NMEA data is being updated in response to the arrival of
a new NMEA string (i.e.
|
public static final int AUTO_UPDATE_SUCCESS
public static final int AUTO_UPDATE_FAIL
public static final int AUTO_UPDATE_CANT
public LoggerControl(ControlDescription controlDescription, LoggerForm loggerForm)
public void setToolTipToAllSubJComponants(java.awt.Component component)
listener
- jComponent
- public static void addMouseListenerToAllSubComponants(java.awt.event.MouseListener l, java.awt.Component component)
listener
- jComponent
- public static void addFocusListenerToAllSubComponants(java.awt.event.FocusListener l, java.awt.Component component)
public void addF1KeyListener(javax.swing.JComponent component)
public void f1Pressed()
public abstract java.lang.String getDataError()
public abstract java.lang.Object getData()
public abstract void setData(java.lang.Object data)
public abstract void setDefault()
public int autoUpdate()
public void clear()
public ControlDescription getControlDescription()
public LoggerForm getLoggerForm()
public javax.swing.JPanel getComponent()
public void lFocusGained(java.awt.event.FocusEvent fe)
public java.lang.String getDataWarning()
public void clearDataWarning()
public void clearDataError()
public int updateNMEAData()
public abstract int fillNMEAControlData(NMEADataUnit dataUnit)
dataUnit
- NMEA data unitpublic int updateNMEAData(NMEADataUnit nmeaData)
nmeaData
- public NMEADataBlock findNMEADataBlock()