|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequenceValidator
Interface for controlling insertion and reordering of beans at design-time. The
Install4JBeanInfo.ATTRIBUTE_SEQUENCE_VALIDATOR
value of a bean descriptor expects an instance of
this class.
Method Summary | |
---|---|
int |
getInsertIndex(Bean bean,
java.util.List beans)
When a bean is inserted the first time at design-time, this method will be called to determine the insertion index. |
boolean |
isBarrier(Bean movedBean,
Bean possibleBarrierBean)
When a bean is moved in the list of beans, this method is called to check whether the move is valid. |
Method Detail |
---|
int getInsertIndex(Bean bean, java.util.List beans)
bean
- the bean that is being insertedbeans
- the list of existing beans into which the bean is to be inserted
boolean isBarrier(Bean movedBean, Bean possibleBarrierBean)
movedBean
- the bean that is being moved. This is always an instance of the bean with the BeanInfo class that contains this sequence validator.possibleBarrierBean
- the other bean whose location is about to be swapped with the movedBean.
|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |