com.ibm.portal
Interface OrderedListModelController<T,M extends Modifiable>

Type Parameters:
T - the type of node the controller exposes
M - the type of modifiable node the controller exposes
All Superinterfaces:
Controller, ListModel<T>, ListModelController<T,M>, ModelController<T,M>

public interface OrderedListModelController<T,M extends Modifiable>
extends ListModelController<T,M>

A controller for list models that expose their elements in an ordered way.

Since:
6.1.0

Method Summary
 void insert(T aNode)
          Inserts the node as the last element of the list model.
 void insert(T aNode, T aNext)
          Inserts the node into the list model at the specified location.
 
Methods inherited from interface com.ibm.portal.ListModelController
confirmDelete, confirmInsert, delete
 
Methods inherited from interface com.ibm.portal.ListModel
iterator
 
Methods inherited from interface com.ibm.portal.ModelController
confirmCreate, create, getModifiableNode, resolve
 

Method Detail

insert

void insert(T aNode)
            throws CannotInsertNodeException
Inserts the node as the last element of the list model.

Specified by:
insert in interface ListModelController<T,M extends Modifiable>
Parameters:
aNode - node to insert into the list model
Throws:
CannotInsertNodeException - the node cannot be inserted

insert

void insert(T aNode,
            T aNext)
            throws ObjectNotFoundException,
                   CannotInsertNodeException
Inserts the node into the list model at the specified location. If the node already exists in the list model, the node is moved to the specified location.

Parameters:
aNode - node to insert into the list model
aNext - successor node for the node to insert; if null, the node is appended at the end of the existing nodes
Throws:
ObjectNotFoundException - the node aNext cannot be found
CannotInsertNodeException - the node cannot be inserted