|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbutler.client.record.DRecordEditor
public class DRecordEditor
Record editor that is used for editing one record.
Nested Class Summary | |
---|---|
static class |
DRecordEditor.FKColumn
|
static class |
DRecordEditor.ForeignKeyEditor
|
static class |
DRecordEditor.ManyToManyEditor
|
static class |
DRecordEditor.RelatedValue
|
Constructor Summary | |
---|---|
DRecordEditor()
|
|
DRecordEditor(Table tab)
Constructs a record editor for editing a record from the given table. |
Method Summary | |
---|---|
void |
addColumn(Column col)
Adds a column to edit. |
void |
addColumn(Column col,
DValueEditor editor)
|
void |
addColumn(Column col,
java.lang.String caption)
Adds a column to edit, with a custom caption. |
void |
addForeignKey(ForeignKey fk)
Adds a foreign key to edit. |
void |
addForeignKey(ForeignKey fk,
Column col)
Adds a foreign key to edit, using a combo box. |
void |
addForeignKeyEditor(DRecordEditor.ForeignKeyEditor fkEditor)
|
void |
addManyToManyEditor(DRecordEditor.ManyToManyEditor editor)
|
void |
addRelatedColumn(ForeignKey fk,
Column col)
|
void |
addRelatedValue(ForeignKey fk,
RecordFormatter format,
butler.util.LocalizedText caption)
|
DRecordLookup |
createRecordLookup()
Creates a lookup function for the column in the primary key. |
DButtonRow |
getButtonRow()
|
java.lang.String |
getCaption()
|
java.lang.String |
getCaption(Column col)
|
int |
getCols()
|
java.util.List |
getEditors()
|
Query |
getQuery()
|
DRecordSelector |
getRecordSelector()
|
Table |
getTable()
|
DValueEditor |
getValueEditor(Column col)
|
boolean |
isEditable(Column col)
|
boolean |
isShowLabels()
|
static DRecordEditor |
parse(org.dom4j.Element element)
|
void |
setButtonRow(DButtonRow d)
|
void |
setCaption(java.lang.String caption)
|
void |
setCols(int value)
|
void |
setEditable(Column col,
boolean flag)
|
void |
setQuery(Query query)
|
void |
setRecordSelector(DRecordSelector selector)
|
void |
setShowLabels(boolean showLabels)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DRecordEditor(Table tab)
public DRecordEditor()
Method Detail |
---|
public Table getTable()
public void addColumn(Column col) throws java.lang.Exception
java.lang.Exception
public void addColumn(Column col, java.lang.String caption) throws java.lang.Exception
java.lang.Exception
public void addColumn(Column col, DValueEditor editor) throws java.lang.Exception
java.lang.Exception
public void addForeignKey(ForeignKey fk) throws java.lang.Exception
java.lang.Exception
public void addForeignKeyEditor(DRecordEditor.ForeignKeyEditor fkEditor) throws java.lang.Exception
java.lang.Exception
public void addManyToManyEditor(DRecordEditor.ManyToManyEditor editor)
public void addForeignKey(ForeignKey fk, Column col) throws java.lang.Exception
java.lang.Exception
public void addRelatedColumn(ForeignKey fk, Column col) throws java.lang.Exception
java.lang.Exception
public void addRelatedValue(ForeignKey fk, RecordFormatter format, butler.util.LocalizedText caption) throws java.lang.Exception
java.lang.Exception
public void setEditable(Column col, boolean flag)
public boolean isEditable(Column col)
public java.util.List getEditors() throws java.lang.Exception
java.lang.Exception
public DValueEditor getValueEditor(Column col) throws java.lang.Exception
java.lang.Exception
public void setButtonRow(DButtonRow d)
public DButtonRow getButtonRow()
public DRecordSelector getRecordSelector()
public void setRecordSelector(DRecordSelector selector)
public DRecordLookup createRecordLookup() throws java.lang.Exception
java.lang.Exception
public int getCols()
public void setCols(int value)
public java.lang.String getCaption() throws java.lang.Exception
java.lang.Exception
public void setCaption(java.lang.String caption)
public java.lang.String getCaption(Column col) throws java.lang.Exception
java.lang.Exception
public static DRecordEditor parse(org.dom4j.Element element) throws java.lang.Exception
java.lang.Exception
public Query getQuery()
public void setQuery(Query query)
public boolean isShowLabels()
public void setShowLabels(boolean showLabels)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |