|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uky.rch.ept.data.filesystem.FileSystemAddressSelector
Implementation of IAddressSelector for the
filesystem driver.
| Field Summary |
| Fields inherited from interface edu.uky.rch.ept.data.ui.IAddressSelector |
CREATE, OPEN, SAVE |
| Constructor Summary | |
FileSystemAddressSelector()
|
|
| Method Summary | |
void |
addAddressListener(IAddressListener listener)
Add an address listener to this selector. |
protected void |
fireListeners()
|
String |
getAddress()
Get the address for this selector. |
org.eclipse.swt.widgets.Control |
getControl()
Get the already-created GUI control. |
int |
getExistenceMode()
Get the existence mode for this selector. |
String |
getPath()
|
String |
getRoot()
Get the relative-mode root for this selector. |
boolean |
hasAddress()
Determine whether the user has selected a valid address. |
boolean |
isDirectories()
Determine whether this selector is configured to select files or directories. |
boolean |
isRelative()
Determine whether this selector is in relative mode. |
org.eclipse.swt.widgets.Control |
makeControl(org.eclipse.swt.widgets.Composite parent)
Create a GUI control for this selector. |
void |
removeAddressListener(IAddressListener listener)
Remove the specified address listener to this selector. |
void |
setAbsolute()
Set this address selector to absolute mode. |
void |
setDirectories(boolean dir)
Configure this selector to allow selection of files or directories. |
void |
setExistenceMode(int mode)
Set the existence mode for this selector. |
void |
setRelative(String root)
Set this address selector to relative mode with the specified root. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileSystemAddressSelector()
| Method Detail |
public void setRelative(String root)
throws MalformedAddressException
IAddressSelectorIAddressSelector.getAddress() returns relative paths. Changing
between relative and absolute modes clears any address the user had
previously selected.
setRelative in interface IAddressSelectorroot - the data layer address relative to which the user selects
addresses. If it does not end in IDataConstants.SEP_MAJOR,
that string is appended.
MalformedAddressException - if root is not an
absolute data layer address with the correct protocol identifier.public void setAbsolute()
IAddressSelectorIAddressSelector.getAddress() returns
absolute data layer addresses. Changing between relative and absolute
modes clears any address the user had previously selected.
setAbsolute in interface IAddressSelectorpublic void setDirectories(boolean dir)
IAddressSelector
setDirectories in interface IAddressSelectordir - if true, configure this selector to allow the selection of
directories only. If false, allow the selection of non-directories
only.public org.eclipse.swt.widgets.Control getControl()
IAddressSelector
getControl in interface IAddressSelectorIAddressSelector.makeControl(Composite),
or null if makeControl has not yet been called.public org.eclipse.swt.widgets.Control makeControl(org.eclipse.swt.widgets.Composite parent)
IAddressSelector
makeControl in interface IAddressSelectorparent - the parent for the control.
public boolean hasAddress()
IAddressSelector
hasAddress in interface IAddressSelectorpublic String getPath()
public String getAddress()
IAddressSelectornull if no
valid address is selected (i.e., if IAddressSelector.hasAddress() would return
false. If the selector is in relative mode, returns a relative address
that may be appended to the result of IAddressSelector.getRoot() to obtain an
absolute data layer address. If the selector is in absolute mode,
returns an absolute data layer address.
getAddress in interface IAddressSelectornull if none
is selected.public void addAddressListener(IAddressListener listener)
IAddressSelectorIAddressListener.addressChanged(IAddressSelector) method is
called.
addAddressListener in interface IAddressSelectorlistener - the listener to add to this selector.public void removeAddressListener(IAddressListener listener)
IAddressSelector
removeAddressListener in interface IAddressSelectorlistener - the listener to remove from this selector.public String getRoot()
IAddressSelector
getRoot in interface IAddressSelectornull.public boolean isDirectories()
IAddressSelector
isDirectories in interface IAddressSelectorIAddressSelector.setDirectories(boolean)public boolean isRelative()
IAddressSelector
isRelative in interface IAddressSelectorpublic void setExistenceMode(int mode)
IAddressSelector
setExistenceMode in interface IAddressSelectormode - one of the constants IAddressSelector.OPEN, IAddressSelector.SAVE, or
IAddressSelector.CREATE.public int getExistenceMode()
IAddressSelector
getExistenceMode in interface IAddressSelectorIAddressSelector.OPEN, IAddressSelector.SAVE, or IAddressSelector.CREATE.IAddressSelector.setExistenceMode(int)protected void fireListeners()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||