org.salespointframework.desktop.formsheets
Class DataExchangeFormSheet.ListViewDataExchangeOption

java.lang.Object
  extended by org.salespointframework.desktop.formsheets.DataExchangeFormSheet.DataExchangeOption
      extended by org.salespointframework.desktop.formsheets.DataExchangeFormSheet.ListViewDataExchangeOption
Enclosing class:
DataExchangeFormSheet

public static class DataExchangeFormSheet.ListViewDataExchangeOption
extends DataExchangeFormSheet.DataExchangeOption

This option defines options for the JListView

Since:
4.0
Author:
Thomas Kissinger
See Also:
JListView

Field Summary
protected  boolean categorize
          display categories
protected  float cellRatio
          aspect ratio of cells
protected  Category defaultCategory
          Category to use for Categorie with null Category
protected  float initialCellSize
          initial cell size in slider
protected  float maximumCellSize
          maximum cell size in slider
protected  float minimumCellSize
          minimum cell size in slider
protected  JListView.ListViewOrientation orientation
          Orientation of Listview items
protected  javax.swing.ListCellRenderer renderer
          renderer to use for cell and separator rendering
protected  int seperatorThickness
          width, respectively height of separator
protected  boolean showSearch
          show search field flag
protected  boolean showSlider
          show slider flag
 
Fields inherited from class org.salespointframework.desktop.formsheets.DataExchangeFormSheet.DataExchangeOption
cmp, dbc, dbeg, showZeros
 
Constructor Summary
DataExchangeFormSheet.ListViewDataExchangeOption()
          default constructor
DataExchangeFormSheet.ListViewDataExchangeOption(java.util.Comparator cmp, boolean showZeros, DataBasketCondition dbc, boolean categorize, Category defaultCategory, DataBasketEntryGrouper dbeg, JListView.ListViewOrientation orientation, javax.swing.ListCellRenderer renderer, float minimumCellSize, float maximumCellSize, float initialCellSize, float cellRatio, int seperatorThickness, boolean showSlider, boolean showSearch)
          constructor
 
Method Summary
 DataExchangeFormSheet.DataExchangeOption copy()
          copy option
 float getCellRatio()
           
 Category getDefaultCategory()
           
 float getInitialCellSize()
           
 float getMaximumCellSize()
           
 float getMinimumCellSize()
           
 JListView.ListViewOrientation getOrientation()
           
 javax.swing.ListCellRenderer getRenderer()
           
 int getSeperatorThickness()
           
 boolean isCategorize()
           
 void setCategorize(boolean categorize)
           
 void setCellConstraints(float minimumCellSize, float maximumCellSize, float initialCellSize, float cellRatio)
          set cell constraints
 void setCellRatio(float cellRatio)
           
 void setDefaultCategory(Category defaultCategory)
           
 void setInitialCellSize(float initialCellSize)
           
 void setMaximumCellSize(float maximumCellSize)
           
 void setMinimumCellSize(float minimumCellSize)
           
 void setOrientation(JListView.ListViewOrientation orientation)
           
 void setRenderer(javax.swing.ListCellRenderer renderer)
           
 void setSeperatorThickness(int seperatorThickness)
           
 
Methods inherited from class org.salespointframework.desktop.formsheets.DataExchangeFormSheet.DataExchangeOption
getComparator, getDataBasketCondition, isShowZeros, setComparator, setDataBasketCondition, setShowZeros
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

protected javax.swing.ListCellRenderer renderer
renderer to use for cell and separator rendering


orientation

protected JListView.ListViewOrientation orientation
Orientation of Listview items


defaultCategory

protected Category defaultCategory
Category to use for Categorie with null Category

See Also:
Category

categorize

protected boolean categorize
display categories


minimumCellSize

protected float minimumCellSize
minimum cell size in slider


maximumCellSize

protected float maximumCellSize
maximum cell size in slider


initialCellSize

protected float initialCellSize
initial cell size in slider


cellRatio

protected float cellRatio
aspect ratio of cells


seperatorThickness

protected int seperatorThickness
width, respectively height of separator


showSlider

protected boolean showSlider
show slider flag


showSearch

