|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataNodeVetoListener
This interface allows clients to veto certain operations in the DataNode lifecycle. Clients may opt to prevent certain operations from occurring. For instance if a certain model deal with submitting data to a server, then the veto listener could opt to not allow a setValue operation from occurring if a certain operation was executed twice.
| Method Summary | |
|---|---|
boolean |
onCanDelete(DataNode node,
int position)
Can veto the current com.ibm.commons.iloader.node.DataNode.notifyCanDelete(int)
operation. |
boolean |
onCanDeleteAll(DataNode node)
Can veto the current com.ibm.commons.iloader.node.DataNode.notifyCanDeleteAll()
operation. |
boolean |
onCanEdit(DataNode node)
Can veto if the provided DataNode may be edited. |
boolean |
onCanInsert(DataNode node,
int position)
Can veto the current com.ibm.commons.iloader.node.DataNode.notifyCanInsert(int)
operation. |
boolean |
onCanSetCurrentItem(DataNode node,
int newPosition)
Can veto the current com.ibm.commons.iloader.node.DataNode.notifyCanSetCurrentItem(int)
operation. |
boolean |
onCanSetValue(DataNode node,
java.lang.String attributeName,
java.lang.String value,
java.lang.String oldValue)
Can veto the current com.ibm.commons.iloader.node.DataNode.notifyCanSetValue(String, String, String)
operation. |
| Method Detail |
|---|
boolean onCanSetCurrentItem(DataNode node,
int newPosition)
com.ibm.commons.iloader.node.DataNode.notifyCanSetCurrentItem(int)
operation.
node - the DataNode that is about to execute notifyCanSetCurrentItem(int)newPosition - the position of the new item
boolean onCanSetValue(DataNode node,
java.lang.String attributeName,
java.lang.String value,
java.lang.String oldValue)
com.ibm.commons.iloader.node.DataNode.notifyCanSetValue(String, String, String)
operation.
node - the DataNode that is about to execute notifyCanSetValue(String, String, String)attributeName - the name of the attribute whose value is to be setvalue - the proposed new value of the attributeoldValue - the old value of the attribute
boolean onCanEdit(DataNode node)
com.ibm.commons.iloader.node.DataNode.notifyCanEdit() is being executed.
node - the DataNode under test
boolean onCanInsert(DataNode node,
int position)
com.ibm.commons.iloader.node.DataNode.notifyCanInsert(int)
operation.
node - the DataNode that is about to execute notifyCanInsert(int)position - the position the item is to be inserted at
boolean onCanDelete(DataNode node,
int position)
com.ibm.commons.iloader.node.DataNode.notifyCanDelete(int)
operation.
node - the DataNode that is about to execute notifyCanDelete(int)position - the position of the item being deleted
boolean onCanDeleteAll(DataNode node)
com.ibm.commons.iloader.node.DataNode.notifyCanDeleteAll()
operation.
node - the DataNode that is about to execute notifyCanDeleteAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||