|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.olap.OLAPObject
public abstract class OLAPObject
| Field Summary | |
|---|---|
protected java.beans.PropertyChangeSupport |
pcs
Helper class for registering and notifying property change listeners. |
| Constructor Summary | |
|---|---|
protected |
OLAPObject()
|
protected |
OLAPObject(OLAPObject original)
|
| Method Summary | |
|---|---|
void |
addChild(int index,
OLAPObject child)
Adds the given child or sets the appropriate property on this OLAPObject, allowing the overall target index to be specified. |
void |
addChild(OLAPObject child)
Adds the given child or sets the appropriate property on this OLAPObject, if this type of OLAPObject has the applicable addXXX() or setXXX() method for the given object's type. |
void |
addChildListener(OLAPChildListener listener)
|
void |
addCompoundEditListener(CompoundEditListener listener)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
abstract boolean |
allowsChildren()
Returns true if this type of OLAPObject can ever return a non-empty list from getChildren(), and false if getChildren() is always empty. |
void |
endCompoundEdit()
|
protected void |
fireChildAdded(java.lang.Class<? extends OLAPObject> childClass,
int index,
OLAPObject child)
|
protected void |
fireChildRemoved(java.lang.Class<? extends OLAPObject> childClass,
int index,
OLAPObject child)
|
abstract java.util.List<? extends OLAPObject> |
getChildren()
Returns a read-only unified list of all children of this OLAPObject. |
java.lang.String |
getName()
Default implementation. |
OLAPObject |
getParent()
Returns the current OLAPObject that is this object's parent. |
boolean |
removeChild(OLAPObject child)
Removes the given child on this OLAPObject if this type of OLAPObject has the applicable removeXXX() or setXXX(null) method for the given object's type. |
void |
removeChildListener(OLAPChildListener listener)
|
void |
removeCompoundEditListener(CompoundEditListener listener)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
startCompoundEdit(java.lang.String presentationName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.beans.PropertyChangeSupport pcs
| Constructor Detail |
|---|
protected OLAPObject()
protected OLAPObject(OLAPObject original)
| Method Detail |
|---|
public OLAPObject getParent()
public abstract boolean allowsChildren()
getChildren(), and false if getChildren() is always empty.
public abstract java.util.List<? extends OLAPObject> getChildren()
public void addChild(OLAPObject child)
This method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.
This method isn't compile-time type safe, so it is recommended not to use it on "by-hand" usage of this API. This method is used during XML parsing, which can't be made compile-time type safe anyway.
child - The child to add.
java.lang.IllegalArgumentException - if this object doesn't support child's type.
public void addChild(int index,
OLAPObject child)
This method in the abstract base class always throws IllegalArgumentException because no children or properties are defined at this level.
This method isn't compile-time type safe, so it is recommended not to use it on "by-hand" usage of this API. This method is used for undo and redo, which can't be compile-time type safe anyway.
index - The overall index (same index as would be in
getChildren()) at which to add the child.child - The child to add.
java.lang.IllegalArgumentException - if this object doesn't support child's type, or if the given
index is not compatible with the given child's type (children
are grouped by type, and the order is strictly enforced).public boolean removeChild(OLAPObject child)
This method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.
child - The child to remove.
java.lang.IllegalArgumentException - if this object doesn't support child's type.public void addChildListener(OLAPChildListener listener)
public void removeChildListener(OLAPChildListener listener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addCompoundEditListener(CompoundEditListener listener)
public void removeCompoundEditListener(CompoundEditListener listener)
public void startCompoundEdit(java.lang.String presentationName)
public void endCompoundEdit()
protected void fireChildAdded(java.lang.Class<? extends OLAPObject> childClass,
int index,
OLAPObject child)
protected void fireChildRemoved(java.lang.Class<? extends OLAPObject> childClass,
int index,
OLAPObject child)
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||