home *** CD-ROM | disk | FTP | other *** search
- package printplugin;
-
- import devplugin.Program;
-
- public abstract class AbstractColumnModel implements ColumnModel {
- private String mTitle;
- private Program[] mPrograms;
-
- public AbstractColumnModel() {
- this.mPrograms = new Program[0];
- }
-
- public AbstractColumnModel(Program[] progs) {
- this.mPrograms = progs;
- }
-
- public void setPrograms(Program[] progs) {
- this.mPrograms = progs;
- }
-
- public Program getProgramAt(int inx) {
- return inx >= 0 && inx < this.mPrograms.length ? this.mPrograms[inx] : null;
- }
-
- public int getProgramCount() {
- return this.mPrograms == null ? 0 : this.mPrograms.length;
- }
- }
-