Backed out changeset d79c1817ead1 / Refs #6142 / IDEMPIERE-3535 - missing font icons / backout - broken Context menu for editor in String fields
This commit is contained in:
parent
8c3af7914e
commit
38c38b2ed1
|
@ -477,25 +477,16 @@ public class WAcctViewer extends Window implements EventListener<Event>
|
||||||
forcePost.setVisible(false);
|
forcePost.setVisible(false);
|
||||||
|
|
||||||
// Elaine 2009/07/29
|
// Elaine 2009/07/29
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
bZoom.setIconSclass("z-icon-Zoom");
|
|
||||||
else
|
|
||||||
bZoom.setImage(ThemeManager.getThemeResource("images/Zoom16.png"));
|
bZoom.setImage(ThemeManager.getThemeResource("images/Zoom16.png"));
|
||||||
bZoom.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Zoom")));
|
bZoom.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Zoom")));
|
||||||
bZoom.setVisible(tabbedPane.getSelectedIndex() == 1);
|
bZoom.setVisible(tabbedPane.getSelectedIndex() == 1);
|
||||||
bZoom.addEventListener(Events.ON_CLICK, this);
|
bZoom.addEventListener(Events.ON_CLICK, this);
|
||||||
//
|
//
|
||||||
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
bQuery.setIconSclass("z-icon-Refresh");
|
|
||||||
else
|
|
||||||
bQuery.setImage(ThemeManager.getThemeResource("images/Refresh16.png"));
|
bQuery.setImage(ThemeManager.getThemeResource("images/Refresh16.png"));
|
||||||
bQuery.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Refresh")));
|
bQuery.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Refresh")));
|
||||||
bQuery.addEventListener(Events.ON_CLICK, this);
|
bQuery.addEventListener(Events.ON_CLICK, this);
|
||||||
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
bExport.setIconSclass("z-icon-Export");
|
|
||||||
else
|
|
||||||
bExport.setImage(ThemeManager.getThemeResource("images/Export16.png"));
|
bExport.setImage(ThemeManager.getThemeResource("images/Export16.png"));
|
||||||
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
||||||
bExport.addEventListener(Events.ON_CLICK, this);
|
bExport.addEventListener(Events.ON_CLICK, this);
|
||||||
|
@ -634,9 +625,6 @@ public class WAcctViewer extends Window implements EventListener<Event>
|
||||||
m_data.fillTable(selTable);
|
m_data.fillTable(selTable);
|
||||||
selTable.addEventListener(Events.ON_SELECT, this);
|
selTable.addEventListener(Events.ON_SELECT, this);
|
||||||
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
selRecord.setIconSclass("z-icon-Find");
|
|
||||||
else
|
|
||||||
selRecord.setImage(ThemeManager.getThemeResource("images/Find16.png"));
|
selRecord.setImage(ThemeManager.getThemeResource("images/Find16.png"));
|
||||||
selRecord.addEventListener(Events.ON_CLICK, this);
|
selRecord.addEventListener(Events.ON_CLICK, this);
|
||||||
selRecord.setLabel("");
|
selRecord.setLabel("");
|
||||||
|
@ -650,9 +638,6 @@ public class WAcctViewer extends Window implements EventListener<Event>
|
||||||
selAcct.setName("Account_ID");
|
selAcct.setName("Account_ID");
|
||||||
selAcct.addEventListener(Events.ON_CLICK, this);
|
selAcct.addEventListener(Events.ON_CLICK, this);
|
||||||
selAcct.setLabel("");
|
selAcct.setLabel("");
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
selAcct.setIconSclass("z-icon-Find");
|
|
||||||
else
|
|
||||||
selAcct.setImage(ThemeManager.getThemeResource("images/Find16.png"));
|
selAcct.setImage(ThemeManager.getThemeResource("images/Find16.png"));
|
||||||
|
|
||||||
statusLine.setValue(" " + Msg.getMsg(Env.getCtx(), "ViewerOptions"));
|
statusLine.setValue(" " + Msg.getMsg(Env.getCtx(), "ViewerOptions"));
|
||||||
|
@ -870,9 +855,6 @@ public class WAcctViewer extends Window implements EventListener<Event>
|
||||||
labels[selectionIndex].setVisible(true);
|
labels[selectionIndex].setVisible(true);
|
||||||
buttons[selectionIndex].setName(columnName); // actionCommand
|
buttons[selectionIndex].setName(columnName); // actionCommand
|
||||||
buttons[selectionIndex].addEventListener(Events.ON_CLICK, this);
|
buttons[selectionIndex].addEventListener(Events.ON_CLICK, this);
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
buttons[selectionIndex].setIconSclass("z-icon-Find");
|
|
||||||
else
|
|
||||||
buttons[selectionIndex].setImage(ThemeManager.getThemeResource("images/Find16.png"));
|
buttons[selectionIndex].setImage(ThemeManager.getThemeResource("images/Find16.png"));
|
||||||
buttons[selectionIndex].setLabel("");
|
buttons[selectionIndex].setLabel("");
|
||||||
buttons[selectionIndex].setVisible(true);
|
buttons[selectionIndex].setVisible(true);
|
||||||
|
|
|
@ -222,11 +222,6 @@ public class FeedbackRequestWindow extends Window implements EventListener<Event
|
||||||
southPane.appendChild(confirmPanel);
|
southPane.appendChild(confirmPanel);
|
||||||
|
|
||||||
Button btn = new Button();
|
Button btn = new Button();
|
||||||
|
|
||||||
//devCoffee #6142
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
btn.setIconSclass("z-icon-Attachment");
|
|
||||||
else
|
|
||||||
btn.setImage(ThemeManager.getThemeResource("images/Attachment24.png"));
|
btn.setImage(ThemeManager.getThemeResource("images/Attachment24.png"));
|
||||||
btn.setUpload(AdempiereWebUI.getUploadSetting());
|
btn.setUpload(AdempiereWebUI.getUploadSetting());
|
||||||
btn.addEventListener(Events.ON_UPLOAD, this);
|
btn.addEventListener(Events.ON_UPLOAD, this);
|
||||||
|
|
|
@ -341,14 +341,10 @@ public class ProcessDialog extends AbstractProcessDialog implements EventListene
|
||||||
appendRecordLogInfo(pi.getLogs(), infoResultContent);
|
appendRecordLogInfo(pi.getLogs(), infoResultContent);
|
||||||
|
|
||||||
bOK.setLabel(Msg.getMsg(Env.getCtx(), "Parameter"));
|
bOK.setLabel(Msg.getMsg(Env.getCtx(), "Parameter"));
|
||||||
//devCoffee #6142
|
|
||||||
if (!ThemeManager.isUseFontIconForImage())
|
|
||||||
bOK.setImage(ThemeManager.getThemeResource("images/Reset16.png"));
|
bOK.setImage(ThemeManager.getThemeResource("images/Reset16.png"));
|
||||||
bOK.setDisabled(false);
|
bOK.setDisabled(false);
|
||||||
|
|
||||||
bCancel.setLabel(Msg.getMsg(Env.getCtx(), "Close"));
|
bCancel.setLabel(Msg.getMsg(Env.getCtx(), "Close"));
|
||||||
//devCoffee #6142
|
|
||||||
if (!ThemeManager.isUseFontIconForImage())
|
|
||||||
bCancel.setImage(ThemeManager.getThemeResource("images/Cancel16.png"));
|
bCancel.setImage(ThemeManager.getThemeResource("images/Cancel16.png"));
|
||||||
bCancel.setDisabled(false);
|
bCancel.setDisabled(false);
|
||||||
|
|
||||||
|
@ -462,13 +458,9 @@ public class ProcessDialog extends AbstractProcessDialog implements EventListene
|
||||||
isParameterPage = true;
|
isParameterPage = true;
|
||||||
|
|
||||||
bOK.setLabel(Msg.getMsg(Env.getCtx(), "Start"));
|
bOK.setLabel(Msg.getMsg(Env.getCtx(), "Start"));
|
||||||
//devCoffee #6142
|
|
||||||
if (!ThemeManager.isUseFontIconForImage())
|
|
||||||
bOK.setImage(ThemeManager.getThemeResource("images/Ok16.png"));
|
bOK.setImage(ThemeManager.getThemeResource("images/Ok16.png"));
|
||||||
|
|
||||||
bCancel.setLabel(Util.cleanAmp(Msg.translate(Env.getCtx(), ConfirmPanel.A_CANCEL)));
|
bCancel.setLabel(Util.cleanAmp(Msg.translate(Env.getCtx(), ConfirmPanel.A_CANCEL)));
|
||||||
//devCoffee #6142
|
|
||||||
if (!ThemeManager.isUseFontIconForImage())
|
|
||||||
bCancel.setImage(ThemeManager.getThemeResource("images/Cancel16.png"));
|
bCancel.setImage(ThemeManager.getThemeResource("images/Cancel16.png"));
|
||||||
|
|
||||||
//recreate process info
|
//recreate process info
|
||||||
|
|
|
@ -264,7 +264,6 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
tpgc4.refresh();
|
tpgc4.refresh();
|
||||||
tpgc4.setWReportCustomization(this);
|
tpgc4.setWReportCustomization(this);
|
||||||
tabpanels.appendChild(tpgc4);
|
tabpanels.appendChild(tpgc4);
|
||||||
tabpanels.setStyle("overflow: auto;");
|
|
||||||
|
|
||||||
tpsf5.setMPrintFormat(fm);
|
tpsf5.setMPrintFormat(fm);
|
||||||
tpsf5.setPrintFormatItems(pfi);
|
tpsf5.setPrintFormatItems(pfi);
|
||||||
|
@ -286,10 +285,6 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
btnSave = new Button();
|
btnSave = new Button();
|
||||||
btnSave.setName("btnSave");
|
btnSave.setName("btnSave");
|
||||||
btnSave.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Save")));
|
btnSave.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Save")));
|
||||||
//devCoffee #6142
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
btnSave.setIconSclass("z-icon-Save");
|
|
||||||
else
|
|
||||||
btnSave.setImage(ThemeManager.getThemeResource("images/Save24.png"));
|
btnSave.setImage(ThemeManager.getThemeResource("images/Save24.png"));
|
||||||
if(fm.getAD_Client_ID()== 0 || !isChange)
|
if(fm.getAD_Client_ID()== 0 || !isChange)
|
||||||
{
|
{
|
||||||
|
@ -302,10 +297,6 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
|
|
||||||
if (m_isCanExport)
|
if (m_isCanExport)
|
||||||
{
|
{
|
||||||
//devCoffee #6142
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
bExport.setIconSclass("z-icon-Export");
|
|
||||||
else
|
|
||||||
bExport.setImage(ThemeManager.getThemeResource("images/Export24.png"));
|
bExport.setImage(ThemeManager.getThemeResource("images/Export24.png"));
|
||||||
bExport.setName("btnExport");
|
bExport.setName("btnExport");
|
||||||
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
||||||
|
@ -323,7 +314,6 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
|
|
||||||
f.appendChild(foot);
|
f.appendChild(foot);
|
||||||
grid.appendChild(f);
|
grid.appendChild(f);
|
||||||
grid.setStyle("border:none");
|
|
||||||
form.appendChild(grid);
|
form.appendChild(grid);
|
||||||
form.setBorder("normal");
|
form.setBorder("normal");
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,9 +155,7 @@ public class WSQLProcess extends ADForm implements EventListener<Event>
|
||||||
public static final Button createProcessButton()
|
public static final Button createProcessButton()
|
||||||
{
|
{
|
||||||
Button btnProcess = new Button();
|
Button btnProcess = new Button();
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
btnProcess.setIconSclass("z-icon-Process");
|
|
||||||
else
|
|
||||||
btnProcess.setImage(ThemeManager.getThemeResource("images/Process24.png"));
|
btnProcess.setImage(ThemeManager.getThemeResource("images/Process24.png"));
|
||||||
btnProcess.setName(Msg.getMsg(Env.getCtx(), "Process"));
|
btnProcess.setName(Msg.getMsg(Env.getCtx(), "Process"));
|
||||||
|
|
||||||
|
|
|
@ -773,14 +773,9 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
|
||||||
* @param popupMenu
|
* @param popupMenu
|
||||||
*/
|
*/
|
||||||
protected void addTextEditorMenu(WEditorPopupMenu popupMenu) {
|
protected void addTextEditorMenu(WEditorPopupMenu popupMenu) {
|
||||||
Menuitem editor = new Menuitem();
|
Menuitem editor = new Menuitem(Msg.getMsg(Env.getCtx(), "Editor"), ThemeManager.getThemeResource("images/Editor16.png"));
|
||||||
editor.setAttribute("EVENT", WEditorPopupMenu.EDITOR_EVENT);
|
editor.setAttribute("EVENT", WEditorPopupMenu.EDITOR_EVENT);
|
||||||
editor.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Editor")).intern());
|
editor.addEventListener(Events.ON_CLICK, popupMenu);
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
editor.setIconSclass("z-icon-Edit");
|
|
||||||
else
|
|
||||||
editor.setImage(ThemeManager.getThemeResource("images/Editor16.png"));
|
|
||||||
editor.addEventListener(Events.ON_CLICK, this);
|
|
||||||
popupMenu.appendChild(editor);
|
popupMenu.appendChild(editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,9 +240,6 @@ ContextMenuListener, IZoomableEditor
|
||||||
searchMode = new Menuitem();
|
searchMode = new Menuitem();
|
||||||
searchMode.setAttribute(WEditorPopupMenu.EVENT_ATTRIBUTE, SHORT_LIST_EVENT);
|
searchMode.setAttribute(WEditorPopupMenu.EVENT_ATTRIBUTE, SHORT_LIST_EVENT);
|
||||||
searchMode.setLabel(Msg.getMsg(Env.getCtx(), "ShortListSwitchSearchMode"));
|
searchMode.setLabel(Msg.getMsg(Env.getCtx(), "ShortListSwitchSearchMode"));
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
searchMode.setIconSclass("z-icon-Lock");
|
|
||||||
else
|
|
||||||
searchMode.setImage(ThemeManager.getThemeResource("images/Lock16.png"));
|
searchMode.setImage(ThemeManager.getThemeResource("images/Lock16.png"));
|
||||||
searchMode.addEventListener(Events.ON_CLICK, popupMenu);
|
searchMode.addEventListener(Events.ON_CLICK, popupMenu);
|
||||||
popupMenu.appendChild(searchMode);
|
popupMenu.appendChild(searchMode);
|
||||||
|
|
|
@ -309,16 +309,6 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
row.appendChild(new Label(""));
|
row.appendChild(new Label(""));
|
||||||
row.appendChild(isAcknowledgmentReceipt);
|
row.appendChild(isAcknowledgmentReceipt);
|
||||||
|
|
||||||
row = new Row();
|
|
||||||
rows.appendChild(row);
|
|
||||||
row.appendChild(new Label(""));
|
|
||||||
row.appendChild(isAcknowledgmentReceipt);
|
|
||||||
|
|
||||||
row = new Row();
|
|
||||||
rows.appendChild(row);
|
|
||||||
row.appendChild(new Label(""));
|
|
||||||
row.appendChild(isAcknowledgmentReceipt);
|
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
|
@ -373,9 +363,6 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
LayoutUtils.addSclass("large-toolbarbutton", btn);
|
LayoutUtils.addSclass("large-toolbarbutton", btn);
|
||||||
|
|
||||||
bAddDefaultMailText = new Button();
|
bAddDefaultMailText = new Button();
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bAddDefaultMailText.setIconSclass("z-icon-GetMail");
|
|
||||||
else
|
|
||||||
bAddDefaultMailText.setImage(ThemeManager.getThemeResource("images/DefaultMailText.png"));
|
bAddDefaultMailText.setImage(ThemeManager.getThemeResource("images/DefaultMailText.png"));
|
||||||
bAddDefaultMailText.addEventListener(Events.ON_CLICK, this);
|
bAddDefaultMailText.addEventListener(Events.ON_CLICK, this);
|
||||||
bAddDefaultMailText.setTooltiptext(Msg.getMsg(Env.getCtx(), "AddDefaultMailTextContent"));
|
bAddDefaultMailText.setTooltiptext(Msg.getMsg(Env.getCtx(), "AddDefaultMailTextContent"));
|
||||||
|
|
|
@ -157,24 +157,15 @@ public class WMediaDialog extends Window implements EventListener<Event>
|
||||||
|
|
||||||
|
|
||||||
bSave.setEnabled(false);
|
bSave.setEnabled(false);
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
bSave.setImage(ThemeManager.getThemeResource("images/Export24.png"));
|
||||||
bSave.setIconSclass("z-icon-Export");
|
|
||||||
else
|
|
||||||
bSave.setImage(ThemeManager.getThemeResource("images/Download24.png"));
|
|
||||||
bSave.setTooltiptext(Msg.getMsg(Env.getCtx(), "AttachmentSave"));
|
bSave.setTooltiptext(Msg.getMsg(Env.getCtx(), "AttachmentSave"));
|
||||||
bSave.addEventListener(Events.ON_CLICK, this);
|
bSave.addEventListener(Events.ON_CLICK, this);
|
||||||
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
bLoad.setImage(ThemeManager.getThemeResource("images/Import24.png"));
|
||||||
bLoad.setIconSclass("z-icon-Import");
|
|
||||||
else
|
|
||||||
bLoad.setImage(ThemeManager.getThemeResource("images/Upload24.png"));
|
|
||||||
bLoad.setTooltiptext(Msg.getMsg(Env.getCtx(), "Load"));
|
bLoad.setTooltiptext(Msg.getMsg(Env.getCtx(), "Load"));
|
||||||
bLoad.addEventListener(Events.ON_UPLOAD, this);
|
bLoad.addEventListener(Events.ON_UPLOAD, this);
|
||||||
bLoad.setUpload(AdempiereWebUI.getUploadSetting());
|
bLoad.setUpload(AdempiereWebUI.getUploadSetting());
|
||||||
|
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
bDelete.setIconSclass("z-icon-Delete");
|
|
||||||
else
|
|
||||||
bDelete.setImage(ThemeManager.getThemeResource("images/Delete24.png"));
|
bDelete.setImage(ThemeManager.getThemeResource("images/Delete24.png"));
|
||||||
bDelete.setTooltiptext(Msg.getMsg(Env.getCtx(), "Delete"));
|
bDelete.setTooltiptext(Msg.getMsg(Env.getCtx(), "Delete"));
|
||||||
bDelete.addEventListener(Events.ON_CLICK, this);
|
bDelete.addEventListener(Events.ON_CLICK, this);
|
||||||
|
@ -196,15 +187,9 @@ public class WMediaDialog extends Window implements EventListener<Event>
|
||||||
southPane.appendChild(confirmPanel);
|
southPane.appendChild(confirmPanel);
|
||||||
ZKUpdateUtil.setHeight(southPane, "30px");
|
ZKUpdateUtil.setHeight(southPane, "30px");
|
||||||
|
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bOk.setIconSclass("z-icon-Ok");
|
|
||||||
else
|
|
||||||
bOk.setImage(ThemeManager.getThemeResource("images/Ok24.png"));
|
bOk.setImage(ThemeManager.getThemeResource("images/Ok24.png"));
|
||||||
bOk.addEventListener(Events.ON_CLICK, this);
|
bOk.addEventListener(Events.ON_CLICK, this);
|
||||||
|
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bCancel.setIconSclass("z-icon-Cancel");
|
|
||||||
else
|
|
||||||
bCancel.setImage(ThemeManager.getThemeResource("images/Cancel24.png"));
|
bCancel.setImage(ThemeManager.getThemeResource("images/Cancel24.png"));
|
||||||
bCancel.addEventListener(Events.ON_CLICK, this);
|
bCancel.addEventListener(Events.ON_CLICK, this);
|
||||||
|
|
||||||
|
|
|
@ -351,9 +351,6 @@ public class WPAttributeDialog extends Window implements EventListener<Event>
|
||||||
cbNewEdit.addEventListener(Events.ON_CHECK, this);
|
cbNewEdit.addEventListener(Events.ON_CHECK, this);
|
||||||
row.appendChild(cbNewEdit);
|
row.appendChild(cbNewEdit);
|
||||||
bSelect.setLabel(Msg.getMsg(Env.getCtx(), "SelectExisting"));
|
bSelect.setLabel(Msg.getMsg(Env.getCtx(), "SelectExisting"));
|
||||||
if (ThemeManager.isUseFontIconForImage())
|
|
||||||
bSelect.setIconSclass("z-icon-PAttribute");
|
|
||||||
else
|
|
||||||
bSelect.setImage(ThemeManager.getThemeResource("images/PAttribute16.png"));
|
bSelect.setImage(ThemeManager.getThemeResource("images/PAttribute16.png"));
|
||||||
bSelect.addEventListener(Events.ON_CLICK, this);
|
bSelect.addEventListener(Events.ON_CLICK, this);
|
||||||
row.appendChild(bSelect);
|
row.appendChild(bSelect);
|
||||||
|
@ -433,11 +430,6 @@ public class WPAttributeDialog extends Window implements EventListener<Event>
|
||||||
// Popup
|
// Popup
|
||||||
// fieldLot.addMouseListener(new VPAttributeDialog_mouseAdapter(this)); // popup
|
// fieldLot.addMouseListener(new VPAttributeDialog_mouseAdapter(this)); // popup
|
||||||
mZoom = new Menuitem(Msg.getMsg(Env.getCtx(), "Zoom"), ThemeManager.getThemeResource("images/Zoom16.png"));
|
mZoom = new Menuitem(Msg.getMsg(Env.getCtx(), "Zoom"), ThemeManager.getThemeResource("images/Zoom16.png"));
|
||||||
if(ThemeManager.isUseFontIconForImage()) {
|
|
||||||
mZoom.setIconSclass("z-icon-Zoom");
|
|
||||||
mZoom.setImage("");
|
|
||||||
}
|
|
||||||
|
|
||||||
mZoom.addEventListener(Events.ON_CLICK, this);
|
mZoom.addEventListener(Events.ON_CLICK, this);
|
||||||
popupMenu.appendChild(mZoom);
|
popupMenu.appendChild(mZoom);
|
||||||
this.appendChild(popupMenu);
|
this.appendChild(popupMenu);
|
||||||
|
|
|
@ -36,7 +36,6 @@ import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
import org.zkoss.zk.ui.HtmlBasedComponent;
|
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
|
@ -153,28 +152,12 @@ public class WRecordAccessDialog extends Window implements EventListener<Event>
|
||||||
*/
|
*/
|
||||||
private void jbInit() throws Exception
|
private void jbInit() throws Exception
|
||||||
{
|
{
|
||||||
//devCoffee #6142
|
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bDelete.setIconSclass("z-icon-Delete");
|
|
||||||
else
|
|
||||||
bDelete.setImage(ThemeManager.getThemeResource("images/Delete16.png"));
|
bDelete.setImage(ThemeManager.getThemeResource("images/Delete16.png"));
|
||||||
bDelete.setTooltiptext(Msg.getMsg(Env.getCtx(), "Delete"));
|
bDelete.setTooltiptext(Msg.getMsg(Env.getCtx(), "Delete"));
|
||||||
//devCoffee #6142
|
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bNew.setIconSclass("z-icon-New");
|
|
||||||
else
|
|
||||||
bNew.setImage(ThemeManager.getThemeResource("images/New16.png"));
|
bNew.setImage(ThemeManager.getThemeResource("images/New16.png"));
|
||||||
bNew.setTooltiptext(Msg.getMsg(Env.getCtx(), "New"));
|
bNew.setTooltiptext(Msg.getMsg(Env.getCtx(), "New"));
|
||||||
//devCoffee #6142
|
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bUp.setIconSclass("z-icon-Previous");
|
|
||||||
else
|
|
||||||
bUp.setImage(ThemeManager.getThemeResource("images/Previous16.png"));
|
bUp.setImage(ThemeManager.getThemeResource("images/Previous16.png"));
|
||||||
bUp.setTooltiptext(Msg.getMsg(Env.getCtx(), "Previous"));
|
bUp.setTooltiptext(Msg.getMsg(Env.getCtx(), "Previous"));
|
||||||
//devCoffee #6142
|
|
||||||
if(ThemeManager.isUseFontIconForImage())
|
|
||||||
bDown.setIconSclass("z-icon-Next");
|
|
||||||
else
|
|
||||||
bDown.setImage(ThemeManager.getThemeResource("images/Next16.png"));
|
bDown.setImage(ThemeManager.getThemeResource("images/Next16.png"));
|
||||||
bDown.setTooltiptext(Msg.getMsg(Env.getCtx(), "Next"));
|
bDown.setTooltiptext(Msg.getMsg(Env.getCtx(), "Next"));
|
||||||
|
|
||||||
|
@ -203,8 +186,6 @@ public class WRecordAccessDialog extends Window implements EventListener<Event>
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.appendChild(roleLabel);
|
row.appendChild(roleLabel);
|
||||||
row.appendChild(roleField);
|
row.appendChild(roleField);
|
||||||
//devCoffee #6142
|
|
||||||
ZKUpdateUtil.setHflex((HtmlBasedComponent) row.getLastChild(), "1");
|
|
||||||
row.appendChild(cbActive);
|
row.appendChild(cbActive);
|
||||||
row.appendChild(cbExclude);
|
row.appendChild(cbExclude);
|
||||||
row.appendChild(cbReadOnly);
|
row.appendChild(cbReadOnly);
|
||||||
|
|
|
@ -280,6 +280,4 @@
|
||||||
.z-icon-CSVImport:before {
|
.z-icon-CSVImport:before {
|
||||||
content: "\f0f6";
|
content: "\f0f6";
|
||||||
}
|
}
|
||||||
.z-icon-GetMail:before {
|
|
||||||
content: "\f0e0";
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue