Java Doc for HtmlTable.java in  » J2EE » Sofia » com » salmonllc » html » 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 » J2EE » Sofia » com.salmonllc.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.html.HtmlContainer
         com.salmonllc.html.HtmlTable

All known Subclasses:   com.salmonllc.examples.example2.DBSelector,
HtmlTable
public class HtmlTable extends HtmlContainer (Code)
This component will generate an HTML table. It serves as a container and layout manager for other components.


Field Summary
final public static  StringALIGN_CENTER
    
final public static  StringALIGN_LEFT
    
final public static  StringALIGN_NONE
    
final public static  StringALIGN_RIGHT
    
final public static  intSIZE_PERCENT
    
final public static  intSIZE_PIXELS
    
final public static  StringVALIGN_BASELINE
    
final public static  StringVALIGN_BOTTOM
    
final public static  StringVALIGN_MIDDLE
    
final public static  StringVALIGN_NONE
    
final public static  StringVALIGN_TOP
    

Constructor Summary
public  HtmlTable(String name, HtmlPage p)
     Constructs a new HTMLTable.
public  HtmlTable(String name, String theme, HtmlPage p)
     Constructs a new HTMLTable.

Method Summary
public  voidadd(HtmlComponent comp)
     This method should not be used in this type of container.
public  voidaddDisplay(String name, String caption, HtmlComponent component)
     Adds a component to the table a makes a caption comp.
public  voidaddDisplay(String name, String caption, HtmlComponent component, boolean sameRow)
     Adds a component to the table a makes a caption comp.
public  voidaddDisplay(String name, String caption, HtmlComponent component, boolean sameRow, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch)
     Adds a component to the table a makes a caption comp.
public  booleanexecuteEvent(int eventType)
    
public  voidgenerateHTML(java.io.PrintWriter p, int rowNo)
    
public  voidgenerateInitialHTML(java.io.PrintWriter p)
    
public  StringgetAlign()
     Returns the alignment property for the table.
public  StringgetBackgroundColor()
     Gets the background color for the table.
public  intgetBorder()
     Gets the border thickness for the table.
public  HtmlComponentgetCaptionComp(String name)
     This method will return a caption Component.
public  intgetCellPadding()
     Gets the cell padding for the table.
public  intgetCellSpacing()
     Gets the cell spacing for the table.
public  intgetColumnHeight(int column)
    
public  intgetColumnWidth(int column)
    
public  HtmlComponentgetComponent(String name)
     This method will return a single component if the name or a portion of the name is found in this HtmlContainer or any HtmlContainer contained in this container.
public  EnumerationgetComponents()
     This method will return a list of all components in the container.
public  intgetHeight()
     This method gets the minimum height of the table in pixels.
public  intgetRowCount()
     Returns the number of rows currently in the table.
public  HtmlTableRowPropertiesgetRowProperty(int propertyRow)
     This method was created in VisualAge.
public  StringgetRowStyleClassName()
    
public  HtmlComponentgetSearchComp(String name)
     This method will return a serach component.
public  intgetSizeOption()
     This method returns the size option for the table and each cell in it.
public  StringgetTheme()
     This method returns the property theme for the component.
public  intgetWidth()
     This method returns the width of the table.
public  voidinsertRow(int row)
     Inserts an entire row before the specified one.
public  booleanprocessParms(Hashtable parms, int rowNo)
    
public  voidremove(HtmlComponent comp)
     Removes an html component from this container.
public  voidremoveAll()
     This method removes all of the components out of the table.
public  voidremoveRow(int row)
     Removes an entire row from this container.
public  voidremoveRow(HtmlComponent comp)
    
public  voidsetAlign(String align)
     Sets the alignment property for the table.
public  voidsetAllowNullCells(boolean value)
     Sets the border width for the table.
public  voidsetBackgroundColor(String value)
     Sets the background color for the table.
public  voidsetBorder(int border)
     Sets the border width for the table.
public  voidsetCellPadding(int value)
     Sets the cell padding for the table.
public  voidsetCellSpacing(int value)
     Sets the cell spacing for the table.
public  voidsetColumnWidth(int column, int width)
     Sets the column width for a particular column in the table.
public  voidsetComponentAt(int row, int column, HtmlComponent comp)
     Sets a component at a particular row column position in the table.
public  voidsetComponentAt(int row, int column, HtmlComponent comp, HtmlTableCellProperties props)
     Sets a component at a particular row column position in the table.
public  voidsetComponents(HtmlComponent comp)
     Sets a 2D array of components in the table.
public  voidsetComponents(HtmlComponent comp, HtmlTableCellProperties props)
     Sets a 2D array of components in the table.
public  voidsetCorrectColSpan(boolean correctColSpan)
     This method sets a flag indicating whether the bug related to COLSPAN has been fixed.
public  voidsetHeight(int height)
     This method sets the minimum height of the table in pixels.
