Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.propertypages
Class SystemTypeFieldEditor


java.lang.Object
  extended by 

org.eclipse.jface.preference.FieldEditor
      extended by 
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.


Field Summary
static char EACHVALUE_DELIMITER
           
 
Fields inherited from class org.eclipse.jface.preference. FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
 
Constructor Summary
SystemTypeFieldEditor ( String name, String labelText, Composite parent)
          Constructor
 
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
 
Methods inherited from interface org.eclipse.jface.viewers. IBaseLabelProvider
dispose
 
Methods inherited from interface org.eclipse.jface.viewers. IContentProvider
dispose
 

Field Detail

EACHVALUE_DELIMITER

public static final char EACHVALUE_DELIMITER
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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


RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire