Java Doc for TableLayoutContainer.java in  » Web-Framework » jWic » de » jwic » controls » layout » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » jWic » de.jwic.controls.layout 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.jwic.base.Control
      de.jwic.base.ControlContainer
         de.jwic.controls.layout.TableLayoutContainer

TableLayoutContainer
public class TableLayoutContainer extends ControlContainer (Code)
The TableLayoutContainer is a special form of a IControlContainer.

This Container follows a simple layoutstructure in form of a table.
The Controls are added in sequence and are displayed in the given columns partition. The columns can be set through constructor or setter.
TableLayoutContainer.vtl is the template for this container.
The template simply uses table tags to form the layout of the control.

This container also has its own layoutdata like alignment, width, height and border.
author:
   Ronny Pfretzschner
author:
   Florian Lippisch



Field Summary
final public static  StringALIGN_CENTER
    
final public static  StringALIGN_DEFAULT
    
final public static  StringALIGN_LEFT
    
final public static  StringALIGN_RIGHT
    

Constructor Summary
public  TableLayoutContainer(IControlContainer container)
     Constructs a new TableLayoutContainer with a default name.
public  TableLayoutContainer(IControlContainer container, String name)
     Constructs a new TableLayoutContainer with the specified name.
public  TableLayoutContainer(IControlContainer container, String name, int columnCount)
     Constructor.

Method Summary
public  StringgetAlign()
    
public  intgetBorderSize()
    
public  StringgetCSSClass()
    
public  intgetCellPadding()
    
public  intgetCellSpacing()
    
public  Cell[]getCells(Row row)
     Returns the cells to the specified row.
public  ListgetChildNames()
     Returns the list of childs.
public  intgetColumnCount()
     Returns the cols amount as an int.
public  StringgetHeight()
    
public  TableDatagetLayoutData(String controlName)
     Get the TableData of a specific name of a control.
public  Row[]getRows()
     Returns the rows required to render this table.
public  StringgetWidth()
    
public  voidlayout()
     Calculates the layout of the table.
public  voidregisterControl(Control control, String name)
    
public  voidremoveControl(String controlName)
     Removes a control from the container with the given controlName.
public  voidsetAlign(String align)
    
public  voidsetBorderSize(int borderSize)
     The size of the border.
public  voidsetCSSClass(String cssClass)
    
public  voidsetCellPadding(int cellPadding)
     Set the cellpadding property.
public  voidsetCellSpacing(int cellSpacing)
     Set the cellspacing property.
public  voidsetColWidth(int col, int width)
     Set the width of a specified column.
public  voidsetColumnCount(int cols)
     Sets the amount of available columns of the GridLayoutContainer.
public  voidsetHeight(String height)
    
public  voidsetLayoutData(Control control, TableData layoutData)
     Set the layout of a control inside of this container. If null is used for the GridData and the Control is NOT a GridLayoutContainer,
a default GridData is set with left alignment.
public  voidsetWidth(String width)
    
public  voidunregisterControl(Control control)
    

Field Detail
ALIGN_CENTER
final public static String ALIGN_CENTER(Code)



ALIGN_DEFAULT
final public static String ALIGN_DEFAULT(Code)



ALIGN_LEFT
final public static String ALIGN_LEFT(Code)



ALIGN_RIGHT
final public static String ALIGN_RIGHT(Code)




Constructor Detail
TableLayoutContainer
public TableLayoutContainer(IControlContainer container)(Code)
Constructs a new TableLayoutContainer with a default name.



TableLayoutContainer
public TableLayoutContainer(IControlContainer container, String name)(Code)
Constructs a new TableLayoutContainer with the specified name.



TableLayoutContainer
public TableLayoutContainer(IControlContainer container, String name, int columnCount)(Code)
Constructor.


Parameters:
  cols - Amount of columns, which the Container will be devided in.





Method Detail
getAlign
public String getAlign()(Code)
Returns the align.



getBorderSize
public int getBorderSize()(Code)
Returns the borderSize.



getCSSClass
public String getCSSClass()(Code)
Returns the sCSSClass.



getCellPadding
public int getCellPadding()(Code)
Returns the cellPadding.



getCellSpacing
public int getCellSpacing()(Code)
Returns the cellSpacing.



getCells
public Cell[] getCells(Row row)(Code)
Returns the cells to the specified row.
Parameters:
  row -



getChildNames
public List getChildNames()(Code)
Returns the list of childs.



getColumnCount
public int getColumnCount()(Code)
Returns the cols amount as an int.

int The amount of columns




getHeight
public String getHeight()(Code)
Returns the height.



getLayoutData
public TableData getLayoutData(String controlName)(Code)
Get the TableData of a specific name of a control.

null is only returned, if the controls name is belonging to a GridLayoutContainer.


Parameters:
  controlName - GridData




getRows
public Row[] getRows()(Code)
Returns the rows required to render this table.



getWidth
public String getWidth()(Code)
Returns the width.



layout
public void layout()(Code)
Calculates the layout of the table.



registerControl
public void registerControl(Control control, String name) throws JWicException(Code)



removeControl
public void removeControl(String controlName)(Code)
Removes a control from the container with the given controlName.


Parameters:
  String - controlName




setAlign
public void setAlign(String align)(Code)

Parameters:
  align - The align to set.



setBorderSize
public void setBorderSize(int borderSize)(Code)
The size of the border. If set to -1, the border property will not be specified on the table.
Parameters:
  borderSize - The borderSize to set.



setCSSClass
public void setCSSClass(String cssClass)(Code)

Parameters:
  class1 - The sCSSClass to set.



setCellPadding
public void setCellPadding(int cellPadding)(Code)
Set the cellpadding property. If set to -1, the cellpadding will not be specified on the table. (default)
Parameters:
  cellPadding - The cellPadding to set.



setCellSpacing
public void setCellSpacing(int cellSpacing)(Code)
Set the cellspacing property. If set to -1, the cellspacing will not be specified on the table. (default)
Parameters:
  cellSpacing - The cellSpacing to set.



setColWidth
public void setColWidth(int col, int width)(Code)
Set the width of a specified column. Set a column width to -1 if you do not want to specify a size.
Parameters:
  col -
Parameters:
  width -



setColumnCount
public void setColumnCount(int cols)(Code)
Sets the amount of available columns of the GridLayoutContainer.

The default value is 1. Do not use negative values. An IllegalArgumentException
is thrown in that case.
Parameters:
  cols - The amount of columns of the GridLayoutContainer




setHeight
public void setHeight(String height)(Code)

Parameters:
  height - The height to set.



setLayoutData
public void setLayoutData(Control control, TableData layoutData)(Code)
Set the layout of a control inside of this container. If null is used for the GridData and the Control is NOT a GridLayoutContainer,
a default GridData is set with left alignment.

GridLayoutContainers can also be added. In this case, use null for layoutData.
This is anyway the only possible setting, if you do not use null, null will be set automatically.
GridLayoutContainers should use their own layoutproperties.
Parameters:
  IControl - control The control, which will be added in proper sequence to the LayoutContainer
Parameters:
  TableData - layoutData The layoutData of the specific control. null, if it is a GridLayoutContainer



setWidth
public void setWidth(String width)(Code)

Parameters:
  width - The width to set.



unregisterControl
public void unregisterControl(Control control)(Code)



Methods inherited from de.jwic.base.ControlContainer
public void adopt(Control control, String name)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public Control getControl(String name)(Code)(Java Doc)
public Iterator getControls()(Code)(Java Doc)
public boolean isRenderingRelevant(Control childControl)(Code)(Java Doc)
public void registerControl(Control control, String name) throws JWicException(Code)(Java Doc)
public void removeControl(String controlName)(Code)(Java Doc)
public void unregisterControl(Control control)(Code)(Java Doc)

Fields inherited from de.jwic.base.Control
final protected static String DEFAULT_OUTER_RENDERER(Code)(Java Doc)
final protected static String DEFAULT_RENDERER(Code)(Java Doc)
protected Map fields(Code)(Java Doc)
protected transient Log log(Code)(Java Doc)
protected String templateName(Code)(Java Doc)

Methods inherited from de.jwic.base.Control
public void actionPerformed(String actionId, String parameter)(Code)(Java Doc)
public String createActionURL(String action, String acpara)(Code)(Java Doc)
public String createFieldName(String fieldname)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public IControlContainer getContainer()(Code)(Java Doc)
public java.lang.String getControlID()(Code)(Java Doc)
public Field getField(String fieldname)(Code)(Java Doc)
public String getFieldValue(String fieldname)(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
public String getRendererId()(Code)(Java Doc)
public SessionContext getSessionContext()(Code)(Java Doc)
public String getTemplateName()(Code)(Java Doc)
public boolean isRequireRedraw()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void removeField(String fieldname)(Code)(Java Doc)
public void removeField(Field field)(Code)(Java Doc)
protected void requireRedraw()(Code)(Java Doc)
public void setFieldValue(String fieldname, String value)(Code)(Java Doc)
public void setFieldValue(String fieldname, String[] values)(Code)(Java Doc)
public void setRendererId(String rendererId)(Code)(Java Doc)
public void setRequireRedraw(boolean requireRedraw)(Code)(Java Doc)
public void setTemplateName(String templateName)(Code)(Java Doc)
public void setVisible(boolean newVisible)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.