Package net.datacrow.settings

Examples of net.datacrow.settings.DcTableSettings


        }
    }

    @Override
    public void saveSettings() {
        DcTableSettings settings = (DcTableSettings) module.getSetting(DcRepository.ModuleSettings.stTableSettings);
       
        if (settings == null) return;
       
        for (Object key : columns.keySet()) {
            if (key instanceof Integer)
                settings.setColumnWidth(((Integer) key).intValue(), columns.get(key).getWidth());
        }
       
        module.setSetting(DcRepository.ModuleSettings.stTableSettings, settings);
    }
View Full Code Here


            }
        }
    }
   
    private int getPreferredWidth(int fieldIdx) {
        DcTableSettings settings = (DcTableSettings) module.getSetting(DcRepository.ModuleSettings.stTableSettings);
        // 75 is defined as the default width by Swing
        return settings == null ? 10 : settings.getWidth(fieldIdx);
    }   
View Full Code Here

                    String[] sFields = new String[fields.size()];
                    value = fields.toArray(sFields);
                    break;
                case DcRepository.ValueTypes._TABLESETTINGS:
                    value = new DcTableSettings(sValue);
                    break;                   
                default:
                    value = sValue;
            }
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of net.datacrow.settings.DcTableSettings

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.