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

Quick Search    Search Deep

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

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

public class SwingFtpTable
extends java.util.Observable

wrap and customize a JTable for FTP File list purpose

Version:
: 0.0.1

Nested Class Summary
(package private)  class SwingFtpTable._COMPONENT_RESIZED_
           
(package private)  class SwingFtpTable._DATAMODEL_
           
(package private)  class SwingFtpTable._FILE_COLUMNS_RENDERER_
           
(package private)  class SwingFtpTable._MOUSE_CLICK_
           
(package private)  class SwingFtpTable._SELECTIONS_
           
 
Field Summary
private  java.awt.CardLayout _cardlayout
           
private  java.lang.String[] _colNames
           
private static int _COLUMN_FILLER_
           
private  int _containerWidth
           
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  com.yaftp.utils.SwingComponentPopup _popup
           
private  com.yaftp.utils.SwingTableColumnSizer _sizer
           
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()
           
 javax.swing.JTable get_table()
           
 FtpSwingSelectedFiles getCurrentlySelectedFiles(int doubleClicked)
           
static void main(java.lang.String[] arg)
           
private  void notifyTableContainer(int doubleClicked)
           
private  void resizeColumn(javax.swing.table.TableColumn column, int nbcols)
           
 void set_colapsed()
          Make the colapsed window visible
 void set_containerWidth(int width)
           
 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

_COLUMN_FILLER_

private static final int _COLUMN_FILLER_
See Also:
Constant Field Values

_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

_sizer

private com.yaftp.utils.SwingTableColumnSizer _sizer

_containerWidth

private int _containerWidth

_model

private SwingFtpTable._DATAMODEL_ _model

_popup

private com.yaftp.utils.SwingComponentPopup _popup

_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()

set_containerWidth

public void set_containerWidth(int width)

getCurrentlySelectedFiles

public FtpSwingSelectedFiles getCurrentlySelectedFiles(int doubleClicked)

notifyTableContainer

private void notifyTableContainer(int doubleClicked)

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


resizeColumn

private void resizeColumn(javax.swing.table.TableColumn column,
                          int nbcols)

buildColapsed

private void buildColapsed()

buildExpanded

private void buildExpanded()

get_table

public javax.swing.JTable get_table()

main

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