|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sale.FormSheet data.stdforms.TwoTableFormSheet
public class TwoTableFormSheet
A FormSheet that will display the contents of two data containers, a source and a destination, and will allow the user to move items between the two.
Source and destination are displayed in a tabular form. The data containers that are supported as source
or destination are: Catalog
, Stock
, DataBasket
. There will be two buttons that
allow to move items from the source into the destination table and vice-versa. If at least one of source
and destination is a CountingStock
there will also be an input line where the user can specify how
many items are to be moved. The actual moving will be implemented as sub-process of the process that
displays the FormSheet. The concrete sub-process implementations are provided by MoveStrategy
strategy objects.
A quite comprehensive set of create()
functions is provided to allow to easily create
TwoTableFormSheets by simply supplying some parameters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class sale.FormSheet |
---|
FormSheet.FormButton |
Field Summary | |
---|---|
static int |
DOWN
Constant indicating that the destination table is to be placed beneath the source table. |
static int |
LEFT
Constant indicating that the destination table is to be placed left of the source table. |
static int |
RIGHT
Constant indicating that the destination table is to be placed right of the source table. |
static int |
UP
Constant indicating that the destination table is to be placed above the source table. |
Fields inherited from class sale.FormSheet |
---|
BTNID_CANCEL, BTNID_OK, m_fCancelled |
Constructor Summary | |
---|---|
protected |
TwoTableFormSheet(String sCaption,
FormSheetContentCreator fscc,
UIGate uigGate,
MoveStrategy ms)
Create a new TwoTableFormSheet. |
Method Summary | |
---|---|
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
Catalog cDest,
DataBasket db,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<CatalogItem> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CCStrategy ccsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where source and destination are Catalogs. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
Catalog cDest,
DataBasket db,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where source and destination are Catalogs. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
CountingStock csDest,
DataBasket db,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<CatalogItem> cmpDest,
boolean fShowZeros,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CCSStrategy ccssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a CountingStock. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
CountingStock csDest,
DataBasket db,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a CountingStock. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
DataBasket dbDest,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<DataBasketEntry> cmpDest,
DataBasketEntryGrouper dbegDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CDBStrategy cdbsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
DataBasket dbDest,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<DataBasketEntry> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CDBStrategy cdbsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
DataBasket dbDest,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
StoringStock ssDest,
DataBasket db,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<StockItem> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CSSStrategy csssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a StoringStock. |
static TwoTableFormSheet |
create(String sCaption,
Catalog cSource,
StoringStock ssDest,
DataBasket db,
UIGate uigGate,
CSSStrategy csssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a Catalog and the destination is a StoringStock. |
static TwoTableFormSheet |
create(String sCaption,
CountingStock csSource,
CountingStock csDest,
DataBasket db,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<CatalogItem> cmpDest,
boolean fShowZerosSource,
boolean fShowZerosDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CSCSStrategy cscssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where source and destination are CountingStocks. |
static TwoTableFormSheet |
create(String sCaption,
CountingStock csSource,
CountingStock csDest,
DataBasket db,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where source and destination are CountingStocks. |
static TwoTableFormSheet |
create(String sCaption,
CountingStock csSource,
DataBasket dbDest,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<DataBasketEntry> cmpDest,
boolean fShowZeros,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CSDBStrategy csdbsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a CountingStock and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
CountingStock csSource,
DataBasket dbDest,
UIGate uigGate,
Comparator<CatalogItem> cmpSource,
Comparator<DataBasketEntry> cmpDest,
DataBasketEntryGrouper dbegDest,
boolean fShowZeros,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
CSDBStrategy csdbsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a CountingStock and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
CountingStock csSource,
DataBasket dbDest,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a CountingStocks and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
Catalog cDest,
UIGate uigGate,
Comparator<DataBasketEntry> cmpSource,
Comparator<CatalogItem> cmpDest,
DataBasketEntryGrouper dbegSource,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
DBCStrategy dbcsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a Catalog. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
Catalog cDest,
UIGate uigGate,
Comparator<DataBasketEntry> cmpSource,
Comparator<CatalogItem> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
DBCStrategy dbcsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a Catalog. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
Catalog cDest,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a Catalog. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
CountingStock csDest,
UIGate uigGate,
Comparator<DataBasketEntry> cmpSource,
Comparator<CatalogItem> cmpDest,
boolean fShowZeros,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
DBCSStrategy dbcssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a CountingStock. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
CountingStock csDest,
UIGate uigGate,
Comparator<DataBasketEntry> cmpSource,
Comparator<CatalogItem> cmpDest,
DataBasketEntryGrouper dbegSource,
boolean fShowZeros,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
DBCSStrategy dbcssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a CountingStock. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
CountingStock csDest,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a CountingStock. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
StoringStock ssDest,
UIGate uigGate,
Comparator<DataBasketEntry> cmpSource,
Comparator<StockItem> cmpDest,
DataBasketEntryGrouper dbegSource,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
DBSSStrategy dbsssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a StoringStock. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
StoringStock ssDest,
UIGate uigGate,
Comparator<DataBasketEntry> cmpSource,
Comparator<StockItem> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
DBSSStrategy dbsssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a StoringStock. |
static TwoTableFormSheet |
create(String sCaption,
DataBasket dbSource,
StoringStock ssDest,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a DataBasket and the destination is a StoringStock. |
static TwoTableFormSheet |
create(String sCaption,
StoringStock ssSource,
DataBasket dbDest,
UIGate uigGate,
Comparator<StockItem> cmpSource,
Comparator<DataBasketEntry> cmpDest,
DataBasketEntryGrouper dbegDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
SSDBStrategy ssdbsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a StoringStock and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
StoringStock ssSource,
DataBasket dbDest,
UIGate uigGate,
Comparator<StockItem> cmpSource,
Comparator<DataBasketEntry> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
SSDBStrategy ssdbsMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where the source is a StoringStock and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
StoringStock ssSource,
DataBasket dbDest,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where the source is a StoringStock and the destination is a DataBasket. |
static TwoTableFormSheet |
create(String sCaption,
StoringStock ssSource,
StoringStock ssDest,
DataBasket db,
UIGate uigGate,
Comparator<StockItem> cmpSource,
Comparator<StockItem> cmpDest,
TableEntryDescriptor tedSource,
TableEntryDescriptor tedDest,
SSSSStrategy sssssMoveStrategy,
int direction)
Create and return a new TwoTableFormSheet where source and destination are StoringStocks. |
static TwoTableFormSheet |
create(String sCaption,
StoringStock ssSource,
StoringStock ssDest,
DataBasket db,
UIGate uigGate,
int direction)
Create and return a new TwoTableFormSheet where source and destination are StoringStocks. |
DataBasket |
getDataBasket()
Get the currently attached DataBasket. |
UIGate |
getGate()
Get the gate at which the FormSheet is being displayed. |
Object |
getLeftSelectedRecord()
Get the record currently selected in the left table. |
JTable |
getLeftTable()
Get the left table. |
Object |
getLeftTableSource()
Get the source of the left table. |
Object |
getRightSelectedRecord()
Get the record currently selected in the right table. |
JTable |
getRightTable()
Get the right table. |
Object |
getRightTableSource()
Get the source of the right table. |
MoveStrategy |
getStrategy()
Get the strategy used when moving items between source and destination. |
void |
setGate(UIGate uigGate)
Set the gate at which to display the FormSheet. |
void |
setLeftTable(Catalog m_catalogSource,
TableEntryDescriptor ted)
Set the source of the left table. |
void |
setLeftTable(CountingStock m_csSource,
boolean fShowZeros,
TableEntryDescriptor ted)
Set the source of the left table. |
void |
setLeftTable(DataBasket m_dbSource,
DataBasketCondition dbc,
DataBasketEntryGrouper dbeg,
TableEntryDescriptor ted)
Set the source of the left table. |
void |
setLeftTable(StoringStock m_stSource,
TableEntryDescriptor ted)
Set the source of the left table. |
void |
setLeftTable(UserManager m_umManager,
TableEntryDescriptor ted)
Set the source of the left table. |
void |
setRightTable(Catalog m_catalogSource,
TableEntryDescriptor ted)
Set the source of the right table. |
void |
setRightTable(CountingStock m_csSource,
boolean fShowZeros,
TableEntryDescriptor ted)
Set the source of the right table. |
void |
setRightTable(DataBasket m_dbSource,
DataBasketCondition dbc,
DataBasketEntryGrouper dbeg,
TableEntryDescriptor ted)
Set the source of the right table. |
void |
setRightTable(StoringStock m_stSource,
TableEntryDescriptor ted)
Set the source of the right table. |
void |
setRightTable(UserManager m_umManager,
TableEntryDescriptor ted)
Set the source of the right table. |
void |
setStrategy(MoveStrategy ms)
Set the strategy to be used when moving items between source and destination. |
Methods inherited from class sale.FormSheet |
---|
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getProcess, getSalesPoint, isCancelled, ok, removeAllButtons, removeButton, setCaption, setComponent, setWaitResponse, toString, waitResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LEFT
public static final int RIGHT
public static final int UP
public static final int DOWN
Constructor Detail |
---|
protected TwoTableFormSheet(String sCaption, FormSheetContentCreator fscc, UIGate uigGate, MoveStrategy ms)
create()
functions provided.
sCaption
- the caption of the FormSheet.fscc
- the content creator to be used.uigGate
- the gate at which to display the FormSheet.ms
- the strategy to be used when moving items between source and destination.Method Detail |
---|
public Object getLeftSelectedRecord()
The actual class of the record depends on the concrete type of TableModel used. See the TableModel's
getRecord()
method for details.
public Object getRightSelectedRecord()
The actual class of the record depends on the concrete type of TableModel used. See the TableModel's
getRecord()
method for details.
public DataBasket getDataBasket()
public Object getLeftTableSource()
public Object getRightTableSource()
public void setLeftTable(Catalog m_catalogSource, TableEntryDescriptor ted)
Catalog
m_catalogSource
- the new datasource as Catalogted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setLeftTable(CountingStock m_csSource, boolean fShowZeros, TableEntryDescriptor ted)
CountingStock
m_csSource
- the new datasource as CoutingStockfShowZeros
- if true, lines informing about a zero amount of objects will be shown. Only necessary if prior TableModel is different from actual TableModel.ted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setLeftTable(StoringStock m_stSource, TableEntryDescriptor ted)
StoringStock
m_stSource
- the new datasource as StoringStockted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setLeftTable(UserManager m_umManager, TableEntryDescriptor ted)
UserManager
m_umManager
- the new datasource as UserManagerted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setLeftTable(DataBasket m_dbSource, DataBasketCondition dbc, DataBasketEntryGrouper dbeg, TableEntryDescriptor ted)
DataBasket
m_dbSource
- the new datasource as Databasketdbc
- a condition specifying the DataBasketEntries to be part of the model. Only necessary if prior TableModel is different from actual TableModel.dbeg
- dbeg a strategy that will group individual DataBasketEntries together for display. If
null
, no grouping will occur. Only necessary if prior TableModel is different from actual TableModel.ted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setRightTable(Catalog m_catalogSource, TableEntryDescriptor ted)
Catalog
m_catalogSource
- the new datasource as Catalogted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setRightTable(CountingStock m_csSource, boolean fShowZeros, TableEntryDescriptor ted)
CountingStock
m_csSource
- the new datasource as CoutingStockfShowZeros
- if true, lines informing about a zero amount of objects will be shown. Only necessary if prior TableModel is different from actual TableModel.ted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setRightTable(StoringStock m_stSource, TableEntryDescriptor ted)
StoringStock
m_stSource
- the new datasource as StoringStockted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setRightTable(DataBasket m_dbSource, DataBasketCondition dbc, DataBasketEntryGrouper dbeg, TableEntryDescriptor ted)
DataBasket
m_dbSource
- the new datasource as Databasketdbc
- a condition specifying the DataBasketEntries to be part of the model. Only necessary if prior TableModel is different from actual TableModel.dbeg
- dbeg a strategy that will group individual DataBasketEntries together for display. If
null
, no grouping will occur. Only necessary if prior TableModel is different from actual TableModel.ted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public void setRightTable(UserManager m_umManager, TableEntryDescriptor ted)
UserManager
m_umManager
- the new datasource as UserManagerted
- the new TableEntryDescriptor for the DataBasket. Only necessary if prior TableModel is different from actual TableModel.public JTable getLeftTable()
public JTable getRightTable()
public MoveStrategy getStrategy()
public void setStrategy(MoveStrategy ms)
MoveStrategy.canMoveToDest()
and MoveStrategy.canMoveToSource()
methods will
have no effect. Also, it is your responsibility to make sure, that the actual class of the strategy
matches the source/destination combination.
ms
- the new strategypublic UIGate getGate()
public void setGate(UIGate uigGate)
UIGate.setFormSheet(sale.FormSheet)
will be called with the FormSheet as a parameter.
public static TwoTableFormSheet create(String sCaption, CountingStock csSource, CountingStock csDest, DataBasket db, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<CatalogItem> cmpDest, boolean fShowZerosSource, boolean fShowZerosDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CSCSStrategy cscssMoveStrategy, int direction)
There will be an input line where the user can specify how many items to move with the next action.
sCaption
- the caption of the FormSheet.csSource
- the source Stock.csDest
- the destination Stock.db
- the DataBasket relative to which to perform all operations.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be the
keys of the individual items. If null
the ordering will be the natural ordering of the keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the keys of the individual items. If null
the ordering will be the natural ordering of the
keys.fShowZerosSource
- if false, source lines containing '0' in the "Count" column will be
hidden.fShowZerosDest
- if false, destination lines containing '0' in the "Count" column will be
hidden.tedSource
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the source table. If null
and csSource
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csSource.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.tedDest
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the destination table. If null
and csDest
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csDest.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.cscssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a CSCSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, CountingStock csSource, CountingStock csDest, DataBasket db, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing default values (i.e. null
or
false) for the missing parameters.
sCaption
- the caption of the FormSheet.csSource
- the source Stock.csDest
- the destination Stock.db
- the DataBasket relative to which to perform all operations.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, StoringStock ssSource, StoringStock ssDest, DataBasket db, UIGate uigGate, Comparator<StockItem> cmpSource, Comparator<StockItem> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, SSSSStrategy sssssMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.ssSource
- the source Stock.ssDest
- the destination Stock.db
- the DataBasket relative to which to perform all operations.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be the
individual items. If null
the ordering will be the natural ordering of the items.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the individual items. If null
the ordering will be the natural ordering of the items.tedSource
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the source table. If null
it defaults to a
DefaultStockItemTED
.tedDest
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the destination table. If null
it defaults to a
DefaultStockItemTED
.sssssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a SSSSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, StoringStock ssSource, StoringStock ssDest, DataBasket db, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.ssSource
- the source Stock.ssDest
- the destination Stock.db
- the DataBasket relative to which to perform all operations.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, CountingStock csSource, DataBasket dbDest, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<DataBasketEntry> cmpDest, DataBasketEntryGrouper dbegDest, boolean fShowZeros, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CSDBStrategy csdbsMoveStrategy, int direction)
There will be an input line where the user can specify how many items to move with the next action.
sCaption
- the caption of the FormSheet.csSource
- the source Stock.dbDest
- the destination DataBasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be the
keys of the individual items. If null
the ordering will be the natural ordering of the keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.dbegDest
- a DataBasketEntryGrouper
defining the representation of the DataBasketEntries at the
right JDataBasketTable.fShowZeros
- if false, source lines containing '0' in the "Count" column will be hidden.tedSource
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the source table. If null
and csSource
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csSource.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.tedDest
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. It will be used for the destination table. If null
it defaults to a
DefaultCountingStockDBETableEntryDescriptor
.csdbsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a CSDBStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, CountingStock csSource, DataBasket dbDest, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<DataBasketEntry> cmpDest, boolean fShowZeros, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CSDBStrategy csdbsMoveStrategy, int direction)
There will be an input line where the user can specify how many items to move with the next action.
sCaption
- the caption of the FormSheet.csSource
- the source Stock.dbDest
- the destination DataBasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be the
keys of the individual items. If null
the ordering will be the natural ordering of the keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.fShowZeros
- if false, source lines containing '0' in the "Count" column will be hidden.tedSource
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the source table. If null
and csSource
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csSource.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.tedDest
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. It will be used for the destination table. If null
it defaults to a
DefaultCountingStockDBETableEntryDescriptor
.csdbsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a CSDBStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, CountingStock csSource, DataBasket dbDest, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing default values (i.e. null
or
false) for the missing parameters.
sCaption
- the caption of the FormSheet.csSource
- the source Stock.dbDest
- the destination DataBasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, CountingStock csDest, UIGate uigGate, Comparator<DataBasketEntry> cmpSource, Comparator<CatalogItem> cmpDest, DataBasketEntryGrouper dbegSource, boolean fShowZeros, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, DBCSStrategy dbcssMoveStrategy, int direction)
There will be an input line where the user can specify how many items to move with the next action.
sCaption
- the caption of the FormSheet.dbSource
- the source DataBasket.csDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the keys of the individual items. If null
the ordering will be the natural ordering of the
keys.dbegSource
- a DataBasketEntryGrouper
defining the representation of the DataBasketEntries at the
left JDataBasketTable.fShowZeros
- if false, destination lines containing '0' in the "Count" column will be
hidden.tedSource
- a TableEntryDescriptor that can split individual
DataBasketEntries
into a table's cells. It will be used for the source table.
If null
it defaults to a DefaultCountingStockDBETableEntryDescriptor
.tedDest
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the destination table. If null
and csDest
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csDest.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.dbcssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a DBCSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, CountingStock csDest, UIGate uigGate, Comparator<DataBasketEntry> cmpSource, Comparator<CatalogItem> cmpDest, boolean fShowZeros, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, DBCSStrategy dbcssMoveStrategy, int direction)
There will be an input line where the user can specify how many items to move with the next action.
sCaption
- the caption of the FormSheet.dbSource
- the source DataBasket.csDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the keys of the individual items. If null
the ordering will be the natural ordering of the
keys.fShowZeros
- if false, destination lines containing '0' in the "Count" column will be
hidden.tedSource
- a TableEntryDescriptor that can split individual
DataBasketEntries
into a table's cells. It will be used for the source table.
If null
it defaults to a DefaultCountingStockDBETableEntryDescriptor
.tedDest
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the destination table. If null
and csDest
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csDest.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.dbcssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a DBCSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, CountingStock csDest, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing default values (i.e. null
or
false) for the missing parameters.
sCaption
- the caption of the FormSheet.dbSource
- the source DataBasket.csDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, StoringStock ssSource, DataBasket dbDest, UIGate uigGate, Comparator<StockItem> cmpSource, Comparator<DataBasketEntry> cmpDest, DataBasketEntryGrouper dbegDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, SSDBStrategy ssdbsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.ssSource
- the source Stock.dbDest
- the destination DataBasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be the
individual items. If null
the ordering will be the natural ordering of the items.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.dbegDest
- a DataBasketEntryGrouper
defining the representation of the DataBasketEntries at the
right JDataBasketTable.tedSource
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the source table. If null
it defaults to a
DefaultStockItemTED
.tedDest
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. It will be used for the destination table. If null
it defaults to a
DefaultStoringStockDBETableEntryDescriptor
.ssdbsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a SSDBStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, StoringStock ssSource, DataBasket dbDest, UIGate uigGate, Comparator<StockItem> cmpSource, Comparator<DataBasketEntry> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, SSDBStrategy ssdbsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.ssSource
- the source Stock.dbDest
- the destination DataBasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be the
individual items. If null
the ordering will be the natural ordering of the items.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.tedSource
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the source table. If null
it defaults to a
DefaultStockItemTED
.tedDest
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. It will be used for the destination table. If null
it defaults to a
DefaultStoringStockDBETableEntryDescriptor
.ssdbsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a SSDBStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, StoringStock ssSource, DataBasket dbDest, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.ssSource
- the source Stock.dbDest
- the destination DataBasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, StoringStock ssDest, UIGate uigGate, Comparator<DataBasketEntry> cmpSource, Comparator<StockItem> cmpDest, DataBasketEntryGrouper dbegSource, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, DBSSStrategy dbsssMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.dbSource
- the source DataBasket.ssDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the individual items. If null
the ordering will be the natural ordering of the items.dbegSource
- a DataBasketEntryGrouper
defining the representation of the DataBasketEntries at the
left JDataBasketTable.tedSource
- a TableEntryDescriptor that can split individual
DataBasketEntries
into a table's cells. It will be used for the source table. If
null
it defaults to a DefaultStoringStockDBETableEntryDescriptor
.tedDest
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the destination table. If null
it defaults to a
DefaultStockItemTED
.dbsssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a DBSSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, StoringStock ssDest, UIGate uigGate, Comparator<DataBasketEntry> cmpSource, Comparator<StockItem> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, DBSSStrategy dbsssMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.dbSource
- the source DataBasket.ssDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the individual items. If null
the ordering will be the natural ordering of the items.tedSource
- a TableEntryDescriptor that can split individual
DataBasketEntries
into a table's cells. It will be used for the source table. If
null
it defaults to a DefaultStoringStockDBETableEntryDescriptor
.tedDest
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the destination table. If null
it defaults to a
DefaultStockItemTED
.dbsssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a DBSSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, StoringStock ssDest, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.dbSource
- the source DataBasket.ssDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, Catalog cDest, DataBasket db, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<CatalogItem> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CCStrategy ccsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.cDest
- the destination Catalog.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.cmpDest
- a comparator defining the destination sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.tedSource
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the source table. If null
and cSource
is a Currency
it defaults to
a DefaultCurrencyItemTED
using cSource
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.tedDest
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the destination table. If null
and cDest
is a Currency
it defaults
to a DefaultCurrencyItemTED
using cDest
to format values. Otherwise, it defaults to
a DefaultCatalogItemTED
.ccsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
it defaults to a CCStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, Catalog cDest, DataBasket db, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.cDest
- the destination Catalog.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, DataBasket dbDest, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<DataBasketEntry> cmpDest, DataBasketEntryGrouper dbegDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CDBStrategy cdbsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.dbDest
- the destination Databasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.dbegDest
- a DataBasketEntryGrouper
defining the representation of the DataBasketEntries at the
right JDataBasketTable.tedSource
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the source table. If null
and cSource
is a Currency
it defaults to
a DefaultCurrencyItemTED
using cSource
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.tedDest
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. It will be used for the destination table. If null
it defaults to a
DefaultCatalogItemDBETableEntryDescriptor
.cdbsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
it defaults to a CDBStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, DataBasket dbDest, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<DataBasketEntry> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CDBStrategy cdbsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.dbDest
- the destination Databasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
DataBasketEntries. If null
the entries will be ordered first by their main and then by their
secondary keys.tedSource
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the source table. If null
and cSource
is a Currency
it defaults to
a DefaultCurrencyItemTED
using cSource
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.tedDest
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. It will be used for the destination table. If null
it defaults to a
DefaultCatalogItemDBETableEntryDescriptor
.cdbsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
it defaults to a CDBStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, DataBasket dbDest, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.dbDest
- the destination Databasket.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, Catalog cDest, UIGate uigGate, Comparator<DataBasketEntry> cmpSource, Comparator<CatalogItem> cmpDest, DataBasketEntryGrouper dbegSource, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, DBCStrategy dbcsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.dbSource
- the source Databasket.cDest
- the destination Catalog.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the destination sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.dbegSource
- a DataBasketEntryGrouper
defining the representation of the DataBasketEntries at the
left JDataBasketTable.tedSource
- a TableEntryDescriptor that can split individual
DataBasketEntries
into a table's cells. It will be used for the source table.
If null
it defaults to a DefaultCatalogItemDBETableEntryDescriptor
.tedDest
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the destination table. If null
and cDest
is a Currency
it defaults
to a DefaultCurrencyItemTED
using cDest
to format values. Otherwise, it defaults to
a DefaultCatalogItemTED
.dbcsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
it defaults to a DBCStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, Catalog cDest, UIGate uigGate, Comparator<DataBasketEntry> cmpSource, Comparator<CatalogItem> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, DBCStrategy dbcsMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.dbSource
- the source Databasket.cDest
- the destination Catalog.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the destination sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.tedSource
- a TableEntryDescriptor that can split individual
DataBasketEntries
into a table's cells. It will be used for the source table.
If null
it defaults to a DefaultCatalogItemDBETableEntryDescriptor
.tedDest
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the destination table. If null
and cDest
is a Currency
it defaults
to a DefaultCurrencyItemTED
using cDest
to format values. Otherwise, it defaults to
a DefaultCatalogItemTED
.dbcsMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
it defaults to a DBCStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, DataBasket dbSource, Catalog cDest, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.dbSource
- the source Databasket.cDest
- the destination Catalog.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, StoringStock ssDest, DataBasket db, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<StockItem> cmpDest, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CSSStrategy csssMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.ssDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the individual items. If null
the ordering will be the natural ordering of the items.tedSource
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the source table. If null
and cSource
is a Currency
it defaults to
a DefaultCurrencyItemTED
using cSource
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.tedDest
- a TableEntryDescriptor that can split individual StockItems
into a
table's cells. It will be used for the destination table. If null
it defaults to a
DefaultStockItemTED
.csssMoveStrategy
- the strategy to be used when moving items between source and destination.
Attention: Must not be null
!direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, StoringStock ssDest, DataBasket db, UIGate uigGate, CSSStrategy csssMoveStrategy, int direction)
Calls the appropriate fully parameterized function, passing null
for the missing
parameters.
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.ssDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.csssMoveStrategy
- the strategy to be used when moving items between source and destination.
Attention: Must not be null
!direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, CountingStock csDest, DataBasket db, UIGate uigGate, Comparator<CatalogItem> cmpSource, Comparator<CatalogItem> cmpDest, boolean fShowZeros, TableEntryDescriptor tedSource, TableEntryDescriptor tedDest, CCSStrategy ccssMoveStrategy, int direction)
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.csDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.cmpSource
- a comparator defining the source sorting order. The items to be compared are
CatalogItems
. If null
the items will be sorted according to their
natural ordering.cmpDest
- a comparator defining the destination sorting order. The objects to be compared will be
the keys of the individual items. If null
the ordering will be the natural ordering of the
keys.fShowZeros
- if false, destination lines containing '0' in the "Count" column will be
hidden.tedSource
- a TableEntryDescriptor that can split CatalogItems into a table's cells. It will be used
for the source table. If null
and cSource
is a Currency
it defaults to
a DefaultCurrencyItemTED
using cSource
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.tedDest
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. It will be
used for the destination table. If null
and csDest
is a MoneyBag
it
defaults to a DefaultMoneyBagItemTED
using csDest.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.ccssMoveStrategy
- the strategy to be used when moving items between source and destination. If
null
, defaults to a CCSStrategy
object.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.public static TwoTableFormSheet create(String sCaption, Catalog cSource, CountingStock csDest, DataBasket db, UIGate uigGate, int direction)
Calls the appropriate fully parameterized function, passing default values (i.e. null
or
false) for the missing parameters.
sCaption
- the caption of the FormSheet.cSource
- the source Catalog.csDest
- the destination Stock.uigGate
- the Gate at which the FormSheet will be displayed. If this is null
it must be
set
before actually using the FormSheet.direction
- the direction in which the move operation (from source to destination) should be performed
within the gui. It can be either RIGHT
, LEFT
, DOWN
or UP
.
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |