|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oktiva.mogno.Component
com.oktiva.mogno.Visual
This is the base class for all the components that are visual components.
Field Summary | |
java.lang.String |
evOnShow
Event dispatched when a visual component is shown |
java.lang.String |
evOnSyntaxError
Event dispatched when a syntax error occour |
int |
gridHeight
Used by container to know how many rows this component will use defaults to 1 |
int |
gridWeightX
Defines the weight of this column. |
int |
gridWeightY
Defines the weight of this column. |
int |
gridWidth
Used by container to know how many columns this component will use defaults to 1 |
java.lang.String |
id
Core HTML attribute |
java.lang.String |
lastError
What was the last error in this component? |
int |
left
Ordering variable |
java.lang.String |
parent
The component in which this component is inside |
protected boolean |
problematic
Signalization if this component had a error |
java.lang.String |
style
Core HTML attribute |
java.lang.String |
styleClass
Mapped core HTML attribute Because class is a reserved word, the property class is mapped to styleClass. |
java.lang.String |
title
Core HTML attribute |
int |
top
Ordering variable |
Fields inherited from class com.oktiva.mogno.Component |
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName |
Constructor Summary | |
Visual()
|
Method Summary | |
java.lang.String |
buildHtmlAttributes(java.util.Vector att)
Return the string with the name="value" pairs to be used inside html tags. |
java.util.Vector |
cellhalignHtmlAttributes()
Return the cellhalign elements as defined by W3C. |
java.util.Vector |
cellvalignHtmlAttributes()
Return the cellvalign elements as defined by W3C. |
void |
checkSyntax()
Check the syntax for this component. |
java.util.Vector |
coreHtmlAttributes()
Return the core elements as defined by W3C. |
boolean |
descendentOf(java.lang.String name)
Verify if this component has an ancestor named name |
java.util.Vector |
eventsHtmlAttributes()
Return the events elements as defined by W3C. |
java.lang.String |
getEvOnShow()
|
java.lang.String |
getEvOnSyntaxError()
|
int |
getGridHeight()
|
int |
getGridWeightX()
|
int |
getGridWeightY()
|
int |
getGridWidth()
|
java.lang.String |
getId()
|
java.lang.String |
getLastError()
|
int |
getLeft()
|
java.lang.String |
getParent()
|
java.lang.String |
getStyle()
|
java.lang.String |
getStyleClass()
|
java.lang.String |
getTitle()
|
int |
getTop()
|
java.util.Vector |
htmlAttributes()
Valid HTML attributes for this component. |
java.util.Vector |
i18nHtmlAttributes()
Return the internationalization (i18n) elements as defined by W3C. |
java.util.Vector |
localizableAttributes()
Attributes that will be localized. |
void |
receiveRequest(javax.servlet.http.HttpServletRequest request)
Receive the request and rebuild the properties using the data that the user has filled in. |
void |
setEvOnShow(java.lang.String evOnShow)
|
void |
setEvOnSyntaxError(java.lang.String evOnSyntaxError)
|
void |
setGridHeight(int gridHeight)
|
void |
setGridWeightX(int gridWeightX)
|
void |
setGridWeightY(int gridWeightY)
|
void |
setGridWidth(int gridWidth)
|
void |
setId(java.lang.String id)
|
void |
setLastError(java.lang.String lastError)
|
void |
setLeft(int left)
|
void |
setParent(java.lang.String parent)
|
void |
setStyle(java.lang.String style)
|
void |
setStyleClass(java.lang.String styleClass)
|
void |
setTitle(java.lang.String title)
|
void |
setTop(int top)
|
java.lang.String |
show()
Implements just the dispatching of the onShow event |
java.lang.String |
showHtmlAttributes()
Return the string with the name="value" pairs to be used inside html tags, for the current component. |
Methods inherited from class com.oktiva.mogno.Component |
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOrderedChildNames, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, nonAttributeGetters, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String id
public java.lang.String styleClass
showHtmlAttributes()
public java.lang.String style
public java.lang.String title
public java.lang.String parent
public int top
public int left
public int gridHeight
public int gridWidth
public int gridWeightX
public int gridWeightY
public java.lang.String evOnShow
protected boolean problematic
public java.lang.String lastError
public java.lang.String evOnSyntaxError
Constructor Detail |
public Visual()
Method Detail |
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getStyleClass()
public void setStyleClass(java.lang.String styleClass)
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getParent()
public void setParent(java.lang.String parent)
public int getTop()
public void setTop(int top)
public int getLeft()
public void setLeft(int left)
public int getGridHeight()
public void setGridHeight(int gridHeight)
public int getGridWidth()
public void setGridWidth(int gridWidth)
public int getGridWeightX()
public void setGridWeightX(int gridWeightX)
public int getGridWeightY()
public void setGridWeightY(int gridWeightY)
public java.lang.String getEvOnShow()
public void setEvOnShow(java.lang.String evOnShow)
public java.lang.String getLastError()
public void setLastError(java.lang.String lastError)
public java.lang.String getEvOnSyntaxError()
public void setEvOnSyntaxError(java.lang.String evOnSyntaxError)
public java.lang.String show() throws java.lang.Exception
java.lang.Exception
public void receiveRequest(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequestpublic void checkSyntax() throws SyntaxErrorException
SyntaxErrorException
- When the syntax is wrong.public java.lang.String showHtmlAttributes()
NOTE:
Because class is a reserved word, the property
styleClass is mapped to class here, and for the same
reason, charOn is mapped to char and forId is
mapped to for.
Because accept-charset is a invalid identifier, the property
acceptCharset is mapped to accept-charset here.
styleClass
,
TableElement.charOn
,
Label.forId
,
Form.acceptCharset
,
buildHtmlAttributes(Vector)
public java.lang.String buildHtmlAttributes(java.util.Vector att)
NOTE:
Because class is a reserved word, the property
styleClass is mapped to class here, and for the same
reason, charOn is mapped to char and forId is
mapped to for.
Because accept-charset is a invalid identifier, the property
acceptCharset is mapped to accept-charset here.
styleClass
,
TableElement.charOn
,
Label.forId
,
Form.acceptCharset
,
showHtmlAttributes()
public java.util.Vector htmlAttributes()
public java.util.Vector coreHtmlAttributes()
public String id; public String styleClass; public String style; public String title;
public java.util.Vector i18nHtmlAttributes()
public String lang; public String dir;
public java.util.Vector eventsHtmlAttributes()
public String onmouseup; public String onmousedown; public String onclick; public String ondblclick; public String onmouseover; public String onmousemove; public String onmouseout; public String onkeypress; public String onkeydown; public String onkeyup;
public java.util.Vector cellhalignHtmlAttributes()
public String align; public String charOn; public String charoff;
public java.util.Vector cellvalignHtmlAttributes()
public String valign;
public java.util.Vector localizableAttributes()
public boolean descendentOf(java.lang.String name)
descendentOf
in class Component
name
- The name of the ancestor component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |