com.mucommander.ui.main.table
Class FileTableConfiguration

java.lang.Object
  extended by com.mucommander.ui.main.table.FileTableConfiguration

public class FileTableConfiguration
extends java.lang.Object

Describes a file table's initial configuration.

Author:
Nicolas Rinaudo

Constructor Summary
FileTableConfiguration()
          Creates a new file table configuration.
 
Method Summary
 int getPosition(int column)
          Returns the desired initial position of the specified column.
 int getWidth(int column)
          Returns the initial width of the specified column.
 boolean isEnabled(int column)
          Returns true if the specified column is enabled.
 void setEnabled(int column, boolean flag)
          Sets the enabled state of the specified column.
 void setPosition(int column, int position)
          Sets the specified column's initial position.
 void setWidth(int column, int value)
          Sets the specified column's width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTableConfiguration

public FileTableConfiguration()
Creates a new file table configuration.

Method Detail

isEnabled

public boolean isEnabled(int column)
Returns true if the specified column is enabled.

Parameters:
column - column whose enabled state should be returned.
Returns:
true if the specified column is enabled, false otherwise.

setEnabled

public void setEnabled(int column,
                       boolean flag)
Sets the enabled state of the specified column.

Note that the Columns.NAME column's enabled state is ignored as it will always be enabled.

Parameters:
column - column whose enabled state should be set.
flag - whether the column should be enabled.

getWidth

public int getWidth(int column)
Returns the initial width of the specified column.

Parameters:
column - column whose width should be retrieved.
Returns:
the requested column's width.

setWidth

public void setWidth(int column,
                     int value)
Sets the specified column's width.

Note that the Columns.NAME column's width will be ignored, as it depends on the frame's initial dimensions.

Parameters:
column - column whose width should be set.
value - column's initial width.

getPosition

public int getPosition(int column)
Returns the desired initial position of the specified column.

Note that the returned value isn't necessarily a legal column position. It's used as a comparison value rather than an index.

Parameters:
column - column whose initial position will be returned.
Returns:
the desired initial position of the specified column.

setPosition

public void setPosition(int column,
                        int position)
Sets the specified column's initial position.

Parameters:
column - identifier of the column whose position will be set.
position - desired position for the specified column.


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard