org.fosstrak.llrp.commander.editors.graphical
Class LLRPDetailsPage

java.lang.Object
  extended by org.fosstrak.llrp.commander.editors.graphical.LLRPDetailsPage
All Implemented Interfaces:
org.eclipse.ui.forms.IDetailsPage, org.eclipse.ui.forms.IFormPart, org.eclipse.ui.forms.IPartSelectionListener

public class LLRPDetailsPage
extends java.lang.Object
implements org.eclipse.ui.forms.IDetailsPage

The LLRPDetailsPage shows details about the message/parameter currently selected in the master part.

Author:
Ulrich Etter, ETHZ

Constructor Summary
LLRPDetailsPage(java.lang.Object input, org.eclipse.jface.viewers.TreeViewer treeViewer, LLRPTreeMaintainer treeMaintainer, LLRPMasterDetailsBlock block)
          Creates a new LLRPDetailsPage.
 
Method Summary
 void commit(boolean onSave)
           
 void createContents(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 void initialize(org.eclipse.ui.forms.IManagedForm mform)
           
 boolean isDirty()
           
 boolean isStale()
           
 void refresh()
           
 void selectionChanged(org.eclipse.ui.forms.IFormPart part, org.eclipse.jface.viewers.ISelection selection)
           
 void setFocus()
           
 boolean setFormInput(java.lang.Object input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLRPDetailsPage

public LLRPDetailsPage(java.lang.Object input,
                       org.eclipse.jface.viewers.TreeViewer treeViewer,
                       LLRPTreeMaintainer treeMaintainer,
                       LLRPMasterDetailsBlock block)
Creates a new LLRPDetailsPage.

Parameters:
input - the object for which this page should show details (either a LLRPMessage or a LLRPParameter)
treeViewer - the tree viewer of the master part
treeMaintainer - the TreeMaintainer associated with the input object
block - the LLRPMasterDetailsBlock
Method Detail

initialize

public void initialize(org.eclipse.ui.forms.IManagedForm mform)
Specified by:
initialize in interface org.eclipse.ui.forms.IFormPart

createContents

public void createContents(org.eclipse.swt.widgets.Composite parent)
Specified by:
createContents in interface org.eclipse.ui.forms.IDetailsPage

selectionChanged

public void selectionChanged(org.eclipse.ui.forms.IFormPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.forms.IPartSelectionListener

commit

public void commit(boolean onSave)
Specified by:
commit in interface org.eclipse.ui.forms.IFormPart

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.forms.IFormPart

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.forms.IFormPart

isDirty

public boolean isDirty()
Specified by:
isDirty in interface org.eclipse.ui.forms.IFormPart

isStale

public boolean isStale()
Specified by:
isStale in interface org.eclipse.ui.forms.IFormPart

refresh

public void refresh()
Specified by:
refresh in interface org.eclipse.ui.forms.IFormPart

setFormInput

public boolean setFormInput(java.lang.Object input)
Specified by:
setFormInput in interface org.eclipse.ui.forms.IFormPart


Copyright © 2009. All Rights Reserved.