|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.html.XHtmlWidget
net.xoetrope.html.XPanel
public class XPanel
A basic container for components. The panel can optional draw a border. By default no frame is displayed.
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Field Summary | |
|---|---|
protected netscape.javascript.JSObject |
obj
|
| Fields inherited from class net.xoetrope.html.XHtmlWidget |
|---|
currentProject, divElement, htmlDoc, imageElement, inputElement, labelElement, metaElement, olElement, selectElement, tableElement, textareaElement, ulElement |
| Constructor Summary | |
|---|---|
XPanel()
Constructs a new panel with a null layout |
|
XPanel(org.w3c.dom.html.HTMLDivElement divElement)
Create a new XPanel based on an existing HTML div element. |
|
XPanel(java.lang.String value,
java.lang.String id)
Create a new XPanel with a value and an id attribute. |
|
| Method Summary | |
|---|---|
void |
add(org.w3c.dom.html.HTMLElement element)
Add an element in the XPanel |
java.lang.String |
getAlign()
Get the align attribute of the XPanel. |
java.lang.String |
getAttribute(java.lang.String attribName)
Get an attribute value |
java.lang.String |
getBackgroundColor()
Get the background color of the XPanel. |
java.lang.String |
getFontColor()
Get the font color of the XPanel's elements' text. |
java.lang.String |
getFontFace()
Get the font face of the XPanel's elements' text. |
int |
getFontSize()
Get the size of the XPanel's elements' text. |
org.w3c.dom.html.HTMLDivElement |
getHTMLElement()
Get the HTML element at which refers the XPanel. |
void |
insertBefore(XPanel panel)
Insert a new panel before the current one |
boolean |
isVisible()
Method used to know if the XPanel is visible or hidden on the HTML page. |
void |
resetContent()
Remove all the elements contained in the panel |
void |
setAlign(java.lang.String align)
Set the align attribute of the XPanel |
int |
setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
void |
setBackgroundColor(java.lang.String hexColor)
Set the background color of the XPanel. |
void |
setFontColor(java.lang.String hexColor)
Set the font color of the XPanel's elements' text. |
void |
setFontFace(java.lang.String fontFace)
Set the font face of the XPanel's elements' text. |
void |
setFontSize(int fontsize)
Set the size of the XPanel's elements' text. |
void |
setId(java.lang.String id)
Set the id attribute of the XPanel |
void |
setVisible(boolean visible)
Set the XPanel visible or invisible. |
| Methods inherited from class net.xoetrope.html.XHtmlWidget |
|---|
addEvent, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected netscape.javascript.JSObject obj
| Constructor Detail |
|---|
public XPanel()
public XPanel(java.lang.String value,
java.lang.String id)
value - the text to display in the panelid - the id of the panelpublic XPanel(org.w3c.dom.html.HTMLDivElement divElement)
divElement - the HTML div tag the XPanel refers to| Method Detail |
|---|
public void resetContent()
public void add(org.w3c.dom.html.HTMLElement element)
element - the element to addpublic void setVisible(boolean visible)
visible - true if visible, false otherwisepublic boolean isVisible()
public int setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
setAttribute in interface XAttributedComponentattribName - the attribute nameattribValue - the attribute value
public java.lang.String getAttribute(java.lang.String attribName)
attribName - the attribute which value is requested
public int getFontSize()
public void setFontSize(int fontsize)
fontsize - the int value of the font sizepublic java.lang.String getBackgroundColor()
public void setBackgroundColor(java.lang.String hexColor)
hexColor - the hexadecimal value of the background colorpublic java.lang.String getFontColor()
public void setFontColor(java.lang.String hexColor)
hexColor - the hexadecimal value of the font colorpublic void setFontFace(java.lang.String fontFace)
fontFace - the font facepublic java.lang.String getFontFace()
public void setAlign(java.lang.String align)
align - the alignment of the XPanel (left, right, center, justified)public java.lang.String getAlign()
public void setId(java.lang.String id)
id - the id of the panelpublic void insertBefore(XPanel panel)
panel - the panel that is to be insertedpublic org.w3c.dom.html.HTMLDivElement getHTMLElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||