|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextArea
edu.neu.ccs.gui.TextAreaView
A
for input of TypedViewStrings that may represent
multiple lines of text.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTextArea |
JTextArea.AccessibleJTextArea |
| Nested classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected String |
defaultValue
Default content for this view. |
protected InputProperties |
properties
Property list for this view object. |
| Fields inherited from class javax.swing.JTextArea |
|
| Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.TypedView |
DATA_TYPE |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TextAreaView()
Constructs an empty text area view. |
|
TextAreaView(String text)
Constructs a text area view with the given default content. |
|
| Method Summary | |
Stringable |
demandObject()
Returns an XString object
whose state is set to the String content
for this view. |
Class |
getDataType()
Returns the XString class object. |
String |
getDefaultViewState()
Returns the default content for this text area view. |
InputProperties |
getInputProperties()
Returns the input properties for this view. |
String |
getViewState()
Returns the content for this text area view. |
Stringable |
requestObject()
Returns an XString object
whose state is set to the String content
for this view. |
void |
reset()
Sets the content for this text area view to the default content for this text area view. |
void |
setDefaultViewState(String data)
Sets the default content for this text area view to the given String. |
void |
setInputProperties(InputProperties p)
Sets the input properties for this view to the provided input properties. |
void |
setViewState(String data)
Sets the content for this text area view to the given String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.neu.ccs.gui.Displayable |
setEnabled |
| Field Detail |
protected String defaultValue
protected InputProperties properties
| Constructor Detail |
public TextAreaView()
TextAreaView(String)public TextAreaView(String text)
text - the default content for this viewTextAreaView()| Method Detail |
public Stringable demandObject()
XString object
whose state is set to the String content
for this view.
demandObject in interface TypedViewStringable model objectrequestObject(),
TypedViewpublic Stringable requestObject()
XString object
whose state is set to the String content
for this view.
requestObject in interface TypedViewStringable model objectdemandObject(),
TypedViewpublic void setInputProperties(InputProperties p)
TypedViewSets the input properties for this view to the provided input properties.
If the given input properties list is null, the
property list for this view is set to the base property list
containing default property values.
setInputProperties in interface TypedViewp - the new input properties for the viewTypedView.getInputProperties()public InputProperties getInputProperties()
TypedView
getInputProperties in interface TypedViewTypedView.setInputProperties(InputProperties)public Class getDataType()
XString class object.
getDataType in interface TypedViewTypedViewpublic void setViewState(String data)
String.
If the provided data is null,
the content for this text area
is set to the empty string.
setViewState in interface Displayabledata - the new content for this text area viewgetViewState(),
Displayablepublic String getViewState()
getViewState in interface DisplayableStringsetViewState(String),
Displayablepublic void setDefaultViewState(String data)
String.
If the provided data is null,
the default content for this text area
is set to the empty string.
setDefaultViewState in interface Displayabledata - the new default content for this text area viewreset(),
getDefaultViewState(),
Displayablepublic String getDefaultViewState()
getDefaultViewState in interface DisplayableStringsetDefaultViewState(String),
reset()public void reset()
reset in interface DisplayablesetDefaultViewState(String),
Displayable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||