Package com._1c.g5.v8.dt.form.service
Class FormItemInformationService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.FormItemInformationService
-
public class FormItemInformationService extends Object
TODO: no type for ButtonGroupExtInfo, ContextMenu, FormTableExtensionForValueTable
Special service for providing information about methods, properties and events for FormItem and their extension
-
-
Constructor Summary
Constructors Constructor Description FormItemInformationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContextDef>
getAllowedContextDefItem(FormItem item)
List<ContextDef>
getAllowedContextDefItem(FormItem item, org.eclipse.emf.ecore.EStructuralFeature extInfoFeature)
Set<String>
getAllowedEventNames(org.eclipse.emf.ecore.EClass eClass, Version version)
Gets allowed event namesList<Event>
getAllowedEvents(ExtInfo extInfo)
List<Event>
getAllowedEvents(ExtInfo extInfo, org.eclipse.emf.ecore.resource.Resource resource)
List<Event>
getAllowedEvents(FormVisualEntity item)
Gets allowedEvent
s forFormVisualEntity
(contains events of extension too)List<Event>
getAllowedEvents(FormVisualEntity item, org.eclipse.emf.ecore.EStructuralFeature extInfoFeature)
Gets allowedEvent
s forFormVisualEntity
(contains events of extension too)List<Event>
getAllowedEvents(FormVisualEntity item, org.eclipse.emf.ecore.resource.Resource resource)
Gets allowedEvent
s forFormVisualEntity
(contains events of extension too)Collection<org.eclipse.xtext.resource.IEObjectDescription>
getAllowedIndexedEvents(ExtInfo extInfo, org.eclipse.emf.ecore.resource.Resource resource)
Collection<org.eclipse.xtext.resource.IEObjectDescription>
getAllowedIndexedEvents(FormVisualEntity item)
Gets allowed indexedEvent
s forFormVisualEntity
(contains events of extension too)Collection<org.eclipse.xtext.resource.IEObjectDescription>
getAllowedIndexedEvents(FormVisualEntity item, org.eclipse.emf.ecore.resource.Resource resource)
Gets allowed indexedEvent
s forFormVisualEntity
(contains events of extension too)List<EventHandler>
getEventHandlers(org.eclipse.emf.ecore.EObject object)
Returns a list of active event handlers for the provideded form model object.ExtInfo
getExtensionInfo(org.eclipse.emf.ecore.EObject object)
GetsExtInfo
for objectType
getTypeOfFormItem(FormVisualEntity item)
GetsType
of the form itemList<Type>
getTypesOfFormItem(FormVisualEntity item)
GetsType
s of the form item
-
-
-
Method Detail
-
getEventHandlers
public List<EventHandler> getEventHandlers(org.eclipse.emf.ecore.EObject object)
Returns a list of active event handlers for the provideded form model object. The returned list is a live view of model object handlers so changes to one affect the other.- Parameters:
object
- the form model object, cannot benull
- Returns:
- a list of active even handlers for the provideded form model object or an empty list, if object does not have active event handlers or object cannot have event handlers
-
getAllowedEvents
public List<Event> getAllowedEvents(FormVisualEntity item, org.eclipse.emf.ecore.EStructuralFeature extInfoFeature)
Gets allowedEvent
s forFormVisualEntity
(contains events of extension too)- Parameters:
item
- form visual item, can't benull
extInfoFeature
-EStructuralFeature
of extension info property, can benull
- Returns:
- list of allowed
Event
s
-
getAllowedEvents
public List<Event> getAllowedEvents(FormVisualEntity item)
Gets allowedEvent
s forFormVisualEntity
(contains events of extension too)- Parameters:
item
- form visual item, can't benull
- Returns:
- list of allowed
Event
s
-
getAllowedIndexedEvents
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getAllowedIndexedEvents(FormVisualEntity item)
Gets allowed indexedEvent
s forFormVisualEntity
(contains events of extension too)- Parameters:
item
- form visual item, can't benull
- Returns:
- list of allowed indexed
Event
s, nevernull
-
getAllowedEvents
public List<Event> getAllowedEvents(FormVisualEntity item, org.eclipse.emf.ecore.resource.Resource resource)
Gets allowedEvent
s forFormVisualEntity
(contains events of extension too)- Parameters:
item
- form visual item, can't benull
resource
- the resource to resolve proxies- Returns:
- list of allowed
Event
s
-
getAllowedIndexedEvents
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getAllowedIndexedEvents(FormVisualEntity item, org.eclipse.emf.ecore.resource.Resource resource)
Gets allowed indexedEvent
s forFormVisualEntity
(contains events of extension too)- Parameters:
item
- form visual item, can't benull
resource
- the resource to resolve proxies- Returns:
- list of allowed indexed
Event
s, nevernull
-
getAllowedEvents
public List<Event> getAllowedEvents(ExtInfo extInfo, org.eclipse.emf.ecore.resource.Resource resource)
-
getAllowedIndexedEvents
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getAllowedIndexedEvents(ExtInfo extInfo, org.eclipse.emf.ecore.resource.Resource resource)
-
getAllowedEventNames
public Set<String> getAllowedEventNames(org.eclipse.emf.ecore.EClass eClass, Version version)
Gets allowed event names- Parameters:
eClass
- of object contains eventsversion
- of runtime- Returns:
- list of allowed event names
-
getAllowedContextDefItem
public List<ContextDef> getAllowedContextDefItem(FormItem item, org.eclipse.emf.ecore.EStructuralFeature extInfoFeature)
- Parameters:
item
- form item, can't benull
extInfoFeature
-EStructuralFeature
of extension info property, can't benull
- Returns:
- list of
ContextDef
-
getAllowedContextDefItem
public List<ContextDef> getAllowedContextDefItem(FormItem item)
- Parameters:
item
- form item, can't benull
- Returns:
- list of
ContextDef
-
getTypeOfFormItem
public Type getTypeOfFormItem(FormVisualEntity item)
GetsType
of the form item
-
getTypesOfFormItem
public List<Type> getTypesOfFormItem(FormVisualEntity item)
GetsType
s of the form item
-
-