|
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.SingleTableFormSheet
public class SingleTableFormSheet
A FormSheet displaying the contents of a Catalog
, Stock
or DataBasket
.
The FormSheet will comprise one table that renders the contents of the container to be displayed.
Additionally, there can be to extra buttons in the FormSheet's button bar that can be used to add or
remove records to/from the container. The actions linked to these buttons will be represented as
sub-processes to the process which displayed the FormSheet. The actual sub-process will be created by a
strategy object
.
SingleTableFormSheets assume to be displayed at a user interface gate
. However, if you
do not want to add editing capabilities, you may set this parameter to null
and use the
FormSheet as you would any other FormSheet. If you need editing capabilities, you must set the FormSheet at
a UIGate.
Various create()
methods are offered that cover the entire spectrum of possible
SingleTableFormSheets. All you need to do is select the create()
method that fits your purpose
and use it in your application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class sale.FormSheet |
---|
FormSheet.FormButton |
Field Summary | |
---|---|
static int |
BTNID_ADD
The button id that is used for the "Add" button. |
static int |
BTNID_REMOVE
The button id that is used for the "Remove" button. |
Fields inherited from class sale.FormSheet |
---|
BTNID_CANCEL, BTNID_OK, m_fCancelled |
Constructor Summary | |
---|---|
protected |
SingleTableFormSheet(String sCaption,
UIGate uigGate,
FormSheetContentCreator fscc)
Create a new SingleTableFormSheet. |
Method Summary | |
---|---|
void |
addAddButton(EditButtonStrategy ebsAdd)
Add to the FormSheet a button that will allow the user to add records to the container being displayed. |
void |
addEditingButtons(EditButtonStrategy ebsAdd,
EditButtonStrategy ebsRemove)
Convenience method. |
void |
addRemoveButton(EditButtonStrategy ebsRemove)
Add to the FormSheet a button that will allow the user to remove the currently selected record from the container being displayed. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
Comparator<CatalogItem> cmp)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
Comparator<CatalogItem> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
DataBasket db)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
DataBasket db,
Comparator<CatalogItem> cmp)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
DataBasket db,
Comparator<CatalogItem> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
DataBasket db,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
Catalog c,
UIGate uigGate,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a Catalog. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
boolean fShowZeros)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
boolean fShowZeros,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
Comparator<CatalogItem> cmp)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
Comparator<CatalogItem> cmp,
boolean fShowZeros)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
Comparator<CatalogItem> cmp,
boolean fShowZeros,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
Comparator<CatalogItem> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
boolean fShowZeros)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
boolean fShowZeros,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
Comparator<CatalogItem> cmp)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
Comparator<CatalogItem> cmp,
boolean fShowZeros)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
Comparator<CatalogItem> cmp,
boolean fShowZeros,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
Comparator<CatalogItem> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
DataBasket db,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
CountingStock cs,
UIGate uigGate,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a CountingStock. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
Comparator<DataBasketEntry> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
DataBasketCondition dbc,
Comparator<DataBasketEntry> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
DataBasketCondition dbc,
DataBasketEntryGrouper dbeg,
Comparator<DataBasketEntry> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
DataBasketCondition dbc,
DataBasketEntryGrouper dbeg,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
DataBasketCondition dbc,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
DataBasketEntryGrouper dbeg,
Comparator<DataBasketEntry> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
DataBasketEntryGrouper dbeg,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
DataBasket db,
UIGate uigGate,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a DataBasket. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
Comparator<StockItem> cmp)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
Comparator<StockItem> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
DataBasket db)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
DataBasket db,
Comparator<StockItem> cmp)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
DataBasket db,
Comparator<StockItem> cmp,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
DataBasket db,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
static SingleTableFormSheet |
create(String sCaption,
StoringStock ss,
UIGate uigGate,
TableEntryDescriptor ted)
Create and return a new SingleTableFormSheet that will display the contents of a StoringStock. |
DataBasket |
getDataBasket()
Get the currently attached DataBasket. |
UIGate |
getGate()
Get the Gate this FormSheet is currently being displayed at. |
Object |
getSelectedRecord()
Get the record currently selected. |
JTable |
getTable()
Get the table. |
Object |
getTableSource()
Get the table's source. |
void |
removeEditButtons()
Convenience method for removing the "Add" and the "Remove" button. |
void |
setGate(UIGate uigGate)
Set the gate at which to display the FormSheet. |
void |
setTableModel(AbstractTableModel tm)
Changes the TableModel of a table. |
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 BTNID_ADD
public static final int BTNID_REMOVE
Constructor Detail |
---|
protected SingleTableFormSheet(String sCaption, UIGate uigGate, FormSheetContentCreator fscc)
FormSheet.waitResponse()
" property will default
to true.
Instead of calling this method, call one of the create()
methods provided.
sCaption
- the FormSheet's caption.uigGate
- the Gate at which the FormSheet is displayed.fscc
- the content creator to be used to create the FormSheet's contents.Method Detail |
---|
public void setGate(UIGate uigGate)
uigGate
- the new Gate.UIGate.setFormSheet(sale.FormSheet)
public UIGate getGate()
public Object getSelectedRecord()
The actual class of the record depends on the concrete type of
TableModel used. See the TableModel's getRecord()
method for
details. To find out, which TableModel is used by your specific instance
of SingleTableFormSheet
refer to the documentation of the
create()
method you used to instantiate it.
public DataBasket getDataBasket()
public Object getTableSource()
public JTable getTable()
public void setTableModel(AbstractTableModel tm)
TableModel
of a table.
tm
- the new TableModelpublic void addEditingButtons(EditButtonStrategy ebsAdd, EditButtonStrategy ebsRemove)
addAddButton
(ebsAdd);addRemoveButton
(ebsRemove);
This method must be called from within a content creator if you need serializability.
public void addAddButton(EditButtonStrategy ebsAdd)
The button will by default have a caption of "Add" and a button id of BTNID_ADD
.
The button's action will trigger the sub-process defined by ebsAdd
.
This method must be called from within a content creator if you need serializability.
ebsAdd
- a strategy defining the sub-process to be used for adding a record. For a
SingleTableFormSheet displaying a Catalog, AbstractAddCatalogItemStrategy
is already part of the
Framework.public void addRemoveButton(EditButtonStrategy ebsRemove)
The button will by default have a caption of "Remove" and a button id of
BTNID_REMOVE
. The button's action will trigger the sub-process defined by
ebsRemove
.
This method must be called from within a content creator if you need serializability.
ebsRemove
- a strategy defining the sub-process to be used for removing a record. For a
SingleTableFormSheet displaying a Catalog, DefaultRemoveCatalogItemStrategy
is already part of
the Framework.public void removeEditButtons()
public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the CatalogItems. If c
is a Currency
,
the TableEntryDescriptor
defaults to a DefaultCurrencyItemTED
using c
to
format values. Otherwise, it defaults to a DefaultCatalogItemTED
.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, TableEntryDescriptor ted)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the CatalogItems.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.ted
- a TableEntryDescriptor that can split individual CatalogItems into a table's cells. Must not
be null
.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, Comparator<CatalogItem> cmp)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
The DataBasket
used to determine visibility will default to null
. If
c
is a Currency
, the TableEntryDescriptor
defaults to a
DefaultCurrencyItemTED
using c
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the natural ordering of the CatalogItems will be followed.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, Comparator<CatalogItem> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
The DataBasket
used to determine visibility will default to null
.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the natural ordering of the CatalogItems will be followed.ted
- a TableEntryDescriptor that can split individual CatalogItems into a table's cells. Must not
be null
.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, DataBasket db)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
The sorting order defaults to the natural ordering of the CatalogItems. If c
is a
Currency
, the TableEntryDescriptor
defaults to a DefaultCurrencyItemTED
using
c
to format values. Otherwise, it defaults to a DefaultCatalogItemTED
.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, DataBasket db, TableEntryDescriptor ted)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
The sorting order defaults to the natural ordering of the CatalogItems.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.ted
- a TableEntryDescriptor that can split individual CatalogItems into a table's cells. Must not
be null
.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, DataBasket db, Comparator<CatalogItem> cmp)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
If c
is a Currency
, the TableEntryDescriptor
defaults to a
DefaultCurrencyItemTED
using c
to format values. Otherwise, it defaults to a
DefaultCatalogItemTED
.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the natural ordering of the CatalogItems will be followed.public static SingleTableFormSheet create(String sCaption, Catalog c, UIGate uigGate, DataBasket db, Comparator<CatalogItem> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JCatalogTable
, the individual records are
CatalogItems
.
sCaption
- the caption of the new FormSheet.c
- the Catalog whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the natural ordering of the CatalogItems will be followed.ted
- a TableEntryDescriptor that can split individual CatalogItems into a table's cells. Must not
be null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the keys. Lines containing '0' in the "Count" column
will by default be hidden. If cs
is a MoneyBag
, the TableEntryDescriptor
defaults to a DefaultMoneyBagItemTED
using cs.getCatalog()
to format values.
Otherwise, it defaults to a DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the keys. Lines containing '0' in the "Count" column
will by default be hidden.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, boolean fShowZeros)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the keys. If cs
is a MoneyBag
, the
TableEntryDescriptor
defaults to a DefaultMoneyBagItemTED
using
cs.getCatalog()
to format values. Otherwise, it defaults to a
DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, boolean fShowZeros, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the keys.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, Comparator<CatalogItem> cmp)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
. Lines
containing '0' in the "Count" column will by default be hidden. If cs
is a
MoneyBag
, the TableEntryDescriptor
defaults to a DefaultMoneyBagItemTED
using
cs.getCatalog()
to format values. Otherwise, it defaults to a
DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, Comparator<CatalogItem> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
. Lines
containing '0' in the "Count" column will by default be hidden.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, Comparator<CatalogItem> cmp, boolean fShowZeros)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
. If
cs
is a MoneyBag
, the TableEntryDescriptor
defaults to a
DefaultMoneyBagItemTED
using cs.getCatalog()
to format values. Otherwise, it
defaults to a DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, Comparator<CatalogItem> cmp, boolean fShowZeros, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The DataBasket
used to determine visibility will default to null
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The sorting order defaults to the natural ordering of the keys. Lines containing '0' in the
"Count" column will by default be hidden. If cs
is a MoneyBag
, the
TableEntryDescriptor
defaults to a DefaultMoneyBagItemTED
using
cs.getCatalog()
to format values. Otherwise, it defaults to a
DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The sorting order defaults to the natural ordering of the keys. Lines containing '0' in the "Count" column will by default be hidden.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, boolean fShowZeros)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The sorting order defaults to the natural ordering of the keys. If cs
is a
MoneyBag
, the TableEntryDescriptor
defaults to a DefaultMoneyBagItemTED
using
cs.getCatalog()
to format values. Otherwise, it defaults to a
DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, boolean fShowZeros, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
The sorting order defaults to the natural ordering of the keys.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, Comparator<CatalogItem> cmp)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
Lines containing '0' in the "Count" column will by default be hidden. If cs
is
a MoneyBag
, the TableEntryDescriptor
defaults to a DefaultMoneyBagItemTED
using
cs.getCatalog()
to format values. Otherwise, it defaults to a
DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, Comparator<CatalogItem> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
Lines containing '0' in the "Count" column will by default be hidden.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, Comparator<CatalogItem> cmp, boolean fShowZeros)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
If cs
is a MoneyBag
, the TableEntryDescriptor
defaults to a
DefaultMoneyBagItemTED
using cs.getCatalog()
to format values. Otherwise, it
defaults to a DefaultCountingStockItemTED
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.public static SingleTableFormSheet create(String sCaption, CountingStock cs, UIGate uigGate, DataBasket db, Comparator<CatalogItem> cmp, boolean fShowZeros, TableEntryDescriptor ted)
The FormSheet will contain a JCountingStockTable
, the individual records are
CountingStockTableModel records
.
sCaption
- the caption of the new FormSheet.cs
- the CountingStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the records will be ordered by their keys.fShowZeros
- if false, lines containing a '0' in the "Count" field will be hidden.ted
- a TableEntryDescriptor that can split individual
CountingStockTableModel records
into a table's cells. Must not be
null
.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the StockItems. The TableEntryDescriptor
defaults to a
DefaultStockItemTED
.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, TableEntryDescriptor ted)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The DataBasket
used to determine visibility will default to null
, the sorting
order defaults to the natural ordering of the StockItems.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.ted
- a TableEntryDescriptor that can split individual StockItems
into a table's
cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, Comparator<StockItem> cmp)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The DataBasket
used to determine visibility will default to null
. The
TableEntryDescriptor
defaults to a DefaultStockItemTED
.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the natural order of the StockItems will be applied.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, Comparator<StockItem> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The DataBasket
used to determine visibility will default to null
.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
the natural order of the StockItems will be applied.ted
- a TableEntryDescriptor that can split individual StockItems
into a table's
cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, DataBasket db)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The sorting order defaults to the natural ordering of the StockItems. The TableEntryDescriptor
defaults to a DefaultStockItemTED
.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, DataBasket db, TableEntryDescriptor ted)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The sorting order defaults to the natural ordering of the StockItems.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.ted
- a TableEntryDescriptor that can split individual StockItems
into a table's
cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, DataBasket db, Comparator<StockItem> cmp)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
The TableEntryDescriptor
defaults to a DefaultStockItemTED
.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the natural order of the StockItems will be applied.public static SingleTableFormSheet create(String sCaption, StoringStock ss, UIGate uigGate, DataBasket db, Comparator<StockItem> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JStoringStockTable
, the individual records are
StockItems
.
sCaption
- the caption of the new FormSheet.ss
- the StoringStock whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.db
- the DataBasket that is used to determine visibility of items.cmp
- a comparator defining the order in which to display the individual items. If null
the natural order of the StockItems will be applied.ted
- a TableEntryDescriptor that can split individual StockItems
into a table's
cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default is to show all entries and apply no grouping. The default sorting order sorts entries by their main keys and then by their secondary keys.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, Comparator<DataBasketEntry> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default is to show all entries and apply no grouping.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.cmp
- a comparator defining the order in which to display the individual items. If null
entries will be sorted first by their main and then by their secondary keys.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, DataBasketEntryGrouper dbeg, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default is to show all entries. The default sorting order sorts entries by their main keys and then by their secondary keys.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.dbeg
- a grouper that can be used to combine several entries into one for display.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, DataBasketEntryGrouper dbeg, Comparator<DataBasketEntry> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default is to show all entries.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.dbeg
- a grouper that can be used to combine several entries into one for display.cmp
- a comparator defining the order in which to display the individual items. If null
entries will be sorted first by their main and then by their secondary keys.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, DataBasketCondition dbc, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default is to apply no grouping. The default sorting order sorts entries by their main keys and then by their secondary keys.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.dbc
- a condition specifying the entries to be displayed.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, DataBasketCondition dbc, Comparator<DataBasketEntry> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default is to apply no grouping.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.dbc
- a condition specifying the entries to be displayed.cmp
- a comparator defining the order in which to display the individual items. If null
entries will be sorted first by their main and then by their secondary keys.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, DataBasketCondition dbc, DataBasketEntryGrouper dbeg, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
The default sorting order sorts entries by their main keys and then by their secondary keys.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.dbc
- a condition specifying the entries to be displayed.dbeg
- a grouper that can be used to combine several entries into one for display.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.public static SingleTableFormSheet create(String sCaption, DataBasket db, UIGate uigGate, DataBasketCondition dbc, DataBasketEntryGrouper dbeg, Comparator<DataBasketEntry> cmp, TableEntryDescriptor ted)
The FormSheet will contain a JDataBasketTable
, the individual records are
DataBasketEntries
.
sCaption
- the caption of the new FormSheet.db
- the DataBasket whose contents are to be displayed.uigGate
- the gate at which to display the FormSheet. May be null
only if no editing is
performed through the FormSheet.dbc
- a condition specifying the entries to be displayed.dbeg
- a grouper that can be used to combine several entries into one for display.cmp
- a comparator defining the order in which to display the individual items. If null
entries will be sorted first by their main and then by their secondary keys.ted
- a TableEntryDescriptor that can split individual DataBasketEntries
into a table's cells. Must not be null
.
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |