|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.style.sld.editor.ImportFrom
net.refractions.udig.style.sld.editor.ImportSLD
public class ImportSLD
"ImportFrom" and SLD file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.refractions.udig.style.sld.editor.ImportFrom |
|---|
ImportFrom.PromptAndImport |
| Constructor Summary | |
|---|---|
ImportSLD()
|
|
| Method Summary | |
|---|---|
boolean |
canImport(java.lang.Object target)
Let the extention point perform any additional checks before bothering the users with a prompt. |
java.lang.String |
defaultName(java.lang.Object target)
Default name for provided target. |
java.lang.String[] |
getExtentions()
Called by getFilterExtentions (example "sld"). |
java.lang.String[] |
getFilterNames()
Override as required (example "Style Layer Descriptor document"). |
java.lang.Object |
importFrom(java.io.File file,
IProgressMonitor monitor)
Subclass should override to actually do something. |
java.lang.String |
prompt(java.lang.Object target)
Prompt to use for title (example: "Import from") |
| Methods inherited from class net.refractions.udig.style.sld.editor.ImportFrom |
|---|
addTo, getFilterExtentions, importFrom, op, promptFile, status |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportSLD()
| Method Detail |
|---|
public boolean canImport(java.lang.Object target)
ImportFrom
The extention point lets you specify the exact interface (or class)
required. This method returns true, but could be used
to perform a more indepth check of say a Layer's Schema to pervent
the export of a SimpleFeatureType with multiple Geometry attributes
being exported as a Shapefile.
canImport in class ImportFromtarget - Target to be considered for export
true if non null, subclass can override with additional testspublic java.lang.String defaultName(java.lang.Object target)
ImportFromShould make use of provided target's title if available. This will be combined with the first filter extention to form a valid filename.
defaultName in class ImportFrompublic java.lang.String prompt(java.lang.Object target)
ImportFrom
prompt in class ImportFrompublic java.lang.String[] getExtentions()
ImportFrom
getExtentions in class ImportFrom
public java.lang.Object importFrom(java.io.File file,
IProgressMonitor monitor)
throws java.lang.Exception
ImportFrom
importFrom in class ImportFromjava.lang.Exceptionpublic java.lang.String[] getFilterNames()
ImportFromCare should be taken to internationalization these.
getFilterNames in class ImportFrom
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||