Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

PanelRow.java

Go to the documentation of this file.
00001 // -*-Java-*-
00002 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00011 
00013 package pkgMcj;
00014 import pkgView.*;
00015 
00017 class PanelRow {
00018 
00019    public String fileRef;       
00020    public TextItem itemName;    
00021    public TextItem itemSize;    
00022    public TextItem itemTime;    
00023    public String itemPrefix;    
00024    public boolean useFlag;      
00025    private static int counter;
00026    private Mcj mcj;
00027 
00028    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00032    public PanelRow( Mcj top ){
00033       mcj = top;
00034       itemName = new TextItem(" ",17);
00035       itemSize = new TextItem(" ", 7);
00036       itemTime = new TextItem(" ",12);
00037       itemPrefix = new String("");
00038       useFlag = false;
00039       counter++;
00040    }
00041 
00042    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00046    public void redraw(){
00047       itemName.redraw();
00048       itemSize.redraw();
00049       itemTime.redraw();
00050    }
00051    
00052    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00056    public void setAttributes( int num ){
00057 
00058       itemName.setAttribute(num);
00059       itemSize.setAttribute(num);
00060       itemTime.setAttribute(num);
00061    }
00062 
00063    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00067    public void setColors( int num1, int num2 ){
00068 
00069       itemName.setColors(num1,num2);
00070       itemSize.setColors(num1,num2);
00071       itemTime.setColors(num1,num2);
00072    }
00073 
00074    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00078    public void clearRow(){
00079       itemName.setText(" ");
00080       itemSize.setText(" ");
00081       itemTime.setText(" ");
00082       itemPrefix = "{";
00083       useFlag = false;
00084    }
00085 
00086 } // end class PanelRow
00087 

SourceForge.net Logo