| Issue 166: | Unable to check if the view has been initialized in subclasses TableFacadeImpl | |
| 1 person starred this issue and may be notified of changes. | Back to list |
If I'm trying to do something like this:
public View getView() {
if (view != null) {
return view;
}
if (getLimit().isExported() &&
getLimit().getExportType().equals(ExportType.PDF)) {
return new MyPdfView((HtmlTable) getTable(), getToolbar(),
getWebContext(), getCoreContext());
} else {
return super.getView();
}
}
in a subclass of TableFacadeImpl, the 'view' instance variable is not
visible. private is probably the appropriate modifier for the variable,
but perhaps protected methods named view(), table(), toolbar(), etc. could
be added to allow subclasses to read the value of the variable without
initializing it. I can create a patch if you think that is alright.
Dec 3, 2008
Project Member
#1
jeff.johnston.mn@gmail.com
Labels:
-Type-Defect Type-Enhancement
Dec 6, 2008
(No comment was entered for this change.)
Status:
Fixed
|