static {
TYPE_VALUE_COMBO = new String[]{"Password", "Show", "Hidden"};
}
public SensibleEditorComponent() {
HBox hbox_edit = new HBox();
hbox_edit.setPadding(new Insets(0, 0, 0, 0));
hbox_edit.setSpacing(5);
combo_state = new ComboBox();
combo_state.setFocusTraversable(false);
combo_state.setPrefWidth(102.0);
//combo_state.getItems().setAll(PASS_IMG, CLEAR_IMG, HIDDEN_IMG);
combo_state.getItems().setAll(
RBLoader.ll("Password"),
RBLoader.ll("Show"),
RBLoader.ll("Hidden"));
setTypeImageCombo(0);
//combo_state.setButtonCell(new ComboListCell());
/*combo_state.setCellFactory(new Callback<ListView<Image>, ListCell<Image>>() {
@Override
public ListCell<Image> call(ListView<Image> p) {
return new ComboListCell();
}
});*/
pane = new Pane();
hbox_pwd = new HBox();
hbox_pwd.setPadding(new Insets(0, 0, 0, 0));
hbox_pwd.setSpacing(1);
prog_pwd = new ProgressBar();
prog_pwd.setProgress(0.0);
prog_pwd.setOpacity(0.7f);
vpwd_lbl = new Label("");
vpwd_lbl.setFont(new Font("Arial", 10));
vpwd_lbl.setOpacity(0.7f);
vpwd_lbl.setAlignment(Pos.TOP_RIGHT);
vpwd_lbl.setPrefSize(40.0, 10.0);
setSensiblePreferedWidth(264.0);
hbox_edit.getChildren().addAll(pane, combo_state);
hbox_pwd.getChildren().addAll(new Label(), prog_pwd, vpwd_lbl);
hbox_pwd.setVisible(false);
this.setCenter(hbox_edit);
this.setBottom(hbox_pwd);
}