|
|||||||||
| Home >> All >> com >> globalretailtech >> pos >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.globalretailtech.pos.gui
Class OperDisplay4C

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.globalretailtech.pos.gui.OperDisplay4C
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, com.globalretailtech.pos.devices.PosTicket, java.io.Serializable
- public class OperDisplay4C
- extends javax.swing.JPanel
- implements com.globalretailtech.pos.devices.PosTicket
- extends javax.swing.JPanel
An invoice display. Contains a header field for transaction information, #, pos #, employee and date. Implements JTable to display transaction detail that includes quantity, item (sku number), a long description and price. (Need to figure out how to merge this with OperDisplay.)
| Nested Class Summary | |
(package private) class |
OperDisplay4C.NavAction
Class for implementing navigation actions. |
private class |
OperDisplay4C.NavButton
Class for implementing navigation buttons. |
private class |
OperDisplay4C.OperReceiptField
Class to manage named text fields. |
private class |
OperDisplay4C.OperReceiptLabel
Class to manage labels. |
private class |
OperDisplay4C.tableModel
The table implementation. |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
OperDisplay4C()
Initialize with the current literals and paramaters. |
|
| Method Summary | |
void |
addSelectableItem(com.globalretailtech.pos.ej.EjLine value)
|
void |
clear()
The clear opperation for this class, clear each row in the table, set current row to 0 and move to the top of the table. |
void |
clearln()
|
int |
getAmountWidth()
Character width of price/amount column. |
int |
getColumns()
Number of columns in the table |
java.awt.Component |
getGui()
Return the graphical component |
int |
getItemDescWidth()
Character width of description column. |
int |
getItemWidth()
Character width of item/sku column. |
int |
getQtyWidth()
Character width of quantity column. |
int |
getTotalWidth()
|
void |
init(com.globalretailtech.pos.context.PosParameters params,
int w,
int h)
Read the properties file for format information. |
boolean |
isOpen()
|
static void |
makeRowVisible(javax.swing.JTable table,
int visibleRow)
Method to scroll to the specified row. |
void |
printHeader()
Print the header for this class |
void |
println()
Print an enpty line, cr/lf. |
void |
println(java.lang.String value)
Print a string and a cr/lf |
void |
printTrailer()
Print the trailer for this class. |
void |
setAmount(java.lang.String value)
Set the amount/price field. |
private java.awt.Component |
setConstraints(java.awt.Component c,
java.awt.GridBagLayout layout,
java.awt.GridBagConstraints constraints,
int x,
int y,
int height,
int width)
Private method to set GridBagConstraints. |
void |
setDate(java.lang.String value)
Set the date field. |
void |
setDesc(java.lang.String value)
Set the description field. |
void |
setItem(java.lang.String value)
Set the item/sku field. |
void |
setOperator(java.lang.String value)
Set the operator/user ID. |
void |
setPosNo(java.lang.String value)
Set the POS number |
void |
setQty(java.lang.String value)
Set the quantity field. |
void |
setTrxNo(java.lang.String value)
Set the transaction number. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
UP
public static final int UP
- Line up directive
- See Also:
- Constant Field Values
DOWN
public static final int DOWN
- Line down directive
- See Also:
- Constant Field Values
TOP
public static final int TOP
- Top of reciept directive
- See Also:
- Constant Field Values
BOTTOM
public static final int BOTTOM
- Bottom of receipt directive
- See Also:
- Constant Field Values
operReceiptFont
private java.awt.Font operReceiptFont
headerFont
private java.awt.Font headerFont
headerTitleFont
private java.awt.Font headerTitleFont
operReceiptFontSize
private int operReceiptFontSize
headerFontSize
private int headerFontSize
headerTitleFontSize
private int headerTitleFontSize
height
private int height
width
private int width
qtyWidth
private int qtyWidth
itemWidth
private int itemWidth
descWidth
private int descWidth
valueWidth
private int valueWidth
rowHeight
private int rowHeight
tableRows
private int tableRows
scrollpane
private javax.swing.JScrollPane scrollpane
viewport
private javax.swing.JViewport viewport
table
private static javax.swing.JTable table
row
private int row
rowStep
private int rowStep
dataModel
private OperDisplay4C.tableModel dataModel
trx
private OperDisplay4C.OperReceiptField trx
pos
private OperDisplay4C.OperReceiptField pos
emp
private OperDisplay4C.OperReceiptField emp
date
private OperDisplay4C.OperReceiptField date
QTY
private static int QTY
ITEM
private static int ITEM
DESC
private static int DESC
VALUE
private static int VALUE
COLS
private static int COLS
posParameters
private com.globalretailtech.pos.context.PosParameters posParameters
| Constructor Detail |
OperDisplay4C
public OperDisplay4C()
- Initialize with the current literals and paramaters.
| Method Detail |
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfacecom.globalretailtech.pos.devices.PosTicket
init
public void init(com.globalretailtech.pos.context.PosParameters params, int w, int h)
- Read the properties file for format information.
Create the panels and setup the layout. Add the
fields to the layout.
getQtyWidth
public int getQtyWidth()
- Character width of quantity column.
- Specified by:
getQtyWidthin interfacecom.globalretailtech.pos.devices.PosTicket
getItemWidth
public int getItemWidth()
- Character width of item/sku column.
- Specified by:
getItemWidthin interfacecom.globalretailtech.pos.devices.PosTicket
getItemDescWidth
public int getItemDescWidth()
- Character width of description column.
getAmountWidth
public int getAmountWidth()
- Character width of price/amount column.
- Specified by:
getAmountWidthin interfacecom.globalretailtech.pos.devices.PosTicket
getColumns
public int getColumns()
- Number of columns in the table
getGui
public java.awt.Component getGui()
- Return the graphical component
setTrxNo
public void setTrxNo(java.lang.String value)
- Set the transaction number.
- Specified by:
setTrxNoin interfacecom.globalretailtech.pos.devices.PosTicket
setPosNo
public void setPosNo(java.lang.String value)
- Set the POS number
- Specified by:
setPosNoin interfacecom.globalretailtech.pos.devices.PosTicket
setOperator
public void setOperator(java.lang.String value)
- Set the operator/user ID.
- Specified by:
setOperatorin interfacecom.globalretailtech.pos.devices.PosTicket
setDate
public void setDate(java.lang.String value)
- Set the date field.
- Specified by:
setDatein interfacecom.globalretailtech.pos.devices.PosTicket
setQty
public void setQty(java.lang.String value)
- Set the quantity field.
- Specified by:
setQtyin interfacecom.globalretailtech.pos.devices.PosTicket
setItem
public void setItem(java.lang.String value)
- Set the item/sku field.
- Specified by:
setItemin interfacecom.globalretailtech.pos.devices.PosTicket
setDesc
public void setDesc(java.lang.String value)
- Set the description field.
- Specified by:
setDescin interfacecom.globalretailtech.pos.devices.PosTicket
setAmount
public void setAmount(java.lang.String value)
- Set the amount/price field.
- Specified by:
setAmountin interfacecom.globalretailtech.pos.devices.PosTicket
println
public void println()
- Print an enpty line, cr/lf.
- Specified by:
printlnin interfacecom.globalretailtech.pos.devices.PosTicket
println
public void println(java.lang.String value)
- Print a string and a cr/lf
- Specified by:
printlnin interfacecom.globalretailtech.pos.devices.PosTicket
printHeader
public void printHeader()
- Print the header for this class
- Specified by:
printHeaderin interfacecom.globalretailtech.pos.devices.PosTicket
printTrailer
public void printTrailer()
- Print the trailer for this class.
- Specified by:
printTrailerin interfacecom.globalretailtech.pos.devices.PosTicket
clear
public void clear()
- The clear opperation for this class,
clear each row in the table, set
current row to 0 and move to the
top of the table.
- Specified by:
clearin interfacecom.globalretailtech.pos.devices.PosTicket
clearln
public void clearln()
- Specified by:
clearlnin interfacecom.globalretailtech.pos.devices.PosTicket
setConstraints
private java.awt.Component setConstraints(java.awt.Component c, java.awt.GridBagLayout layout, java.awt.GridBagConstraints constraints, int x, int y, int height, int width)
- Private method to set GridBagConstraints.
makeRowVisible
public static void makeRowVisible(javax.swing.JTable table, int visibleRow)
- Method to scroll to the specified row.
addSelectableItem
public void addSelectableItem(com.globalretailtech.pos.ej.EjLine value)
- Specified by:
addSelectableItemin interfacecom.globalretailtech.pos.devices.PosTicket
getTotalWidth
public int getTotalWidth()
- Specified by:
getTotalWidthin interfacecom.globalretailtech.pos.devices.PosTicket
|
|||||||||
| Home >> All >> com >> globalretailtech >> pos >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC