at.tuwien.ifs.somtoolbox.apps.viewer.controls.multichannelPlayback
Class ActivityGridModel

java.lang.Object
  extended by net.sf.jeppers.grid.AbstractGridModel
      extended by net.sf.jeppers.grid.DefaultGridModel
          extended by at.tuwien.ifs.somtoolbox.apps.viewer.controls.multichannelPlayback.ActivityGridModel
All Implemented Interfaces:
Serializable, net.sf.jeppers.grid.GridModel, net.sf.jeppers.grid.ResizableGrid

public class ActivityGridModel
extends net.sf.jeppers.grid.DefaultGridModel

Version:
$Id: ActivityGridModel.java 3358 2010-02-11 14:35:07Z mayer $
Author:
Ewald Peiszer
See Also:
Serialized Form

Field Summary
 boolean[][] aabMuted
          True for the respective cell if this speaker is currently muted (eg waiting for decoding)
protected  String[][] aasFirstLine
          Contains names of mixer
protected  String[][] aasSecondLine
          Contains song names, is set via method call
private  net.sf.jeppers.grid.JGrid grid
           
private  StringBuffer sb
           
private static long serialVersionUID
           
 
Fields inherited from class net.sf.jeppers.grid.AbstractGridModel
listenerList
 
Constructor Summary
ActivityGridModel(TableModel mod)
          Creates the model with the same dimensions as the given model
 
Method Summary
 Object getValueAt(int r, int c)
           
 boolean isCellEditable(int parm1, int parm2)
           
 void setDecodingAt(int x, int y, String str)
           
 void setGrid(net.sf.jeppers.grid.JGrid grid)
          Stores a reference of the table this table model is displayed in
 void setMutedSpeaker(int x, int y, boolean muted)
           
 void setSongAt(int x, int y, String str)
           
 void setSpeakerAt(int x, int y, String str)
           
 
Methods inherited from class net.sf.jeppers.grid.DefaultGridModel
getColumnCount, getRowCount, insertColumns, insertRows, removeColumns, removeRows, setCellLock, setValueAt
 
Methods inherited from class net.sf.jeppers.grid.AbstractGridModel
addGridModelListener, fireGridCellUpdated, fireGridChanged, fireGridColumnsDeleted, fireGridColumnsInserted, fireGridColumnsUpdated, fireGridModelChanged, fireGridRowsDeleted, fireGridRowsInserted, fireGridRowsUpdated, getListeners, removeGridModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sb

private StringBuffer sb

grid

private net.sf.jeppers.grid.JGrid grid

aasFirstLine

protected String[][] aasFirstLine
Contains names of mixer


aasSecondLine

protected String[][] aasSecondLine
Contains song names, is set via method call


aabMuted

public boolean[][] aabMuted
True for the respective cell if this speaker is currently muted (eg waiting for decoding)

Constructor Detail

ActivityGridModel

public ActivityGridModel(TableModel mod)
Creates the model with the same dimensions as the given model

Method Detail

getValueAt

public Object getValueAt(int r,
                         int c)
Specified by:
getValueAt in interface net.sf.jeppers.grid.GridModel
Overrides:
getValueAt in class net.sf.jeppers.grid.DefaultGridModel

setSpeakerAt

public void setSpeakerAt(int x,
                         int y,
                         String str)

setSongAt

public void setSongAt(int x,
                      int y,
                      String str)

setDecodingAt

public void setDecodingAt(int x,
                          int y,
                          String str)

setMutedSpeaker

public void setMutedSpeaker(int x,
                            int y,
                            boolean muted)

setGrid

public void setGrid(net.sf.jeppers.grid.JGrid grid)
Stores a reference of the table this table model is displayed in


isCellEditable

public boolean isCellEditable(int parm1,
                              int parm2)
Specified by:
isCellEditable in interface net.sf.jeppers.grid.GridModel
Overrides:
isCellEditable in class net.sf.jeppers.grid.DefaultGridModel