/** * Creates a new viewer for the given {@link Table} that updates the table * contents in response to changes on the specified {@link EventList}. The * {@link Table} is formatted with an automatically generated * {@link TableFormat}. It uses JavaBeans and Reflection to create a * {@link TableFormat} as specified. * * @param source the EventList that provides the row objects * @param table the Table viewing the source objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods * getFirstName(), setFirstName(String), getAge(), setAge(Integer), * then this array should contain the two strings "firstName" and * "age". This format is specified by the JavaBeans * {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed * property names. For example, if your columns are "firstName" and * "age", then your labels might be "First Name" and "Age". * @deprecated use a combination of * {@link GlazedLists#tableFormat(String[], String[])} and * {@link #EventTableViewer(EventList, Table, TableFormat)} * instead */ public EventTableViewer(EventList<E> source, Table table, String[] propertyNames, String[] columnLabels) { this(source, table, GlazedLists.tableFormat(propertyNames, columnLabels)); }
/** * Creates a new table that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. * * <p>Note that the classes which will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually. * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * * @deprecated Use {@link GlazedListsSwing#createEventTableModel(EventList, String[], String[], boolean[])} * and {@link GlazedListsSwing#swingThreadProxyList(EventList)} instead */ public EventTableModel(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { this(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new table that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. * * <p>Note that the classes which will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually. * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * * @deprecated Use {@link GlazedListsSwing#createEventTableModel(EventList, String[], String[], boolean[])} * and {@link GlazedListsSwing#swingThreadProxyList(EventList)} instead */ public EventTableModel(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { this(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new viewer for the given {@link Table} that updates the table * contents in response to changes on the specified {@link EventList}. The * {@link Table} is formatted with an automatically generated * {@link TableFormat}. It uses JavaBeans and Reflection to create a * {@link TableFormat} as specified. * * @param source the EventList that provides the row objects * @param table the Table viewing the source objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods * getFirstName(), setFirstName(String), getAge(), setAge(Integer), * then this array should contain the two strings "firstName" and * "age". This format is specified by the JavaBeans * {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed * property names. For example, if your columns are "firstName" and * "age", then your labels might be "First Name" and "Age". * @deprecated use a combination of * {@link GlazedLists#tableFormat(String[], String[])} and * {@link #EventTableViewer(EventList, Table, TableFormat)} * instead */ public EventTableViewer(EventList<E> source, Table table, String[] propertyNames, String[] columnLabels) { this(source, table, GlazedLists.tableFormat(propertyNames, columnLabels)); }
/** * Creates a new table that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. * * <p>Note that the classes which will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually. * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * * @deprecated Use {@link GlazedListsSwing#eventTableModel(EventList, String[], String[], boolean[])} * and {@link GlazedListsSwing#swingThreadProxyList(EventList)} instead */ @Deprecated public EventTableModel(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { this(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new viewer for the given {@link Table} that updates the table * contents in response to changes on the specified {@link EventList}. The * {@link Table} is formatted with an automatically generated * {@link TableFormat}. It uses JavaBeans and Reflection to create a * {@link TableFormat} as specified. * * @param source the EventList that provides the row objects * @param table the Table viewing the source objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods * getFirstName(), setFirstName(String), getAge(), setAge(Integer), * then this array should contain the two strings "firstName" and * "age". This format is specified by the JavaBeans * {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed * property names. For example, if your columns are "firstName" and * "age", then your labels might be "First Name" and "Age". * @deprecated use a combination of * {@link GlazedLists#tableFormat(String[], String[])} and * {@link #EventTableViewer(EventList, Table, TableFormat)} * instead */ @Deprecated public EventTableViewer(EventList<E> source, Table table, String[] propertyNames, String[] columnLabels) { this(source, table, GlazedLists.tableFormat(propertyNames, columnLabels)); }
/** * Creates a new table model that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. While holding a read lock, * this method wraps the source list using * {@link GlazedListsSwing#swingThreadProxyList(EventList)}. * * <p>Note that classes that will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually.</p> * * <p>The returned table model is <strong>not thread-safe</strong>. Unless otherwise * noted, all methods are only safe to be called from the event dispatch thread.<p> * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * */ public static <E> AdvancedTableModel<E> eventTableModelWithThreadProxyList(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { return eventTableModelWithThreadProxyList(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new table model that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. While holding a read lock, * this method wraps the source list using * {@link GlazedListsSwing#swingThreadProxyList(EventList)}. * * <p>Note that classes that will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually.</p> * * <p>The returned table model is <strong>not thread-safe</strong>. Unless otherwise * noted, all methods are only safe to be called from the event dispatch thread.<p> * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * */ public static <E> AdvancedTableModel<E> eventTableModelWithThreadProxyList(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { return eventTableModelWithThreadProxyList(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new table model that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. * * <p>Note that classes that will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually.</p> * * <p>The returned table model is <strong>not thread-safe</strong>. Unless otherwise * noted, all methods are only safe to be called from the event dispatch thread. * To do this programmatically, use {@link SwingUtilities#invokeAndWait(Runnable)} and * wrap the source list (or some part of the source list's pipeline) using * GlazedListsSwing#swingThreadProxyList(EventList).</p> * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * */ public static <E> AdvancedTableModel<E> eventTableModel(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { return eventTableModel(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new table model that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. This method wraps the source list using * GlazedListsSwing#swingThreadProxyList(EventList). * * <p>Note that classes that will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually.</p> * * <p>The returned table model is <strong>not thread-safe</strong>. Unless otherwise * noted, all methods are only safe to be called from the event dispatch thread.<p> * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * */ public static <E> AdvancedTableModel<E> eventTableModelWithThreadProxyList(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { return eventTableModelWithThreadProxyList(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new table model that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. * * <p>Note that classes that will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually.</p> * * <p>The returned table model is <strong>not thread-safe</strong>. Unless otherwise * noted, all methods are only safe to be called from the event dispatch thread. * To do this programmatically, use {@link SwingUtilities#invokeAndWait(Runnable)} and * wrap the source list (or some part of the source list's pipeline) using * {@link GlazedListsSwing#swingThreadProxyList(EventList)}.</p> * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * */ public static <E> AdvancedTableModel<E> eventTableModel(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { return eventTableModel(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }
/** * Creates a new table model that renders the specified list with an automatically * generated {@link TableFormat}. It uses JavaBeans and reflection to create * a {@link TableFormat} as specified. * * <p>Note that classes that will be obfuscated may not work with * reflection. In this case, implement a {@link TableFormat} manually.</p> * * <p>The returned table model is <strong>not thread-safe</strong>. Unless otherwise * noted, all methods are only safe to be called from the event dispatch thread. * To do this programmatically, use {@link SwingUtilities#invokeAndWait(Runnable)} and * wrap the source list (or some part of the source list's pipeline) using * {@link GlazedListsSwing#swingThreadProxyList(EventList)}.</p> * * @param source the EventList that provides the row objects * @param propertyNames an array of property names in the JavaBeans format. * For example, if your list contains Objects with the methods getFirstName(), * setFirstName(String), getAge(), setAge(Integer), then this array should * contain the two strings "firstName" and "age". This format is specified * by the JavaBeans {@link java.beans.PropertyDescriptor}. * @param columnLabels the corresponding column names for the listed property * names. For example, if your columns are "firstName" and "age", then * your labels might be "First Name" and "Age". * @param writable an array of booleans specifying which of the columns in * your table are writable. * */ public static <E> AdvancedTableModel<E> eventTableModel(EventList<E> source, String[] propertyNames, String[] columnLabels, boolean[] writable) { return eventTableModel(source, GlazedLists.tableFormat(propertyNames, columnLabels, writable)); }