|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
de.mguennewig.pobjform.ReferenceModel
public final class ReferenceModel
The model for the combo box used by ReferenceElement's.
As PObject.toString() is nothing more then
AbstractType.format(Object) this just uses the PObject
instances.
NOTE: This model is not serializable!
| Field Summary | |
|---|---|
static java.lang.String |
NULL_VISUAL
|
| Constructor Summary | |
|---|---|
ReferenceModel(ReferenceElement element,
ClassDecl[] tableExprs,
Predicate[] filters)
|
|
| Method Summary | |
|---|---|
static PObject |
fromString(Container db,
ClassDecl cd,
java.lang.String v)
Returns a database object for the given value string. |
java.util.List<java.lang.Object> |
getDomainSet()
Returns the filtered domain set for the given tables and includes null if allowed by this form element. |
java.lang.Object |
getElementAt(int index)
|
java.lang.Object |
getSelectedItem()
|
int |
getSize()
|
boolean |
isGrouped()
|
void |
setGroupBy(Member designator,
boolean ascending)
|
void |
setRestriction(ClassDecl[] tableExprs,
Predicate[] filters)
|
void |
setSelectedItem(java.lang.Object anItem)
|
static java.lang.String |
toString(PObject obj)
Returns a visual string for the given object. |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, removeListDataListener |
| Field Detail |
|---|
public static final java.lang.String NULL_VISUAL
| Constructor Detail |
|---|
public ReferenceModel(ReferenceElement element,
ClassDecl[] tableExprs,
Predicate[] filters)
| Method Detail |
|---|
public java.util.List<java.lang.Object> getDomainSet()
null if allowed by this form element.
PObjReadError - if any database error occurs.public final boolean isGrouped()
public void setGroupBy(Member designator,
boolean ascending)
public void setRestriction(ClassDecl[] tableExprs,
Predicate[] filters)
public java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic void setSelectedItem(java.lang.Object anItem)
setSelectedItem in interface javax.swing.ComboBoxModel
public static PObject fromString(Container db,
ClassDecl cd,
java.lang.String v)
throws java.text.ParseException
java.text.ParseException - if the value string can not be parsed into a
database object.
PObjReadError - if any database error occurs.public static java.lang.String toString(PObject obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||