public class FormTextField extends AbstractFormField<java.lang.String>
Copyright 2008 Partner Software, Inc.
gui| Constructor and Description |
|---|
FormTextField() |
FormTextField(boolean scrollingEnabled,
boolean navigationBarEnabled) |
FormTextField(boolean scrollingEnabled,
boolean navigationBarEnabled,
boolean noPopup) |
FormTextField(int columns,
int rows) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
find(java.lang.String text,
boolean incremental,
boolean forward,
boolean matchCase,
boolean wholeWord,
boolean regex) |
boolean |
findIncremental(java.lang.String text) |
boolean |
findNext(java.lang.String text) |
boolean |
findPrevious(java.lang.String text) |
int |
getColumnCount() |
int |
getCurrentLineNumber()
Get the number of the line where the caret is.
|
java.awt.Component |
getCustomNavigationControls() |
FormStringField |
getFindField() |
javax.swing.JPanel |
getNavigationBar() |
int |
getRowCount() |
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea |
getRSyntaxTextArea() |
java.lang.String |
getSyntaxStyle() |
java.lang.String |
getValue()
Returns the current value for this field.
|
void |
highlightLine(int lineNumber)
Highlights the line at the given number.
|
boolean |
isEditable() |
boolean |
isNavigationBarEnabled() |
boolean |
isScrollingEnabled() |
boolean |
replace(java.lang.String text,
java.lang.String replacement,
boolean forward,
boolean matchCase,
boolean wholeWord,
boolean regex) |
boolean |
replaceNext(java.lang.String text,
java.lang.String replacement) |
boolean |
replacePrevious(java.lang.String text,
java.lang.String replacement) |
void |
setColumnAndRowCount(int columnCount,
int rowCount) |
void |
setColumnCount(int newCount) |
void |
setCustomNavigationControls(java.awt.Component controls) |
void |
setEditable(boolean editable) |
void |
setNavigationBarEnabled(boolean navigationBarEnabled) |
void |
setRowCount(int newCount) |
void |
setScrollingEnabled(boolean scrollingEnabled) |
void |
setSyntaxStyle(java.lang.String syntaxStyle)
Sets the syntax coloring mode for the editor.
|
void |
setSyntaxStyleForFile(VfsFile file)
Sets the syntax coloring mode for the editor based on the actual file.
|
void |
setValue(java.lang.String newValue)
Sets the current value for this field.
|
void |
setValueSafely(java.lang.Object newValue)
Sets the value safely, e.g.
|
addFieldListener, createPopup, doAction, fireActionRequested, fireValueChanged, getGui, getToolTipText, grabFocus, isDisabled, removeFieldListener, selectAll, selectNone, setDisabled, setToolTipText, toString, valueChangedpublic FormTextField(int columns,
int rows)
public FormTextField()
public FormTextField(boolean scrollingEnabled,
boolean navigationBarEnabled)
public FormTextField(boolean scrollingEnabled,
boolean navigationBarEnabled,
boolean noPopup)
public java.lang.String getValue()
FormFieldpublic void setValue(java.lang.String newValue)
FormFieldpublic void setValueSafely(java.lang.Object newValue)
FormFieldpublic org.fife.ui.rsyntaxtextarea.RSyntaxTextArea getRSyntaxTextArea()
public int getCurrentLineNumber()
public void highlightLine(int lineNumber)
lineNumber - public int getColumnCount()
public void setColumnCount(int newCount)
public int getRowCount()
public void setRowCount(int newCount)
public void setColumnAndRowCount(int columnCount,
int rowCount)
public boolean isNavigationBarEnabled()
public void setNavigationBarEnabled(boolean navigationBarEnabled)
public boolean isScrollingEnabled()
public void setScrollingEnabled(boolean scrollingEnabled)
public void setEditable(boolean editable)
public boolean isEditable()
public javax.swing.JPanel getNavigationBar()
public java.lang.String getSyntaxStyle()
public void setSyntaxStyle(java.lang.String syntaxStyle)
syntaxStyle - public void setSyntaxStyleForFile(VfsFile file)
public boolean find(java.lang.String text,
boolean incremental,
boolean forward,
boolean matchCase,
boolean wholeWord,
boolean regex)
public boolean replace(java.lang.String text,
java.lang.String replacement,
boolean forward,
boolean matchCase,
boolean wholeWord,
boolean regex)
public boolean findIncremental(java.lang.String text)
public boolean findNext(java.lang.String text)
public boolean findPrevious(java.lang.String text)
public boolean replaceNext(java.lang.String text,
java.lang.String replacement)
public boolean replacePrevious(java.lang.String text,
java.lang.String replacement)
public void setCustomNavigationControls(java.awt.Component controls)
public java.awt.Component getCustomNavigationControls()
public FormStringField getFindField()