|
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.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
Constructor Summary | |
---|---|
SelectorPanel(Composite parent,
IAction... actions)
|
Method Summary | |
---|---|
void |
addActions(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 |
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectorPanel(Composite parent, IAction... actions)
Method Detail |
---|
public Composite getFieldParent()
public void setExclusive(boolean excl)
excl
- true if there can only one field with textpublic void addActions(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 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 |