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 of
CompositeComponent
for property palette.
Contains DefinitionDrivenComponent
as main child.
This DefinitionDrivenComponent
builds palette structure using IDefinition
.
Implements IManagingDefinition
.-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Attaches this component to the model.protected void
Creates the child components of this component.protected IContainerViewModel
Creates the view model of the container.Creates and returns definition driven component which will be used as main child component.protected void
Detaches this component from the model.void
dispose()
Disposes this component, its view models and its child components.protected void
Disposes the child components.Returns childDefinitionDrivenComponent
of this component.Returns theIAefLayoutData
instance.protected Collection<IRefresher>
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
-
Constructor Details
-
PropertyPaletteComponent
public PropertyPaletteComponent()Creates a new property palette component.
-
-
Method Details
-
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
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
Returns childDefinitionDrivenComponent
of this component.- Returns:
- child
DefinitionDrivenComponent
of this component. Returnsnull
ifcreateComponents()
was not called.
-
getRefreshers
Returns refreshers managing this component.- Returns:
- refreshers managing this component. Cannot return
null
.
-