public class ICEDataComponentDetailsPage
extends java.lang.Object
implements org.eclipse.ui.forms.IDetailsPage
This class implements the IDetailsPage interface to provide a Details page for ICE DataComponents. The only way to provide the component handle for this class is through the constructor.
Constructor and Description |
---|
ICEDataComponentDetailsPage(DataComponent dataComponent,
ICEFormEditor editor)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(boolean onSave)
(non-Javadoc)
|
void |
createContents(org.eclipse.swt.widgets.Composite parent) |
void |
dispose()
(non-Javadoc)
|
DataComponent |
getComponent()
This operation returns the component that the page is rendering or null
if it was not set in the constructor.
|
void |
initialize(org.eclipse.ui.forms.IManagedForm form)
(non-Javadoc)
|
boolean |
isDirty() |
boolean |
isStale() |
void |
refresh()
(non-Javadoc)
|
void |
selectionChanged(org.eclipse.ui.forms.IFormPart part,
org.eclipse.jface.viewers.ISelection selection) |
void |
setFocus()
(non-Javadoc)
|
boolean |
setFormInput(java.lang.Object input)
(non-Javadoc)
|
public ICEDataComponentDetailsPage(DataComponent dataComponent, ICEFormEditor editor)
The constructor. If the component is null, this class will be unable to render anything to the screen.
dataComponent
- The data component that this page will display.
editor
- The ICEFormEditor in which the pages will exist. This editor is marked as dirty when the page changes.
public DataComponent getComponent()
This operation returns the component that the page is rendering or null if it was not set in the constructor.
The DataComponent used in this provider or null if it was not set.
public void initialize(org.eclipse.ui.forms.IManagedForm form)
initialize
in interface org.eclipse.ui.forms.IFormPart
IFormPart.initialize(IManagedForm form)
public void dispose()
dispose
in interface org.eclipse.ui.forms.IFormPart
IFormPart.dispose()
public void commit(boolean onSave)
commit
in interface org.eclipse.ui.forms.IFormPart
IFormPart.commit(boolean onSave)
public boolean setFormInput(java.lang.Object input)
setFormInput
in interface org.eclipse.ui.forms.IFormPart
IFormPart.setFormInput(Object input)
public void setFocus()
setFocus
in interface org.eclipse.ui.forms.IFormPart
IFormPart.setFocus()
public void refresh()
refresh
in interface org.eclipse.ui.forms.IFormPart
IFormPart.refresh()
public void selectionChanged(org.eclipse.ui.forms.IFormPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.forms.IPartSelectionListener
public void createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in interface org.eclipse.ui.forms.IDetailsPage
parent
- The parent composite in which this page should be drawn.
public boolean isDirty()
isDirty
in interface org.eclipse.ui.forms.IFormPart
public boolean isStale()
isStale
in interface org.eclipse.ui.forms.IFormPart