info.joseluismartin.gui
Class AttachmentView

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

public class AttachmentView
extends AbstractView<List<Attachment>>

Attachment View

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
AttachmentView()
           
AttachmentView(ArrayList<Attachment> attachments)
           
 
Method Summary
protected  JComponent buildPanel()
          Build the JComponent that hold controls.
protected  void doRefresh()
          Allow subclasses to do custom refresh
protected  void doUpdate()
          Callback method on update()
 Icon getAddIcon()
           
 ListCellRenderer getListCellRenderer()
           
 Icon getRemoveIcon()
           
 void init()
           
 void setAddIcon(Icon addIcon)
           
 void setListCellRenderer(ListCellRenderer listCellRenderer)
           
 void setRemoveIcon(Icon removeIcon)
           
 
Methods inherited from class info.joseluismartin.gui.AbstractView
addControlChangeListener, addView, afterRefresh, afterUpdate, autobind, bind, bind, clear, controlChange, 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

AttachmentView

public AttachmentView()

AttachmentView

public AttachmentView(ArrayList<Attachment> attachments)
Method Detail

init

public void init()

buildPanel

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

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

doRefresh

protected void doRefresh()
Allow subclasses to do custom refresh

Overrides:
doRefresh in class AbstractView<List<Attachment>>

doUpdate

protected void doUpdate()
Callback method on update()

Overrides:
doUpdate in class AbstractView<List<Attachment>>

getAddIcon

public Icon getAddIcon()

setAddIcon

public void setAddIcon(Icon addIcon)

getRemoveIcon

public Icon getRemoveIcon()

setRemoveIcon

public void setRemoveIcon(Icon removeIcon)

getListCellRenderer

public ListCellRenderer getListCellRenderer()

setListCellRenderer

public void setListCellRenderer(ListCellRenderer listCellRenderer)


Copyright © 2013 JDAL. All Rights Reserved.