cookxml.cookswing.adder
Class DefaultTableModelAdder
java.lang.Object
cookxml.cookswing.adder.DefaultTableModelAdder
- All Implemented Interfaces:
- Adder
- public class DefaultTableModelAdder
- extends Object
- implements Adder
This adder actually does a lot of things. For a vector child, it would call
addRow function of DefaultTableModel. For a map child, it would add all the
entries in the map as sorted by the key into the table that has two columns.
- Since:
- CookSwing 1.0
- See Also:
DefaultTableModel
,
Map
,
Vector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static Adder getInstance()
add
public boolean add(String parentTag,
Object parent,
Object child,
DecodeEngine decodeEngine)
throws AdderException
- Description copied from interface:
Adder
- Add the child to the parent. The function should return true if it is the right
adder for the request.
- Specified by:
add
in interface Adder
- Parameters:
parentTag
- the tag of the parentparent
- the parent objectchild
- the child objectdecodeEngine
- the decode engine that is being used
- Returns:
- whether or not the adder can handle the request.
- Throws:
AdderException