public class AddRepositoryCompositeImpl extends Object implements AddRepositoryComposite
AddRepositoryComposite
provides a Composite which allows to create a new Repository.
This class alsa defines a Listener for name, label description and provider changes.AddRepositoryComposite.AddRepositoryChangeListener
Constructor and Description |
---|
AddRepositoryCompositeImpl(ECPProvider provider)
Constructor to use if a specific provider should be used.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Composite |
createUI(org.eclipse.swt.widgets.Composite parent)
This method creates a UI bundled into a
Composite that can be used anywhere. |
void |
dispose()
Disposes this composite provider.
|
ECPProperties |
getProperties()
The
ECPProperties for the Repository to create. |
ECPProvider |
getProvider()
Gets the selected or set
ECPProvider for this repository. |
String |
getRepositoryDescription()
The description for the Repository to create.
|
String |
getRepositoryLabel()
The label for the Repository to create.
|
String |
getRepositoryName()
The name for the Repository to create.
|
void |
setListener(AddRepositoryComposite.AddRepositoryChangeListener listener)
|
public AddRepositoryCompositeImpl(ECPProvider provider)
provider
- the ECPProvider
to use for this repositorypublic org.eclipse.swt.widgets.Composite createUI(org.eclipse.swt.widgets.Composite parent)
Composite
that can be used anywhere.createUI
in interface CompositeProvider
parent
- the parent Composite
Composite
public ECPProvider getProvider()
ECPProvider
for this repository.getProvider
in interface AddRepositoryComposite
ECPProvider
for the creation of the repositorypublic String getRepositoryName()
getRepositoryName
in interface AddRepositoryComposite
public String getRepositoryDescription()
getRepositoryDescription
in interface AddRepositoryComposite
public ECPProperties getProperties()
ECPProperties
for the Repository to create.getProperties
in interface AddRepositoryComposite
public String getRepositoryLabel()
getRepositoryLabel
in interface AddRepositoryComposite
public void setListener(AddRepositoryComposite.AddRepositoryChangeListener listener)
setListener
in interface AddRepositoryComposite
listener
- the listener to setpublic void dispose()
dispose
in interface CompositeProvider
Copyright © 2018. All rights reserved.