info.joseluismartin.gui.report
Class ReportListView

java.lang.Object
  extended by info.joseluismartin.gui.AbstractView<Report>
      extended by info.joseluismartin.gui.report.ReportListView
All Implemented Interfaces:
BinderHolder, ControlChangeListener, Binder<Report>, ModelHolder<Report>, View<Report>, ReportEventListener, EventListener

public class ReportListView
extends AbstractView<Report>
implements ReportEventListener

Author:
Jose A. Corbacho

Field Summary
 
Fields inherited from class info.joseluismartin.gui.AbstractView
DEFAULT_BINDER_FACTORY_NAME, errors, height, messageSource, width
 
Constructor Summary
ReportListView()
           
ReportListView(Report model)
           
 
Method Summary
protected  JComponent buildPanel()
          Build the JComponent that hold controls.
protected  void doRefresh()
          Allow subclasses to do custom refresh
 DataSource getDataSource()
           
 Icon getExcelIcon()
           
 Icon getPdfIcon()
           
 ReportManager getReportManager()
           
 ReportService getReportService()
           
 ReportType getReportType()
           
 void init()
           
 void reportChanged(EventObject event)
           
 void setDataSource(DataSource dataSource)
           
 void setExcelIcon(Icon excelIcon)
           
 void setPdfIcon(Icon pdfIcon)
           
 void setReportManager(ReportManager reportManager)
           
 void setReportProvider(ReportDataProvider reportProvider)
           
 void setReportService(ReportService reportService)
           
 void setReportType(ReportType type)
           
 
Methods inherited from class info.joseluismartin.gui.AbstractView
addControlChangeListener, addView, afterRefresh, afterUpdate, autobind, bind, bind, clear, controlChange, doUpdate, enableView, fireControlChange, getBinder, getBinderFactory, getBindingResult, getControlAccessorFactory, getControlInitializer, getErrorMessage, getErrorProcessors, getHeight, getIgnoredProperties, getMessage, getMessage, getMessageSource, getModel, getName, getPanel, getValidator, getWidth, ignoreProperties, ignoreProperty, isAutobinding, isDirty, isInitializeControls, listen, onSetModel, refresh, removeControlChangeListener, setAutobinding, setBinderFactory, setControlAccessorFactory, setControlInitializer, setDirty, setErrorProcessors, setHeight, setIgnoredProperties, setInitializeControls, setMessageSource, setModel, setName, setValidator, setWidth, update, validateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportListView

public ReportListView(Report model)

ReportListView

public ReportListView()
Method Detail

init

public void init()

doRefresh

protected void doRefresh()
Description copied from class: AbstractView
Allow subclasses to do custom refresh

Overrides:
doRefresh in class AbstractView<Report>

buildPanel

protected JComponent buildPanel()
Description copied from class: AbstractView
Build the JComponent that hold controls.

Specified by:
buildPanel in class AbstractView<Report>
Returns:
a JCompoent

getReportService

public ReportService getReportService()
Returns:
the persistence service

setReportService

public void setReportService(ReportService reportService)

getPdfIcon

public Icon getPdfIcon()

setPdfIcon

public void setPdfIcon(Icon pdfIcon)

getExcelIcon

public Icon getExcelIcon()

setExcelIcon

public void setExcelIcon(Icon excelIcon)

getReportType

public ReportType getReportType()

setReportType

public void setReportType(ReportType type)

setReportProvider

public void setReportProvider(ReportDataProvider reportProvider)

getDataSource

public DataSource getDataSource()

setDataSource

public void setDataSource(DataSource dataSource)

reportChanged

public void reportChanged(EventObject event)
Specified by:
reportChanged in interface ReportEventListener

getReportManager

public ReportManager getReportManager()
Returns:
the reportManager

setReportManager

public void setReportManager(ReportManager reportManager)
Parameters:
reportManager - the reportManager to set


Copyright © 2013 JDAL. All Rights Reserved.