butler.client.record
Class DRelatedTabbedPane

java.lang.Object
  extended by butler.client.record.DRelatedTabbedPane

public class DRelatedTabbedPane
extends java.lang.Object

Tabbed pane for editing related records.

Author:
Fredrik Bertilsson

Constructor Summary
DRelatedTabbedPane(Table tab)
          Constructs a tabbed panel for editing records from tables related to the given table.
 
Method Summary
 void addRecordEditor(ForeignKey fk, DRecordEditor editor)
           
 void addRecordListTable(ForeignKey fk, DRecordListTable recListTab)
           
 DRecordEditor createRecordEditor(ForeignKey fk)
          Creates a tab with a record editor to edit one record related by the given foreign key.
 DRecordEditor createRecordEditor(java.lang.String caption)
          Creates a tab with a record editor to edit parts of the main record.
 DRecordListTable createRecordListTable(ForeignKey fk)
          Creates a tab with a record list table to edit records related by the given foreign key.
 java.util.Map getPanels()
           
 Table getTable()
           
 java.util.List getTabList()
           
static DRelatedTabbedPane parse(org.dom4j.Element element, Table tab)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRelatedTabbedPane

public DRelatedTabbedPane(Table tab)
Constructs a tabbed panel for editing records from tables related to the given table.

Method Detail

getTable

public Table getTable()

createRecordListTable

public DRecordListTable createRecordListTable(ForeignKey fk)
                                       throws java.lang.Exception
Creates a tab with a record list table to edit records related by the given foreign key.

Throws:
java.lang.Exception

addRecordListTable

public void addRecordListTable(ForeignKey fk,
                               DRecordListTable recListTab)

createRecordEditor

public DRecordEditor createRecordEditor(ForeignKey fk)
                                 throws java.lang.Exception
Creates a tab with a record editor to edit one record related by the given foreign key.

Throws:
java.lang.Exception

createRecordEditor

public DRecordEditor createRecordEditor(java.lang.String caption)
                                 throws java.lang.Exception
Creates a tab with a record editor to edit parts of the main record.

Throws:
java.lang.Exception

addRecordEditor

public void addRecordEditor(ForeignKey fk,
                            DRecordEditor editor)

getPanels

public java.util.Map getPanels()

getTabList

public java.util.List getTabList()

parse

public static DRelatedTabbedPane parse(org.dom4j.Element element,
                                       Table tab)
                                throws java.lang.Exception
Throws:
java.lang.Exception