|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
public class StringEditor
A property editor for string values used by the property browser. By default, components returned to the property browser for both editing and displaying are both induvidual JTextFields, however, should the porperty be read only, then the display component will be a JLable, and the editor component will return a null.
| Field Summary | |
|---|---|
protected javax.swing.JTextField |
textField
Text field as property editor component. |
| Fields inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor |
|---|
component, listener, object, owner, parameterParser, params, propertyBrowser, propertyName, readonly, validator, value, valueChanged, valueLoaded |
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
StringEditor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Gives notification that an attribute or set of attributes changed. |
void |
createComponent()
Creates the editor component of the property editor. |
java.lang.Object |
getComponentValue()
Gets the current editor component value. |
void |
highlight(boolean on)
Highlights the content of the component. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Gives notification that there was an insert into the document. |
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed. |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Gives notification that a portion of the document has been removed. |
void |
setComponentValue()
Sets the display component value. |
| Methods inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor |
|---|
clone, copyFrom, focusGained, focusLost, forwardKeyEvent, getComponent, getObject, getOwner, getParameterParser, getParams, getPropertyBrowser, getPropertyComponent, getPropertyName, getSafeString, getValidator, getValue, initialize, initializeComponent, isReadonly, keyReleased, keyTyped, loadProperty, parseParams, propertyChanged, resetComponentDisplay, resetProperty, saveProperty, setObject, setOwner, setParams, setPropertyBrowser, setPropertyName, setReadonly, setValidator, setValue, validateProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JTextField textField
| Constructor Detail |
|---|
public StringEditor()
| Method Detail |
|---|
public void createComponent()
createComponent in class AbstractPropertyEditorpublic void setComponentValue()
setComponentValue in class AbstractPropertyEditorpublic java.lang.Object getComponentValue()
getComponentValue in class AbstractPropertyEditorpublic void highlight(boolean on)
highlight in class AbstractPropertyEditoron - true Turns the highlight on if the component has the focuspublic void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate in interface javax.swing.event.DocumentListenere - Document eventpublic void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate in interface javax.swing.event.DocumentListenere - Document eventpublic void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate in interface javax.swing.event.DocumentListenere - Document eventpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class AbstractPropertyEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||