Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

plp.analyzer
Class PLPFrameModel  view PLPFrameModel download PLPFrameModel.java

java.lang.Object
  extended byplp.analyzer.PLPFrameModel
All Implemented Interfaces:
javax.swing.table.TableModel

public class PLPFrameModel
extends java.lang.Object
implements javax.swing.table.TableModel


Field Summary
static java.lang.String[] columnNames
           
private  java.util.Vector frames
           
private  boolean isRunning
           
private  java.util.Vector listeners
           
(package private)  plp.link.FrameBuilder pcFrameBuilder
           
(package private)  PLPFrameListener pcFrameListener
           
(package private)  plp.link.FrameBuilder plpFrameBuilder
           
(package private)  PLPFrameListener plpFrameListener
           
private  boolean showData
           
private  java.util.Vector sources
           
 
Constructor Summary
PLPFrameModel(plp.link.FrameBuilder pcFrameBuilder, plp.link.FrameBuilder plpFrameBuilder)
           
 
Method Summary
protected  void addPLPFrame(plp.link.PLPFrame frame)
           
 void addPLPFrame(java.lang.String source, plp.link.PLPFrame frame)
           
protected  void addSource(java.lang.String source)
           
 void addTableModelListener(javax.swing.event.TableModelListener listener)
          Adds a listener to the model.
 void fireAllRowsChanged()
           
 void fireLastRowChanged()
           
 java.lang.Class getColumnClass(int columnIndex)
          Returns the Class for all Object instances in the specified column.
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int columnIndex)
          Returns the name of a column in the model.
protected  plp.link.PLPFrame getFrameAt(int i)
           
private  java.util.Vector getFrames()
           
protected  int getNumberOfFrames()
           
 int getNumberOfTableModelListeners()
           
 plp.link.FrameBuilder getPCFrameBuilder()
           
 PLPFrameListener getPCFrameListener()
           
 plp.link.FrameBuilder getPLPFrameBuilder()
           
 PLPFrameListener getPLPFrameListener()
           
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.String getSourceAt(int index)
           
protected  java.util.Vector getSources()
           
 javax.swing.event.TableModelListener getTableModelListenerAt(int index)
           
private  java.util.Vector getTableModelListeners()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Returns the value (Object) at a particular cell in the table.
 boolean isCellEditable(int rowIndex, int columnIndex)
          Returns true if the cell is editable, and false otherwise.
 boolean isRunning()
           
 boolean isShowingData()
           
 void load()
           
 void newSession()
           
 void removeAll()
           
protected  void removeAllFrames()
           
protected  void removeAllSources()
           
 void removeTableModelListener(javax.swing.event.TableModelListener listener)
          Removes a listener from the model.
 void save()
           
 void setPCFrameBuilder(plp.link.FrameBuilder frameBuilder)
           
 void setPCFrameListener(PLPFrameListener frameListener)
           
 void setPLPFrameBuilder(plp.link.FrameBuilder frameBuilder)
           
 void setPLPFrameListener(PLPFrameListener frameListener)
           
protected  void setRunning(boolean isRunning)
           
 void setShowingData(boolean showData)
           
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          Sets the value at a particular cell in the table.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frames

private java.util.Vector frames

sources

private java.util.Vector sources

listeners

private transient java.util.Vector listeners

plpFrameListener

transient PLPFrameListener plpFrameListener

pcFrameListener

transient PLPFrameListener pcFrameListener

plpFrameBuilder

transient plp.link.FrameBuilder plpFrameBuilder

pcFrameBuilder

transient plp.link.FrameBuilder pcFrameBuilder

showData

private boolean showData

isRunning

private boolean isRunning

columnNames

public static final java.lang.String[] columnNames
Constructor Detail

PLPFrameModel

public PLPFrameModel(plp.link.FrameBuilder pcFrameBuilder,
                     plp.link.FrameBuilder plpFrameBuilder)
Method Detail

getPLPFrameListener

public PLPFrameListener getPLPFrameListener()

setPLPFrameListener

public void setPLPFrameListener(PLPFrameListener frameListener)

getPCFrameListener

public PLPFrameListener getPCFrameListener()

setPCFrameListener

public void setPCFrameListener(PLPFrameListener frameListener)

setPCFrameBuilder

public void setPCFrameBuilder(plp.link.FrameBuilder frameBuilder)

getPCFrameBuilder

public plp.link.FrameBuilder getPCFrameBuilder()

setPLPFrameBuilder

public void setPLPFrameBuilder(plp.link.FrameBuilder frameBuilder)

getPLPFrameBuilder

public plp.link.FrameBuilder getPLPFrameBuilder()

setRunning

protected void setRunning(boolean isRunning)

isRunning

public boolean isRunning()

start

public void start()

stop

public void stop()

save

public void save()

load

public void load()

newSession

public void newSession()

setShowingData

public void setShowingData(boolean showData)

isShowingData

public boolean isShowingData()

getRowCount

public int getRowCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of rows in the model.

Specified by:
getRowCount in interface javax.swing.table.TableModel

getColumnCount

public int getColumnCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of columns in the model.

Specified by:
getColumnCount in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int columnIndex)
Description copied from interface: javax.swing.table.TableModel
Returns the name of a column in the model.

Specified by:
getColumnName in interface javax.swing.table.TableModel

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Description copied from interface: javax.swing.table.TableModel
Returns the Class for all Object instances in the specified column.

Specified by:
getColumnClass in interface javax.swing.table.TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Description copied from interface: javax.swing.table.TableModel
Returns true if the cell is editable, and false otherwise.

Specified by:
isCellEditable in interface javax.swing.table.TableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Description copied from interface: javax.swing.table.TableModel
Returns the value (Object) at a particular cell in the table.

Specified by:
getValueAt in interface javax.swing.table.TableModel

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Description copied from interface: javax.swing.table.TableModel
Sets the value at a particular cell in the table.

Specified by:
setValueAt in interface javax.swing.table.TableModel

getTableModelListeners

private java.util.Vector getTableModelListeners()

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener listener)
Description copied from interface: javax.swing.table.TableModel
Adds a listener to the model. The listener will receive notification of updates to the model.

Specified by:
addTableModelListener in interface javax.swing.table.TableModel

removeTableModelListener

public void removeTableModelListener(javax.swing.event.TableModelListener listener)
Description copied from interface: javax.swing.table.TableModel
Removes a listener from the model.

Specified by:
removeTableModelListener in interface javax.swing.table.TableModel

getNumberOfTableModelListeners

public int getNumberOfTableModelListeners()

getTableModelListenerAt

public javax.swing.event.TableModelListener getTableModelListenerAt(int index)

getFrames

private java.util.Vector getFrames()

getFrameAt

protected plp.link.PLPFrame getFrameAt(int i)

getNumberOfFrames

protected int getNumberOfFrames()

addPLPFrame

protected void addPLPFrame(plp.link.PLPFrame frame)

getSources

protected java.util.Vector getSources()

addSource

protected void addSource(java.lang.String source)

getSourceAt

public java.lang.String getSourceAt(int index)

addPLPFrame

public void addPLPFrame(java.lang.String source,
                        plp.link.PLPFrame frame)

removeAll

public void removeAll()

removeAllSources

protected void removeAllSources()

removeAllFrames

protected void removeAllFrames()

fireLastRowChanged

public void fireLastRowChanged()

fireAllRowsChanged

public void fireAllRowsChanged()