List<ComponentConnector> children;
+ private boolean debugLogging = false;
+
/**
* Default constructor
*/
* (com.vaadin.terminal.gwt.client.ConnectorHierarchyChangedEvent)
*/
public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event) {
- // TODO Remove debug info
- VConsole.log("Hierarchy changed for " + Util.getConnectorString(this));
- String oldChildren = "* Old children: ";
- for (ComponentConnector child : event.getOldChildren()) {
- oldChildren += Util.getConnectorString(child) + " ";
- }
- VConsole.log(oldChildren);
+ if (debugLogging) {
+ VConsole.log("Hierarchy changed for "
+ + Util.getConnectorString(this));
+ String oldChildren = "* Old children: ";
+ for (ComponentConnector child : event.getOldChildren()) {
+ oldChildren += Util.getConnectorString(child) + " ";
+ }
+ VConsole.log(oldChildren);
- String newChildren = "* New children: ";
- for (ComponentConnector child : getChildren()) {
- newChildren += Util.getConnectorString(child) + " ";
+ String newChildren = "* New children: ";
+ for (ComponentConnector child : getChildren()) {
+ newChildren += Util.getConnectorString(child) + " ";
+ }
+ VConsole.log(newChildren);
}
- VConsole.log(newChildren);
}
public HandlerRegistration addConnectorHierarchyChangeHandler(
private HandlerManager handlerManager;
private Map<String, Collection<ClientRpc>> rpcImplementations;
+ private final boolean debugLogging = false;
/*
* (non-Javadoc)
}
public void onStateChanged(StateChangeEvent stateChangeEvent) {
- VConsole.log("State change event for "
- + Util.getConnectorString(stateChangeEvent.getConnector())
- + " received by " + Util.getConnectorString(this));
+ if (debugLogging) {
+ VConsole.log("State change event for "
+ + Util.getConnectorString(stateChangeEvent.getConnector())
+ + " received by " + Util.getConnectorString(this));
+ }
}
/*