Package | Description |
---|---|
tlass.project | |
tlass.project.gui.panels | |
tlass.project.model |
Modifier and Type | Method and Description |
---|---|
Section |
ModelHandler.addNewSection()
Adds a new Section to the model
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Section> |
Controller.getSections()
Returns the sections currently in the model.
|
Modifier and Type | Method and Description |
---|---|
Position |
ModelHandler.addLAPosition(Section s)
Adds a new LA Position to the provided section
|
boolean |
ModelHandler.addSectionSkill(Section section,
Skill newSkill)
Add a skill that is required of an Assistant to the Section
also checks to see if the skill is already present before adding it
|
void |
ModelHandler.addSectionSkill(Section section,
java.lang.String newSkillName)
Add a skill that is required of an Assistant to the Section
|
void |
ModelHandler.addSectionTime(Section section,
int day,
int start,
int end) |
Position |
ModelHandler.addTAPosition(Section s)
Adds a new TA position to the provided section.
|
void |
ModelHandler.removeSectionSkill(Section section,
Skill selectedSkill)
Removes a skill that is required of an Assistant from the Section.
|
void |
ModelHandler.removeSectionTimeDay(Section section,
int day)
Remove any timeblocks with a certain day from a section
|
void |
ModelHandler.restoreSection(Section section,
Section sectionBackup)
Restores a section from a backup
|
void |
ModelHandler.setSectionEnrolledMax(Section section,
java.lang.String text)
Set a sections enrolled maximum
|
void |
ModelHandler.setSectionId(Section section,
java.lang.String text)
Sets a sections id
|
void |
ModelHandler.setSectionInstructor(Section section,
Instructor selectedItem)
Sets a sections instructor
|
void |
ModelHandler.setSectionLocation(Section section,
java.lang.String text)
Sets a sections location
|
void |
ModelHandler.setSectionTime(Section section,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
void |
Controller.setSections(java.util.ArrayList<Section> s)
Set the sections in the model to the ones specified.
|
Modifier and Type | Method and Description |
---|---|
Section |
SectionPanel.getSection() |
Modifier and Type | Method and Description |
---|---|
void |
SectionPanel.setSection(Section s) |
Constructor and Description |
---|
SectionPanel(Controller c,
Section s,
javax.swing.JTree st,
javax.swing.tree.DefaultMutableTreeNode n,
MainWindow mw) |
Modifier and Type | Method and Description |
---|---|
Section |
Section.copy()
Clones all of the data for the section
|
Section |
Position.getSection()
returns the section
|
Section[] |
Model.getSectionsArray()
Returns the list of sections in the modeel as an array,
rather than as an arrayList.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Section> |
Model.getSections()
Gets the list of all of the sections currently in the model.
|
java.util.ArrayList<Section> |
Model.getSortedSections()
Returns the sections that are currently in the model
they are sorted alphabetically.
|
Modifier and Type | Method and Description |
---|---|
void |
Model.addSection(Section s)
Adds a new Section to the model, adding appropriate references to other components
in the Model that require them.
|
boolean |
Section.intersect(Section secondSection)
Checks to see if there is a time conflict
|
void |
Model.removeSection(Section s)
Removes a section from the Model, also ensuring that there
are no references to the section in any component of the Model.
|
void |
Model.renameSection(Section s,
java.lang.String name)
Renames a Section to a specified name.
|
void |
Section.restore(Section sectionBackup)
Restores the section data to the data stored in the backup,
reverting any changes
|
void |
Position.setSection(Section section)
Sets the section
|
void |
Schedule.unassignSection(Section s)
Removes any references to the section from the schedule.
|
boolean |
Schedule.uses(Section section)
Checks whether a given Section is used at all in the schedule
|
Modifier and Type | Method and Description |
---|---|
void |
Model.setSections(java.util.ArrayList<Section> sections)
Sets the list of sections in the model to the list supplied.
|
Constructor and Description |
---|
Position(Section s,
boolean isTA,
int o)
Constructor for Position
|