|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttypes.WidgetDef
lib.java.RowLayout
@WidgetDef.Derived(value=Layout.class) public class RowLayout
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class types.WidgetDef |
|---|
WidgetDef.Abstract, WidgetDef.Contained, WidgetDef.Derived |
| Field Summary |
|---|
| Fields inherited from class types.WidgetDef |
|---|
id, parent, widget |
| Constructor Summary | |
|---|---|
RowLayout(Widget widget,
WidgetDef parent)
|
|
| Method Summary | |
|---|---|
String |
addAttributes(GUIAttributes attrs)
The addAttributes code does two things; it creates the lib.java code necessary for the attributes and it type checks for all attributes. |
String |
addChild(String childType,
String childId,
GUIAttributes attrs)
Check to make sure the childType is legal for the widget, then add it. |
protected String |
getAxisId()
|
Map<String,List<String>> |
getDefaults()
Every attribute in our language has to have a default setting. |
Set<String> |
getImports()
getImports keeps a Set of import lines that are pertinent to the code generated in the other methods. |
String |
getLanguage()
Accessor method for the Widget language. |
List<String> |
getModifiers()
getModifiers returns a list of methods designed to modify various attributes of the widget type in question. |
List<String> |
getVariables()
Returns a chunk of code intended to declare variables which the backend code may need access to and therefore should be declared outside of the constructor code. |
String |
preamble()
Get the chunk of initialization code to be run first. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowLayout(Widget widget,
WidgetDef parent)
| Method Detail |
|---|
protected String getAxisId()
public final String getLanguage()
WidgetDef
getLanguage in class WidgetDefpublic String preamble()
WidgetDefNote that, by its nature, a preamble should only be called once; therefore the preamble is not inherited.
preamble in class WidgetDefpublic final Map<String,List<String>> getDefaults()
WidgetDef
getDefaults in class WidgetDef
public final String addAttributes(GUIAttributes attrs)
throws BadAttributeException
WidgetDef
addAttributes in class WidgetDefattrs - The attributes to set for the widget.
BadAttributeException
public final String addChild(String childType,
String childId,
GUIAttributes attrs)
WidgetDef
addChild in class WidgetDefchildType - The widget type of the child.childId - The identifier of the child.attrs - The child's GUIAttributes map. Child attributes will be
read from this map.
public final Set<String> getImports()
WidgetDef
getImports in class WidgetDefpublic final List<String> getModifiers()
WidgetDef
getModifiers in class WidgetDefpublic final List<String> getVariables()
WidgetDef
getVariables in class WidgetDef
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||