Examples of DcTableSettings


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

Examples of net.datacrow.settings.DcTableSettings

            }
        }
    }
   
    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

Examples of net.datacrow.settings.DcTableSettings

                    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
Copyright © 2018 www.massapi.com. 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.