|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.option.OptionWidget
org.openbp.jaspira.option.widget.TextWidget
public class TextWidget
This is a simple OptionWidget whitch shows a TextField and manages the input events.
| Field Summary |
|---|
| Fields inherited from class org.openbp.jaspira.option.OptionWidget |
|---|
option |
| Constructor Summary | |
|---|---|
TextWidget(Option option,
int numberOfCharacters)
Constructor. |
|
TextWidget(Option option,
int numberOfCharacters,
javax.swing.text.Document doc)
Constructor. |
|
| Method Summary | |
|---|---|
void |
changedUpdate(javax.swing.event.DocumentEvent e)
|
java.lang.Object |
getValue()
Returns the value of the option widget. |
javax.swing.JComponent |
getWidgetComponent()
Gets the widget component that visualizes the option. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
|
void |
removeUpdate(javax.swing.event.DocumentEvent e)
|
void |
setValue(java.lang.Object o)
Sets the value that will be displayed in the option widget. |
| Methods inherited from class org.openbp.jaspira.option.OptionWidget |
|---|
createHeading, getDescriptionComponent, getOption, notifyOptionMgrOfOptionChange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextWidget(Option option,
int numberOfCharacters)
option - Option the widget refers tonumberOfCharacters - Number of characters (columns) to display
public TextWidget(Option option,
int numberOfCharacters,
javax.swing.text.Document doc)
option - Option the widget refers tonumberOfCharacters - Number of characters (columns) to displaydoc - Text document| Method Detail |
|---|
public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate in interface javax.swing.event.DocumentListenerDocumentListener.changedUpdate(DocumentEvent)public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate in interface javax.swing.event.DocumentListenerDocumentListener.insertUpdate(DocumentEvent)public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate in interface javax.swing.event.DocumentListenerDocumentListener.removeUpdate(DocumentEvent)public java.lang.Object getValue()
OptionWidget
getValue in class OptionWidgetpublic void setValue(java.lang.Object o)
OptionWidget
setValue in class OptionWidgetpublic javax.swing.JComponent getWidgetComponent()
OptionWidget
getWidgetComponent in class OptionWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||