|
||||||||||
| 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.JLabel
edu.neu.ccs.gui.XObjectView
View for output of the String representation
of the state of an .
XObject
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
| 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 XObject |
model
The data model for this view. |
static String |
MODEL
Bound property name for the model property. |
| Fields inherited from class javax.swing.JLabel |
labelFor |
| 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.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.console.ConsoleAware |
console |
| 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 | |
XObjectView()
Constructs a view with no data model. |
|
XObjectView(XObject obj)
Constructs a view with the given data model. |
|
| Method Summary | |
String |
getDefaultViewState()
Not used by this class. |
XObject |
getModel()
Returns the data model for this view, or null if there is no data model for this view. |
String |
getViewState()
Not used by this class. |
void |
propertyChange(PropertyChangeEvent evt)
Handles a property change event issued by the data model. |
void |
reset()
Not used by this class. |
void |
setDefaultViewState(String value)
Not used by this class. |
void |
setModel(XObject obj)
Sets the data model for this view to the given object. |
void |
setViewState(String value)
Not used by this class. |
| 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 |
public static final String MODEL
protected XObject model
| Constructor Detail |
public XObjectView()
public XObjectView(XObject obj)
null,
no data model is initially associated with this view.
obj - the desired data model for the view| Method Detail |
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - the property change event issued by the modelpublic void setViewState(String value)
setViewState in interface Displayablevalue - the new view state for this objectDisplayable.getViewState()public String getViewState()
getViewState in interface DisplayablenullDisplayable.setViewState(String)public void setDefaultViewState(String value)
setDefaultViewState in interface Displayablevalue - the new default data state for this objectDisplayable.getDefaultViewState(),
Displayable.reset()public String getDefaultViewState()
getDefaultViewState in interface DisplayablenullDisplayable.setDefaultViewState(String),
Displayable.reset()public void reset()
reset in interface DisplayableDisplayable.setViewState(String),
Displayable.getDefaultViewState()public void setModel(XObject obj)
null,
the view will display the empty string.
obj - the desired data model for this viewpublic XObject getModel()
null if there is no data model for this view.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||