Package org.jdesktop.swingx.renderer

Examples of org.jdesktop.swingx.renderer.StringValue


         * This is implemented to query the table's StringValueRegistry for an appropriate
         * StringValue and use that for getting the string representation.
         */
        @Override
        public String getStringAt(int row, int column) {
            StringValue sv = list.getStringValueRegistry().getStringValue(row, column);
            return sv.getString(getValueAt(row, column));
        }
View Full Code Here


        private String[] monthNames;
        private StringValue tsv ;

        public ZoomOutAction() {
            super();
            tsv = new StringValue() {
               
                public String getString(Object value) {
                    if (value instanceof Calendar) {
                        String month = monthNames[((Calendar) value)
                                                  .get(Calendar.MONTH)];
View Full Code Here

        }
        return super.getCellRenderer(row, column);
    }

    private static TableCellRenderer createStatusRenderer() {
        StringValue sv = new StringValue() {

            @Override
            public String getString(Object value) {
                Icon icon = LogStatusIcons.getIcon((LogStatus) value);
                return icon == null ? value.toString() : null;
View Full Code Here

        return new DefaultTableRenderer(sv, iv, SwingConstants.CENTER);
    }

    private static TableCellRenderer createDateRenderer() {
        final DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);
        StringValue sv = new StringValue() {

            @Override
            public String getString(Object value) {
                return fmt.format((Date) value);
            }
View Full Code Here

        };
        return new DefaultTableRenderer(sv);
    }

    private static TableCellRenderer createDurationRenderer() {
        StringValue sv = new StringValue() {

            @Override
            public String getString(Object value) {
                return ((Duration) value).toString(false);
            }
View Full Code Here

        };
        return new DefaultTableRenderer(sv);
    }

    private static TableCellRenderer createTransferSizeRenderer() {
        StringValue sv = new StringValue() {

            @Override
            public String getString(Object value) {
                return value.toString();
            }
View Full Code Here

            };
            return new DefaultTableRenderer(sv, iv);
        }

        private TableCellRenderer createPrimaryKeyRenderer() {
            StringValue sv = StringValues.EMPTY;
            IconValue iv = new IconValue() {

                @Override
                public Icon getIcon(Object value) {
                    return Boolean.TRUE.equals(value) ? DatabaseUiResources.PRIMARY_KEY_ICON : null;
View Full Code Here

            };
            return new DefaultTableRenderer(sv, iv);
        }

        private TableCellRenderer createIndicatorRenderer() {
            StringValue sv = StringValues.TO_STRING;
            IconValue iv = KongaIconValues.empty(16, 16);
            return new DefaultTableRenderer(sv, iv);
        }
View Full Code Here

            });
            setStyle(TableStyles.normal());
        }

        private TableCellRenderer createRootRenderer() {
            StringValue sv = new StringValue() {

                @Override
                public String getString(Object value) {
                    return ((IntegrationEntity) value).getName();
                }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.renderer.StringValue

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.