|
jWorkSheet release 0.90 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.ujoframework.swing.UjoTableModel<Event> net.ponec.jworksheet.gui.models.EventTableModel
public class EventTableModel
Event Table Model
Field Summary | |
---|---|
static int |
ACTION_SELECT_EVENT
|
protected ApplContext |
applContext
Application workSpace |
static Event |
PROPS
Properties |
Fields inherited from class org.ujoframework.swing.UjoTableModel |
---|
columns, EVENT_REPAINT_HEADER, rows |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
EventTableModel(ApplContext applContext)
Creates a new instance of UjoTableModel |
Method Summary | |
---|---|
java.lang.Class |
getColumnClass(UjoProperty column)
|
java.lang.String |
getColumnName(UjoProperty property)
Returns a localized Column Name |
int |
getTotalTime()
Returns a total time |
java.lang.String |
getTotalTimeHours()
Returns a total time |
void |
insertRow(Event row)
Insert a row to End of model. |
void |
insertRowAndDefault(Event row)
Insert a row to End of model and set a Default project |
boolean |
isCellEditable(int rowIndex,
UjoProperty column)
Is the cell editable? |
protected void |
performAfterInsertAction(Event insertedRow)
Splitting of Interval is supported. |
void |
setRows(java.util.List<Event> events)
|
void |
setTimeOfLastPeriod()
Set a time of the last period. |
void |
setValueAt(java.lang.Object value,
int rowIndex,
UjoProperty column)
Set value to cell. |
void |
sort(boolean enableInsertAction)
Sort table and recalculate periods. |
Methods inherited from class org.ujoframework.swing.UjoTableModel |
---|
addRow, cloneRow, deleteRow, fireTableAllRowUpdated, fireTableColumnUpdated, fireTableHeaderRepainted, getColumn, getColumnClass, getColumnCount, getColumnIndex, getColumnName, getRow, getRowCount, getRowIndex, getRowLast, getRowNullable, getUjoManager, getValueAt, getValueAt, initData, isCellEditable, setColumns, setValueAt, sort, sort |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ACTION_SELECT_EVENT
public static final Event PROPS
protected ApplContext applContext
Constructor Detail |
---|
public EventTableModel(ApplContext applContext)
applContext
- Application ContextMethod Detail |
---|
public boolean isCellEditable(int rowIndex, UjoProperty column)
isCellEditable
in class UjoTableModel<Event>
public java.lang.String getColumnName(UjoProperty property)
getColumnName
in class UjoTableModel<Event>
public void insertRow(Event row)
public void insertRowAndDefault(Event row)
public void setTimeOfLastPeriod()
protected void performAfterInsertAction(Event insertedRow)
insertedRow
- Send inserted filepublic void sort(boolean enableInsertAction)
public int getTotalTime()
public java.lang.String getTotalTimeHours()
public java.lang.Class getColumnClass(UjoProperty column)
getColumnClass
in class UjoTableModel<Event>
public void setValueAt(java.lang.Object value, int rowIndex, UjoProperty column)
setValueAt
in class UjoTableModel<Event>
public void setRows(java.util.List<Event> events)
setRows
in class UjoTableModel<Event>
|
jWorkSheet release 0.90 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |