com.u2d.element
Class Member

java.lang.Object
  extended by com.u2d.model.AbstractEObject
      extended by com.u2d.model.AbstractComplexEObject
          extended by com.u2d.element.ProgrammingElement
              extended by com.u2d.element.Member
All Implemented Interfaces:
Searchable, ChangeNotifier, ComplexEObject, EObject, PostChangeNotifier, PropertyChangeNotifier, Typed, Viewable, PersistorListener, AppEventNotifier, ValidationNotifier, java.awt.datatransfer.Transferable, java.io.Serializable
Direct Known Subclasses:
Command, Field

public abstract class Member
extends ProgrammingElement

Author:
Eitan Suez
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.u2d.model.AbstractComplexEObject
AbstractComplexEObject.EditState, AbstractComplexEObject.NullState, AbstractComplexEObject.ReadState, AbstractComplexEObject.TransientState
 
Field Summary
protected  char _mnemonic
           
protected  FieldParent _parent
           
 
Fields inherited from class com.u2d.element.ProgrammingElement
_label, _name
 
Fields inherited from class com.u2d.model.AbstractComplexEObject
_associations, _changeSupport, _createdOn, _currentState, _editState, _nullState, _readState, _stateMap, _transientState, _type, commandOrderEditState, commandOrderReadState, commandOrderTransientState, readOnly
 
Fields inherited from class com.u2d.model.AbstractEObject
_listenerList, _postListeners, _validationEvent, _validationListenerList, changeEvent
 
Constructor Summary
Member()
           
 
Method Summary
 char getMnemonic()
           
 boolean hasMnemonic()
           
static Member member(java.lang.String memberName, java.util.List members)
           
static java.util.Comparator nameComparator(java.lang.String[] memberOrder)
           
 FieldParent parent()
           
 void setMnemonic(char mnemonic)
          Note: when dealing with Swing: JButtons bound to swing Action's Then the mnemonic is set via a call to putValue() which takes as an argument, the Integer value of the mnemonic character.
 
Methods inherited from class com.u2d.element.ProgrammingElement
deriveLabel, deriveLabel, getLabel, getName, isMeta, label, name, title, toString
 
Methods inherited from class com.u2d.model.AbstractComplexEObject
addAppEventListener, addPropertyChangeListener, addPropertyChangeListener, association, cancelTransition, childFields, cleanCGILibEnhancer, clearEditor, command, command, commands, createInstance, defaultCommand, defaultCommandName, delete, doSave, equals, field, fieldSublist, fireAppEventNotification, fireAppEventNotification, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreatedOn, getDeleted, getDeletedOn, getExpandableView, getFormView, getIconView, getID, getInequalities, getListItemView, getMainView, getState, getTabBodyView, getTransferData, getTransferDataFlavors, getTreeView, getView, iconLg, iconSm, initialize, isDataFlavorSupported, isEditableState, isEditState, isEmpty, isNullState, isTransientState, log, makeCopy, onBeforeCreate, onBeforeSave, onCreate, onDelete, onLoad, onSave, popState, pushState, removeAppEventListener, removePropertyChangeListener, removePropertyChangeListener, restoreCopy, restoredState, restoreState, save, saveCopy, setEditor, setEditState, setID, setNullState, setReadState, setStartState, setState, setState, setTransientState, setValue, setValue, startState, treeModel, type, validate
 
Methods inherited from class com.u2d.model.AbstractEObject
addChangeListener, addPostChangeListener, addValidationListener, currentUser, field, fireStateChanged, fireValidationException, fireValidationException, hbmPersistor, parentObject, persistor, removeChangeListener, removePostChangeListener, removeValidationListener, setField, vmech
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.u2d.model.EObject
field, parentObject, setField
 
Methods inherited from interface com.u2d.validation.ValidationNotifier
addValidationListener, fireValidationException, fireValidationException, removeValidationListener
 
Methods inherited from interface com.u2d.model.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
 
Methods inherited from interface com.u2d.model.PostChangeNotifier
addPostChangeListener, fireStateChanged, removePostChangeListener
 

Field Detail

_parent

protected FieldParent _parent

_mnemonic

protected char _mnemonic
Constructor Detail

Member

public Member()
Method Detail

parent

public FieldParent parent()

member

public static Member member(java.lang.String memberName,
                            java.util.List members)

nameComparator

public static java.util.Comparator nameComparator(java.lang.String[] memberOrder)

getMnemonic

public char getMnemonic()

hasMnemonic

public boolean hasMnemonic()

setMnemonic

public void setMnemonic(char mnemonic)
Note: when dealing with Swing: JButtons bound to swing Action's Then the mnemonic is set via a call to putValue() which takes as an argument, the Integer value of the mnemonic character. I have verified that there's a bug in java where the integer value must be the integer code of the upper case version of the mnemonic. Otherwise, invoking the mnemonic won't work (although it will display correctly). This should explain the implementation below: