01: /*
02: * Copyright 2007 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package com.google.gwt.user.client.ui;
17:
18: import com.google.gwt.user.client.DOM;
19:
20: /**
21: * A text box that visually masks its input to prevent eavesdropping.
22: *
23: * <p>
24: * <img class='gallery' src='PasswordTextBox.png'/>
25: * </p>
26: *
27: * <h3>CSS Style Rules</h3>
28: * <ul class='css'>
29: * <li>.gwt-PasswordTextBox { primary style }</li>
30: * <li>.gwt-PasswordTextBox-readonly { dependent style set when the password text box is read-only }</li>
31: * </ul>
32: *
33: * <p>
34: * <h3>Example</h3> {@example com.google.gwt.examples.TextBoxExample}
35: * </p>
36: */
37: public class PasswordTextBox extends TextBoxBase {
38:
39: /**
40: * Creates an empty password text box.
41: */
42: public PasswordTextBox() {
43: super (DOM.createInputPassword());
44: setStyleName("gwt-PasswordTextBox");
45: }
46: }
|