IDEMPIERE-3643 Placeholders for every fields - missing editors

This commit is contained in:
Nicolas Micoud 2018-03-05 21:27:40 +01:00
parent 096a535b28
commit 3eedf21293
10 changed files with 20 additions and 0 deletions

View File

@ -65,6 +65,8 @@ public class WAccountEditor extends WEditor implements ContextMenuListener
popupMenu = new WEditorPopupMenu(false, false, true);
popupMenu.addMenuListener(this);
addChangeLogMenu(popupMenu);
if (gridField != null)
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}
@Override

View File

@ -64,6 +64,8 @@ public class WAssignmentEditor extends WEditor implements ContextMenuListener {
popupMenu = new WEditorPopupMenu(true, false, false);
popupMenu.addMenuListener(this);
addChangeLogMenu(popupMenu);
if (gridField != null)
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}

View File

@ -102,6 +102,8 @@ public class WDatetimeEditor extends WEditor implements ContextMenuListener
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
popupMenu.addMenuListener(this);
addChangeLogMenu(popupMenu);
if (gridField != null)
getComponent().getDatebox().setPlaceholder(gridField.getPlaceholder());
}
public void onEvent(Event event)

View File

@ -47,6 +47,8 @@ public class WFileDirectoryEditor extends WEditor
else
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Open16.png"));
getComponent().getButton().setUpload("false");
if (gridField != null)
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}
@Override

View File

@ -55,6 +55,8 @@ public class WFilenameEditor extends WEditor
getComponent().addEventListener(Events.ON_UPLOAD, this);
getComponent().getButton().setUpload(AdempiereWebUI.getUploadSetting());
getComponent().getButton().setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE);
if (gridField != null)
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}
@Override

View File

@ -127,6 +127,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
{
popupMenu = new WEditorPopupMenu(true, true, isShowPreference());
addChangeLogMenu(popupMenu);
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}
}

View File

@ -84,6 +84,9 @@ public class WPAttributeEditor extends WEditor implements ContextMenuListener
addChangeLogMenu(popupMenu);
getComponent().getTextbox().setReadonly(true);
if (gridField != null)
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}
@Override

View File

@ -88,6 +88,8 @@ public class WPaymentEditor extends WEditor implements ListDataListener, Context
}
popupMenu = new WEditorPopupMenu(false, true, isShowPreference());
addChangeLogMenu(popupMenu);
if (gridField != null)
getComponent().getCombobox().setPlaceholder(gridField.getPlaceholder());
}
@Override

View File

@ -102,6 +102,8 @@ public class WTimeEditor extends WEditor implements ContextMenuListener
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
popupMenu.addMenuListener(this);
addChangeLogMenu(popupMenu);
if (gridField != null)
getComponent().setPlaceholder(gridField.getPlaceholder());
}
public void onEvent(Event event)

View File

@ -46,6 +46,8 @@ public class WUrlEditor extends WEditor implements ContextMenuListener
addChangeLogMenu(popupMenu);
getComponent().getTextbox().setClientAttribute("type", "url");
if (gridField != null)
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
}