Package com._1c.g5.properties.ui
Class PropertyPaletteComponent
- java.lang.Object
-
- com._1c.g5.aef2.components.Component<M,P>
-
- com._1c.g5.aef2.standard.components.StandardComponent<M,P>
-
- com._1c.g5.aef2.standard.components.ContainerComponent<M,P>
-
- com._1c.g5.aef2.standard.components.CompositeComponent<PropertyPaletteModel,IParameterization>
-
- com._1c.g5.properties.ui.PropertyPaletteComponent
-
- All Implemented Interfaces:
IComponent<PropertyPaletteModel>
,IEventChannel
,IManagingComponent<PropertyPaletteModel>
,EventListener
,org.eclipse.jface.util.IPropertyChangeListener
- Direct Known Subclasses:
MdPropertyPaletteComponent
public class PropertyPaletteComponent extends CompositeComponent<PropertyPaletteModel,IParameterization> implements org.eclipse.jface.util.IPropertyChangeListener, IManagingComponent<PropertyPaletteModel>
Special implementation ofCompositeComponent
for property palette. ContainsDefinitionDrivenComponent
as main child. ThisDefinitionDrivenComponent
builds palette structure usingIDefinition
. ImplementsIManagingDefinition
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description PropertyPaletteComponent()
Creates a new property palette component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
attachToModel()
Attaches this component to the model.protected void
createComponents()
Creates the child components of this component.protected IContainerViewModel
createContainerViewModel()
Creates the view model of the container.protected DefinitionDrivenComponent<IDefinitionModel,IParameterization>
createDefinitionDrivenComponent()
Creates and returns definition driven component which will be used as main child component.protected void
detachFromModel()
Detaches this component from the model.void
dispose()
Disposes this component, its view models and its child components.protected void
disposeComponents()
Disposes the child components.protected DefinitionDrivenComponent<IDefinitionModel,IParameterization>
getDefinitionComponent()
Returns childDefinitionDrivenComponent
of this component.IAefLayoutData
getLayoutData()
Returns theIAefLayoutData
instance.protected Collection<IRefresher>
getRefreshers()
Returns refreshers managing this component.void
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
-
Methods inherited from class com._1c.g5.aef2.standard.components.CompositeComponent
getLayout, setLayout, setLayoutData, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.ContainerComponent
addComponent, button, button, checkBox, checkBox, combo, createViewModels, disposeChildren, field, field, getContainerViewModel, isEditable, label, label, refreshChildren, separator, spinner, text
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, disposeViewModels, handleExternalValidationEvent, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, beginExternalUpdate, checkComponents, checkViewModels, commit, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.components.IComponent
areChildCommitsEnabled, areChildRefreshEnabled, beginExternalUpdate, commit, endExternalUpdate, getComponents, getModel, getParent, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene
-
Methods inherited from interface com._1c.g5.aef2.events.IEventChannel
addListener, queueAndWaitEvent, queueEvent, removeListener
-
-
-
-
Method Detail
-
getLayoutData
public IAefLayoutData getLayoutData()
Description copied from class:StandardComponent
Returns theIAefLayoutData
instance.- Overrides:
getLayoutData
in classStandardComponent<PropertyPaletteModel,IParameterization>
- Returns:
- the layout date or
null
.
-
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
- Specified by:
propertyChange
in interfaceorg.eclipse.jface.util.IPropertyChangeListener
-
dispose
public void dispose()
Description copied from interface:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<PropertyPaletteModel>
- Overrides:
dispose
in classComponent<PropertyPaletteModel,IParameterization>
-
attachToModel
protected void attachToModel()
Description copied from class:Component
Attaches this component to the model. Override it to add some listeners to the model.- Overrides:
attachToModel
in classComponent<PropertyPaletteModel,IParameterization>
-
detachFromModel
protected void detachFromModel()
Description copied from class:Component
Detaches this component from the model. Override it to remove listeners from the model.- Overrides:
detachFromModel
in classComponent<PropertyPaletteModel,IParameterization>
-
createComponents
protected void createComponents()
Description copied from class:Component
Creates the child components of this component. Override it to fill a component with a child components.Method can be called multiple times.
- Overrides:
createComponents
in classComponent<PropertyPaletteModel,IParameterization>
-
disposeComponents
protected void disposeComponents()
Description copied from class:Component
Disposes the child components. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeComponents
in classComponent<PropertyPaletteModel,IParameterization>
-
createContainerViewModel
protected IContainerViewModel createContainerViewModel()
Description copied from class:ContainerComponent
Creates the view model of the container.- Overrides:
createContainerViewModel
in classCompositeComponent<PropertyPaletteModel,IParameterization>
- Returns:
- the newly created container view model.
-
createDefinitionDrivenComponent
protected DefinitionDrivenComponent<IDefinitionModel,IParameterization> createDefinitionDrivenComponent()
Creates and returns definition driven component which will be used as main child component.- Returns:
- created definition driven component. Cannot be
null
.
-
getDefinitionComponent
protected DefinitionDrivenComponent<IDefinitionModel,IParameterization> getDefinitionComponent()
Returns childDefinitionDrivenComponent
of this component.- Returns:
- child
DefinitionDrivenComponent
of this component. Returnsnull
ifcreateComponents()
was not called.
-
getRefreshers
protected Collection<IRefresher> getRefreshers()
Returns refreshers managing this component.- Returns:
- refreshers managing this component. Cannot return
null
.
-
-