public  voidsetRowProperty(int row, HtmlTableRowProperties rowProp)
     This method was created in VisualAge.
public  voidsetRowStyleClassName(String string)
    
public  voidsetSizeOption(int option)
     This method sets the size option for the table and each cell in it.
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetWidth(int width)
     This method sets the minimum width of the table in either pixels or percent depending on size option.

Field Detail
ALIGN_CENTER
final public static String ALIGN_CENTER(Code)



ALIGN_LEFT
final public static String ALIGN_LEFT(Code)



ALIGN_NONE
final public static String ALIGN_NONE(Code)



ALIGN_RIGHT
final public static String ALIGN_RIGHT(Code)



SIZE_PERCENT
final public static int SIZE_PERCENT(Code)



SIZE_PIXELS
final public static int SIZE_PIXELS(Code)



VALIGN_BASELINE
final public static String VALIGN_BASELINE(Code)



VALIGN_BOTTOM
final public static String VALIGN_BOTTOM(Code)



VALIGN_MIDDLE
final public static String VALIGN_MIDDLE(Code)



VALIGN_NONE
final public static String VALIGN_NONE(Code)



VALIGN_TOP
final public static String VALIGN_TOP(Code)




Constructor Detail
HtmlTable
public HtmlTable(String name, HtmlPage p)(Code)
Constructs a new HTMLTable.
Parameters:
  name - Each component on a page must have a unique name.
Parameters:
  p - The page that the table will be added to.



HtmlTable
public HtmlTable(String name, String theme, HtmlPage p)(Code)
Constructs a new HTMLTable.
Parameters:
  name - Each component on a page must have a unique name.
Parameters:
  theme - The theme to use for loading properties
Parameters:
  p - The page that the table will be added to.




Method Detail
add
public void add(HtmlComponent comp)(Code)
This method should not be used in this type of container. Instead use setComponentAt().



addDisplay
public void addDisplay(String name, String caption, HtmlComponent component) throws Exception(Code)
Adds a component to the table a makes a caption comp.
Parameters:
  name - Name to associate internally with the search component.
Parameters:
  caption - Text of caption to put before the search component, or null.
Parameters:
  component - The search component.



addDisplay
public void addDisplay(String name, String caption, HtmlComponent component, boolean sameRow) throws Exception(Code)
Adds a component to the table a makes a caption comp.
Parameters:
  name - Name to associate internally with the search component.
Parameters:
  caption - Text of caption to put before the search component, or null.
Parameters:
  component - The search component.
Parameters:
  sameRow - boolean specifies whether you want the next component on the same row.



addDisplay
public void addDisplay(String name, String caption, HtmlComponent component, boolean sameRow, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)
Adds a component to the table a makes a caption comp.
Parameters:
  name - Name to associate internally with the search component.
Parameters:
  caption - Text of caption to put before the search component, or null.
Parameters:
  component - The search component.
Parameters:
  sameRow - boolean specifies whether you want the next component on the same row.
Parameters:
  propCaption - Table properties for caption, or null.
Parameters:
  propSearch - Table properties for search component, or null.



executeEvent
public boolean executeEvent(int eventType) throws Exception(Code)



generateHTML
public void generateHTML(java.io.PrintWriter p, int rowNo) throws Exception(Code)



generateInitialHTML
public void generateInitialHTML(java.io.PrintWriter p) throws Exception(Code)



getAlign
public String getAlign()(Code)
Returns the alignment property for the table. align Valid values are ALIGN_LEFT,ALIGN_CENTER,ALIGN_RIGHT and ALIGN_NONE.



getBackgroundColor
public String getBackgroundColor()(Code)
Gets the background color for the table.



getBorder
public int getBorder()(Code)
Gets the border thickness for the table.



getCaptionComp
public HtmlComponent getCaptionComp(String name)(Code)
This method will return a caption Component.
Parameters:
  name -



getCellPadding
public int getCellPadding()(Code)
Gets the cell padding for the table.



getCellSpacing
public int getCellSpacing()(Code)
Gets the cell spacing for the table.



getColumnHeight
public int getColumnHeight(int column)(Code)
This method gets the minimum width for a particular column in the table or -1 if the column width has not been set



getColumnWidth
public int getColumnWidth(int column)(Code)
This method gets the minimum width for a particular column in the table or -1 if the column width has not been set



getComponent
public HtmlComponent getComponent(String name)(Code)
This method will return a single component if the name or a portion of the name is found in this HtmlContainer or any HtmlContainer contained in this container. HtmlComponent - if a component can not be found null is returned
Parameters:
  name - - name of component being searched for



getComponents
public Enumeration getComponents()(Code)
This method will return a list of all components in the container.



getHeight
public int getHeight()(Code)
This method gets the minimum height of the table in pixels.



getRowCount
public int getRowCount()(Code)
Returns the number of rows currently in the table. int



