public class AWButtonEditor
extends javax.swing.DefaultCellEditor
AWButtonEditor
class holds the functionality for buttons in a table row.Modifier and Type | Field and Description |
---|---|
static int |
CALL_FOR_CHOOSE |
static int |
CALL_FOR_DELETE |
static int |
CALL_FOR_EXPORT |
static int |
CALL_FOR_IMPORT |
static int |
CALL_FOR_LIST |
static int |
CALL_FOR_USE |
Constructor and Description |
---|
AWButtonEditor(javax.swing.JCheckBox checkBox,
DataSite site,
int call,
java.lang.String table_name)
The constructor
AWButtonEditor creates a new instance(object) of the class. |
AWButtonEditor(javax.swing.JCheckBox checkBox,
DataSite site,
int call,
java.lang.String table_name,
java.lang.String flag,
java.lang.String flag2)
The constructor
AWButtonEditor creates a new instance(object) of the class. |
AWButtonEditor(javax.swing.JCheckBox checkBox,
int call,
java.lang.String table_name)
The constructor
AWButtonEditor creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCellEditorValue()
The method
getCellEditorValue gets the value of the button. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
The method
getTableCellEditorComponent gets the getTableCellEditorComponent. |
boolean |
stopCellEditing()
The method
stopCellEditing no button press. |
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
public static final int CALL_FOR_USE
public static final int CALL_FOR_DELETE
public static final int CALL_FOR_CHOOSE
public static final int CALL_FOR_LIST
public static final int CALL_FOR_IMPORT
public static final int CALL_FOR_EXPORT
public AWButtonEditor(javax.swing.JCheckBox checkBox, DataSite site, int call, java.lang.String table_name, java.lang.String flag, java.lang.String flag2)
AWButtonEditor
creates a new instance(object) of the class.checkBox
- a JCheckBox.site
- the calling site.call
- the calling type.table_name
- the name of the database table, to identify the model.flag
- a flag to identify the model.flag2
- a flag to identify the model.public AWButtonEditor(javax.swing.JCheckBox checkBox, DataSite site, int call, java.lang.String table_name)
AWButtonEditor
creates a new instance(object) of the class.checkBox
- a JCheckBox.site
- the calling site.call
- the calling type.table_name
- the name of the belonging table.public AWButtonEditor(javax.swing.JCheckBox checkBox, int call, java.lang.String table_name)
AWButtonEditor
creates a new instance(object) of the class.checkBox
- a JCheckBox.call
- the calling type.table_name
- the name of the belonging table.public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
gets the getTableCellEditorComponent.getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
table
- the JTable.value
- the Object.isSelected
- true, if selected.row
- the row of the control.column
- the column of the control.public java.lang.Object getCellEditorValue()
getCellEditorValue
gets the value of the button.getCellEditorValue
in interface javax.swing.CellEditor
getCellEditorValue
in class javax.swing.DefaultCellEditor
public boolean stopCellEditing()
stopCellEditing
no button press.stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class javax.swing.DefaultCellEditor