butler.client.form
Class DDetailForm
java.lang.Object
butler.client.form.DForm
butler.client.form.DDetailForm
public class DDetailForm
- extends DForm
Detail form for editing one record and its related
records. Related records are edited in a tabbed pane.
If the primary key for the main table only contains
one column, it can be used for finding the record
that should be edited.
- Author:
- Fredrik Bertilsson
- See Also:
- Forms DTD
Methods inherited from class butler.client.form.DForm |
addAction, addMenu, createMenuItem, getAction, getActions, getCaption, getChildFormId, getChildren, getHelp, getId, getMenuList, getNativeInfo, getParent, getSiblingFormId, getStatusBar, getTitle, parseForm, parseForm, registerParser, setCaption, setCaption, setHelp, setHelp, setId, setNativeInfo, setParent, setStatusBar, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDetailForm
public DDetailForm()
DDetailForm
public DDetailForm(Table tab)
throws java.lang.Exception
- Constructs a detail form editing a record
from the given table.
- Throws:
java.lang.Exception
getTable
public Table getTable()
createTabbedPane
public DRelatedTabbedPane createTabbedPane()
- Creates a tabbed pane for editing related records.
getTabbedPane
public DRelatedTabbedPane getTabbedPane()
- Returns the tabbed pane, if exists.
getRecordEditor
public DRecordEditor getRecordEditor()
throws java.lang.Exception
- Returns the record editor that is used for
editing the main record.
- Throws:
java.lang.Exception
getType
public java.lang.Class getType()
getRecordAction
public RecordAction getRecordAction(java.lang.String command)
parse
public static DDetailForm parse(org.dom4j.Element element)
throws java.lang.Exception
- Throws:
java.lang.Exception
isDeletable
public boolean isDeletable()
setDeletable
public void setDeletable(boolean deletable)
isInsertable
public boolean isInsertable()
setInsertable
public void setInsertable(boolean insertable)
isEditable
public boolean isEditable()
setEditable
public void setEditable(boolean editable)