01: package org.gui4j.component.factory;
02:
03: import org.gui4j.component.Gui4jEdit;
04: import org.gui4j.component.Gui4jPasswordField;
05: import org.gui4j.core.Gui4jComponentContainer;
06:
07: public class Gui4jPasswordFieldFactory extends Gui4jEditFactory {
08: private final String NAME = "password";
09:
10: /**
11: * @see org.gui4j.core.Gui4jComponentFactory#getName()
12: */
13: public String getName() {
14: return NAME;
15: }
16:
17: public Gui4jEdit createTextFieldComponent(
18: Gui4jComponentContainer gui4jComponentContainer, String id) {
19: return new Gui4jPasswordField(gui4jComponentContainer, id);
20: }
21:
22: }
|