|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.DataNodeVetoAdapter
public abstract class DataNodeVetoAdapter
A default adapter for the com.ibm.commons.iloader.node.DataNodeVetoListener
interface.
Allows clients to selectively veto certain events rather than needing to implement the entire listener
interface. This default implementation returns true
for all queries.
DataNodeVetoListener
Constructor Summary | |
---|---|
DataNodeVetoAdapter()
|
Method Summary | |
---|---|
boolean |
onCanDelete(DataNode node,
int index)
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 index)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataNodeVetoAdapter()
Method Detail |
---|
public boolean onCanDelete(DataNode node, int index)
DataNodeVetoListener
com.ibm.commons.iloader.node.DataNode.notifyCanDelete(int)
operation.
onCanDelete
in interface DataNodeVetoListener
node
- the DataNode that is about to execute notifyCanDelete(int)index
- the position of the item being deleted
public boolean onCanDeleteAll(DataNode node)
DataNodeVetoListener
com.ibm.commons.iloader.node.DataNode.notifyCanDeleteAll()
operation.
onCanDeleteAll
in interface DataNodeVetoListener
node
- the DataNode that is about to execute notifyCanDeleteAll()
public boolean onCanEdit(DataNode node)
DataNodeVetoListener
com.ibm.commons.iloader.node.DataNode.notifyCanEdit()
is being executed.
onCanEdit
in interface DataNodeVetoListener
node
- the DataNode under test
public boolean onCanInsert(DataNode node, int index)
DataNodeVetoListener
com.ibm.commons.iloader.node.DataNode.notifyCanInsert(int)
operation.
onCanInsert
in interface DataNodeVetoListener
node
- the DataNode that is about to execute notifyCanInsert(int)index
- the position the item is to be inserted at
public boolean onCanSetCurrentItem(DataNode node, int newPosition)
DataNodeVetoListener
com.ibm.commons.iloader.node.DataNode.notifyCanSetCurrentItem(int)
operation.
onCanSetCurrentItem
in interface DataNodeVetoListener
node
- the DataNode that is about to execute notifyCanSetCurrentItem(int)newPosition
- the position of the new item
public boolean onCanSetValue(DataNode node, java.lang.String attributeName, java.lang.String value, java.lang.String oldValue)
DataNodeVetoListener
com.ibm.commons.iloader.node.DataNode.notifyCanSetValue(String, String, String)
operation.
onCanSetValue
in interface DataNodeVetoListener
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |