org.nuiton.guix.tags.gwt
Class TableHandler
java.lang.Object
org.nuiton.guix.tags.DefaultTagHandler
org.nuiton.guix.tags.gwt.UIObjectHandler
org.nuiton.guix.tags.gwt.TableHandler
- All Implemented Interfaces:
- TagHandler
- Direct Known Subclasses:
- CellHandler, RowHandler
public class TableHandler
- extends UIObjectHandler
Represents a table
- Author:
- kmorin
| Methods inherited from class org.nuiton.guix.tags.DefaultTagHandler |
addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, configureProxyEventInfo, getAttrToGenerate, getDefaultConstructor, getEventInfosAddListenerMethodName, getEventInfosListenerClass, getEventInfosModelName, getEventInfosRemoveListenerMethodName, hasEventInfosAboutMethod, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INSETS
public static final java.lang.String DEFAULT_INSETS
- See Also:
- Constant Field Values
DEFAULT_HORIZONTAL_ALIGNMENT
public static final TableHandler.HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT
DEFAULT_VERTICAL_ALIGNMENT
public static final TableHandler.VerticalAlignment DEFAULT_VERTICAL_ALIGNMENT
DEFAULT_FILL
public static final java.lang.String DEFAULT_FILL
- See Also:
- Constant Field Values
DEFAULT_IPADX
public static final java.lang.Integer DEFAULT_IPADX
DEFAULT_IPADY
public static final java.lang.Integer DEFAULT_IPADY
DEFAULT_WEIGHTX
public static final java.lang.Double DEFAULT_WEIGHTX
DEFAULT_WEIGHTY
public static final java.lang.Double DEFAULT_WEIGHTY
weightx
protected java.lang.Double weightx
weighty
protected java.lang.Double weighty
ipadx
protected java.lang.Integer ipadx
ipady
protected java.lang.Integer ipady
horizontalAlignment
protected TableHandler.HorizontalAlignment horizontalAlignment
verticalAlignment
protected TableHandler.VerticalAlignment verticalAlignment
fill
protected java.lang.String fill
insets
protected java.lang.String insets
TableHandler
public TableHandler()
- Constructor
TableHandler
public TableHandler(GuixModelObject table)
- Constructor
- Parameters:
table - the GuixModelObject which represents the table
getHorizontalAlignment
public TableHandler.HorizontalAlignment getHorizontalAlignment()
setHorizontalAlignment
public void setHorizontalAlignment(TableHandler.HorizontalAlignment horizontalAlignment)
getVerticalAlignment
public TableHandler.VerticalAlignment getVerticalAlignment()
setVerticalAlignment
public void setVerticalAlignment(TableHandler.VerticalAlignment verticalAlignment)
getFill
public java.lang.String getFill()
setFill
public void setFill(java.lang.String fill)
getInsets
public java.lang.String getInsets()
setInsets
public void setInsets(java.lang.String insets)
getIpadx
public java.lang.Integer getIpadx()
setIpadx
public void setIpadx(java.lang.Integer ipadx)
getIpady
public java.lang.Integer getIpady()
setIpady
public void setIpady(java.lang.Integer ipady)
getWeightx
public java.lang.Double getWeightx()
setWeightx
public void setWeightx(java.lang.Double weightx)
getWeighty
public java.lang.Double getWeighty()
setWeighty
public void setWeighty(java.lang.Double weighty)
getHalign
public TableHandler.HorizontalAlignment getHalign(java.lang.String halign)
getValign
public TableHandler.VerticalAlignment getValign(java.lang.String valign)
createCell
public static java.lang.String createCell(java.lang.String parentId,
CellHandler cl,
java.util.List<java.util.List<int[]>> layout,
int iC,
int r)
- Creates a cell with the right column and generates the code to add it to the table
- Parameters:
parentId - the table idcl - the CellHandler containing the infoslayout - the matrix representing the free spaces in the tableiC - the last column where a cell was added in the rowr - the row of the cell
- Returns:
- the code to add the cell in the table
getClassToGenerate
public java.lang.Class getClassToGenerate()
Copyright © 2009 CodeLutin. All Rights Reserved.