butler.client.form
Class DDetailForm

java.lang.Object
  extended by butler.client.form.DForm
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class butler.client.form.DForm
DForm.Parser
 
Constructor Summary
DDetailForm()
           
DDetailForm(Table tab)
          Constructs a detail form editing a record from the given table.
 
Method Summary
 DRelatedTabbedPane createTabbedPane()
          Creates a tabbed pane for editing related records.
 RecordAction getRecordAction(java.lang.String command)
           
 DRecordEditor getRecordEditor()
          Returns the record editor that is used for editing the main record.
 DRelatedTabbedPane getTabbedPane()
          Returns the tabbed pane, if exists.
 Table getTable()
           
 java.lang.Class getType()
           
 boolean isDeletable()
           
 boolean isEditable()
           
 boolean isInsertable()
           
static DDetailForm parse(org.dom4j.Element element)
           
 void setDeletable(boolean deletable)
           
 void setEditable(boolean editable)
           
 void setInsertable(boolean insertable)
           
 
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
 

Constructor Detail

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
Method Detail

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)