com.vinay.ui.vinui.fw.core
Class Control
java.lang.Object
com.vinay.ui.vinui.fw.core.Control
- Direct Known Subclasses:
- Button, HorizontalLine, HyperLink, Image, List, MultilineTextInput, Table, Text, TextInput, UIGroup
- public abstract class Control
- extends java.lang.Object
Represents a UI Element.
- Author:
- Vinay Nath
Field Summary |
protected java.util.Map |
bindings
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bindings
protected java.util.Map bindings
Control
public Control()
getId
public long getId()
bindAttribute
public void bindAttribute(java.lang.String attributeName,
java.lang.String contextAttributeName)
- Bind a control property to a context attribute.
- Parameters:
attributeName
- the name of the control propertycontextAttributeName
- the name of the context attribute
render
protected java.lang.String render()
throws VinUIException
- Throws:
VinUIException
getPageContext
protected Context getPageContext()
- Returns the context of the page that hosts this control
- Returns:
- the Context object
addUIEventListener
public void addUIEventListener(UIEventListener listener)
- Adds a UIEventListener to the control
- Parameters:
listener
-
- Throws:
java.lang.NullPointerException
- if listener is null- See Also:
UIEventListener
dispatchEvent
protected boolean dispatchEvent(UIEvent evt)
getPage
protected Page getPage()
- Returns:
- Returns the page.