|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--edu.neu.ccs.gui.DisplayPanel
|
+--edu.neu.ccs.gui.ComponentWrapper
|
+--edu.neu.ccs.gui.DisplayWrapper
|
+--edu.neu.ccs.gui.TypedViewWrapper
Wrapper for a TypedView
that uses a CenterLayout and
faithfully respects minimum, maximum, and preferred sizes.
ComponentWrapper,
DisplayWrapper,
GeneralViewWrapper,
Serialized Form| Field Summary |
| Fields inherited from class edu.neu.ccs.gui.ComponentWrapper |
wrapper |
| Fields inherited from class edu.neu.ccs.gui.DisplayPanel |
background, codec, CODEC |
| 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.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 |
| 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 | |
TypedViewWrapper(TypedView view)
Constructs a wrapper for the given TypedView. |
|
| Method Summary | |
Stringable |
demandObject()
Returns a Stringable object based on the view state
of the view using the mandatory model. |
Class |
getDataType()
Returns the current class of objects returned when a model object is demanded or requested. |
InputProperties |
getInputProperties()
Returns the input properties for this view. |
TypedView |
getWrappedTypedView()
Returns the wrapped typed view. |
Stringable |
requestObject()
Returns a Stringable object based on the view state
of the view using the optional model; throws an exception if the
input operation is cancelled by the user. |
void |
setInputProperties(InputProperties p)
Sets the input properties for this view to the provided input properties. |
void |
setWrappedComponent(Component component)
Sets the wrapped typed view to the given component. |
void |
setWrappedTypedView(TypedView view)
Sets the wrapped typed view to the given TypedView. |
| Methods inherited from class edu.neu.ccs.gui.DisplayWrapper |
getDefaultViewState, getViewState, getWrappedDisplay, reset, setDefaultViewState, setViewState, setWrappedDisplay |
| Methods inherited from class edu.neu.ccs.gui.ComponentWrapper |
getAlignment, getMaximumSize, getMinimumSize, getPreferredSize, getWrappedComponent, setAbsoluteSize, setAbsoluteSize, setAlignment, setEnabled, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setPreferredSize, setPreferredSize |
| Methods inherited from class edu.neu.ccs.gui.DisplayPanel |
add, add, add, add, add, addObject, addObject, addObject, addObject, dataMalformed, endAlert, frame, frame, frame, frame, frame, frame, generalDialog, generalDialog, generalDialog, generalDialog, getCodec, makeComponent, OKCancelDialog, OKCancelDialog, OKDialog, OKDialog, refreshComponent, remove, remove, removeAll, setCodec, startAlert, uniformizeHeight, uniformizeSize, uniformizeWidth, YesNoCancelDialog, YesNoCancelDialog |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| 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 |
getDefaultViewState, getViewState, reset, setDefaultViewState, setEnabled, setViewState |
| Constructor Detail |
public TypedViewWrapper(TypedView view)
TypedView.
view - the typed view to be wrapped| Method Detail |
public Stringable demandObject()
TypedViewStringable object based on the view state
of the view using the mandatory model.
demandObject in interface TypedViewStringable model objectTypedView.requestObject()
public Stringable requestObject()
throws CancelledException
TypedViewStringable object based on the view state
of the view using the optional model; throws an exception if the
input operation is cancelled by the user.
requestObject in interface TypedViewStringable model object
CancelledExceptionTypedView.demandObject()public 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()
TypedView
getDataType in interface TypedViewpublic void setWrappedComponent(Component component)
setWrappedTypedView should be called
in order to set the wrapped TypedView.
If the given component is not a TypedView,
the currently wrapped typed view is not changed.
setWrappedComponent in class DisplayWrappercomponent - the component to be wrapped
NullPointerException - if the given object is nullsetWrappedTypedView(TypedView)public void setWrappedTypedView(TypedView view)
TypedView.
NullPointerException - if the given object is nullgetWrappedTypedView()public TypedView getWrappedTypedView()
setWrappedTypedView(TypedView)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||