summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Table.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/ui/Table.java')
-rw-r--r--src/com/vaadin/ui/Table.java19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java
index 9c077bc34e..86c5df41b0 100644
--- a/src/com/vaadin/ui/Table.java
+++ b/src/com/vaadin/ui/Table.java
@@ -17,6 +17,8 @@ import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
@@ -73,6 +75,9 @@ public class Table extends AbstractSelect implements Action.Container,
Container.Ordered, Container.Sortable, ItemClickSource, DragSource,
DropTarget {
+ private static final Logger logger = Logger
+ .getLogger(Table.class.getName());
+
/**
* Modes that Table support as drag sourse.
*/
@@ -2002,7 +2007,8 @@ public class Table extends AbstractSelect implements Action.Container,
.get("lastToBeRendered")).intValue();
} catch (Exception e) {
// FIXME: Handle exception
- e.printStackTrace();
+ logger.log(Level.FINER,
+ "Could not parse the first and/or last rows.", e);
}
// respect suggested rows only if table is not otherwise updated
@@ -2066,7 +2072,8 @@ public class Table extends AbstractSelect implements Action.Container,
}
} catch (final Exception e) {
// FIXME: Handle exception
- e.printStackTrace();
+ logger.log(Level.FINER,
+ "Could not determine column collapsing state", e);
}
clientNeedsContentRefresh = true;
}
@@ -2084,8 +2091,8 @@ public class Table extends AbstractSelect implements Action.Container,
setColumnOrder(idsTemp);
} catch (final Exception e) {
// FIXME: Handle exception
- e.printStackTrace();
-
+ logger.log(Level.FINER,
+ "Could not determine column reordering state", e);
}
clientNeedsContentRefresh = true;
}
@@ -3820,7 +3827,7 @@ public class Table extends AbstractSelect implements Action.Container,
}
// The property id of the column which header was pressed
- private Object columnPropertyId;
+ private final Object columnPropertyId;
public HeaderClickEvent(Component source, Object propertyId,
MouseEventDetails details) {
@@ -3860,7 +3867,7 @@ public class Table extends AbstractSelect implements Action.Container,
}
// The property id of the column which header was pressed
- private Object columnPropertyId;
+ private final Object columnPropertyId;
/**
* Constructor