|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.io.source.AbstractSource<P>
eu.esdihumboldt.hale.ui.io.source.AbstractProviderSource<P>
eu.esdihumboldt.hale.ui.io.source.URLSource<P>
P
- the supported IOProvider
typepublic class URLSource<P extends ImportProvider>
URL import source
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface eu.esdihumboldt.hale.ui.io.ImportSource |
---|
ImportSource.SourceConfiguration<P extends ImportProvider> |
Constructor Summary | |
---|---|
URLSource()
|
Method Summary | |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite parent)
Create the controls that enable the user to define the import source. |
void |
dispose()
Dispose any resources when the source page is disposed. |
protected LocatableInputSupplier<? extends InputStream> |
getSource()
Get the source to configure the import provider with. |
protected boolean |
isValidSource()
Determines if the current page state will result in a valid source for the import provider. |
void |
onActivate()
Method that is called when the source page is activated. |
protected void |
updateContentType()
Update the content type. The default implementation only calls AbstractProviderSource.updateProvider() . |
protected void |
updateState(boolean updateContentType)
Update the page state. |
Methods inherited from class eu.esdihumboldt.hale.ui.io.source.AbstractProviderSource |
---|
createProviders, getProviders, onProviderSelectionChanged, updateConfiguration, updateProvider |
Methods inherited from class eu.esdihumboldt.hale.ui.io.source.AbstractSource |
---|
getConfiguration, getPage, setConfiguration, setPage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLSource()
Method Detail |
---|
public void createControls(org.eclipse.swt.widgets.Composite parent)
ImportSource
ImportSource.setPage(WizardPage)
and
ImportSource.setConfiguration(SourceConfiguration)
must have been called
before calling this method.
parent
- the parent composite, implementors may assign a custom
layout to this compositeImportSource.createControls(Composite)
protected void updateContentType()
AbstractProviderSource
AbstractProviderSource.updateProvider()
.
Subclasses may add logic to change the content type in the source
configuration.
updateContentType
in class AbstractProviderSource<P extends ImportProvider>
AbstractProviderSource.updateContentType()
protected void updateState(boolean updateContentType)
AbstractProviderSource
ImportSource.createControls(Composite)
to initialize
the page state.
updateState
in class AbstractProviderSource<P extends ImportProvider>
updateContentType
- if true
the content type and the
supported providers will be updated before updating the page
stateAbstractProviderSource.updateState(boolean)
protected boolean isValidSource()
AbstractProviderSource
isValidSource
in class AbstractProviderSource<P extends ImportProvider>
AbstractProviderSource.isValidSource()
protected LocatableInputSupplier<? extends InputStream> getSource()
AbstractProviderSource
getSource
in class AbstractProviderSource<P extends ImportProvider>
null
if no valid source can be createdAbstractProviderSource.getSource()
public void dispose()
ImportSource
dispose
in interface ImportSource<P extends ImportProvider>
dispose
in class AbstractSource<P extends ImportProvider>
AbstractSource.dispose()
public void onActivate()
AbstractSource
onActivate
in interface ImportSource<P extends ImportProvider>
onActivate
in class AbstractSource<P extends ImportProvider>
AbstractSource.onActivate()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |