|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of original (presented) elementspublic interface IPresentationElement<T extends IElement>
The interface of elements of the abstract presentation model.
IPresentationDataSet| Nested Class Summary | |
|---|---|
static class |
IPresentationElement.Properties
Enumeration of property name constants. |
static class |
IPresentationElement.PropertyCategory
Constants which identify presentation element's properties. |
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_CHANGE_EVENT
Id of an event informing of attribute value changes in presentation model elements. |
static Type |
TYPE
The presentation element type. |
| Method Summary | ||
|---|---|---|
Type |
getDerivedType()
The derived type of the element is based on the type of the element(s) from the domain model wrapped by this presentation element. |
|
String |
getLabel()
Label getter. |
|
List<? extends T> |
getOriginalElements()
Returns the original elements which are presented by this presentation element. |
|
|
getVisualElement()
Returns the visual element associated with this presentation element. |
|
boolean |
hasAssociatedVisualElement()
Checks if any visual element is associated with this presentation element. |
|
void |
setDerivedType(Type type)
The derived type setter may be invoked only if there is no domain model element, given presentation element is based on (i.e. |
|
void |
setLabel(String label)
Label setter. |
|
void |
setOriginalElements(List<? extends T> elements)
Sets the original elements which are presented by this presentation elements. |
|
void |
setSuppressAllEvents(boolean flag)
Sets suppress all events flag. |
|
void |
setVisualElement(IVisualElement visualElement)
Sets the visual element associated with this presentation element. |
|
| Methods inherited from interface pl.edu.agh.cast.data.model.IElement |
|---|
getDataSet |
| Methods inherited from interface pl.edu.agh.cast.data.model.Identifiable |
|---|
getId, getType |
| Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyContainer |
|---|
addProperty, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, matches, removeProperty, setProperty |
| Methods inherited from interface java.util.Observer |
|---|
update |
| Methods inherited from interface pl.edu.agh.cast.common.IValidatable |
|---|
isValid |
| Methods inherited from interface pl.edu.agh.cast.common.IDisposable |
|---|
dispose |
| Methods inherited from interface pl.edu.agh.cast.common.IReplicable |
|---|
replicate, replicateTo |
| Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyChangeProvider |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static final Type TYPE
static final String ATTRIBUTE_CHANGE_EVENT
| Method Detail |
|---|
@PropertyGetter(name="DERIVED_TYPE",
type=TYPE,
matchable=false)
Type getDerivedType()
void setDerivedType(Type type)
type - The type to set.
@PropertyGetter(name="LABEL",
type=TEXT,
matchable=true)
String getLabel()
@PropertySetter(name="LABEL") void setLabel(String label)
label - The label to set.
@PropertyGetter(name="ORIGINAL_ELEMENTS",
type=REFERENCE_LIST,
matchable=false)
List<? extends T> getOriginalElements()
@PropertySetter(name="ORIGINAL_ELEMENTS") void setOriginalElements(List<? extends T> elements)
elements - a list of original elements presented by this presentation element<V extends IVisualElement<? extends IPresentationElement<T>>> V getVisualElement()
V - the type of expected visual element
nullIVisualElementvoid setVisualElement(IVisualElement visualElement)
visualElement - the associated visual element (null value is allowed)IVisualElementboolean hasAssociatedVisualElement()
true if an associated visual element is presentvoid setSuppressAllEvents(boolean flag)
true all events will be ignored.
flag - suppress all events flag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||