|
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.DisplayPanel
public class DisplayPanel
A Panel to display ActiveControls as views to fields of a single PersistentObject
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
view |
Constructor Summary | |
---|---|
DisplayPanel(org.eclipse.swt.widgets.Composite parent,
FieldDescriptor<? extends PersistentObject>[] fields,
int minCols,
int maxCols,
org.eclipse.jface.action.IAction... actions)
|
Method Summary | |
---|---|
void |
addField(ActiveControl ac)
Add a field to the panel |
void |
addFields(ActiveControl... activeControls)
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 |
contentsChanged(ActiveControl ac)
Contents of field has chsnged. |
java.util.List<ActiveControl> |
getControls()
Return all ActiveControls attached to this panel |
void |
invalidContents(ActiveControl field)
|
void |
removeSelectorListener(ActiveControlListener l)
Remove a listener from the list of SelectorListeners |
void |
setAutosave(boolean doSave)
Set autosave behaviour |
void |
setObject(PersistentObject po)
Set the Object to display |
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 DisplayPanel(org.eclipse.swt.widgets.Composite parent, FieldDescriptor<? extends PersistentObject>[] fields, int minCols, int maxCols, org.eclipse.jface.action.IAction... actions)
Method Detail |
---|
public void setObject(PersistentObject po)
po
- a PersistentObject that must have all fields defined, that are referenced by
ActiveControls of this Panelpublic void setAutosave(boolean doSave)
doSave
- if true: changed fields are written back to the database. false: No weiting occurspublic void addField(ActiveControl ac)
ac
- public void addFields(ActiveControl... activeControls)
activeControls
- public void contentsChanged(ActiveControl ac)
ActiveControlListener
contentsChanged
in interface ActiveControlListener
ac
- the field that changed or NULL: Any of the observed field(s) have changedpublic void invalidContents(ActiveControl field)
invalidContents
in interface ActiveControlListener
public void addSelectorListener(ActiveControlListener l)
l
- public void removeSelectorListener(ActiveControlListener l)
l
- public void titleClicked(ActiveControl field)
titleClicked
in interface ActiveControlListener
public java.util.List<ActiveControl> getControls()
|
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 |