Modifier and Type | Method and Description |
---|---|
java.lang.Object |
add(R key,
java.lang.Number value) |
void |
addAttribute(R key,
java.lang.String name,
java.lang.String value)
Add per element attribute
|
void |
addAttribute(java.lang.String name,
java.lang.String value)
add attribute for all col keys
|
java.lang.Double |
addTotal(R key)
Add a row containing the sum of the column
|
void |
clear() |
java.lang.Object |
combine(Operator op,
R key,
java.lang.Number value) |
void |
combine(Operator op,
Table.Col other)
add contents of a different col
|
java.lang.Object |
get(java.lang.Object key)
Get the object at the specified row
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes(R key)
return all attributes set for the current key
|
protected java.util.Map<R,java.lang.Object> |
getData() |
Table.Formatter<C,R> |
getFormat() |
java.lang.String |
getName()
Get the name of this Col
|
java.lang.Number |
getNumber(R key)
Get the contents of an entry as a Number
|
java.lang.String |
getText(java.text.NumberFormat nf,
R key)
Get the contents as text, applying a NumberFormat if Object is a
Number
|
java.lang.String |
getText(R key)
Get entry as text
|
boolean |
hasFormat()
Does this col have a transform set.
|
java.lang.Object |
increment(R key,
int val)
Increment the contents of an integer Entry
|
java.util.List<C> |
keys() |
void |
merge(Table.Col other)
merge contents of a different col
|
int |
printWidth() |
int |
printWidth(java.text.NumberFormat nf) |
java.lang.Object |
put(R key,
java.lang.Object value) |
java.lang.Object |
putAfter(R key,
R after,
java.lang.Object value)
Add an entry immediatly after a specified row.
|
void |
remove(R key)
Remove row data from the column
|
Table.Formatter<C,R> |
setFormat(Table.Formatter<C,R> t)
sets a Transform to be used to format a col for printing.
|
Table.Formatter |
setFormat(Transform t) |
void |
setName(java.lang.String name) |
java.lang.Double |
sum() |
java.lang.Double |
sum(java.util.Set<R> e) |
void |
transform(java.util.Collection<R> e,
Transform t) |
void |
transform(Transform t) |
public void clear()
public java.lang.Object add(R key, java.lang.Number value)
public void combine(Operator op, Table.Col other)
other
- public void merge(Table.Col other)
other
- public void addAttribute(R key, java.lang.String name, java.lang.String value)
key
- name
- value
- public void addAttribute(java.lang.String name, java.lang.String value)
name
- value
- public java.lang.Double addTotal(R key)
key
- Object key for rowpublic java.lang.Object get(java.lang.Object key)
key
- public java.util.Map<java.lang.String,java.lang.String> getAttributes(R key)
key
- protected java.util.Map<R,java.lang.Object> getData()
public Table.Formatter<C,R> getFormat()
public java.lang.String getName()
public java.lang.Number getNumber(R key)
key
- public java.lang.String getText(java.text.NumberFormat nf, R key)
nf
- NumberFormatkey
- public java.lang.String getText(R key)
key
- public boolean hasFormat()
public java.lang.Object increment(R key, int val)
key
- val
- public java.util.List<C> keys()
public int printWidth()
public int printWidth(java.text.NumberFormat nf)
public java.lang.Object put(R key, java.lang.Object value)
public void remove(R key)
key
- public java.lang.Object putAfter(R key, R after, java.lang.Object value)
key
- Key of new entryafter
- Key of previous entryvalue
- Object to addpublic Table.Formatter<C,R> setFormat(Table.Formatter<C,R> t)
t
- The formatting transformpublic Table.Formatter setFormat(Transform t)
public void setName(java.lang.String name)
public java.lang.Double sum()
public java.lang.Double sum(java.util.Set<R> e)
public void transform(Transform t)