|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
edu.uky.rch.ept.data.ui.GeneralAddressSelector
General address selector providing access to all data source driver address
selectors. Presents the user with a combo box for selecting the driver
(disabled in relative mode), and a pane which toggles between the various
address selectors, depending on the selected driver.
Note that the makeControl(Composite) method should not
be called, and will throw an exception.
IAddressSelector| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
handle |
| Fields inherited from interface edu.uky.rch.ept.data.ui.IAddressSelector |
CREATE, OPEN, SAVE |
| Constructor Summary | |
GeneralAddressSelector(org.eclipse.swt.widgets.Composite parent)
Create a new general address selector with the specified parent. |
|
| Method Summary | |
void |
addAddressListener(IAddressListener listener)
Add an address listener to this selector. |
void |
addressChanged(IAddressSelector source)
Callback for notification of changes in an address selector's selected address. |
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 |
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)
Unimplemented method. |
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 |
setEnabled(boolean enabled)
|
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 org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GeneralAddressSelector(org.eclipse.swt.widgets.Composite parent)
makeControl(Composite)
method.
parent - a widget which will be the parent of the created instance.
Must not be null.| Method Detail |
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 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 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 boolean isRelative()
IAddressSelector
isRelative in interface IAddressSelectorpublic String getRoot()
IAddressSelector
getRoot in interface IAddressSelectornull.public 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 boolean isDirectories()
IAddressSelector
isDirectories in interface IAddressSelectorIAddressSelector.setDirectories(boolean)public org.eclipse.swt.widgets.Control makeControl(org.eclipse.swt.widgets.Composite parent)
GeneralAddressSelector(Composite)
constructor instead.
makeControl in interface IAddressSelectorparent - the parent for the control.
IllegalStateException - always.IAddressSelector.makeControl(org.eclipse.swt.widgets.Composite)public org.eclipse.swt.widgets.Control getControl()
IAddressSelector
getControl in interface IAddressSelectorIAddressSelector.makeControl(Composite),
or null if makeControl has not yet been called.public boolean hasAddress()
IAddressSelector
hasAddress in interface IAddressSelectorpublic void addressChanged(IAddressSelector source)
IAddressListener
addressChanged in interface IAddressListenersource - the address selector whose change fired this event.public 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)public void setEnabled(boolean enabled)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||