Package com.mucommander.ui.main.table

Examples of com.mucommander.ui.main.table.FileTableConfiguration


       
        return result.getURL();
    }

    protected FileTableConfiguration getFileTableConfiguration(FolderPanelType folderPanelType, int window) {
        FileTableConfiguration conf;

        conf = new FileTableConfiguration();

        // Loop on columns
        for(Column c  : Column.values()) {
            if(c!=Column.NAME) {       // Skip the special name column (always visible, width automatically calculated)
              // Sets the column's initial visibility.
              conf.setEnabled(c,
                  MuConfigurations.getSnapshot().getVariable(
                      MuSnapshot.getShowColumnVariable(window, c, folderPanelType == FolderPanelType.LEFT),
                      c.showByDefault()
              )
          );

                // Sets the column's initial width.
                conf.setWidth(c, MuConfigurations.getSnapshot().getIntegerVariable(MuSnapshot.getColumnWidthVariable(window, c, folderPanelType == FolderPanelType.LEFT)));
            }

            // Sets the column's initial order
            conf.setPosition(c, MuConfigurations.getSnapshot().getVariable(
                                    MuSnapshot.getColumnPositionVariable(window, c, folderPanelType == FolderPanelType.LEFT),
                                    c.ordinal())
            );
        }
View Full Code Here

TOP

Related Classes of com.mucommander.ui.main.table.FileTableConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.