提交 8227f3d3 编写于 作者: S serge-rider

#2254 Date picker dropdown prototype


Former-commit-id: db016eb9
上级 9d92414e
......@@ -22,17 +22,30 @@ import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.DBException;
/**
* CustomTimeEditor
*/
* CustomTimeEditor
*/
public class CustomTimeEditor {
private Text timeEditor;
// private Button timePickerButton;
public CustomTimeEditor(Composite parent, int style) {
this.timeEditor = new Text(parent, style);
/*
Composite ph = UIUtils.createPlaceholder(parent, 2);
this.timeEditor = new Text(ph, style);
this.timePickerButton = new Button(ph, SWT.FLAT | SWT.ARROW | SWT.DOWN);
this.timePickerButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
super.widgetSelected(e);
UIUtils.showMessageBox(timePickerButton.getShell(), "asdf", "sdf", SWT.ICON_INFORMATION);
}
});
*/
}
public void setValue(@Nullable String value)
{
public void setValue(@Nullable String value) {
if (value == null) {
timeEditor.setText("");
} else {
......@@ -41,8 +54,7 @@ public class CustomTimeEditor {
}
public String getValue()
throws DBException
{
throws DBException {
final String timeText = timeEditor.getText();
if (timeText.isEmpty()) {
return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册