getRowProperty
public HtmlTableRowProperties getRowProperty(int propertyRow)(Code)
This method was created in VisualAge. com.salmonllc.html.HtmlTableRowProperties
Parameters:
  propertyRow - int



getRowStyleClassName
public String getRowStyleClassName()(Code)
the default style sheet class for table alternate rows



getSearchComp
public HtmlComponent getSearchComp(String name)(Code)
This method will return a serach component.
Parameters:
  name -



getSizeOption
public int getSizeOption()(Code)
This method returns the size option for the table and each cell in it. Valid return values are SIZE_PIXELS or SIZE_PERCENT.



getTheme
public String getTheme()(Code)
This method returns the property theme for the component.



getWidth
public int getWidth()(Code)
This method returns the width of the table.



insertRow
public void insertRow(int row)(Code)
Inserts an entire row before the specified one.



processParms
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)



remove
public void remove(HtmlComponent comp)(Code)
Removes an html component from this container.
Parameters:
  comp - The component to remove



removeAll
public void removeAll()(Code)
This method removes all of the components out of the table.



removeRow
public void removeRow(int row)(Code)
Removes an entire row from this container.
Parameters:
  row - The row to remove



removeRow
public void removeRow(HtmlComponent comp)(Code)
Removes the row from the table containing a specific component
author:
   Ian Booth



setAlign
public void setAlign(String align)(Code)
Sets the alignment property for the table.
Parameters:
  align - Valid values are ALIGN_LEFT,ALIGN_CENTER,ALIGN_RIGHT and ALIGN_NONE.



setAllowNullCells
public void setAllowNullCells(boolean value)(Code)
Sets the border width for the table.



setBackgroundColor
public void setBackgroundColor(String value)(Code)
Sets the background color for the table.



setBorder
public void setBorder(int border)(Code)
Sets the border width for the table.



setCellPadding
public void setCellPadding(int value)(Code)
Sets the cell padding for the table.



setCellSpacing
public void setCellSpacing(int value)(Code)
Sets the cell spacing for the table.



setColumnWidth
public void setColumnWidth(int column, int width)(Code)
Sets the column width for a particular column in the table.



setComponentAt
public void setComponentAt(int row, int column, HtmlComponent comp)(Code)
Sets a component at a particular row column position in the table. The cell in the table will use the browsers default cell properties.



setComponentAt
public void setComponentAt(int row, int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a component at a particular row column position in the table. The cell in the table will use properties specified in the props argument.



setComponents
public void setComponents(HtmlComponent comp)(Code)
Sets a 2D array of components in the table. The cells in the table will use the browsers default cell properties. The routine works left to right, top to bottom. ex. comp[row][col]



setComponents
public void setComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a 2D array of components in the table. The cells in the table will use the cell properties from the 2D HtmlTableCellProperties array. The routine works left to right, top to bottom. ex. comp[row][col]



setCorrectColSpan
public void setCorrectColSpan(boolean correctColSpan)(Code)
This method sets a flag indicating whether the bug related to COLSPAN has been fixed.



setHeight
public void setHeight(int height)(Code)
This method sets the minimum height of the table in pixels.



setRowProperty
public void setRowProperty(int row, HtmlTableRowProperties rowProp)(Code)
This method was created in VisualAge.
Parameters:
  row - int
Parameters:
  rowProp - com.salmonllc.html.HtmlTableRowProperties



setRowStyleClassName
public void setRowStyleClassName(String string)(Code)

Parameters:
  string - sets the default style sheet class for table rows



setSizeOption
public void setSizeOption(int option)(Code)
This method sets the size option for the table and each cell in it. Valid return values are SIZE_PIXELS or SIZE_PERCENT.
Parameters:
  option -



setTheme
public void setTheme(String theme)(Code)
This method sets the property theme for the component.
Parameters:
  theme - The theme to use.



setWidth
public void setWidth(int width)(Code)
This method sets the minimum width of the table in either pixels or percent depending on size option.
Parameters:
  width -



Fields inherited from com.salmonllc.html.HtmlContainer
protected boolean _center(Code)(Java Doc)
protected Vector _componentsVec(Code)(Java Doc)
protected boolean _enabled(Code)(Java Doc)
protected HtmlComponent _submit(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlContainer
public void add(HtmlComponent comp)(Code)(Java Doc)
public void clearSubmit()(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public boolean getCenter()(Code)(Java Doc)
public HtmlComponent getComponent(String name)(Code)(Java Doc)
public Enumeration getComponents()(Code)(Java Doc)
public boolean getEnabled()(Code)(Java Doc)
public HtmlComponent getSubmitComponent()(Code)(Java Doc)
public void insertComponentAt(HtmlComponent comp, int index)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void remove(HtmlComponent comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public boolean replaceComponent(HtmlComponent comp, Object compToReplace)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setCenter(boolean center)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
String _fullName(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
String _name(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(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.