|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
M
- type of wrapped presentation elementpublic interface IVisualElement<M extends IPresentationElement<? extends IElement>>
An interface which describes an element from visual model, for more detail see IVisualDataSet
. Each visual
element describes exactly one element from presentation model.
IVisualDataSet
,
IPresentationElement
Nested Class Summary | |
---|---|
static class |
IVisualElement.Properties
Enumeration of property name constants. |
Field Summary | |
---|---|
static String |
DEFAULT_VISUAL_LABEL_ID
Property id which is default visual label. |
static Type |
TYPE
The type of IVisualElement . |
Method Summary | |
---|---|
M |
getPresentationElement()
Gets element from presentation model which is described by this visual element. |
Collection<Property<? extends MetaProperty>> |
getPropertiesMarkedAsLabel()
Gets collection of properties marked as label (including properties of presentation, visual and original elements). |
String |
getVisualLabel()
Gets visual label which is created from all properties returned by IVisualDataSet.getPropertiesMarkedAsLabel(Type) . |
void |
markPropertyAsLabel(PresentationPropertyDescriptor desc,
boolean flag)
Marks given property as label. |
void |
setPresentationElement(M pe)
Sets the element from presentation model which is described by this visual 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
IVisualElement
.
static final String DEFAULT_VISUAL_LABEL_ID
Method Detail |
---|
@PropertyGetter(name="PRESENTATION_ELEMENT", type=REFERENCE, matchable=true, required=true) M getPresentationElement()
void setPresentationElement(M pe) throws ModelException
pe
- presentation element to set
IllegalArgumentException
- if given presentation element is null
ModelException
- if a presentation element is already defined for this visual elementString getVisualLabel()
IVisualDataSet.getPropertiesMarkedAsLabel(Type)
. If marked property does not exists in given
element it is ignored. This method should be used by editor to display elements' labels.
Collection<Property<? extends MetaProperty>> getPropertiesMarkedAsLabel()
DEFAULT_VISUAL_LABEL_ID
.
void markPropertyAsLabel(PresentationPropertyDescriptor desc, boolean flag)
flag
is true
the property is added to label,
otherwise it is removed from label.
desc
- object which describes property to be added or removed from labelflag
- flag which indicate is given property is to be added or removed from label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |