|
||||||||||
| 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.JScrollPane
edu.neu.ccs.gui.JPTScrollPane
edu.neu.ccs.gui.ScrollableDisplay
A JPTScrollPane that contains
a single Displayable object,
and delegates Displayable method calls
to its viewport view.
The functionality of this class assumes that the viewport view
for this scroll pane is a Displayable object
set through the
method,
and effects are undefined if the viewport view
is set through other means.setDisplay
To allow access to the methods in JPTScrollPane,
this class was revise to extend JPTScrollPane.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JScrollPane |
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
| 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 | |
static String |
DISPLAY
Bound property name for the display property. |
| Fields inherited from class javax.swing.JScrollPane |
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
| 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.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 | |
ScrollableDisplay()
Constructs a scrollable display containing a blank DisplayPanel. |
|
ScrollableDisplay(Displayable d)
Constructs a scrollable display containing the given Displayable object. |
|
| Method Summary | |
String |
getDefaultViewState()
Returns the default view state for the displayed object. |
Displayable |
getDisplay()
Returns the displayed object. |
String |
getViewState()
Returns the view state of the object on display. |
void |
reset()
Resets the view state of the displayed object to its default view state. |
void |
setDefaultViewState(String data)
Sets the default view state of the displayed object to the given String data. |
void |
setDisplay(Displayable d)
Sets the displayed object to the given Displayable object. |
void |
setEnabled(boolean isEnabled)
Enables or disables the scrollable display and its contents, based on the given value. |
void |
setViewState(String data)
Sets the view state of the displayed object to the given String data. |
| Methods inherited from class edu.neu.ccs.gui.JPTScrollPane |
boundViewportPreferredSize, boundViewportPreferredSize, frame, frame, frame, frame, frame, frame, generalDialog, generalDialog, generalDialog, generalDialog, OKCancelDialog, OKCancelDialog, OKDialog, OKDialog, refreshComponent, setViewportPreferredSize, setViewportPreferredSize, YesNoCancelDialog, YesNoCancelDialog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String DISPLAY
| Constructor Detail |
public ScrollableDisplay()
DisplayPanel.
ScrollableDisplay(Displayable)public ScrollableDisplay(Displayable d)
Displayable object.
d - the displayable to become the viewport viewScrollableDisplay()| Method Detail |
public void setViewState(String data)
String data.
setViewState in interface Displayabledata - the given String datagetViewState(),
Displayablepublic String getViewState()
getViewState in interface DisplayablesetViewState(String),
Displayablepublic void setDefaultViewState(String data)
String data.
setDefaultViewState in interface Displayabledata - the given String datareset(),
Displayablepublic String getDefaultViewState()
getDefaultViewState in interface DisplayablesetDefaultViewState(String),
reset()public void setEnabled(boolean isEnabled)
setEnabled in interface DisplayableisEnabled - whether or not the component is to be enabledDisplayablepublic void reset()
reset in interface DisplayablesetDefaultViewState(String),
Displayablepublic void setDisplay(Displayable d)
Sets the displayed object
to the given Displayable object.
If the given object is null,
the displayed object is not changed.
d - the object to be displayedgetDisplay()public Displayable getDisplay()
setDisplay(Displayable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||