|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
org.eclipse.jface.preference.IntegerFieldEditor
com.cmpware.ide.HexIntegerFieldEditor
public class HexIntegerFieldEditor
A field editor for an integer type preference.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.preference.StringFieldEditor |
|---|
UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE |
| Fields inherited from class org.eclipse.jface.preference.FieldEditor |
|---|
HORIZONTAL_GAP, IS_VALID, VALUE |
| Constructor Summary | |
|---|---|
protected |
HexIntegerFieldEditor()
Creates a new integer field editor |
|
HexIntegerFieldEditor(java.lang.String name,
java.lang.String labelText,
org.eclipse.swt.widgets.Composite parent)
Creates an integer field editor. |
|
HexIntegerFieldEditor(java.lang.String name,
java.lang.String labelText,
org.eclipse.swt.widgets.Composite parent,
int textLimit)
Creates an integer field editor. |
| Method Summary | |
|---|---|
protected boolean |
checkState()
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
|
int |
getIntValue()
Returns this field editor's current value as an integer. |
void |
setValidRange(int min,
int max)
Sets the range of valid values for this field. |
| Methods inherited from class org.eclipse.jface.preference.StringFieldEditor |
|---|
adjustForNumColumns, doCheckState, doFillIntoGrid, getErrorMessage, getNumberOfControls, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setEnabled, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged |
| 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, 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 |
|---|
protected HexIntegerFieldEditor()
public HexIntegerFieldEditor(java.lang.String name,
java.lang.String labelText,
org.eclipse.swt.widgets.Composite parent)
name - the name of the preference this field editor works onlabelText - the label text of the field editorparent - the parent of the field editor's control
public HexIntegerFieldEditor(java.lang.String name,
java.lang.String labelText,
org.eclipse.swt.widgets.Composite parent,
int textLimit)
name - the name of the preference this field editor works onlabelText - the label text of the field editorparent - the parent of the field editor's controltextLimit - the maximum number of characters in the text.| Method Detail |
|---|
public void setValidRange(int min,
int max)
setValidRange in class org.eclipse.jface.preference.IntegerFieldEditormin - the minimum allowed value (inclusive)max - the maximum allowed value (inclusive)protected boolean checkState()
checkState in class org.eclipse.jface.preference.IntegerFieldEditorprotected void doLoad()
doLoad in class org.eclipse.jface.preference.IntegerFieldEditorprotected void doLoadDefault()
doLoadDefault in class org.eclipse.jface.preference.IntegerFieldEditorprotected void doStore()
doStore in class org.eclipse.jface.preference.IntegerFieldEditor
public int getIntValue()
throws java.lang.NumberFormatException
getIntValue in class org.eclipse.jface.preference.IntegerFieldEditorjava.lang.NumberFormatException - if the String does not
contain a parsable integer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||