|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
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
ch.elexis.selectors.SelectorPanel
public class SelectorPanel
A Panel that can be used as a ControlField for a CommonViewer. Can take actions that are inserted on top right of the Panel
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
view |
Constructor Summary | |
---|---|
SelectorPanel(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.action.IAction... actions)
|
Method Summary | |
---|---|
void |
addActions(org.eclipse.jface.action.IAction... actions)
Add Actions to display in the uper right corner of the panel |
void |
addField(ActiveControl ac)
Add a field to the panel |
void |
addFields(ActiveControl... newControls)
Add a number of fields to the Panel |
void |
addSelectorListener(ActiveControlListener l)
Add a listener to the list of listeners that will be notified, if one of the fields has been changed |
void |
clearValues()
Clear all fields to their default "empty" value |
void |
contentsChanged(ActiveControl field)
From ActiveControlListener: Notify that the contents of a field has changed This will in turn notify the SelectorListeners attached to this panel |
java.util.List<ActiveControl> |
getControls()
Return all ActiveControls attached to this panel |
org.eclipse.swt.widgets.Composite |
getFieldParent()
|
java.util.HashMap<java.lang.String,java.lang.String> |
getValues()
Return the values of all fields. |
void |
invalidContents(ActiveControl field)
inform the user, that a field has invalid content |
void |
removeField(java.lang.String field)
Remove a field from the panel |
void |
removeSelectorListener(ActiveControlListener l)
Remove a listener from the list of SelectorListeners |
void |
setExclusive(boolean excl)
If set, writing in one field will clear all oder fields in the panel |
void |
setLock(boolean bLocked)
|
void |
titleClicked(ActiveControl field)
From ActiveControlListener: Notify that the user clicked the label of a field This will in turn notify the SelectorListeners attached to this panel |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectorPanel(org.eclipse.swt.widgets.Composite parent, org.eclipse.jface.action.IAction... actions)
Method Detail |
---|
public org.eclipse.swt.widgets.Composite getFieldParent()
public void setExclusive(boolean excl)
excl
- true if there can only one field with textpublic void addActions(org.eclipse.jface.action.IAction... actions)
actions
- public void addField(ActiveControl ac)
ac
- public void addFields(ActiveControl... newControls)
activeControls
- public void removeField(java.lang.String field)
field
- public void clearValues()
public java.util.HashMap<java.lang.String,java.lang.String> getValues()
public java.util.List<ActiveControl> getControls()
public void contentsChanged(ActiveControl field)
contentsChanged
in interface ActiveControlListener
field
- the field that changed or NULL: Any of the observed field(s) have changedpublic void addSelectorListener(ActiveControlListener l)
l
- public void removeSelectorListener(ActiveControlListener l)
l
- public void titleClicked(ActiveControl field)
titleClicked
in interface ActiveControlListener
public void invalidContents(ActiveControl field)
invalidContents
in interface ActiveControlListener
public void setLock(boolean bLocked)
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |