|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.forms.AbstractFormPart
org.eclipse.datatools.sqltools.schemaobjecteditor.ui.common.CollapseableSection
public abstract class CollapseableSection
A common used section in multiple forms based editor. Which will set the SEPARATOR color to use to BORDER color, because in Eclipse 3.1, the SEAPARTOR color looks bad. Also, the help context id can be set to this section (A small help icon will be add to the section, if end-user clicks the icon, help page will be displayed).
Constructor Summary | |
---|---|
CollapseableSection(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
java.lang.String title,
org.eclipse.swt.widgets.Display display,
boolean isCollapseable,
boolean isCollapsed,
int estyle)
Constructs a collapseable section |
|
CollapseableSection(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
java.lang.String title,
org.eclipse.swt.widgets.Display display,
boolean isCollapsed,
int estyle)
|
|
CollapseableSection(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
java.lang.String title,
org.eclipse.swt.widgets.Display display,
int estyle)
|
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent,
int horizontalSpan,
java.lang.String helpContextId)
User of this class need to call this method to create this section |
org.eclipse.ui.forms.widgets.Section |
getSection()
Returns the section instance |
org.eclipse.swt.widgets.Composite |
getSectionContent()
Returns the section content composite |
void |
setPluginId(java.lang.String id)
|
Methods inherited from class org.eclipse.ui.forms.AbstractFormPart |
---|
commit, dispose, getManagedForm, initialize, isDirty, isStale, markDirty, markStale, refresh, setFocus, setFormInput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollapseableSection(org.eclipse.ui.forms.widgets.FormToolkit toolkit, java.lang.String title, org.eclipse.swt.widgets.Display display, boolean isCollapseable, boolean isCollapsed, int estyle)
toolkit
- the form toolkittitle
- the title of the sectiondisplay
- the Display
instanceisCollapseable
- whether the section is collapseableisCollapsed
- the initial statuspublic CollapseableSection(org.eclipse.ui.forms.widgets.FormToolkit toolkit, java.lang.String title, org.eclipse.swt.widgets.Display display, boolean isCollapsed, int estyle)
public CollapseableSection(org.eclipse.ui.forms.widgets.FormToolkit toolkit, java.lang.String title, org.eclipse.swt.widgets.Display display, int estyle)
Method Detail |
---|
public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent, int horizontalSpan, java.lang.String helpContextId)
parent
- the parent in which this section is createdhorizontalSpan
- the horizontal spanhelpContextId
- the id of the context help
public org.eclipse.ui.forms.widgets.Section getSection()
public org.eclipse.swt.widgets.Composite getSectionContent()
public void setPluginId(java.lang.String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |