|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.ui.editors.preferences.formatter.ModifyDialogTabPage
public abstract class ModifyDialogTabPage
| Nested Class Summary | |
|---|---|
protected class |
ModifyDialogTabPage.ButtonPreference
Wrapper around a checkbox and a label. |
class |
ModifyDialogTabPage.CheckboxPreference
|
class |
ModifyDialogTabPage.ComboPreference
Wrapper around a Combo box. |
protected static class |
ModifyDialogTabPage.DefaultFocusManager
This class provides the default way to preserve and re-establish the focus over multiple modify sessions. |
static interface |
ModifyDialogTabPage.IModificationListener
|
class |
ModifyDialogTabPage.NumberPreference
Wrapper around a textfied which requests an integer input of a given range. |
class |
ModifyDialogTabPage.Preference
The base class of all Preference classes. |
protected class |
ModifyDialogTabPage.RadioPreference
|
| Field Summary | |
|---|---|
protected ModifyDialogTabPage.DefaultFocusManager |
fDefaultFocusManager
The default focus manager. |
protected PixelConverter |
fPixelConverter
A pixel converter for layout calculations |
protected java.util.Observer |
fUpdater
This is the default listener for any of the Preference classes. |
protected java.util.Map |
fWorkingValues
The map where the current settings are stored. |
| Constructor Summary | |
|---|---|
ModifyDialogTabPage(ModifyDialogTabPage.IModificationListener modifyListener,
java.util.Map workingValues)
Create a new ModifyDialogTabPage |
|
| Method Summary | |
|---|---|
protected ModifyDialogTabPage.CheckboxPreference |
createCheckboxPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
java.lang.String[] values)
Convenience method to create a CheckboxPreference. |
protected ModifyDialogTabPage.ComboPreference |
createComboPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
java.lang.String[] values,
java.lang.String[] items)
Convenience method to create a ComboPreference. |
org.eclipse.swt.widgets.Composite |
createContents(org.eclipse.swt.widgets.Composite parent)
Create the contents of this tab page. |
protected static org.eclipse.swt.layout.GridData |
createGridData(int numColumns,
int style,
int widthHint)
Convenience method to create a GridData. |
protected org.eclipse.swt.layout.GridLayout |
createGridLayout(int numColumns,
boolean margins)
Create a GridLayout with the default margin and spacing settings, as well as the specified number of columns. |
protected org.eclipse.swt.widgets.Group |
createGroup(int numColumns,
org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Convenience method to create a group |
protected static org.eclipse.swt.widgets.Label |
createLabel(int numColumns,
org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
|
protected static org.eclipse.swt.widgets.Label |
createLabel(int numColumns,
org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int gridDataStyle)
Convenience method to create a label |
protected ModifyDialogTabPage.NumberPreference |
createNumberPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
int minValue,
int maxValue)
Convenience method to create a NumberPreference. |
protected static java.lang.String |
createPreviewHeader(java.lang.String title)
Create a nice javadoc comment for some string. |
protected ModifyDialogTabPage.RadioPreference |
createRadioPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
java.lang.String[] values)
|
protected abstract Preview |
doCreateJavaPreview(org.eclipse.swt.widgets.Composite parent)
To be implemented by subclasses. |
protected abstract void |
doCreatePreferences(org.eclipse.swt.widgets.Composite composite,
int numColumns)
Create the left side of the modify dialog. |
protected org.eclipse.swt.widgets.Composite |
doCreatePreviewPane(org.eclipse.swt.widgets.Composite composite,
int numColumns)
Create the right side of the modify dialog. |
protected abstract void |
doUpdatePreview()
Update the preview. |
protected abstract void |
initializePage()
This method is called after all controls have been alloated, including the preview. |
void |
makeVisible()
This is called when the page becomes visible. |
protected void |
notifyValuesModified()
|
void |
setInitialFocus()
Each tab page should remember where its last focus was, and reset it correctly within this method. |
protected void |
updateStatus(org.eclipse.core.runtime.IStatus status)
Set the status field on the dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.Observer fUpdater
protected final ModifyDialogTabPage.DefaultFocusManager fDefaultFocusManager
restoreFocus() sets the
focus to the last control which had it.
The standard Preference object are managed by this focus manager if they are created
using the respective factory methods. Other SWT widgets can be added in subclasses
when they are created.
protected PixelConverter fPixelConverter
protected final java.util.Map fWorkingValues
| Constructor Detail |
|---|
public ModifyDialogTabPage(ModifyDialogTabPage.IModificationListener modifyListener,
java.util.Map workingValues)
ModifyDialogTabPage
modifyListener - workingValues - | Method Detail |
|---|
public final org.eclipse.swt.widgets.Composite createContents(org.eclipse.swt.widgets.Composite parent)
doCreatePreferences. doCreatePreview may also
be overridden as necessary.
parent - The parent composite
protected abstract void initializePage()
protected abstract void doCreatePreferences(org.eclipse.swt.widgets.Composite composite,
int numColumns)
composite - Composite to create innumColumns - Number of columns to use
protected org.eclipse.swt.widgets.Composite doCreatePreviewPane(org.eclipse.swt.widgets.Composite composite,
int numColumns)
composite - Composite to create innumColumns - Number of columns to use
protected abstract Preview doCreateJavaPreview(org.eclipse.swt.widgets.Composite parent)
parent - Parent composite
public final void makeVisible()
protected abstract void doUpdatePreview()
protected void notifyValuesModified()
public void setInitialFocus()
protected void updateStatus(org.eclipse.core.runtime.IStatus status)
status - Status describing the current page error state
protected org.eclipse.swt.layout.GridLayout createGridLayout(int numColumns,
boolean margins)
numColumns - margins -
protected static org.eclipse.swt.layout.GridData createGridData(int numColumns,
int style,
int widthHint)
numColumns - style - widthHint -
protected static org.eclipse.swt.widgets.Label createLabel(int numColumns,
org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
numColumns - parent - text -
protected static org.eclipse.swt.widgets.Label createLabel(int numColumns,
org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
int gridDataStyle)
numColumns - parent - text - gridDataStyle -
protected org.eclipse.swt.widgets.Group createGroup(int numColumns,
org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
numColumns - parent - text -
protected ModifyDialogTabPage.NumberPreference createNumberPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
int minValue,
int maxValue)
composite - numColumns - name - key - minValue - maxValue -
protected ModifyDialogTabPage.ComboPreference createComboPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
java.lang.String[] values,
java.lang.String[] items)
composite - numColumns - name - key - values - items -
protected ModifyDialogTabPage.CheckboxPreference createCheckboxPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
java.lang.String[] values)
composite - numColumns - name - key - values -
protected ModifyDialogTabPage.RadioPreference createRadioPref(org.eclipse.swt.widgets.Composite composite,
int numColumns,
java.lang.String name,
java.lang.String key,
java.lang.String[] values)
composite - numColumns - name - key - values -
protected static java.lang.String createPreviewHeader(java.lang.String title)
title -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||