IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable. Use larger icon for field editor.

This commit is contained in:
Heng Sin Low 2013-05-31 11:56:25 +08:00
parent 13669f400a
commit dfc48a588f
10 changed files with 16 additions and 15 deletions

View File

@ -86,7 +86,7 @@ public class NumberBox extends Div
hlayout.appendChild(decimalBox); hlayout.appendChild(decimalBox);
btn = new Button(); btn = new Button();
btn.setImage(ThemeManager.getThemeResource("images/Calculator10.png")); btn.setImage(ThemeManager.getThemeResource("images/Calculator16.png"));
btn.setTabindex(-1); btn.setTabindex(-1);
btn.setHflex("0"); btn.setHflex("0");
btn.setWidgetListener("onClick", "try{var id=this.getPopup(); zk.Widget.$(id.substring(5, id.length - 1)).focus_(100);" + btn.setWidgetListener("onClick", "try{var id=this.getPopup(); zk.Widget.$(id.substring(5, id.length - 1)).focus_(100);" +

View File

@ -55,7 +55,7 @@ public class WAccountEditor extends WEditor implements ContextMenuListener
public WAccountEditor(GridField gridField) public WAccountEditor(GridField gridField)
{ {
super(new Combinationbox(), gridField); super(new Combinationbox(), gridField);
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Account10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Account16.png"));
m_mAccount = new MAccountLookup (gridField.getVO().ctx, gridField.getWindowNo()); m_mAccount = new MAccountLookup (gridField.getVO().ctx, gridField.getWindowNo());

View File

@ -55,7 +55,7 @@ public class WAssignmentEditor extends WEditor implements ContextMenuListener {
private void initComponents() { private void initComponents() {
getComponent().getTextbox().setReadonly(true); getComponent().getTextbox().setReadonly(true);
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Assignment10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Assignment16.png"));
popupMenu = new WEditorPopupMenu(true, false, false); popupMenu = new WEditorPopupMenu(true, false, false);
popupMenu.addMenuListener(this); popupMenu.addMenuListener(this);

View File

@ -86,7 +86,7 @@ public class WLocationEditor extends WEditor implements EventListener<Event>, Pr
private void init() private void init()
{ {
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Location10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Location16.png"));
popupMenu = new WEditorPopupMenu(false, false, isShowPreference()); popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
popupMenu.addMenuListener(this); popupMenu.addMenuListener(this);

View File

@ -94,7 +94,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
setColumnName(columnName); setColumnName(columnName);
m_mLocator = mLocator; m_mLocator = mLocator;
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
m_WindowNo = windowNo; //Yvonne: move it b4 setDefault_Locator_ID() m_WindowNo = windowNo; //Yvonne: move it b4 setDefault_Locator_ID()
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ] setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]
@ -108,7 +108,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
super(new EditorBox(), gridField); super(new EditorBox(), gridField);
m_mLocator = (MLocatorLookup)gridField.getLookup(); m_mLocator = (MLocatorLookup)gridField.getLookup();
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ] setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]

View File

@ -70,7 +70,7 @@ public class WPAttributeEditor extends WEditor implements ContextMenuListener
} }
private void initComponents() { private void initComponents() {
getComponent().setButtonImage(ThemeManager.getThemeResource("images/PAttribute10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/PAttribute16.png"));
// getComponent().addEventListener(Events.ON_CLICK, this); // IDEMPIERE-426 - dup listener, already set at WEditor // getComponent().addEventListener(Events.ON_CLICK, this); // IDEMPIERE-426 - dup listener, already set at WEditor
m_WindowNo = gridField.getWindowNo(); m_WindowNo = gridField.getWindowNo();

View File

@ -65,7 +65,7 @@ public class WPaymentEditor extends WEditor implements ListDataListener {
getComponent().getCombobox().setAutocomplete(true); getComponent().getCombobox().setAutocomplete(true);
getComponent().getCombobox().setAutodrop(true); getComponent().getCombobox().setAutodrop(true);
getComponent().getCombobox().addEventListener(Events.ON_BLUR, this); getComponent().getCombobox().addEventListener(Events.ON_BLUR, this);
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Payment10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Payment16.png"));
getComponent().getButton().addActionListener(this); getComponent().getButton().addActionListener(this);
if (lookup != null) if (lookup != null)

View File

@ -170,16 +170,16 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
{ {
columnName = this.getColumnName(); columnName = this.getColumnName();
imageUrl = ThemeManager.getThemeResource("images/PickOpen10.png"); imageUrl = ThemeManager.getThemeResource("images/PickOpen16.png");
if (columnName.equals("C_BPartner_ID")) if (columnName.equals("C_BPartner_ID"))
{ {
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), true, true, false, lookup); popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), true, true, false, lookup);
imageUrl = ThemeManager.getThemeResource("images/BPartner10.png"); imageUrl = ThemeManager.getThemeResource("images/BPartner16.png");
} }
else if (columnName.equals("M_Product_ID")) else if (columnName.equals("M_Product_ID"))
{ {
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), false, false, false, lookup); popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), false, false, false, lookup);
imageUrl = ThemeManager.getThemeResource("images/Product10.png"); imageUrl = ThemeManager.getThemeResource("images/Product16.png");
} }
else else
{ {

View File

@ -36,7 +36,7 @@ public class WUrlEditor extends WEditor implements ContextMenuListener
public WUrlEditor(GridField gridField) public WUrlEditor(GridField gridField)
{ {
super(new Urlbox(), gridField); super(new Urlbox(), gridField);
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Online10.png")); getComponent().setButtonImage(ThemeManager.getThemeResource("images/Online16.png"));
popupMenu = new WEditorPopupMenu(false, false, isShowPreference()); popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
popupMenu.addMenuListener(this); popupMenu.addMenuListener(this);

View File

@ -1001,15 +1001,16 @@ span.z-tree-tee, span.z-tree-last, span.z-tree-firstspacer {
} }
.editor-button { .editor-button {
padding: 3px 8px; padding: 0px 2px;
margin: 0px; margin: 0px;
border-radius: 2px;
} }
.editor-button img { .editor-button img {
vertical-align: middle; vertical-align: middle;
text-align: center; text-align: center;
width: 10px; width: 16px;
height: 10px; height: 16px;
} }
.editor-button-column { .editor-button-column {