IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> deprecated setAlign
This commit is contained in:
parent
f388799354
commit
4990c67dcc
|
@ -502,7 +502,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
editorComps.add(editor.getComponent());
|
||||
if (paintLabel) {
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
Label label = editor.getLabel();
|
||||
div.appendChild(label);
|
||||
if (label.getDecorator() != null)
|
||||
|
@ -556,7 +556,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
//display just a label if we are "heading only"
|
||||
Label label = new Label(field.getHeader());
|
||||
Div div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
row.appendCellChild(createSpacer());
|
||||
div.appendChild(label);
|
||||
row.appendCellChild(div);
|
||||
|
|
|
@ -288,7 +288,7 @@ public class ProcessParameterPanel extends Panel implements
|
|||
m_wEditors.add(editor); // add to Editors
|
||||
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
org.adempiere.webui.component.Label label = editor.getLabel();
|
||||
div.appendChild(label);
|
||||
if (label.getDecorator() != null)
|
||||
|
|
|
@ -239,7 +239,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(processLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(processField);
|
||||
|
@ -249,7 +249,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(bPartnerLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(bPartnerField.getComponent());
|
||||
|
@ -258,7 +258,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(tableLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(tableField);
|
||||
|
@ -268,7 +268,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(nameQLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(nameQField);
|
||||
|
@ -278,7 +278,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(descriptionQLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(descriptionQField);
|
||||
|
@ -288,7 +288,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(helpQLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(helpQField);
|
||||
|
@ -298,7 +298,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(createdByQLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(createdByQField);
|
||||
|
@ -307,14 +307,14 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(createdQLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(createdQFrom);
|
||||
row.appendChild(createdQTo);
|
||||
|
||||
div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
div.appendChild(gridQuery);
|
||||
|
||||
Tabpanel tabQueryPanel = new Tabpanel();
|
||||
|
@ -337,15 +337,15 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2, 1");
|
||||
div = new Div();
|
||||
div.setAlign("left");
|
||||
div.setStyle("text-align: left;");
|
||||
div.appendChild(bBack);
|
||||
row.appendChild(div);
|
||||
div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
div.appendChild(positionInfo);
|
||||
row.appendChild(div);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(bNext);
|
||||
row.appendChild(div);
|
||||
|
||||
|
@ -365,7 +365,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("4");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(createdField);
|
||||
row.appendChild(div);
|
||||
|
||||
|
@ -411,7 +411,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
|||
rows.appendChild(row);
|
||||
row.setSpans("4");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(deleteArchive);
|
||||
div.appendChild(bRefresh);
|
||||
div.appendChild(updateArchive);
|
||||
|
|
|
@ -124,7 +124,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(attributeLabel1);
|
||||
row.appendChild(div);
|
||||
row.appendChild(attributeCombo1);
|
||||
|
@ -134,7 +134,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(attributeLabel2);
|
||||
row.appendChild(div);
|
||||
row.appendChild(attributeCombo2);
|
||||
|
@ -144,7 +144,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(labelPriceList);
|
||||
row.appendChild(div);
|
||||
row.appendChild(pickPriceList);
|
||||
|
@ -154,14 +154,14 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
rows.appendChild(row);
|
||||
row.setSpans("1, 2");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(labelWarehouse);
|
||||
row.appendChild(div);
|
||||
row.appendChild(pickWarehouse);
|
||||
pickWarehouse.setWidth("100%");
|
||||
|
||||
div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
div.appendChild(gridSelection);
|
||||
|
||||
Tabpanel tabSelectionPanel = new Tabpanel();
|
||||
|
@ -172,7 +172,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
tabs.appendChild(tabSelection);
|
||||
|
||||
div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
div.appendChild(modeLabel);
|
||||
div.appendChild(modeCombo);
|
||||
modeCombo.addEventListener(Events.ON_CHANGE, this);
|
||||
|
@ -456,7 +456,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
if (xValues != null)
|
||||
{
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(new Label(m_attributes[indexAttr1].getName()));
|
||||
descr.appendChild(div);
|
||||
}
|
||||
|
@ -470,7 +470,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
|||
if (xValue != null)
|
||||
{
|
||||
Div div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
div.appendChild(new Label(xValue.getName()));
|
||||
row.appendChild(div);
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ public class WCharge extends Charge implements IFormController, EventListener<Ev
|
|||
south.setBorder("none");
|
||||
borderlayout.appendChild(south);
|
||||
Panel southPanel = new Panel();
|
||||
southPanel.setAlign("right");
|
||||
southPanel.setStyle("text-align: right;");
|
||||
south.appendChild(southPanel);
|
||||
m_btnAccount.setLabel(Msg.getMsg(Env.getCtx(), AD_MESSAGE_CREATE) + " " + Msg.getMsg(Env.getCtx(), "From") + " " + Msg.getElement(Env.getCtx(), "Account_ID"));
|
||||
m_btnAccount.addEventListener(Events.ON_CLICK, this);
|
||||
|
|
|
@ -415,7 +415,7 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
|||
|
||||
Hbox hb = new Hbox();
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||
hb.appendChild(div);
|
||||
hb.appendChild(cboType);
|
||||
|
|
|
@ -301,7 +301,7 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
|||
}
|
||||
if (paintLabel) {
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
Label label = editor.getLabel();
|
||||
div.appendChild(label);
|
||||
if (label.getDecorator() != null)
|
||||
|
@ -322,7 +322,7 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
|||
//display just a label if we are "heading only"
|
||||
Label label = new Label(gridField.getHeader());
|
||||
Div div = new Div();
|
||||
div.setAlign("center");
|
||||
div.setStyle("text-align: center;");
|
||||
row.appendCellChild(createSpacer());
|
||||
div.appendChild(label);
|
||||
row.appendCellChild(div);
|
||||
|
|
|
@ -155,7 +155,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
Row row = new Row();
|
||||
rows.appendChild(row);
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lNode);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fNode);
|
||||
|
@ -166,7 +166,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
rows.appendChild(row);
|
||||
row.setValign("top");
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lDesctiption);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fDescription);
|
||||
|
@ -177,7 +177,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lHelp);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fHelp);
|
||||
|
@ -190,7 +190,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lHistory);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fHistory);
|
||||
|
@ -199,7 +199,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lAnswer);
|
||||
row.appendChild(div);
|
||||
Hbox hbox = new Hbox();
|
||||
|
@ -214,7 +214,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lTextMsg);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fTextMsg);
|
||||
|
@ -225,7 +225,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lForward);
|
||||
row.appendChild(div);
|
||||
hbox = new Hbox();
|
||||
|
|
|
@ -125,7 +125,7 @@ public class WTranslationDialog extends TranslationController implements IFormCo
|
|||
row.appendChild(cbTable);
|
||||
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(bExport);
|
||||
|
||||
row = rows.newRow();
|
||||
|
|
|
@ -240,7 +240,7 @@ public class CustomizeGridViewPanel extends Panel
|
|||
south.setStyle("border: none; margin: none");
|
||||
Panel southPanel = new Panel();
|
||||
south.setHeight("35px");
|
||||
southPanel.setAlign("Right");
|
||||
south.setStyle("text-align: right;");
|
||||
southPanel.setStyle("margin-top: 2px; margin-right: 4px");
|
||||
@SuppressWarnings("unused")
|
||||
String label = Msg.getMsg(Env.getCtx(), "save");
|
||||
|
|
|
@ -213,11 +213,11 @@ public class InfoAssignmentPanel extends InfoPanel implements EventListener<Even
|
|||
row.appendChild(fieldResourceType.getComponent());
|
||||
row.appendChild(fieldResource.getComponent());
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(fieldFrom);
|
||||
row.appendChild(div);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(fieldTo);
|
||||
row.appendChild(div);
|
||||
row.appendChild(bNew);
|
||||
|
|
|
@ -129,7 +129,7 @@ public class InfoPAttributeInstancePanel extends Window implements EventListener
|
|||
North north = new North();
|
||||
borderlayout.appendChild(north);
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(showAll);
|
||||
north.appendChild(div);
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(serNoLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(serNoField.getComponent());
|
||||
|
@ -187,7 +187,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lotLabel);
|
||||
row.appendChild(div);
|
||||
row.appendChild(lotField.getComponent());
|
||||
|
@ -196,7 +196,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lotLabel2);
|
||||
row.appendChild(div);
|
||||
row.appendChild(lotSelection);
|
||||
|
@ -206,7 +206,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(guaranteeDateSelection);
|
||||
row.appendChild(div);
|
||||
row.appendChild(guaranteeDateField);
|
||||
|
@ -275,7 +275,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
|||
label.setTooltiptext(description);
|
||||
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(label);
|
||||
row.appendChild(div);
|
||||
|
||||
|
@ -318,7 +318,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(new Label("-"));
|
||||
row.appendChild(div);
|
||||
row.appendChild(fieldTo);
|
||||
|
|
|
@ -117,7 +117,7 @@ public class ExportAction implements EventListener<Event>
|
|||
|
||||
Hbox hb = new Hbox();
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||
hb.appendChild(div);
|
||||
hb.appendChild(cboType);
|
||||
|
|
|
@ -146,7 +146,7 @@ public class FileImportAction implements EventListener<Event>
|
|||
|
||||
Hbox hb = new Hbox();
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||
hb.appendChild(div);
|
||||
hb.appendChild(cboType);
|
||||
|
|
|
@ -206,7 +206,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
|||
Row row = new Row();
|
||||
rows.appendChild(row);
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lFrom);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fFrom);
|
||||
|
@ -215,7 +215,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lTo);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fUser.getComponent());
|
||||
|
@ -230,7 +230,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lCc);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fCcUser.getComponent());
|
||||
|
@ -250,7 +250,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lSubject);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fSubject);
|
||||
|
@ -264,7 +264,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
|||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(lAttachment);
|
||||
row.appendChild(div);
|
||||
row.appendChild(fAttachment);
|
||||
|
|
|
@ -210,7 +210,7 @@ public class WRecordAccessDialog extends Window implements EventListener<Event>
|
|||
rows.appendChild(row);
|
||||
row.setSpans("7");
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(confirmPanel);
|
||||
row.appendChild(div);
|
||||
|
||||
|
|
|
@ -806,7 +806,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
Hbox hb = new Hbox();
|
||||
Div div = new Div();
|
||||
div.setAlign("right");
|
||||
div.setStyle("text-align: right;");
|
||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||
hb.appendChild(div);
|
||||
hb.appendChild(cboType);
|
||||
|
|
Loading…
Reference in New Issue