phenote.charactertemplate
Class CharacterTemplateController
java.lang.Object
phenote.charactertemplate.CharacterTemplateController
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, TemplateChoiceListener, CharListChangeListener, CharChangeListener
- Direct Known Subclasses:
- SpecimenListController
public class CharacterTemplateController
- extends java.lang.Object
- implements java.awt.event.ActionListener, TemplateChoiceListener, CharChangeListener, CharListChangeListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHOW_CHARACTER_TEMPLATE_ACTION
public static final java.lang.String SHOW_CHARACTER_TEMPLATE_ACTION
- See Also:
- Constant Field Values
IMPORT_TEMPLATE_CHARACTERS_ACTION
public static final java.lang.String IMPORT_TEMPLATE_CHARACTERS_ACTION
- See Also:
- Constant Field Values
EXPORT_TEMPLATE_CHARACTERS_ACTION
public static final java.lang.String EXPORT_TEMPLATE_CHARACTERS_ACTION
- See Also:
- Constant Field Values
CharacterTemplateController
public CharacterTemplateController(java.lang.String groupName)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
showCharacterTemplate
public void showCharacterTemplate()
importCharacters
public void importCharacters()
exportCharacters
public void exportCharacters()
addNewCharacter
public void addNewCharacter()
deleteSelectedCharacters
public void deleteSelectedCharacters()
duplicateSelectedCharacters
public void duplicateSelectedCharacters()
markSelectedCharacters
public void markSelectedCharacters()
unmarkSelectedCharacters
public void unmarkSelectedCharacters()
undo
public void undo()
invertMarkedCharacters
public void invertMarkedCharacters()
isCharacterMarked
public boolean isCharacterMarked(CharacterI character)
setCharacterIsMarked
public void setCharacterIsMarked(CharacterI character,
boolean selected)
getMarkedCharacters
public java.util.List<CharacterI> getMarkedCharacters()
setMarkedCharacters
public void setMarkedCharacters(java.util.Collection<CharacterI> charactersToMark)
setCharactersAreMarked
public void setCharactersAreMarked(java.util.List<CharacterI> characters,
boolean marked)
generateCharacters
public void generateCharacters()
getSelectionModel
public ca.odell.glazedlists.swing.EventSelectionModel<CharacterI> getSelectionModel()
getAllCharacters
public java.util.List<CharacterI> getAllCharacters()
getWindow
public javax.swing.JFrame getWindow()
getComponent
public javax.swing.JComponent getComponent()
templateChoiceChanged
public void templateChoiceChanged(TemplateChooser source)
- Specified by:
templateChoiceChanged in interface TemplateChoiceListener
charChanged
public void charChanged(CharChangeEvent e)
- Specified by:
charChanged in interface CharChangeListener
newCharList
public void newCharList(CharListChangeEvent e)
- Specified by:
newCharList in interface CharListChangeListener