|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
ca.sqlpower.architect.SQLObjectEvent
public class SQLObjectEvent
| Field Summary | |
|---|---|
protected int[] |
changedIndices
|
protected SQLObject[] |
children
|
protected java.lang.Object |
newValue
|
protected java.lang.Object |
oldValue
|
protected java.lang.String |
propertyName
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
SQLObjectEvent(SQLObject source,
int[] changedIndices,
SQLObject[] children)
Use this constructor for DBChildrenInserted and DBChildrenRemoved type events. |
|
SQLObjectEvent(SQLObject source,
java.lang.String propertyName)
Use this constructor for DBObjectChanged type events. |
|
SQLObjectEvent(SQLObject source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Use this constructor for DBObjectChanged type events. |
|
| Method Summary | |
|---|---|
int[] |
getChangedIndices()
Gets the value of changedIndices |
SQLObject[] |
getChildren()
Gets the value of children |
java.lang.Object |
getNewValue()
|
java.lang.Object |
getOldValue()
|
java.lang.String |
getPropertyName()
Gets the value of propertyName |
SQLObject |
getSQLSource()
|
void |
setChangedIndices(int[] argChangedIndices)
Sets the value of changedIndices |
void |
setChildren(SQLObject[] argChildren)
Sets the value of children |
void |
setNewValue(java.lang.Object newValue)
|
void |
setOldValue(java.lang.Object oldValue)
|
void |
setPropertyName(java.lang.String argPropertyName)
Sets the value of propertyName |
java.lang.String |
toString()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] changedIndices
protected SQLObject[] children
protected java.lang.String propertyName
protected java.lang.Object oldValue
protected java.lang.Object newValue
| Constructor Detail |
|---|
public SQLObjectEvent(SQLObject source,
int[] changedIndices,
SQLObject[] children)
propertyName will be set to the
string "children".
source - The SQLObject that changed.changedIndices - The indices of the children that were
added or removed. The indices must be in ascending order.children - The actual SQLObject instances that were added
or removed to/from source.
public SQLObjectEvent(SQLObject source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
changedIndices and children will be null.
source - The SQLObject that changedpropertyName - The name of the property on source that changed.
public SQLObjectEvent(SQLObject source,
java.lang.String propertyName)
changedIndices and children will be null.
source - The SQLObject that changedpropertyName - The name of the property on source that changed.| Method Detail |
|---|
public SQLObject getSQLSource()
public int[] getChangedIndices()
public void setChangedIndices(int[] argChangedIndices)
argChangedIndices - Value to assign to this.changedIndicespublic SQLObject[] getChildren()
public void setChildren(SQLObject[] argChildren)
argChildren - Value to assign to this.childrenpublic java.lang.String getPropertyName()
public void setPropertyName(java.lang.String argPropertyName)
argPropertyName - Value to assign to this.propertyNamepublic java.lang.Object getNewValue()
public void setNewValue(java.lang.Object newValue)
public java.lang.Object getOldValue()
public void setOldValue(java.lang.Object oldValue)
public java.lang.String toString()
toString in class java.util.EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||