Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.yaftp.ftp
Class SwingFtpTable  view SwingFtpTable download SwingFtpTable.java

java.lang.Object
  extended byjava.util.Observable
      extended bycom.yaftp.ftp.SwingFtpTable

public class SwingFtpTable
extends java.util.Observable

wrap and customize a JTable for FTP File list purpose


Nested Class Summary
(package private)  class SwingFtpTable._DATAMODEL_
           
(package private)  class SwingFtpTable._FILE_COLUMNS_RENDERER_
           
(package private)  class SwingFtpTable._MOUSE_CLICK_
           
 
Field Summary
private  java.awt.CardLayout _cardlayout
           
private  java.lang.String[] _colNames
           
private  java.util.Vector _data
           
private  java.lang.Object[][] _displayedData
           
protected  com.yaftp.utils.SwingEhnStatusBar _errReport
           
private  java.lang.String[] _expandedColNames
           
private  boolean _expandedState
           
private  javax.swing.ImageIcon _FILE_ICON_
           
private static java.lang.String _FILE_NAMES_
           
private  javax.swing.ImageIcon _FOLDER_ICON_
           
private  SwingFtpTable._DATAMODEL_ _model
           
private  javax.swing.JPanel _panel
           
private  javax.swing.JTable _table
           
 
Fields inherited from class java.util.Observable
 
Constructor Summary
SwingFtpTable(java.lang.String title, com.yaftp.utils.SwingEhnStatusBar errReport)
          FTP Table style constructor
 
Method Summary
private  void buildColapsed()
           
private  void buildExpanded()
           
private  void buildPanel(java.lang.String title)
           
private  void buildTable()
           
 void clearData()
          very simple way of clearing table content
 javax.swing.ImageIcon get_FileIcon()
           
 javax.swing.ImageIcon get_FolderIcon()
           
 javax.swing.JPanel get_panel()
           
 FtpOsFile[] getCurrentlySelectedFiles()
           
static void main(java.lang.String[] arg)
           
private  void notifyTableContainer()
           
 void set_colapsed()
          Make the colapsed window visible
 void set_expanded()
          Make the expanded window visible
 void setData(java.util.Vector data, java.lang.String[] expandedColumnNames)
          Get LIST FILE data and Os dependent titles
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_panel

private javax.swing.JPanel _panel

_cardlayout

private java.awt.CardLayout _cardlayout

_FILE_ICON_

private final javax.swing.ImageIcon _FILE_ICON_

_FOLDER_ICON_

private final javax.swing.ImageIcon _FOLDER_ICON_

_FILE_NAMES_

private static final java.lang.String _FILE_NAMES_
See Also:
Constant Field Values

_table

private javax.swing.JTable _table

_model

private SwingFtpTable._DATAMODEL_ _model

_expandedColNames

private java.lang.String[] _expandedColNames

_colNames

private java.lang.String[] _colNames

_expandedState

private boolean _expandedState

_errReport

protected com.yaftp.utils.SwingEhnStatusBar _errReport

_displayedData

private java.lang.Object[][] _displayedData

_data

private java.util.Vector _data
Constructor Detail

SwingFtpTable

public SwingFtpTable(java.lang.String title,
                     com.yaftp.utils.SwingEhnStatusBar errReport)
FTP Table style constructor

Method Detail

get_panel

public javax.swing.JPanel get_panel()

get_FolderIcon

public javax.swing.ImageIcon get_FolderIcon()

get_FileIcon

public javax.swing.ImageIcon get_FileIcon()

getCurrentlySelectedFiles

public FtpOsFile[] getCurrentlySelectedFiles()

notifyTableContainer

private void notifyTableContainer()

buildPanel

private void buildPanel(java.lang.String title)

buildTable

private void buildTable()

clearData

public void clearData()
very simple way of clearing table content


setData

public void setData(java.util.Vector data,
                    java.lang.String[] expandedColumnNames)
Get LIST FILE data and Os dependent titles


set_colapsed

public void set_colapsed()
Make the colapsed window visible


set_expanded

public void set_expanded()
Make the expanded window visible


buildColapsed

private void buildColapsed()

buildExpanded

private void buildExpanded()

main

public static void main(java.lang.String[] arg)