trifonnt 2009-09-24 15:44:11 +00:00
parent f3f310ce9d
commit f909e82e23
4 changed files with 17 additions and 39 deletions

View File

@ -127,7 +127,7 @@ public class WebDoc
return create (false, title, false);
} // create
/** Non brealing Space */
/** Non breaking Space */
public static final String NBSP = " ";
@ -163,10 +163,9 @@ public class WebDoc
return;
// css, js
if (javaClient)
m_head.addElement(new link("http://www.adempiere.com/css/standard.css", link.REL_STYLESHEET, link.TYPE_CSS));
else
{
if (javaClient) {
m_head.addElement(new StoredHtmlSrc("STYLE", "org/compiere/images/standard.css")); //TODO
} else {
m_head.addElement(new link(WebEnv.getStylesheetURL(), link.REL_STYLESHEET, link.TYPE_CSS));
m_head.addElement(new script((Element)null, WebEnv.getBaseDirectory("/js/standard.js")));
}
@ -186,15 +185,17 @@ public class WebDoc
// Logo
m_topRight = new td().setAlign("right");
if (javaClient)
m_topRight.addElement(new img("http://www.adempiere.com/images/adempiere64x32.png")
.setAlign(AlignType.RIGHT).setAlt("Adempiere Inc."));
else
if(title.equals(""))
if (javaClient) {
m_topRight.addElement(
new img("res:org/compiere/images/AD10030.png")
.setAlign(AlignType.RIGHT).setAlt("Adempiere"));
} else {
if (title.equals("")) {
m_topRight.addElement(WebEnv.getLogo());
else
} else {
m_topRight.addElement(new h1(title));
}
}
m_topRow.addElement(m_topRight);
m_table.addElement(m_topRow);
//
@ -338,7 +339,7 @@ public class WebDoc
/**
* Add Window Center
* @param nowrap set nowrap in td
* @param nowrap set no wrap in td
* @return empty single center td
*/
public td addWindowCenter(boolean nowrap)
@ -401,4 +402,5 @@ public class WebDoc
doc.output(System.out);
System.out.println("---------");
} // main
} // WDoc

View File

@ -184,7 +184,7 @@ public class WebEnv
/**************************************************************************
* Get Base Directory entrry.
* Get Base Directory entry.
* <br>
* /adempiere/
* @param entry file entry or path

View File

@ -1,25 +0,0 @@
<html>
<head>
<!--
$Id: package.html,v 1.1 2006/04/21 17:41:35 jjanke Exp $
Copyright 1999-2002 Jorg Janke, Inc.
40 Old Tannery Rd, Monroe, CT 06468, U.S.A.
All Rights Reserved.
-->
</head>
<body>
<p>Provides utility functions.</p>
<h2>Package Specification</h2>
<p>Utility.</p>
<h2> Related Documentation</h2>
<p>For overviews, tutorials, examples, guides, and tool documentation, please
see: <a href="http://www.adempiere.org" target="_blank">http://www.adempiere.org</a></p>
<p>
<!-- Put @see and @since tags down here. -->
</p>
</body>
</html>

View File

@ -17,6 +17,7 @@ public class FCHtmlEditorKit extends HTMLEditorKit {
*
*/
private static final long serialVersionUID = -3371176452691681668L;
public ViewFactory getViewFactory() {
if (defaultFactory == null) {
defaultFactory = new FCHtmlFactory(super.getViewFactory());