phenote.gui
Class CharacterTableController

java.lang.Object
  extended by phenote.gui.CharacterTableController

public class CharacterTableController
extends java.lang.Object


Constructor Summary
CharacterTableController(ScratchGroup group)
           
CharacterTableController(java.lang.String groupName)
           
 
Method Summary
 void addNewCharacter()
          in swixml config conf/character_table_panel.xml the add button New is set up to call this method
 void commitCharacters()
          in swixml config conf/character_table_panel.xml the save button is set up to call this method calls LoadSaveManager saveToDbOrFile() which if has queryable/db adapter saves to db, otherwise saves to file
 void compare()
          this method is fired when comparison button is pressed (if configged) set up as action in conf/character_table_panel.xml swixml config bring up comparison window to compare 2 statements - by default only do 1 comparison at a time (may have pref for doing multiple with commit button? for now if 2 statements not selected then put up error message (eventually put drag & drop in comparator)
 void deleteSelectedCharacters()
          in swixml config conf/character_table_panel.xml the delete button is set up to call this method
 void duplicateSelectedCharacters()
          in swixml config conf/character_table_panel.xml the duplicate button is set up to call this method
 javax.swing.JPanel getCharacterTablePanel()
           
static CharacterTableController getDefaultController()
           
 EditManager getEditManager()
           
 java.lang.String getGroup()
           
 ca.odell.glazedlists.swing.EventSelectionModel<CharacterI> getSelectionModel()
           
 void makeOntology()
          set up as action method in character_table_panel.xml swix config make terms button has been hit by user - go off and make terms if we have a TermMaker - otherwise do nothing - error msg, this assumes for moment that there is only 1 term maker - if we need more than need to deal with that
 void removeOldButtons()
          This method is temporary and should be removed once we move fully to Phenote 2.
 void setComponentTitleFromFilename()
          This is clearly unfinshed as it doesnt do anything - everything is commented out.
 void setFieldPanelForUpdating(FieldPanel panel)
          Set a FieldPanel which the table should keep up to date when its selection model is replaced.
 void undo()
          in swixml config conf/character_table_panel.xml the undo button is set up to call this method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterTableController

public CharacterTableController(java.lang.String groupName)

CharacterTableController

public CharacterTableController(ScratchGroup group)
Method Detail

getDefaultController

public static CharacterTableController getDefaultController()

getCharacterTablePanel

public javax.swing.JPanel getCharacterTablePanel()

addNewCharacter

public void addNewCharacter()
in swixml config conf/character_table_panel.xml the add button New is set up to call this method


duplicateSelectedCharacters

public void duplicateSelectedCharacters()
in swixml config conf/character_table_panel.xml the duplicate button is set up to call this method


deleteSelectedCharacters

public void deleteSelectedCharacters()
in swixml config conf/character_table_panel.xml the delete button is set up to call this method


undo

public void undo()
in swixml config conf/character_table_panel.xml the undo button is set up to call this method


commitCharacters

public void commitCharacters()
in swixml config conf/character_table_panel.xml the save button is set up to call this method calls LoadSaveManager saveToDbOrFile() which if has queryable/db adapter saves to db, otherwise saves to file


makeOntology

public void makeOntology()
set up as action method in character_table_panel.xml swix config make terms button has been hit by user - go off and make terms if we have a TermMaker - otherwise do nothing - error msg, this assumes for moment that there is only 1 term maker - if we need more than need to deal with that


compare

public void compare()
this method is fired when comparison button is pressed (if configged) set up as action in conf/character_table_panel.xml swixml config bring up comparison window to compare 2 statements - by default only do 1 comparison at a time (may have pref for doing multiple with commit button? for now if 2 statements not selected then put up error message (eventually put drag & drop in comparator)


getSelectionModel

public ca.odell.glazedlists.swing.EventSelectionModel<CharacterI> getSelectionModel()

getGroup

public java.lang.String getGroup()

removeOldButtons

public void removeOldButtons()
This method is temporary and should be removed once we move fully to Phenote 2. This method should only be called in Phenote 2; the old buttons are left in for compatibility with Phenote 1.


getEditManager

public EditManager getEditManager()

setComponentTitleFromFilename

public void setComponentTitleFromFilename()
This is clearly unfinshed as it doesnt do anything - everything is commented out. I think it means to set the title of the component when theres a new data load - current data file is set by loading new files - however loading from a db (eg worm) doesnt set a file - this should be more genereically named so loading from db can utilize this and this should be wired up to actually set component window title in phenote2 as i think john intended here here is his note from cvs commit of this: Fixed some component/factory titling problems, fixed a bug where Phenote Editor couldn't be the first component displayed


setFieldPanelForUpdating

public void setFieldPanelForUpdating(FieldPanel panel)
Set a FieldPanel which the table should keep up to date when its selection model is replaced. This is only necessary within Phenote 1 and shouldn't be used in Phenote 2.