TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.hyades.sdb.internal.editors
Class SDBDetailsPage

java.lang.Object
  extended byorg.eclipse.hyades.sdb.internal.editors.SDBDetailsPage
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.FocusListener, IDetails, org.eclipse.ui.forms.IDetailsPage, org.eclipse.ui.forms.IFormPart, org.eclipse.ui.forms.IPartSelectionListener, org.eclipse.swt.widgets.Listener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
DBDetails, DirectiveDetails, SolutionDetails, SymptomDetails

public abstract class SDBDetailsPage
extends java.lang.Object
implements IDetails, org.eclipse.swt.widgets.Listener, org.eclipse.swt.events.FocusListener


Field Summary
protected  org.eclipse.swt.widgets.Composite client
           
protected  boolean editable
           
protected  SymptomDBEditor editor
           
protected  boolean isDirty
           
protected  boolean isDisplaying
           
protected  org.eclipse.ui.forms.IManagedForm mform
           
protected  org.eclipse.ui.forms.widgets.Section section
           
protected  org.eclipse.ui.forms.widgets.FormToolkit toolkit
           
protected  org.eclipse.swt.widgets.Widget wLastSelected
           
 
Constructor Summary
SDBDetailsPage(SymptomDBEditor editor)
           
 
Method Summary
 void commit(boolean onSave)
           
protected abstract  void createClientArea()
           
 void createContents(org.eclipse.swt.widgets.Composite parent)
           
protected  void createSpace(org.eclipse.swt.widgets.Composite parent, int span)
           
 void dispose()
           
 void focusGained(org.eclipse.swt.events.FocusEvent e)
           
 void focusLost(org.eclipse.swt.events.FocusEvent e)
           
protected abstract  int getCursorPosition()
           
 void handleEvent(org.eclipse.swt.widgets.Event event)
           
 void initialize(org.eclipse.ui.forms.IManagedForm form)
           
 boolean isDirty()
           
 boolean isEditable()
          Returns the editable state for the current page.
 boolean isStale()
           
 void refresh()
           
 void selectionChanged(org.eclipse.ui.forms.IFormPart part, org.eclipse.jface.viewers.ISelection selection)
           
 void setEditable(boolean flag)
          Sets editable state for the current page.
 void setFocus()
           
protected abstract  void setFocusToTextBox(int startIndex, int endIndex)
           
 boolean setFormInput(java.lang.Object input)
           
protected  void setLayout(org.eclipse.swt.widgets.Label label, org.eclipse.swt.widgets.Scrollable text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wLastSelected

protected org.eclipse.swt.widgets.Widget wLastSelected

editor

protected SymptomDBEditor editor

isDisplaying

protected boolean isDisplaying

editable

protected boolean editable

mform

protected org.eclipse.ui.forms.IManagedForm mform

toolkit

protected org.eclipse.ui.forms.widgets.FormToolkit toolkit

section

protected org.eclipse.ui.forms.widgets.Section section

client

protected org.eclipse.swt.widgets.Composite client

isDirty

protected boolean isDirty
Constructor Detail

SDBDetailsPage

public SDBDetailsPage(SymptomDBEditor editor)
Method Detail

createContents

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

initialize

public void initialize(org.eclipse.ui.forms.IManagedForm form)
Specified by:
initialize 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

commit

public void commit(boolean onSave)
Specified by:
commit 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

setFocus

public void setFocus()
Specified by:
setFocus 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

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

handleEvent

public void handleEvent(org.eclipse.swt.widgets.Event event)
Specified by:
handleEvent in interface org.eclipse.swt.widgets.Listener

focusGained

public void focusGained(org.eclipse.swt.events.FocusEvent e)
Specified by:
focusGained in interface org.eclipse.swt.events.FocusListener

focusLost

public void focusLost(org.eclipse.swt.events.FocusEvent e)
Specified by:
focusLost in interface org.eclipse.swt.events.FocusListener

setEditable

public void setEditable(boolean flag)
Description copied from interface: IDetails
Sets editable state for the current page.

Specified by:
setEditable in interface IDetails
Parameters:
flag - the new state.

isEditable

public boolean isEditable()
Description copied from interface: IDetails
Returns the editable state for the current page.

Specified by:
isEditable in interface IDetails
Returns:

createSpace

protected void createSpace(org.eclipse.swt.widgets.Composite parent,
                           int span)

setLayout

protected void setLayout(org.eclipse.swt.widgets.Label label,
                         org.eclipse.swt.widgets.Scrollable text)

createClientArea

protected abstract void createClientArea()

setFocusToTextBox

protected abstract void setFocusToTextBox(int startIndex,
                                          int endIndex)

getCursorPosition

protected abstract int getCursorPosition()

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification