org.fosstrak.llrp.commander.views.roaccess
Class ROAccessReportsView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.fosstrak.llrp.commander.views.TableViewPart
                  extended by org.fosstrak.llrp.commander.views.roaccess.ROAccessReportsView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation, MessageHandler

public class ROAccessReportsView
extends TableViewPart
implements MessageHandler

View displaying the contents of RO_ACCESS_REPORT. The different fields of the report get expanded into columns. The messages are sorted according the arrival time.

Author:
sawielan

Field Summary
 
Fields inherited from class org.fosstrak.llrp.commander.views.TableViewPart
TAG_COLUMN, TAG_NUMBER, TAG_WIDTH
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ROAccessReportsView()
           
 
Method Summary
 java.lang.String asCSV()
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
protected  void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
           
 void handle(java.lang.String adaptorName, java.lang.String readerName, org.llrp.ltk.types.LLRPMessage message)
          This method is invoked from the adapter management whenever a new LLRP message arrives on an attached reader.
 
Methods inherited from class org.fosstrak.llrp.commander.views.TableViewPart
contributeToActionBars, createActions, createColumns, fillLocalPullDown, fillLocalToolBar, getTable, getViewer, hookEvents, hookMenus, init, restoreColumnWidths, saveColumnWidths, saveState, selectionChanged, setColumnHeaders, setColumnLayouts, setDoubleClickAction, setFocus
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

ROAccessReportsView

public ROAccessReportsView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Overrides:
createPartControl in class TableViewPart

asCSV

public java.lang.String asCSV()
Returns:
the content of the table as a comma-separated-values string.

handle

public void handle(java.lang.String adaptorName,
                   java.lang.String readerName,
                   org.llrp.ltk.types.LLRPMessage message)
Description copied from interface: MessageHandler
This method is invoked from the adapter management whenever a new LLRP message arrives on an attached reader.

Specified by:
handle in interface MessageHandler
Parameters:
adaptorName - the name of the adapter where the reader belongs to.
readerName - the name of the receiving reader.
message - the LLRP message.

fillContextMenu

protected void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
Overrides:
fillContextMenu in class TableViewPart


Copyright © 2009. All Rights Reserved.