Returns a string representation of this event. @return a string representation of this event
()
| 142 | * @return a string representation of this event |
| 143 | */ |
| 144 | @Override |
| 145 | public String toString() { |
| 146 | final StringBuilder builder = new StringBuilder(80) |
| 147 | .append("WebWindowEvent(source=[") |
| 148 | .append(getSource()) |
| 149 | .append("] type=["); |
| 150 | switch (type_) { |
| 151 | case OPEN: |
| 152 | builder.append("OPEN"); |
| 153 | break; |
| 154 | case CLOSE: |
| 155 | builder.append("CLOSE"); |
| 156 | break; |
| 157 | case CHANGE: |
| 158 | builder.append("CHANGE"); |
| 159 | break; |
| 160 | default: |
| 161 | builder.append(type_); |
| 162 | break; |
| 163 | } |
| 164 | builder.append("] oldPage=[") |
| 165 | .append(getOldPage()) |
| 166 | .append("] newPage=[") |
| 167 | .append(getNewPage()) |
| 168 | .append("])"); |
| 169 | |
| 170 | return builder.toString(); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * @return the event type |
nothing calls this directly
no test coverage detected