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

pkgMcj.Mcj Class Reference

Collaboration diagram for pkgMcj.Mcj:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 17 of file Mcj.java.

Public Member Functions

 Mcj ()
void errorMsg (String msg)
String getSystemProperty (String key)
void setState (int stateArg)

Static Public Member Functions

static void main (String[] args)
static void goodbye (String s)

Public Attributes

final int STATE_NULL = 0
 nothing to do
final int STATE_VIEW1 = 1
 1 panel; wide view
final int STATE_2PL = 2
 2 panels; left focus
final int STATE_2PR = 3
 2 panels; right focus
final int STATE_1PL = 4
 1 panels; left focus
final int STATE_1PR = 5
 1 panels; right focus
final int STATE_HELP = 6
 popup F1; help
final int STATE_MENU = 7
 popup F2; menu
final int STATE_VIEW = 8
 popup F3; view
final int STATE_EDIT = 9
 popup F4; edit
final int STATE_COPY = 10
 popup F5; copy
final int STATE_MOVE = 11
 popup F6; move
final int STATE_MKDIR = 12
 popup F7; mkdir
final int STATE_DEL = 13
 popup F8; delete
final int STATE_PULDN = 14
 popup F9; pulldown menus
final int STATE_EXIT = 15
 popup F10; exit
final int PANEL_LEFT = 1
 id; left panel
final int PANEL_RIGHT = 2
 id; right panel
final int DROP_LEFT = 4
 id; left drop menu
final int DROP_FILE = 5
 id; drop file menu
final int DROP_OPTION = 6
 id; drop option menu
final int DROP_CMD = 7
 id; drop cmd menu
final int DROP_RIGHT = 8
 id; right drop menu
int currentMode = STATE_2PL
 initially, a 2-panel view

Package Functions

void testFolder ()

Static Package Attributes

static FileOut logFile
 logfile


Constructor & Destructor Documentation

pkgMcj.Mcj.Mcj  ) 
 

constructs an ncurses split window closely resembling Midnight Commander. opens a log file.

Definition at line 53 of file Mcj.java.

References pkgMcj.Mcj.currentMode, pkgView.Keyboard.getLastKey(), pkgView.Keyboard.getSingleton(), pkgView.ScreenKit.getSingleton(), pkgMcj.Mcj.getSystemProperty(), pkgView.Keyboard.KEY_F10, pkgView.Keyboard.KEY_NEWMODE, pkgMcj.Mcj.logFile, pkgUtil.FileOut.openFile(), pkgView.ScreenKit.PAIR_BLACK_CYAN, pkgView.ScreenKit.PAIR_WHITE_BLACK, pkgView.ScreenKit.PANEL_HINT_ROW, pkgMcj.Mcj.PANEL_LEFT, pkgMcj.Mcj.PANEL_RIGHT, pkgView.ScreenKit.PANEL_SHELL_ROW, pkgMcj.MenuBar.redraw(), pkgMcj.PanelGrid.redraw(), pkgMcj.FunctionBar.redraw(), pkgMcj.PanelGrid.reload_page(), pkgView.TextItem.setAttribute(), pkgView.TextItem.setColors(), pkgMcj.PanelGrid.setCurrentPath(), pkgView.Keyboard.setKey(), pkgView.TextItem.setPosition(), pkgView.TextItem.setSelected(), pkgView.TextItem.setText(), pkgView.ScreenKit.SK_NORMAL, pkgView.ScreenKit.ttyEndWin(), and pkgView.ScreenKit.ttyRefresh().

Referenced by pkgMcj.Mcj.main().


Member Function Documentation

static void pkgMcj.Mcj.main String[]  args  )  [static]
 

start Mcj

Definition at line 37 of file Mcj.java.

References pkgMcj.Mcj.goodbye(), and pkgMcj.Mcj.Mcj().

void pkgMcj.Mcj.errorMsg String  msg  ) 
 

prints an error on the shell line, waits for any key

Definition at line 223 of file Mcj.java.

References pkgView.Keyboard.inputKey(), pkgView.TextItem.redraw(), pkgView.TextItem.setText(), and pkgView.ScreenKit.ttyRefresh().

Referenced by pkgMcj.Cmd.doCmd(), pkgMcj.PanelGrid.getFullPath(), pkgMcj.Folder.getLongDate(), pkgMcj.Folder.getStringDate(), pkgMcj.Folder.loadNames(), pkgMcj.PanelGrid.loadPage(), and pkgMcj.PanelGrid.redraw().

void pkgMcj.Mcj.testFolder  )  [package]
 

test

Definition at line 366 of file Mcj.java.

References pkgMcj.Folder.getFolderName(), pkgMcj.Folder.getLength(), pkgMcj.Folder.getNextName(), pkgMcj.Folder.getNumEntries(), pkgMcj.Mcj.getSystemProperty(), pkgMcj.Folder.loadNames(), pkgMcj.Mcj.logFile, and pkgUtil.FileOut.putString().

String pkgMcj.Mcj.getSystemProperty String  key  ) 
 

gets a system property, traps exceptions.

Parameters:
key such as "user.dir"
Returns:
the property string value.

Definition at line 394 of file Mcj.java.

References pkgMcj.Mcj.logFile, and pkgUtil.FileOut.putString().

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

void pkgMcj.Mcj.setState int  stateArg  ) 
 

sets state and notifies key listeners. this usually results in a display change.

Definition at line 443 of file Mcj.java.

References pkgMcj.Mcj.currentMode.

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


Member Data Documentation

final int pkgMcj.Mcj.STATE_NULL = 0
 

these are Mcj states representing different views

Definition at line 410 of file Mcj.java.

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


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