info.joseluismartin.gui.table
Class TableListView<T>

java.lang.Object
  extended by info.joseluismartin.gui.AbstractView<List<T>>
      extended by info.joseluismartin.gui.table.TableListView<T>
All Implemented Interfaces:
BinderHolder, ControlChangeListener, Binder<List<T>>, ModelHolder<List<T>>, View<List<T>>, EventListener

public class TableListView<T>
extends AbstractView<List<T>>

View for showing Lists in a TablePanel

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Field Summary
 
Fields inherited from class info.joseluismartin.gui.AbstractView
DEFAULT_BINDER_FACTORY_NAME, errors, height, messageSource, width
 
Constructor Summary
TableListView()
           
TableListView(List<T> model)
           
TableListView(String tableName)
           
 
Method Summary
protected  JComponent buildPanel()
          Build the JComponent that hold controls.
 GuiFactory getGuiFactory()
           
 void init()
           
static void main(String[] args)
           
 void onSetModel(List<T> model)
          Callback method to handle model changes
 void setGuiFactory(GuiFactory guiFactory)
           
 
Methods inherited from class info.joseluismartin.gui.AbstractView
addControlChangeListener, addView, afterRefresh, afterUpdate, autobind, bind, bind, clear, controlChange, doRefresh, 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, 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

TableListView

public TableListView()

TableListView

public TableListView(List<T> model)

TableListView

public TableListView(String tableName)
Method Detail

init

public void init()

buildPanel

protected JComponent buildPanel()
Build the JComponent that hold controls.

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

onSetModel

public void onSetModel(List<T> model)
Description copied from class: AbstractView
Callback method to handle model changes

Overrides:
onSetModel in class AbstractView<List<T>>
Parameters:
model - the new model

main

public static void main(String[] args)

getGuiFactory

public GuiFactory getGuiFactory()
Returns:
the guiFactory

setGuiFactory

public void setGuiFactory(GuiFactory guiFactory)
Parameters:
guiFactory - the guiFactory to set


Copyright © 2013 JDAL. All Rights Reserved.