butler.client.filter
Class DFilterGroupPanel

java.lang.Object
  extended by butler.client.filter.DFilterGroupPanel

public class DFilterGroupPanel
extends java.lang.Object

A group of filter panels.

Author:
Fredrik Bertilsson

Field Summary
static int CLASSIC_LAYOUT
           
static int COMBO_LAYOUT
           
 
Constructor Summary
DFilterGroupPanel()
           
DFilterGroupPanel(Filter filter)
          Builds a group of filters based on the given filter.
 
Method Summary
 void addFilter(Filter filter)
          Creates and adds a filter panel, based on the given filter.
 void addPanel(DFilterPanel panel)
          Adds a filter panel.
 java.lang.String getCaption()
           
 Filter getFilter()
           
 java.lang.String getId()
           
 int getLayout()
           
 Orientation getOrientation()
           
 DFilterPanel getPanel(Filter filter)
           
 DFilterPanel getPanel(java.lang.String filterId)
           
 java.util.List getPanels()
           
 boolean getShowOperator()
           
 boolean isShowLabel()
          Labels should be created in a separate column.
static DFilterGroupPanel parse(org.dom4j.Element element)
           
static int parseLayout(org.dom4j.Element element)
           
 void registerRecordSelector(ForeignKeyFilter fk, DRecordSelector selector)
           
 void setCaption(java.lang.String caption)
           
 void setId(java.lang.String id)
           
 void setLayout(int layout)
           
 void setOrientation(Orientation o)
           
 void setShowLabel(boolean showLabel)
           
 void setShowOperator(boolean flag)
           
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSIC_LAYOUT

public static final int CLASSIC_LAYOUT
See Also:
Constant Field Values

COMBO_LAYOUT

public static final int COMBO_LAYOUT
See Also:
Constant Field Values
Constructor Detail

DFilterGroupPanel

public DFilterGroupPanel(Filter filter)
Builds a group of filters based on the given filter. Every leaf filter will be used.


DFilterGroupPanel

public DFilterGroupPanel()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

addPanel

public void addPanel(DFilterPanel panel)
Adds a filter panel.


addFilter

public void addFilter(Filter filter)
               throws java.lang.Exception
Creates and adds a filter panel, based on the given filter.

Throws:
java.lang.Exception

registerRecordSelector

public void registerRecordSelector(ForeignKeyFilter fk,
                                   DRecordSelector selector)

getPanels

public java.util.List getPanels()
                         throws java.lang.Exception
Throws:
java.lang.Exception

getPanel

public DFilterPanel getPanel(Filter filter)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getPanel

public DFilterPanel getPanel(java.lang.String filterId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

setOrientation

public void setOrientation(Orientation o)

getOrientation

public Orientation getOrientation()

getFilter

public Filter getFilter()

getShowOperator

public boolean getShowOperator()

setShowOperator

public void setShowOperator(boolean flag)

getLayout

public int getLayout()

setLayout

public void setLayout(int layout)

parse

public static DFilterGroupPanel parse(org.dom4j.Element element)
                               throws java.lang.Exception
Throws:
java.lang.Exception

toXML

public void toXML(org.xml.sax.ContentHandler handler)
           throws java.lang.Exception
Throws:
java.lang.Exception

parseLayout

public static int parseLayout(org.dom4j.Element element)

getCaption

public java.lang.String getCaption()
                            throws java.lang.Exception
Throws:
java.lang.Exception

setCaption

public void setCaption(java.lang.String caption)

isShowLabel

public boolean isShowLabel()
Labels should be created in a separate column.


setShowLabel

public void setShowLabel(boolean showLabel)