hibergui.assoc
Class ListEdit_List<T>

java.lang.Object
  extended by hibergui.Component<T>
      extended by hibergui.Edit<C>
          extended by hibergui.assoc.AssociationEdit<T,C>
              extended by hibergui.assoc.M2MEdit<T,C>
                  extended by hibergui.assoc.M2MEdit_List<T,java.util.List<T>>
                      extended by hibergui.assoc.ListEdit_List<T>

public abstract class ListEdit_List<T>
extends M2MEdit_List<T,java.util.List<T>>

Author:
espakm TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Nested Class Summary
 
Nested classes/interfaces inherited from class hibergui.Edit
Edit.DefaultComputation<TT>, Edit.EditConstraint
 
Field Summary
private  org.eclipse.swt.widgets.Button btnDown
           
private  org.eclipse.swt.widgets.Button btnUp
           
 
Fields inherited from class hibergui.assoc.M2MEdit_List
btnRemove, editProp, lst, lsv
 
Fields inherited from class hibergui.assoc.AssociationEdit
btnAssoc, dlgAssoc
 
Fields inherited from class hibergui.Edit
form, lsn_TRAVERSE, lsn_WIDGET_MOD, value
 
Fields inherited from class hibergui.Component
lsn_WIDGET_FOCUS, lsn_WIDGET_KEY, style
 
Constructor Summary
ListEdit_List(Form<?> form, org.eclipse.swt.widgets.Composite cptParent, int style, java.lang.String prop, java.lang.String name, java.lang.String editProp)
           
 
Method Summary
 void clear()
          Clears the controls of the edit.
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite cptParent)
          Creates the GUI contents of the component.
 void fill()
          Fills the controls of the edit with its actual value.
protected  void selectionChanged()
           
 void setEnabled(boolean b)
           
 
Methods inherited from class hibergui.assoc.M2MEdit_List
add, createAssocDialogButton, createList, createRemoveButton, extract, getItemText, isEnabled, remove, setBackground, setFocus
 
Methods inherited from class hibergui.assoc.M2MEdit
createForm, createForm, setSelection
 
Methods inherited from class hibergui.assoc.AssociationEdit
createAssocDialog, refresh, setEditable
 
Methods inherited from class hibergui.Edit
addConstraint, addConstraint, addModificationListener, addTraverseListener, fireKeyPressed, fireKeyReleased, fireTraversal, fix, get, getDefault, getName, getPropertyName, hasDefault, isDirty, isEditable, isFixed, isValid, markClean, markDirty, markInvalid, markValid, removeConstraint, removeConstraint, removeModificationListener, removeTraverseListener, resetBackground, set, setDefault, setDefault, setDefault, verify
 
Methods inherited from class hibergui.Component
addChangeListener, addControlListener, addFocusListener, addKeyListener, dispose, fireChange, getControl, init, removeChangeListener, removeControlListener, removeFocusListener, removeKeyListener, setLayoutData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

btnUp

private org.eclipse.swt.widgets.Button btnUp

btnDown

private org.eclipse.swt.widgets.Button btnDown
Constructor Detail

ListEdit_List

public ListEdit_List(Form<?> form,
                     org.eclipse.swt.widgets.Composite cptParent,
                     int style,
                     java.lang.String prop,
                     java.lang.String name,
                     java.lang.String editProp)
Method Detail

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite cptParent)
Description copied from class: Component
Creates the GUI contents of the component. Subclasses should override it.

Specified by:
createContents in class Component<java.util.List<T>>
Parameters:
cptParent - The composite which the component will be placed on. The parent of the control of the component.
Returns:
The control of the component containing its GUI elements.

selectionChanged

protected void selectionChanged()
Overrides:
selectionChanged in class M2MEdit_List<T,java.util.List<T>>

clear

public void clear()
Description copied from class: Edit
Clears the controls of the edit.

Overrides:
clear in class AssociationEdit<T,java.util.List<T>>

fill

public void fill()
Description copied from class: Edit
Fills the controls of the edit with its actual value.

Specified by:
fill in class Edit<java.util.List<T>>

setEnabled

public void setEnabled(boolean b)
Overrides:
setEnabled in class M2MEdit_List<T,java.util.List<T>>