|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectComposite
ch.elexis.selectors.DisplayPanel
public class DisplayPanel
A Panel to display ActiveControls as views to fields of a single PersistentObject
Constructor Summary | |
---|---|
DisplayPanel(Composite parent,
FieldDescriptor<? extends PersistentObject>[] fields,
int minCols,
int maxCols,
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisplayPanel(Composite parent, FieldDescriptor<? extends PersistentObject>[] fields, int minCols, int maxCols, 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 API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |