|
||||||||||
| 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
|
+--edu.neu.ccs.gui.GeneralViewWrapper
Wrapper for a GeneralView that uses a CenterLayout
and faithfully respects minimum, maximum, and preferred sizes.
ComponentWrapper,
DisplayWrapper,
TypedViewWrapper,
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 | |
GeneralViewWrapper(GeneralView view)
Constructs a wrapper for the given GeneralView. |
|
| Method Summary | |
void |
addActionListener(ActionListener listener)
Adds an ActionListener. |
Stringable |
demandObject(Class dataType,
StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary data type and filter, and the mandatory
model. |
Stringable |
demandObject(StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary filter, and the mandatory model. |
StringableFilter |
getFilter()
Returns the current filter used by this view. |
GeneralView |
getWrappedGeneralView()
Returns the wrapped general view. |
GeneralView |
makeCopy()
Returns a new GeneralViewWrapper that wraps a copy of
the wrapped GeneralView encapsulated in this view. |
void |
removeActionListener(ActionListener listener)
Removes an ActionListener. |
Stringable |
requestObject(Class dataType,
StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary data type and filter, and the optional
model. |
Stringable |
requestObject(StringableFilter filter)
Returns a Stringable object based on the view state
of the view, the temporary filter, and the optional model. |
void |
setDataType(Class dataType)
Sets the current class of objects returned when a model object is demanded or requested. |
void |
setErrorPromptTitleSuggestion(String errorPrompt,
String dialogTitle,
String suggestion)
Sets the three input property Strings for an error
dialog in a single method. |
void |
setFilter(StringableFilter filter)
Sets the current filter used by the view to the given StringableFilter. |
void |
setWrappedComponent(Component component)
Sets the wrapped general view to the given component. |
void |
setWrappedGeneralView(GeneralView view)
Sets the wrapped general view to the given GeneralView. |
| Methods inherited from class edu.neu.ccs.gui.TypedViewWrapper |
demandObject, getDataType, getInputProperties, getWrappedTypedView, requestObject, setInputProperties, setWrappedTypedView |
| 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.TypedView |
demandObject, getDataType, getInputProperties, requestObject, setInputProperties |
| Methods inherited from interface edu.neu.ccs.gui.Displayable |
getDefaultViewState, getViewState, reset, setDefaultViewState, setEnabled, setViewState |
| Constructor Detail |
public GeneralViewWrapper(GeneralView view)
GeneralView.
view - the general view to be wrapped| Method Detail |
public GeneralView makeCopy()
GeneralViewWrapper that wraps a copy of
the wrapped GeneralView encapsulated in this view.
makeCopy in interface GeneralViewpublic void setDataType(Class dataType)
GeneralView
setDataType in interface GeneralViewdataType - the new class of objects for model objectspublic void setFilter(StringableFilter filter)
GeneralView
setFilter in interface GeneralViewfilter - the filter to be usedpublic StringableFilter getFilter()
GeneralView
getFilter in interface GeneralViewpublic Stringable demandObject(StringableFilter filter)
GeneralViewStringable object based on the view state
of the view, the temporary filter, and the mandatory model.
demandObject in interface GeneralViewfilter - the temporary filter to use
Stringable model objectTypedView.demandObject(),
GeneralView.requestObject(Class, StringableFilter)
public Stringable requestObject(StringableFilter filter)
throws CancelledException
GeneralViewStringable object based on the view state
of the view, the temporary filter, and the optional model.
requestObject in interface GeneralViewfilter - the temporary filter to use
Stringable model object
CancelledExceptionTypedView.requestObject(),
GeneralView.demandObject(Class, StringableFilter)
public Stringable demandObject(Class dataType,
StringableFilter filter)
GeneralViewStringable object based on the view state
of the view, the temporary data type and filter, and the mandatory
model.
demandObject in interface GeneralViewStringable model objectTypedView.demandObject(),
GeneralView.requestObject(Class, StringableFilter)
public Stringable requestObject(Class dataType,
StringableFilter filter)
throws CancelledException
GeneralViewStringable object based on the view state
of the view, the temporary data type and filter, and the optional
model.
requestObject in interface GeneralViewStringable model object
CancelledExceptionTypedView.requestObject(),
GeneralView.demandObject(Class, StringableFilter)public void setWrappedComponent(Component component)
Sets the wrapped general view to the given component.
This method should not be called directly.
Rather, setWrappedGeneralView should be called
in order to set the wrapped GeneralView.
If the given component is not a GeneralView,
the currently wrapped general view is not changed.
setWrappedComponent in class TypedViewWrappercomponent - the component to be wrapped
NullPointerException - if the given object is nullsetWrappedGeneralView(GeneralView)public void setWrappedGeneralView(GeneralView view)
GeneralView.
NullPointerException - if the given object is nullgetWrappedGeneralView()public GeneralView getWrappedGeneralView()
setWrappedGeneralView(GeneralView)
public void setErrorPromptTitleSuggestion(String errorPrompt,
String dialogTitle,
String suggestion)
GeneralViewStrings for an error
dialog in a single method.
setErrorPromptTitleSuggestion in interface GeneralViewerrorPrompt - the error prompt of an error dialogdialogTitle - the dialog title of an error dialogsuggestion - the suggestion for an error dialogpublic void addActionListener(ActionListener listener)
ActionListener.
addActionListener in interface GeneralViewlistener - the ActionListener that is to be notifiedremoveActionListener(ActionListener)public void removeActionListener(ActionListener listener)
ActionListener.
removeActionListener in interface GeneralViewlistener - the ActionListener to removeaddActionListener(ActionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||