Package jmri.jmrix.can.cbus.swing
Class CbusCommonSwing
java.lang.Object
jmri.jmrix.can.cbus.swing.CbusCommonSwing
Common CBUS swing functions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureTable(JTable table) Configure a table to have our standard rows and columns.static voidhideNumbersLessThan(int min, String string, JTextField f) static voidsetCellBackground(boolean isSelected, JComponent f, JTable table, int row) Set cell background with alternating rows.static voidsetCellFocus(boolean hasFocus, JComponent f, JTable table) static voidsetCellFromBackupEnum(Object object, JTextField f) static voidsetCellFromCbusEventEnum(Object object, JTextField f) static voidsetCellFromDate(Object object, JTextField f, DateFormat dformat) static voidsetCellTextHighlighter(String textForSearch, String string, JTextField f)
-
Field Details
-
VERY_LIGHT_RED
-
VERY_LIGHT_GREEN
-
WHITE_GREEN
-
GOLD
-
-
Constructor Details
-
CbusCommonSwing
public CbusCommonSwing()
-
-
Method Details
-
setCellBackground
Set cell background with alternating rows.- Parameters:
isSelected- true if selected.f- cell component.table- cell table.row- cell row.
-
setCellFocus
-
hideNumbersLessThan
-
setCellFromCbusEventEnum
-
setCellFromBackupEnum
-
setCellFromDate
-
setCellTextHighlighter
-
configureTable
Configure a table to have our standard rows and columns.This is optional, in that other table formats can use this table model. But we put it here to help keep it consistent.
- Parameters:
table- table to configure
-