|
org.eclipse.rse.ui.propertypages
Class SystemTypeFieldEditor
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.eclipse.rse.ui.propertypages.SystemTypeFieldEditor
-
All Implemented Interfaces:
-
IBaseLabelProvider,
ICellModifier,
IContentProvider,
IStructuredContentProvider,
ITableLabelProvider
-
public class SystemTypeFieldEditor
- extends
FieldEditor
- implements
ICellModifier,
ITableLabelProvider,
IStructuredContentProvider
This is a field type editor for the Remote Systems preference page,
used for setting system type preferences.
Method Summary
|
void
|
addListener
(
ILabelProviderListener listener)
|
protected void
|
adjustForNumColumns
(int numColumns)
|
boolean
|
canModify
(
Object element,
String property)
|
static
String
|
createString
(
Hashtable keyValues)
Convert hashtable of key-value pairs into a single string |
protected void
|
doFillIntoGrid
(
Composite parent,
int numColumns)
|
protected void
|
doLoad
()
|
protected void
|
doLoadDefault
()
|
protected void
|
doStore
()
|
boolean
|
enabledStateChanged
()
|
Image
|
getColumnImage
(
Object element,
int columnIndex)
|
String
|
getColumnText
(
Object element,
int columnIndex)
|
Object[]
|
getElements
(
Object inputElement)
|
int
|
getNumberOfControls
()
|
Object
|
getValue
(
Object element,
String property)
|
void
|
inputChanged
(
Viewer viewer,
Object oldInput,
Object newInput)
|
boolean
|
isLabelProperty
(
Object element,
String property)
|
boolean
|
isValid
()
|
void
|
modify
(
Object element,
String property,
Object value)
|
void
|
removeListener
(
ILabelProviderListener listener)
|
void
|
setEnabled
(boolean enabled,
Composite parent)
|
void
|
setToolTipText
(
String tip)
Set the tooltip text |
Methods inherited from class org.eclipse.jface.preference.
FieldEditor
|
applyFont,
checkParent,
clearErrorMessage,
clearMessage,
convertHorizontalDLUsToPixels,
convertVerticalDLUsToPixels,
createControl,
dispose,
fillIntoGrid,
fireStateChanged,
fireValueChanged,
getFieldEditorFontName,
getLabelControl,
getLabelControl,
getLabelText,
getPage,
getPreferenceName,
getPreferencePage,
getPreferenceStore,
init,
load,
loadDefault,
presentsDefaultValue,
refreshValidState,
setButtonLayoutData,
setFocus,
setLabelText,
setPage,
setPreferenceName,
setPreferencePage,
setPreferenceStore,
setPresentsDefaultValue,
setPropertyChangeListener,
showErrorMessage,
showMessage,
store
|
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
EACHVALUE_DELIMITER
public static final char EACHVALUE_DELIMITER
-
See Also:
-
Constant Field Values
SystemTypeFieldEditor
public SystemTypeFieldEditor(
String name,
String labelText,
Composite parent)
- Constructor
-
Parameters:
-
name - the name of the preference this field editor works on -
labelText - the label text of the field editor -
parent - the parent of the field editor's control
adjustForNumColumns
protected void adjustForNumColumns(int numColumns)
-
-
Specified by:
-
adjustForNumColumns
in class
FieldEditor
-
doFillIntoGrid
protected void doFillIntoGrid(
Composite parent,
int numColumns)
-
-
Specified by:
-
doFillIntoGrid
in class
FieldEditor
-
doLoad
protected void doLoad()
-
-
Specified by:
-
doLoad
in class
FieldEditor
-
doLoadDefault
protected void doLoadDefault()
-
-
Specified by:
-
doLoadDefault
in class
FieldEditor
-
doStore
protected void doStore()
-
-
Specified by:
-
doStore
in class
FieldEditor
-
getNumberOfControls
public int getNumberOfControls()
-
-
Specified by:
-
getNumberOfControls
in class
FieldEditor
-
setEnabled
public void setEnabled(boolean enabled,
Composite parent)
-
-
Overrides:
-
setEnabled
in class
FieldEditor
-
isValid
public boolean isValid()
-
-
Overrides:
-
isValid
in class
FieldEditor
-
createString
public static
String createString(
Hashtable keyValues)
- Convert hashtable of key-value pairs into a single string
-
-
canModify
public boolean canModify(
Object element,
String property)
-
-
Specified by:
-
canModify
in interface
ICellModifier
-
getValue
public
Object getValue(
Object element,
String property)
-
-
Specified by:
-
getValue
in interface
ICellModifier
-
enabledStateChanged
public boolean enabledStateChanged()
-
-
modify
public void modify(
Object element,
String property,
Object value)
-
-
Specified by:
-
modify
in interface
ICellModifier
-
getColumnImage
public
Image getColumnImage(
Object element,
int columnIndex)
-
-
Specified by:
-
getColumnImage
in interface
ITableLabelProvider
-
getColumnText
public
String getColumnText(
Object element,
int columnIndex)
-
-
Specified by:
-
getColumnText
in interface
ITableLabelProvider
-
addListener
public void addListener(
ILabelProviderListener listener)
-
-
Specified by:
-
addListener
in interface
IBaseLabelProvider
-
isLabelProperty
public boolean isLabelProperty(
Object element,
String property)
-
-
Specified by:
-
isLabelProperty
in interface
IBaseLabelProvider
-
removeListener
public void removeListener(
ILabelProviderListener listener)
-
-
Specified by:
-
removeListener
in interface
IBaseLabelProvider
-
getElements
public
Object[] getElements(
Object inputElement)
-
-
Specified by:
-
getElements
in interface
IStructuredContentProvider
-
inputChanged
public void inputChanged(
Viewer viewer,
Object oldInput,
Object newInput)
-
-
Specified by:
-
inputChanged
in interface
IContentProvider
-
setToolTipText
public void setToolTipText(
String tip)
- Set the tooltip text
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|