public interface BaseElement
extends java.lang.Comparable, java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AbstractVisitor visitor)
Method accepts visitor, and calls method visit < class name > ( this ) of visitor .
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers the listener to the element.
|
void |
atInsert()
This method is called then this element is added into the project.
|
boolean |
canAdd(BaseElement element)
Checks if this element can add given element.
|
boolean |
canAdd(BaseElement element,
boolean checkPermissions)
Checks if this element can add given element.
|
boolean |
canAddChild()
Checks if new elements can be added to this element
|
boolean |
canAddInstance(BaseElement o)
Checks if this object can add element of given type.
|
boolean |
canBeDeleted()
Checks if element can be deleted from project.
|
boolean |
canChangeParent(java.util.Collection elements,
BaseElement newParent)
Returns true, if element can change parent.
|
boolean |
canDeleteChild(BaseElement child)
Checks if given element can be deleted from this element.
|
java.lang.Object |
clone() |
void |
dispose()
This method is called when element is removed from the project.
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Delegates
firePropertyChange to the
PropertyChangeSupport, the member of this class,
which reports a bound property update to any registered listeners. |
java.lang.Class |
getClassType()
Gets the type of the element class.
|
java.lang.String |
getHumanName()
Returns human representation of the element.
|
java.lang.String |
getHumanType()
Returns human representation of the element type.
|
java.lang.String |
getID()
Returns the ID of the
Element. |
BaseElement |
getObjectParent()
Returns the element parent.
|
boolean |
isEditable()
Checks if element can be edited.
|
boolean |
isInClipboard() |
boolean |
isParentOf(BaseElement obj)
Returns true, if current element is parent of given element.
|
void |
removeAllPropertyChangeListeners()
Removes all property change listeners from this element.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters the given listener from the element.
|
void |
setID(java.lang.String id)
Sets the specified ID to the
Element. |
java.lang.String |
sGetID()
Returns the actual ID of the
Element. |
java.lang.String getID()
Element.
If the ID is null, new id for element is generated.
Element id is persistence and do not changes during project save/load.Element.java.lang.String sGetID()
Element. May return null if ID was not generated
or set for this element.Element.getID()void setID(java.lang.String id)
Element.id - the id to be set.java.lang.Class getClassType()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the PropertyChangeListener to be added.PropertyChangeSupportvoid removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the PropertyChangeListener to be removed.PropertyChangeSupportvoid removeAllPropertyChangeListeners()
void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
firePropertyChange to the
PropertyChangeSupport, the member of this class,
which reports a bound property update to any registered listeners.
No event is fired if old and new values are equal or null.propertyName - the programmatic name of the property that was changed.oldValue - the old value of the propertynewValue - the new value of the propertyPropertyChangeSupportvoid atInsert()
void dispose()
void accept(AbstractVisitor visitor) throws java.lang.Exception
visitor - which visits this element.java.lang.Exceptionjava.lang.String getHumanName()
java.lang.String getHumanType()
boolean canAdd(BaseElement element)
element - the given element.canAdd(BaseElement, boolean)boolean canAdd(BaseElement element, boolean checkPermissions)
element - the element to add.checkPermissions - check or not permissions.boolean canDeleteChild(BaseElement child)
child - a given childboolean canBeDeleted()
isEditable()boolean canAddInstance(BaseElement o)
boolean isEditable()
boolean canAddChild()
BaseElement getObjectParent()
boolean isInClipboard()
boolean isParentOf(BaseElement obj)
obj - the given element(possible child).boolean canChangeParent(java.util.Collection elements,
BaseElement newParent)
elements - collection of the elements, whose will change the parent together with this.newParent - new parent object.java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException