com.mucommander.ui.main.table
Class Columns

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

public class Columns
extends java.lang.Object

Defines columns related constants.

Author:
Maxence Bernard, Nicolas Rinaudo

Field Summary
static int COLUMN_COUNT
          Total number of columns
static int DATE
          Identifier of the date column.
static int EXTENSION
          Identifier of the extension column.
static int GROUP
          Identifier of the group column.
static int NAME
          Identifier of the name column.
static int OWNER
          Identifier of the owner column.
static int PERMISSIONS
          Identifier of the permissions column.
static int SIZE
          Identifier of the size column.
 
Method Summary
static java.lang.String getColumnLabel(int column)
          Returns the localised name of the specified column.
static java.lang.String getColumnName(int column)
          Returns the specified column's identifier as a string.
static int getMinimumColumnWidth(int column)
          Returns the minimum width of the specified column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENSION

public static final int EXTENSION
Identifier of the extension column.

See Also:
Constant Field Values

NAME

public static final int NAME
Identifier of the name column.

See Also:
Constant Field Values

SIZE

public static final int SIZE
Identifier of the size column.

See Also:
Constant Field Values

DATE

public static final int DATE
Identifier of the date column.

See Also:
Constant Field Values

PERMISSIONS

public static final int PERMISSIONS
Identifier of the permissions column.

See Also:
Constant Field Values

OWNER

public static final int OWNER
Identifier of the owner column.

See Also:
Constant Field Values

GROUP

public static final int GROUP
Identifier of the group column.

See Also:
Constant Field Values

COLUMN_COUNT

public static final int COLUMN_COUNT
Total number of columns

See Also:
Constant Field Values
Method Detail

getColumnName

public static java.lang.String getColumnName(int column)
Returns the specified column's identifier as a string.

Note that the returned identifier should never be used as a displayable label, as it's not localised. It's only meant for internal use.

Parameters:
column - identifier of the column whose name should be retrieved.
Returns:
the specified column's identifier as a string.

getColumnLabel

public static java.lang.String getColumnLabel(int column)
Returns the localised name of the specified column.

Parameters:
column - column whose name should be returned.
Returns:
the localised name of the specified column.

getMinimumColumnWidth

public static int getMinimumColumnWidth(int column)
Returns the minimum width of the specified column.

Parameters:
column - column whose minimum width should be returned.
Returns:
the minimum width of the specified column.


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