IDEMPIERE-3643 Placeholders for every fields - missing editors
This commit is contained in:
parent
096a535b28
commit
3eedf21293
|
@ -65,6 +65,8 @@ public class WAccountEditor extends WEditor implements ContextMenuListener
|
||||||
popupMenu = new WEditorPopupMenu(false, false, true);
|
popupMenu = new WEditorPopupMenu(false, false, true);
|
||||||
popupMenu.addMenuListener(this);
|
popupMenu.addMenuListener(this);
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -64,6 +64,8 @@ public class WAssignmentEditor extends WEditor implements ContextMenuListener {
|
||||||
popupMenu = new WEditorPopupMenu(true, false, false);
|
popupMenu = new WEditorPopupMenu(true, false, false);
|
||||||
popupMenu.addMenuListener(this);
|
popupMenu.addMenuListener(this);
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,8 @@ public class WDatetimeEditor extends WEditor implements ContextMenuListener
|
||||||
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
|
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
|
||||||
popupMenu.addMenuListener(this);
|
popupMenu.addMenuListener(this);
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getDatebox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onEvent(Event event)
|
public void onEvent(Event event)
|
||||||
|
|
|
@ -47,6 +47,8 @@ public class WFileDirectoryEditor extends WEditor
|
||||||
else
|
else
|
||||||
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Open16.png"));
|
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Open16.png"));
|
||||||
getComponent().getButton().setUpload("false");
|
getComponent().getButton().setUpload("false");
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -55,6 +55,8 @@ public class WFilenameEditor extends WEditor
|
||||||
getComponent().addEventListener(Events.ON_UPLOAD, this);
|
getComponent().addEventListener(Events.ON_UPLOAD, this);
|
||||||
getComponent().getButton().setUpload(AdempiereWebUI.getUploadSetting());
|
getComponent().getButton().setUpload(AdempiereWebUI.getUploadSetting());
|
||||||
getComponent().getButton().setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE);
|
getComponent().getButton().setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE);
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -127,6 +127,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
||||||
{
|
{
|
||||||
popupMenu = new WEditorPopupMenu(true, true, isShowPreference());
|
popupMenu = new WEditorPopupMenu(true, true, isShowPreference());
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,9 @@ public class WPAttributeEditor extends WEditor implements ContextMenuListener
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
|
||||||
getComponent().getTextbox().setReadonly(true);
|
getComponent().getTextbox().setReadonly(true);
|
||||||
|
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -88,6 +88,8 @@ public class WPaymentEditor extends WEditor implements ListDataListener, Context
|
||||||
}
|
}
|
||||||
popupMenu = new WEditorPopupMenu(false, true, isShowPreference());
|
popupMenu = new WEditorPopupMenu(false, true, isShowPreference());
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getCombobox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -102,6 +102,8 @@ public class WTimeEditor extends WEditor implements ContextMenuListener
|
||||||
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
|
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
|
||||||
popupMenu.addMenuListener(this);
|
popupMenu.addMenuListener(this);
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onEvent(Event event)
|
public void onEvent(Event event)
|
||||||
|
|
|
@ -46,6 +46,8 @@ public class WUrlEditor extends WEditor implements ContextMenuListener
|
||||||
addChangeLogMenu(popupMenu);
|
addChangeLogMenu(popupMenu);
|
||||||
|
|
||||||
getComponent().getTextbox().setClientAttribute("type", "url");
|
getComponent().getTextbox().setClientAttribute("type", "url");
|
||||||
|
if (gridField != null)
|
||||||
|
getComponent().getTextbox().setPlaceholder(gridField.getPlaceholder());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue