public class OdsxColumnAssignmentPaneValue extends FwkDialogPaneValue implements OdsxColumnAssignmentInterface, javax.swing.table.TableModel
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
OdsxColumnAssignmentPaneValue.Assignment
The assignment object.
|
Modifier and Type | Field and Description |
---|---|
static int |
BUSNAME |
static int |
CHANNEL |
protected static int |
COLCOUNT |
protected static java.lang.String[] |
colNames |
static int |
COLUMN |
static int |
FLAG |
protected static int |
INCREMENT |
static int |
QUANTITY |
getHt, ident, propertyChange, setHt, version
Constructor and Description |
---|
OdsxColumnAssignmentPaneValue(OdsxPresentableElementInterface elem)
The construtor receiving the session.
|
OdsxColumnAssignmentPaneValue(java.lang.String ident,
OdsxPresentableElementInterface elem)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
OdsxColumnAssignmentPaneValue.Assignment |
add(java.lang.String channelName,
java.lang.String quantityName)
Add an assignment.
|
OdsxColumnAssignmentPaneValue.Assignment |
add(java.lang.String channelName,
java.lang.String quantityName,
java.lang.String odsColumnName)
Add an assignment.
|
OdsxColumnAssignmentPaneValue.Assignment |
add(java.lang.String infoBusName,
java.lang.String channelName,
java.lang.String quantityName,
java.lang.String odsColumnName)
Add an assignment.
|
OdsxColumnAssignmentPaneValue.Assignment |
add(java.lang.String infoBusName,
java.lang.String channelName,
java.lang.String quantityName,
java.lang.String odsColumnName,
java.lang.String unitString,
boolean independent)
Add an assignment.
|
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds a listener to the list that is notified each time a
change to the data model occurs.
|
protected void |
fireTabelChanged(javax.swing.event.TableModelEvent e)
Fire an event on table changed.
|
OdsxColumnAssignmentPaneValue.Assignment |
get(int index)
Get assignment with the given index.
|
OdsxColumnAssignmentPaneValue.Assignment[] |
getAssignments()
Get the assignment.
|
FwkColumnAccessInterface |
getChannel(int index)
Get the channel belongs to the given assignment index.
|
java.lang.String |
getChannelName(int index)
Get the channelName belongs to the given assignment index.
|
java.lang.Class |
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int columnIndex)
Returns the name of the column at columnIndex.
|
int[] |
getColumnSizes()
Get the array of different column length.
|
int |
getCompareable(int val)
Get the compare value.
|
double |
getFactor()
Get the factor of the implicit channel.
|
boolean |
getImplicitCreation()
Get a boolean whether the creation of an implicit channel is performed.
|
boolean |
getIndependent(int index)
Get the independent flag with the given index.
|
java.lang.String |
getInfoBusName(int index)
Get the infobus name belongs to the given assignment index.
|
DataType |
getOdsColumnDataType()
Get the datatype of the column belongs to the independent channel.
|
DataType |
getOdsColumnDataType(int index)
Get the datatype of the column belongs to the given assignment index.
|
java.lang.String |
getOdsColumnName(int index)
Get the odsColumnName belongs to the given assignment index.
|
double |
getOffset()
get the offset of the implicit channel.
|
java.lang.String |
getQuantity()
Get the quantity of the implicit channel
|
java.lang.String |
getQuantityName(int index)
Get the quantityName belongs to the given assignment index.
|
int |
getRowCount()
Returns the number of rows in the model.
|
AoSession |
getSession()
Get the session.
|
java.lang.String |
getUnitString()
Get the unit string of the implicit channel.
|
java.lang.String |
getUnitString(int index)
Get the unit string belongs to the given assignment index.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the cell at rowIndex and columnIndex is editable.
|
static void |
main(java.lang.String[] args)
The Main Body to test the class.
|
OdsxColumnAssignmentPaneValue.Assignment |
remove(int index)
Remove an assignment.
|
OdsxColumnAssignmentPaneValue.Assignment |
remove(OdsxColumnAssignmentPaneValue.Assignment assignment)
Remove an assignment.
|
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes a listener from the list that is notified each
time a change to the data model occurs.
|
void |
setComparable(int val)
Set the compare value.
|
void |
setFactor(double factor)
Set the factor of the implicit channel.
|
void |
setImplicitCreation(boolean flag)
Set a boolean whether the creation of an implicit channel is performed.
|
void |
setOffset(double offset)
Set the offset of the implicit channel.
|
void |
setQuantity(java.lang.String name)
Set the quantity of the implicit channel.
|
void |
setUnitString(java.lang.String unit)
Set the unit of the implicit column.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value in the cell at columnIndex and rowIndex to aValue.
|
int |
size()
Get the total number of assignments.
|
addPropertyChangeListener, addPropertyChangeListener, entrySet, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getIdent, getProperties, getProperty, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, getVersion, isPropertyChangeEventSuspended, release, removePropertyChangeListener, removePropertyChangeListener, setIdent, setProperties, setProperty, setSource, suspendPropertyChangeEvents, toString
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, values
public static final int CHANNEL
public static final int BUSNAME
public static final int QUANTITY
public static final int COLUMN
public static final int FLAG
protected static final int COLCOUNT
protected static final int INCREMENT
protected static final java.lang.String[] colNames
public OdsxColumnAssignmentPaneValue(OdsxPresentableElementInterface elem)
session
- The session belongs to the value.public OdsxColumnAssignmentPaneValue(java.lang.String ident, OdsxPresentableElementInterface elem)
ident
- The ident of the value.session
- The session belongs to the value.public OdsxColumnAssignmentPaneValue.Assignment add(java.lang.String infoBusName, java.lang.String channelName, java.lang.String quantityName, java.lang.String odsColumnName, java.lang.String unitString, boolean independent)
infobusName
- The name of the infobus where to find the channel.
If null the the FwkDataBus name will be used.channelName
- The name of the column access infobus data item.quantityName
- The name of the related ods quantity.odsColumnName
- The name of requested the ods column name.
if null the name of the quantity is used.unitString
- The name of the requested unit.
if null the unit string of the info bus column is used.independent
- if true the column will be created as independent column.public OdsxColumnAssignmentPaneValue.Assignment add(java.lang.String channelName, java.lang.String quantityName)
channelName
- The name of the column access infobus data item.quantityName
- The name of the related ods quantity.public OdsxColumnAssignmentPaneValue.Assignment add(java.lang.String channelName, java.lang.String quantityName, java.lang.String odsColumnName)
channelName
- The name of the column access infobus data item.quantityName
- The name of the related ods quantity.odsColumnName
- The name of requested the ods column name.
if null the name of the quantity is used.public OdsxColumnAssignmentPaneValue.Assignment add(java.lang.String infoBusName, java.lang.String channelName, java.lang.String quantityName, java.lang.String odsColumnName)
infobusName
- The name of the infobus where to find the channel.
If null the the FwkDataBus name will be used.channelName
- The name of the column access infobus data item.quantityName
- The name of the related ods quantity.odsColumnName
- The name of requested the ods column name.
if null the name of the quantity is used.public AoSession getSession()
getSession
in interface OdsxColumnAssignmentInterface
public int size()
size
in interface OdsxColumnAssignmentInterface
size
in interface java.util.Map
size
in class java.util.AbstractMap
public int[] getColumnSizes()
getColumnSizes
in interface OdsxColumnAssignmentInterface
public OdsxColumnAssignmentPaneValue.Assignment get(int index)
the
- requested index.public java.lang.String getOdsColumnName(int index)
getOdsColumnName
in interface OdsxColumnAssignmentInterface
the
- requested index.public java.lang.String getChannelName(int index)
getChannelName
in interface OdsxColumnAssignmentInterface
the
- requested index.public FwkColumnAccessInterface getChannel(int index)
getChannel
in interface OdsxColumnAssignmentInterface
the
- requested index.public java.lang.String getInfoBusName(int index)
getInfoBusName
in interface OdsxColumnAssignmentInterface
the
- requested index.public java.lang.String getQuantityName(int index)
getQuantityName
in interface OdsxColumnAssignmentInterface
the
- requested index.public java.lang.String getUnitString(int index)
getUnitString
in interface OdsxColumnAssignmentInterface
the
- requested index.public DataType getOdsColumnDataType(int index)
getOdsColumnDataType
in interface OdsxColumnAssignmentInterface
public boolean getIndependent(int index)
getIndependent
in interface OdsxColumnAssignmentInterface
the
- requested index.public OdsxColumnAssignmentPaneValue.Assignment remove(int index)
public OdsxColumnAssignmentPaneValue.Assignment remove(OdsxColumnAssignmentPaneValue.Assignment assignment)
public OdsxColumnAssignmentPaneValue.Assignment[] getAssignments()
public void setComparable(int val)
val
- use the predefined constants.public int getCompareable(int val)
public void setOffset(double offset)
offset
- the offset value.public double getOffset()
getOffset
in interface OdsxColumnAssignmentInterface
public void setFactor(double factor)
public double getFactor()
getFactor
in interface OdsxColumnAssignmentInterface
public void setImplicitCreation(boolean flag)
flag
- true if the creation should be performed.public boolean getImplicitCreation()
getImplicitCreation
in interface OdsxColumnAssignmentInterface
public void setQuantity(java.lang.String name)
name
- the name of the quantity.public java.lang.String getQuantity()
getQuantity
in interface OdsxColumnAssignmentInterface
the
- quantity name.public DataType getOdsColumnDataType()
getOdsColumnDataType
in interface OdsxColumnAssignmentInterface
public void setUnitString(java.lang.String unit)
unit
- The unit string.public java.lang.String getUnitString()
getUnitString
in interface OdsxColumnAssignmentInterface
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
columnIndex
- - the index of the columnpublic boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
rowIndex
- - the row whose value to be queriedcolumnIndex
- - the column whose value to be queriedpublic java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
rowIndex
- - the row whose value is to be queriedcolumnIndex
- - the column whose value is to be queriedpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
aValue
- - the new valuerowIndex
- - the row whose value is to be changedcolumnIndex
- - the column whose value is to be changedpublic java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
columnIndex
- - the index of the columnthe
- name of the columnpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener
in interface javax.swing.table.TableModel
l
- - the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener
in interface javax.swing.table.TableModel
l
- - the TableModelListenerprotected void fireTabelChanged(javax.swing.event.TableModelEvent e)
public static void main(java.lang.String[] args)