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 ofCompositeComponentfor property palette. ContainsDefinitionDrivenComponentas main child. ThisDefinitionDrivenComponentbuilds 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 voidattachToModel()Attaches this component to the model.protected voidcreateComponents()Creates the child components of this component.protected IContainerViewModelcreateContainerViewModel()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 voiddetachFromModel()Detaches this component from the model.voiddispose()Disposes this component, its view models and its child components.protected voiddisposeComponents()Disposes the child components.protected DefinitionDrivenComponent<IDefinitionModel,IParameterization>getDefinitionComponent()Returns childDefinitionDrivenComponentof this component.IAefLayoutDatagetLayoutData()Returns theIAefLayoutDatainstance.protected Collection<IRefresher>getRefreshers()Returns refreshers managing this component.voidpropertyChange(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:StandardComponentReturns theIAefLayoutDatainstance.- Overrides:
getLayoutDatain classStandardComponent<PropertyPaletteModel,IParameterization>- Returns:
- the layout date or
null.
-
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
- Specified by:
propertyChangein interfaceorg.eclipse.jface.util.IPropertyChangeListener
-
dispose
public void dispose()
Description copied from interface:IComponentDisposes this component, its view models and its child components.- Specified by:
disposein interfaceIComponent<PropertyPaletteModel>- Overrides:
disposein classComponent<PropertyPaletteModel,IParameterization>
-
attachToModel
protected void attachToModel()
Description copied from class:ComponentAttaches this component to the model. Override it to add some listeners to the model.- Overrides:
attachToModelin classComponent<PropertyPaletteModel,IParameterization>
-
detachFromModel
protected void detachFromModel()
Description copied from class:ComponentDetaches this component from the model. Override it to remove listeners from the model.- Overrides:
detachFromModelin classComponent<PropertyPaletteModel,IParameterization>
-
createComponents
protected void createComponents()
Description copied from class:ComponentCreates the child components of this component. Override it to fill a component with a child components.Method can be called multiple times.
- Overrides:
createComponentsin classComponent<PropertyPaletteModel,IParameterization>
-
disposeComponents
protected void disposeComponents()
Description copied from class:ComponentDisposes the child components. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeComponentsin classComponent<PropertyPaletteModel,IParameterization>
-
createContainerViewModel
protected IContainerViewModel createContainerViewModel()
Description copied from class:ContainerComponentCreates the view model of the container.- Overrides:
createContainerViewModelin 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 childDefinitionDrivenComponentof this component.- Returns:
- child
DefinitionDrivenComponentof this component. ReturnsnullifcreateComponents()was not called.
-
getRefreshers
protected Collection<IRefresher> getRefreshers()
Returns refreshers managing this component.- Returns:
- refreshers managing this component. Cannot return
null.
-
-