|
Bibi 19 Oct 2005 21:04 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectujap.bibi.Fields
| Field Summary | |
private Vector |
lissy
|
private Map |
map
to allow fast checking - the keys are names (lowercase) and the values are strings. |
private List |
values
to preserve the order of the elements, a List of SingleFields |
| Constructor Summary | |
Fields()
|
|
Fields(Collection l)
a shallow copy is made of the List. |
|
| Method Summary | |
void |
addRow()
add an empty row |
void |
addRow(SingleField p)
rows are only added if there is not already a row with the same name |
void |
addTableModelListener(TableModelListener l)
|
Object |
clone()
|
boolean |
equals(Object o)
compares if all fields are equal (via the map) |
private void |
fireChange(TableModelEvent e)
|
String |
get(String name)
return the value of the field with the specified name, or null if field is not there. |
Class |
getColumnClass(int columnIndex)
String.class |
int |
getColumnCount()
2 |
String |
getColumnName(int columnIndex)
field - value |
int |
getRowCount()
|
Set |
getSingleFields()
return an unmodifiable view on the SingleFields |
Object |
getValueAt(int rowIndex,
int columnIndex)
|
int |
hashCode()
the hashCode of the map |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
removeRow(int row)
first remove the row, then fire the event |
void |
removeTableModelListener(TableModelListener l)
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
|
String |
toString()
|
private void |
writeNames(String type,
String namelist,
Writer w)
write list of names in author or editor string, including <author> or <editor> tags (specify type: "author" or "editor" Can handle different formats of author strings: "Firstname M. |
void |
writeXML(Writer w)
|
private void |
writeXMLField(String name,
String value,
Writer w,
boolean isStandard)
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private List values
private Map map
private Vector lissy
| Constructor Detail |
public Fields()
public Fields(Collection l)
| Method Detail |
public Class getColumnClass(int columnIndex)
getColumnClass in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelpublic int getRowCount()
getRowCount in interface TableModel
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface TableModelIllegalArgumentException - if a field name is changed
(column 0) to
the name of another field already existing, because no two rows may have
the same field name
public Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface TableModelpublic void removeRow(int row)
public void addRow()
public void addRow(SingleField p)
IllegalArgumentException - if the name of the field being added
already exists.
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelpublic void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelprivate void fireChange(TableModelEvent e)
public String get(String name)
public boolean equals(Object o)
public int hashCode()
public Set getSingleFields()
public Object clone()
public void writeXML(Writer w)
throws IOException
IOException
private void writeNames(String type,
String namelist,
Writer w)
throws IOException
IOExceptionpublic String toString()
private void writeXMLField(String name,
String value,
Writer w,
boolean isStandard)
throws IOException
IOException
|
Bibi 19 Oct 2005 21:04 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||