protected boolean showSearch
show search field flag

Constructor Detail

DataExchangeFormSheet.ListViewDataExchangeOption

public DataExchangeFormSheet.ListViewDataExchangeOption()
default constructor


DataExchangeFormSheet.ListViewDataExchangeOption

public DataExchangeFormSheet.ListViewDataExchangeOption(java.util.Comparator cmp,
                                                        boolean showZeros,
                                                        DataBasketCondition dbc,
                                                        boolean categorize,
                                                        Category defaultCategory,
                                                        DataBasketEntryGrouper dbeg,
                                                        JListView.ListViewOrientation orientation,
                                                        javax.swing.ListCellRenderer renderer,
                                                        float minimumCellSize,
                                                        float maximumCellSize,
                                                        float initialCellSize,
                                                        float cellRatio,
                                                        int seperatorThickness,
                                                        boolean showSlider,
                                                        boolean showSearch)
constructor

Parameters:
cmp - DataExchangeFormSheet.DataExchangeOption.cmp
showZeros - DataExchangeFormSheet.DataExchangeOption.showZeros
dbc - DataExchangeFormSheet.DataExchangeOption.dbc
categorize - categorize
defaultCategory - defaultCategory
orientation - orientation
renderer - renderer
minimumCellSize - minimumCellSize
maximumCellSize - maximumCellSize
initialCellSize - initialCellSize
cellRatio - cellRatio
seperatorThickness - seperatorThickness
showSlider - showSlider
showSearch - showSearch
Method Detail

copy

public DataExchangeFormSheet.DataExchangeOption copy()
copy option

Specified by:
copy in class DataExchangeFormSheet.DataExchangeOption
Returns:

setCellConstraints

public void setCellConstraints(float minimumCellSize,
                               float maximumCellSize,
                               float initialCellSize,
                               float cellRatio)
set cell constraints

Parameters:
minimumCellSize - minimumCellSize
maximumCellSize - maximumCellSize
initialCellSize - initialCellSize
cellRatio - cellRatio
See Also:
JListView.setCellConstraints(float, float, float, float)

getMinimumCellSize

public float getMinimumCellSize()
Returns:
See Also:
minimumCellSize

setMinimumCellSize

public void setMinimumCellSize(float minimumCellSize)
Parameters:
minimumCellSize -
See Also:
minimumCellSize

getMaximumCellSize

public float getMaximumCellSize()
See Also:
maximumCellSize

setMaximumCellSize

public void setMaximumCellSize(float maximumCellSize)
Parameters:
maximumCellSize -
See Also:
maximumCellSize

getInitialCellSize

public float getInitialCellSize()
Returns:
See Also:
initialCellSize

setInitialCellSize

public void setInitialCellSize(float initialCellSize)
Parameters:
initialCellSize -
See Also:
initialCellSize

getCellRatio

public float getCellRatio()
Returns:
See Also:
cellRatio

setCellRatio

public void setCellRatio(float cellRatio)
Parameters:
cellRatio -
See Also:
cellRatio

getSeperatorThickness

public int getSeperatorThickness()
Returns:
See Also:
seperatorThickness

setSeperatorThickness

public void setSeperatorThickness(int seperatorThickness)
Parameters:
seperatorThickness -
See Also:
seperatorThickness

getRenderer

public javax.swing.ListCellRenderer getRenderer()
Returns:
See Also:
renderer

setRenderer

public void setRenderer(javax.swing.ListCellRenderer renderer)
Parameters:
renderer -
See Also:
renderer

getOrientation

public JListView.ListViewOrientation getOrientation()
Returns:
See Also:
orientation

setOrientation

public void setOrientation(JListView.ListViewOrientation orientation)
Parameters:
orientation -
See Also:
orientation

getDefaultCategory

public Category getDefaultCategory()
Returns:
See Also:
defaultCategory

setDefaultCategory

public void setDefaultCategory(Category defaultCategory)
Parameters:
defaultCategory -
See Also:
defaultCategory

isCategorize

public boolean isCategorize()
Returns:
See Also:
categorize

setCategorize

public void setCategorize(boolean categorize)
Parameters:
categorize -
See Also:
categorize