FreeHEP API
Version current

hep.aida.ref.remote
Class RemoteTable

java.lang.Object
  extended byhep.aida.ref.event.AIDAObservable
      extended byhep.aida.ref.ManagedObject
          extended byhep.aida.ref.remote.RemoteManagedObject
              extended byhep.aida.ref.remote.RemoteTable
All Implemented Interfaces:
Connectable, hep.aida.dev.IDevManagedObject, hep.aida.IManagedObject, hep.aida.IPlottable, IsObservable, ITable

public class RemoteTable
extends RemoteManagedObject
implements ITable, hep.aida.IPlottable

This is implementation of ITable that can not be modified by the user. This is a simple implementation that does not guarantee internal consistency. So extra care should be taken when setting data for this class. This Class is designed to work with the IDevMutableStore, but can work with other Stores - overwrite makeSureDataIsValid() method. Don't forget to call "setDataValid" after you fill new data, as only this method fires events to notify AIDAListeners about change.

Author:
serbo
Source Code:
RemoteTable.java

Field Summary
 
Fields inherited from class hep.aida.ref.remote.RemoteManagedObject
aidaType, dataIsValid, DEFAULT_DOUBLE, DEFAULT_FLOAT, DEFAULT_INT, DEFAULT_LONG, remoteLogger, stateDidChange, store, treePath
 
Fields inherited from class hep.aida.ref.ManagedObject
fillable
 
Fields inherited from class hep.aida.ref.event.AIDAObservable
connectionDidChange, isConnected, isValid
 
Fields inherited from interface hep.aida.ref.remote.interfaces.ITable
tableInfoKey
 
Constructor Summary
RemoteTable(IDevMutableStore store, String name)
           
RemoteTable(IDevMutableStore store, String name, String title, int rows, int columns)
           
RemoteTable(String name)
          Creates a new instance of RemoteTable
 
Method Summary
 hep.aida.IAnnotation annotation()
          Get the IAnnotation associated with the Table.
 int columnCount()
           
 String columnName(int column)
           
protected  EventObject createEvent()
           
 String[] getLabels()
           
 Object[][] getValues()
           
 int rowCount()
           
 void setLabels(String[] labels)
           
 void setTitle(String title)
          Set the Table title.
 void setValueAt(Object value, int row, int column)
           
 void setValues(Object[][] values)
           
 String title()
          Get the Table's title.
 Object valueAt(int row, int column)
           
 
Methods inherited from class hep.aida.ref.remote.RemoteManagedObject
getStore, getTreePath, isDataValid, makeSureDataIsValid, setConnected, setDataValid, setStore, setTreeFolder, setValid, setValidForAll, type
 
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, fireStateChanged, fireStateChanged, fireStateChanged, isConnected, removeAllListeners, removeListener, setIsValidAfterNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.IPlottable
type
 
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeAllListeners, removeListener
 
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected
 

Constructor Detail

RemoteTable

public RemoteTable(String name)
Creates a new instance of RemoteTable


RemoteTable

public RemoteTable(IDevMutableStore store,
                   String name)

RemoteTable

public RemoteTable(IDevMutableStore store,
                   String name,
                   String title,
                   int rows,
                   int columns)
Method Detail

createEvent

protected EventObject createEvent()
Overrides:
createEvent in class AIDAObservable

getValues

public Object[][] getValues()

getLabels

public String[] getLabels()

setValues

public void setValues(Object[][] values)

setLabels

public void setLabels(String[] labels)

annotation

public hep.aida.IAnnotation annotation()
Description copied from interface: ITable
Get the IAnnotation associated with the Table.

Specified by:
annotation in interface ITable
Returns:
The IAnnotation.

columnCount

public int columnCount()
Specified by:
columnCount in interface ITable

rowCount

public int rowCount()
Specified by:
rowCount in interface ITable

title

public String title()
Description copied from interface: ITable
Get the Table's title.

Specified by:
title in interface ITable
Returns:
The Table's title.

valueAt

public Object valueAt(int row,
                      int column)
Specified by:
valueAt in interface ITable

setTitle

public void setTitle(String title)
              throws IllegalArgumentException
Description copied from interface: ITable
Set the Table title.

Specified by:
setTitle in interface ITable
Parameters:
title - The title.
Throws:
IllegalArgumentException - If title cannot be changed.

columnName

public String columnName(int column)
Specified by:
columnName in interface ITable

setValueAt

public void setValueAt(Object value,
                       int row,
                       int column)
Specified by:
setValueAt in interface ITable

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.