net.sf.commonclipse.preferences
Class ClassConstantFieldEditor

java.lang.Object
  extended by org.eclipse.jface.preference.FieldEditor
      extended by net.sf.commonclipse.preferences.ComboFieldEditor
          extended by net.sf.commonclipse.preferences.ClassConstantFieldEditor

public class ClassConstantFieldEditor
extends ComboFieldEditor

ComboFieldEditor with check for valid class.CONSTANT values.

Version:
$Revision: 1.3 $ ($Author: fgiust $)
Author:
fgiust

Field Summary
 
Fields inherited from class net.sf.commonclipse.preferences.ComboFieldEditor
textField, UNLIMITED
 
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
 
Constructor Summary
ClassConstantFieldEditor(java.lang.String name, java.lang.String labelText, org.eclipse.swt.widgets.Composite parent)
           
 
Method Summary
protected  boolean doCheckState()
          Overrides default validation to check for a valid class.CONSTANT value.
 
Methods inherited from class net.sf.commonclipse.preferences.ComboFieldEditor
adjustForNumColumns, checkState, clearErrorMessage, doFillIntoGrid, doLoad, doLoadDefault, doStore, getErrorMessage, getNumberOfControls, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setEnabled, setErrorMessage, setFocus, setPredefinedValues, setStringValue, setTextLimit, showErrorMessage, valueChanged
 
Methods inherited from class org.eclipse.jface.preference.FieldEditor
applyFont, checkParent, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, 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
 

Constructor Detail

ClassConstantFieldEditor

public ClassConstantFieldEditor(java.lang.String name,
                                java.lang.String labelText,
                                org.eclipse.swt.widgets.Composite parent)
See Also:
ComboFieldEditor.ComboFieldEditor(String, String, Composite)
Method Detail

doCheckState

protected boolean doCheckState()
Overrides default validation to check for a valid class.CONSTANT value.

Overrides:
doCheckState in class ComboFieldEditor
Returns:
true if the field value is valid, and false if invalid


Copyright © 2003-2005 sourceforge. All Rights Reserved.