hep.aida.ref.remote
Class RemoteTable
java.lang.Object
hep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.remote.RemoteManagedObject
hep.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
Methods inherited from class hep.aida.ref.remote.RemoteManagedObject |
getStore, getTreePath, isDataValid, makeSureDataIsValid, setConnected, setDataValid, setStore, setTreeFolder, setValid, setValidForAll, type |
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 |
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)
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
Copyright © 2000-2004 FreeHEP, All Rights Reserved.