org.eclipse.hyades.sdb.internal.editors
Class SDBDetailsPage
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SDBDetailsPage
public SDBDetailsPage(SymptomDBEditor editor)
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()