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

pkgMcj.PanelGrid Class Reference

Collaboration diagram for pkgMcj.PanelGrid:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 23 of file PanelGrid.java.

Public Member Functions

 PanelGrid (Mcj parent, int panelId)
String getFullPath ()
String getDir ()
void redraw (boolean clearFlag)
boolean hasFocus ()
boolean checkKey (boolean flag, int keyItem)
void setCurrentPath (String pathName)
void loadPage (String dirName)
void reload_page ()


Constructor & Destructor Documentation

pkgMcj.PanelGrid.PanelGrid Mcj  parent,
int  panelId
 

constructor allocates store for a column of file names

Parameters:
parent Mcj reference
panelId unique ID for this object

Definition at line 58 of file PanelGrid.java.

References pkgView.ScreenKit.COLOR_TITLE, pkgMcj.PanelRow.fileRef, pkgMcj.Mcj.getSystemProperty(), pkgMcj.PanelRow.itemName, pkgMcj.PanelRow.itemSize, pkgMcj.PanelRow.itemTime, pkgView.ScreenKit.PAIR_BLACK_WHITE, pkgView.ScreenKit.PAIR_WHITE_BLUE, pkgMcj.Mcj.PANEL_LEFT, pkgView.ScreenKit.PANEL_TS, pkgView.TextItem.setAttribute(), pkgMcj.PanelRow.setAttributes(), pkgMcj.PanelRow.setColors(), pkgView.TextItem.setColors(), pkgView.TextItem.setPosition(), pkgView.TextItem.setSelected(), pkgView.TextItem.setText(), pkgView.ScreenKit.SK_BOLD, and pkgView.ScreenKit.SK_NORMAL.


Member Function Documentation

void pkgMcj.PanelGrid.redraw boolean  clearFlag  ) 
 

redraws the panels within the main box

Definition at line 183 of file PanelGrid.java.

References pkgView.ScreenKit.COLOR_BOX, pkgMcj.Mcj.errorMsg(), pkgMcj.PanelRow.fileRef, pkgView.TextItem.getText(), pkgMcj.PanelGrid.hasFocus(), pkgMcj.PanelRow.itemName, pkgMcj.PanelRow.itemSize, pkgMcj.PanelRow.itemTime, pkgView.ScreenKit.PANEL_BS, pkgView.ScreenKit.PANEL_TS, pkgMcj.PanelRow.redraw(), pkgView.TextItem.redraw(), pkgView.TextItem.setSelected(), pkgView.TextItem.setText(), pkgView.ScreenKit.ttyDrawBox(), pkgView.ScreenKit.ttyDrawHline(), and pkgView.ScreenKit.ttyDrawVline().

Referenced by pkgMcj.PanelGrid.checkKey(), and pkgMcj.Mcj.Mcj().

boolean pkgMcj.PanelGrid.hasFocus  ) 
 

tests the focus for this panel. When a panel has focus, strings are highlighted with arrow keys traversal.

Returns:
flag .. true if has focus

Definition at line 316 of file PanelGrid.java.

References pkgMcj.Mcj.currentMode, pkgMcj.Mcj.PANEL_LEFT, pkgMcj.Mcj.PANEL_RIGHT, pkgMcj.Mcj.STATE_1PL, pkgMcj.Mcj.STATE_1PR, pkgMcj.Mcj.STATE_2PL, and pkgMcj.Mcj.STATE_2PR.

Referenced by pkgMcj.PanelGrid.redraw().

boolean pkgMcj.PanelGrid.checkKey boolean  flag,
int  keyItem
 

updates the widget according to keyboard item and system mode.

Parameters:
flag ..
keyItem .. key was pressed
Returns:
true .. if key was handled here

Definition at line 374 of file PanelGrid.java.

References pkgView.Keyboard.KEY_NEWMODE, pkgMcj.PanelGrid.redraw(), pkgMcj.Mcj.setState(), and pkgMcj.Mcj.STATE_NULL.

void pkgMcj.PanelGrid.setCurrentPath String  pathName  ) 
 

sets the current file path in the top row of the box.

Definition at line 407 of file PanelGrid.java.

References pkgView.TextItem.setText().

Referenced by pkgMcj.PanelGrid.loadPage(), and pkgMcj.Mcj.Mcj().

void pkgMcj.PanelGrid.loadPage String  dirName  ) 
 

loads files into the view when a new folder is selected

Definition at line 417 of file PanelGrid.java.

References pkgMcj.Mcj.errorMsg(), pkgMcj.Folder.loadNames(), and pkgMcj.PanelGrid.setCurrentPath().

Referenced by pkgMcj.PanelGrid.reload_page().


The documentation for this class was generated from the following file:
SourceForge.net Logo