|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control org.eclipse.swt.widgets.Scrollable org.eclipse.swt.widgets.Composite org.sadun.swt.widgets.MapEditor
A class to view/edit a map object and optionally edit its values.
Nested Class Summary | |
static class |
MapEditor.TableItemChangeException
This exception can be raised by a TableItemChangeListener when the changed
value of a property is problematic. |
static interface |
MapEditor.TableItemChangeListener
Classes implementing this interface can be notified of user-driven changes to the the properties displayed in a MapEditor . |
Field Summary |
Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
Constructor Summary | |
MapEditor(org.eclipse.swt.widgets.Composite parent,
java.lang.String groupName)
|
|
MapEditor(org.eclipse.swt.widgets.Composite parent,
java.lang.String groupName,
java.util.Map properties)
|
|
MapEditor(org.eclipse.swt.widgets.Composite parent,
java.lang.String groupName,
java.util.Map properties,
boolean valuesEditable,
boolean listEditable)
Create a map editor component. |
Method Summary | |
void |
addTableItemChangeListener(MapEditor.TableItemChangeListener l)
Add a MapEditor.TableItemChangeListener to the listener set. |
java.util.Map |
getMap()
|
static void |
main(java.lang.String[] args)
|
static java.util.Properties |
open(org.eclipse.swt.widgets.Shell parent,
int x,
int y,
java.util.Properties properties)
|
static java.util.Properties |
open(org.eclipse.swt.widgets.Shell parent,
java.util.Properties properties)
|
void |
removeTableItemChangeListener(MapEditor.TableItemChangeListener l)
Remove a MapEditor.TableItemChangeListener from the listener set. |
void |
setListEditable(boolean editable)
Allow ore deny editing of property set - adding or deleting properties. |
void |
setProperties(java.util.Properties properties)
|
void |
setValueEditable(boolean editable)
Allow ore deny editing of property values. |
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, 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, getBorderWidth, 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, setEnabled, 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 MapEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String groupName, java.util.Map properties, boolean valuesEditable, boolean listEditable)
parent
- the SWT parentgroupName
- a descriptive name of the property set (e.g. "System Properties")valuesEditable
- if true the user can change values via the UIlistEditable
- if true the user can add or delete map via the UIpublic MapEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String groupName, java.util.Map properties)
public MapEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String groupName)
Method Detail |
public void setValueEditable(boolean editable)
editable
- if true property values will be editable.public void setListEditable(boolean editable)
editable
- if true property set will be editable.public void addTableItemChangeListener(MapEditor.TableItemChangeListener l)
MapEditor.TableItemChangeListener
to the listener set.
l
- the MapEditor.TableItemChangeListener
to add.public void removeTableItemChangeListener(MapEditor.TableItemChangeListener l)
MapEditor.TableItemChangeListener
from the listener set.
l
- the MapEditor.TableItemChangeListener
to remove.public java.util.Map getMap()
public void setProperties(java.util.Properties properties)
public static java.util.Properties open(org.eclipse.swt.widgets.Shell parent, int x, int y, java.util.Properties properties)
public static java.util.Properties open(org.eclipse.swt.widgets.Shell parent, java.util.Properties properties)
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |