org.jtheque.metrics.view.impl.panels
Class MetricsView

java.lang.Object
  extended by org.jtheque.core.managers.view.impl.components.panel.AbstractDelegatedView<AbstractTabPanel>
      extended by org.jtheque.metrics.view.impl.panels.MetricsView
All Implemented Interfaces:
org.jtheque.core.managers.view.able.components.TabComponent, org.jtheque.core.managers.view.able.IView, org.jtheque.core.managers.view.ViewComponent, IMetricsView

public final class MetricsView
extends org.jtheque.core.managers.view.impl.components.panel.AbstractDelegatedView<AbstractTabPanel>
implements IMetricsView

A metrics view implementation.

Author:
Baptiste Wicht

Constructor Summary
MetricsView(MetricsModel model, Action addAction, Action removeAction)
          Construct a new MetricsView.
 
Method Summary
protected  void buildDelegatedView()
           
 JComponent getComponent()
           
 JTextField getFieldName()
          Return the field for name.
 org.jtheque.core.managers.view.impl.components.panel.FileChooserPanel getFileChooser()
          Return the file chooser.
 MetricsModel getModel()
           
 Integer getPosition()
           
 org.jdesktop.swingx.JXTable getTable()
          Return the table of projects.
 ProjectsTableModel getTableModel()
          Return the projects table model.
 String getTitleKey()
           
 
Methods inherited from class org.jtheque.core.managers.view.impl.components.panel.AbstractDelegatedView
buildInEDT, closeDown, display, getImpl, getImplementationView, isEnabled, refresh, sendMessage, setDelegate, setEnabled, toFirstPlan, validateContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jtheque.core.managers.view.able.IView
closeDown, display, isEnabled, refresh, sendMessage, setEnabled, toFirstPlan, validateContent
 
Methods inherited from interface org.jtheque.core.managers.view.ViewComponent
getImpl
 

Constructor Detail

MetricsView

public MetricsView(MetricsModel model,
                   Action addAction,
                   Action removeAction)
Construct a new MetricsView.

Parameters:
model - The model of the view.
addAction - The action to add configuration.
removeAction - The action to remove a configuration.
Method Detail

buildDelegatedView

protected void buildDelegatedView()
Specified by:
buildDelegatedView in class org.jtheque.core.managers.view.impl.components.panel.AbstractDelegatedView<AbstractTabPanel>

getModel

public MetricsModel getModel()
Specified by:
getModel in interface org.jtheque.core.managers.view.able.IView
Specified by:
getModel in interface IMetricsView

getTable

public org.jdesktop.swingx.JXTable getTable()
Description copied from interface: IMetricsView
Return the table of projects.

Specified by:
getTable in interface IMetricsView
Returns:
The table of projects.

getTableModel

public ProjectsTableModel getTableModel()
Description copied from interface: IMetricsView
Return the projects table model.

Specified by:
getTableModel in interface IMetricsView
Returns:
The projects table model.

getFieldName

public JTextField getFieldName()
Description copied from interface: IMetricsView
Return the field for name.

Specified by:
getFieldName in interface IMetricsView
Returns:
The field for the name.

getFileChooser

public org.jtheque.core.managers.view.impl.components.panel.FileChooserPanel getFileChooser()
Description copied from interface: IMetricsView
Return the file chooser.

Specified by:
getFileChooser in interface IMetricsView
Returns:
The file chooser.

getPosition

public Integer getPosition()
Specified by:
getPosition in interface org.jtheque.core.managers.view.able.components.TabComponent

getTitleKey

public String getTitleKey()
Specified by:
getTitleKey in interface org.jtheque.core.managers.view.able.components.TabComponent

getComponent

public JComponent getComponent()
Specified by:
getComponent in interface org.jtheque.core.managers.view.able.components.TabComponent


Copyright © 2010 JTheque. All Rights Reserved.