Java Doc for Grid.java in  » Ajax » NextApp-Echo2 » nextapp » echo2 » app » 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 » Ajax » NextApp Echo2 » nextapp.echo2.app 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   nextapp.echo2.app.Component
      nextapp.echo2.app.Grid

All known Subclasses:   nextapp.echo2.testapp.interactive.TestGrid,
Grid
public class Grid extends Component (Code)
A layout Component which renders its contents in a grid. Each component is contained within a "cell" of the grid. GridLayoutData layout data objects may used to cause cells to expand to fill multiple columns or rows.

Child LayoutData: Children of this component may provide layout information using the nextapp.echo2.app.layout.GridLayoutData layout data object.
See Also:   nextapp.echo2.app.layout.GridLayoutData



Field Summary
final public static  intDEFAULT_SIZE
    
final public static  intORIENTATION_HORIZONTAL
     Constant value for orientation property indicating cells should be laid out horizontally and then vertically.
final public static  intORIENTATION_VERTICAL
     Constant value for orientation property indicating cells should be laid out vertically and then horizontally.
final public static  StringPROPERTY_BORDER
    
final public static  StringPROPERTY_COLUMN_WIDTH
    
final public static  StringPROPERTY_HEIGHT
    
final public static  StringPROPERTY_INSETS
    
final public static  StringPROPERTY_ORIENTATION
    
final public static  StringPROPERTY_ROW_HEIGHT
    
final public static  StringPROPERTY_SIZE
    
final public static  StringPROPERTY_WIDTH
    

Constructor Summary
public  Grid()
     Creates a new horizontally-oriented Grid with the default size (2).
public  Grid(int size)
     Creates a new hoirzontally-oriented Grid with the specified size.

Method Summary
public  BordergetBorder()
     Returns the Border.
public  ExtentgetColumnWidth(int columnIndex)
     Returns the width of the specified column.
public  ExtentgetHeight()
     Returns the overall height.
public  InsetsgetInsets()
     Returns the default cell insets.
public  intgetOrientation()
     Returns the orientation of the grid (either horizontal or vertical).
public  ExtentgetRowHeight(int rowIndex)
     Returns the height of the specified row.
public  intgetSize()
     Returns the number of columns or rows in the Grid.
public  ExtentgetWidth()
     Returns the overall width of the grid.
public  voidsetBorder(Border newValue)
     Sets the Border.
public  voidsetColumnWidth(int columnIndex, Extent newValue)
     Sets the width of the specified column.
public  voidsetHeight(Extent newValue)
     Sets the overall height of the grid.
public  voidsetInsets(Insets newValue)
     Sets the default cell insets.
public  voidsetOrientation(int newValue)
     Sets the orientation of the grid (either horizontal or vertical).
public  voidsetRowHeight(int rowIndex, Extent newValue)
     Sets the height of the specified row.
public  voidsetSize(int newValue)
     Sets the number of columns or rows in the grid.
public  voidsetWidth(Extent newValue)
     Sets the overall width of the grid.

Field Detail
DEFAULT_SIZE
final public static int DEFAULT_SIZE(Code)



ORIENTATION_HORIZONTAL
final public static int ORIENTATION_HORIZONTAL(Code)
Constant value for orientation property indicating cells should be laid out horizontally and then vertically. ORIENTATION_HORIZONTAL is the default orientation setting.



ORIENTATION_VERTICAL
final public static int ORIENTATION_VERTICAL(Code)
Constant value for orientation property indicating cells should be laid out vertically and then horizontally.



PROPERTY_BORDER
final public static String PROPERTY_BORDER(Code)



PROPERTY_COLUMN_WIDTH
final public static String PROPERTY_COLUMN_WIDTH(Code)



PROPERTY_HEIGHT
final public static String PROPERTY_HEIGHT(Code)



PROPERTY_INSETS
final public static String PROPERTY_INSETS(Code)



PROPERTY_ORIENTATION
final public static String PROPERTY_ORIENTATION(Code)



PROPERTY_ROW_HEIGHT
final public static String PROPERTY_ROW_HEIGHT(Code)



PROPERTY_SIZE
final public static String PROPERTY_SIZE(Code)



PROPERTY_WIDTH
final public static String PROPERTY_WIDTH(Code)




Constructor Detail
Grid
public Grid()(Code)
Creates a new horizontally-oriented Grid with the default size (2).



Grid
public Grid(int size)(Code)
Creates a new hoirzontally-oriented Grid with the specified size.
Parameters:
  size - the number of columns
See Also:   Grid.getSize()




Method Detail
getBorder
public Border getBorder()(Code)
Returns the Border. the border



getColumnWidth
public Extent getColumnWidth(int columnIndex)(Code)
Returns the width of the specified column. This property supports Extents with fixed or percentile units.
Parameters:
  columnIndex - the column index the width



getHeight
public Extent getHeight()(Code)
Returns the overall height. This property only supports Extents with fixed (i.e., not percent) units. the height



getInsets
public Insets getInsets()(Code)
Returns the default cell insets. The default cell insets will be used for individual child cells that do not provide an Insets value in their GridLayoutData. the default cell insets



getOrientation
public int getOrientation()(Code)
Returns the orientation of the grid (either horizontal or vertical). The orientation describes the direction in which cells are laid out. An orientation of ORIENTATION_HORIZONTAL (the default) specifies that cells should be laid out in horizontal rows with the size property specifying the number of columns per row. An orientation of ORIENTATION_VERTICAL specifies that cells should be laid out in vertical columns with the size property specifying the number of rows per column. the orientation, one of the following values:
  • ORIENTATION_HORIZONTAL (the default)
  • ORIENTATION_VERTICAL

See Also:   Grid.setOrientation



getRowHeight
public Extent getRowHeight(int rowIndex)(Code)
Returns the height of the specified row. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  rowIndex - the row index the height



getSize
public int getSize()(Code)
Returns the number of columns or rows in the Grid. If the orientation property is set to ORIENTATION_HORIZONTAL, this property represents the number of columns in the Grid. If the orientation property is set to ORIENTATION_VERTICAL, this property represents the number of rows in the Grid. the number of columns or rows



getWidth
public Extent getWidth()(Code)
Returns the overall width of the grid. This property supports Extents with fixed or percentile units. the width



setBorder
public void setBorder(Border newValue)(Code)
Sets the Border.
Parameters:
  newValue - the new border



setColumnWidth
public void setColumnWidth(int columnIndex, Extent newValue)(Code)
Sets the width of the specified column. This property supports Extents with fixed or percentile units.
Parameters:
  columnIndex - the column index
Parameters:
  newValue - the new width



setHeight
public void setHeight(Extent newValue)(Code)
Sets the overall height of the grid. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  newValue - the new height



setInsets
public void setInsets(Insets newValue)(Code)
Sets the default cell insets. The default cell insets will be used for individual child cells that do not provide an Insets value in their GridLayoutData.
Parameters:
  newValue - the new default cell insets



setOrientation
public void setOrientation(int newValue)(Code)
Sets the orientation of the grid (either horizontal or vertical). The orientation describes the direction in which cells are laid out. An orientation of ORIENTATION_HORIZONTAL (the default) specifies that cells should be laid out in horizontal rows with the size property specifying the number of columns per row. An orientation of ORIENTATION_VERTICAL specifies that cells should be laid out in vertical columns with the size property specifying the number of rows per column.
Parameters:
  newValue - the new orientation, one of the following values:
  • ORIENTATION_HORIZONTAL (the default)
  • ORIENTATION_VERTICAL



setRowHeight
public void setRowHeight(int rowIndex, Extent newValue)(Code)
Sets the height of the specified row. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  rowIndex - the row index
Parameters:
  newValue - the new height



setSize
public void setSize(int newValue)(Code)
Sets the number of columns or rows in the grid. If the orientation property is set to ORIENTATION_HORIZONTAL, this property represents the number of columns in the Grid. If the orientation property is set to ORIENTATION_VERTICAL, this property represents the number of rows in the Grid.
Parameters:
  newValue - the number of columns or rows
See Also:   Grid.getSize()



setWidth
public void setWidth(Extent newValue)(Code)
Sets the overall width of the grid. This property supports Extents with fixed or percentile units.
Parameters:
  newValue - the new width



Fields inherited from nextapp.echo2.app.Component
final public static String CHILDREN_CHANGED_PROPERTY(Code)(Java Doc)
final public static String ENABLED_CHANGED_PROPERTY(Code)(Java Doc)
final public static String FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY(Code)(Java Doc)
final public static String FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY(Code)(Java Doc)
final public static String LAYOUT_DIRECTION_CHANGED_PROPERTY(Code)(Java Doc)
final public static String LOCALE_CHANGED_PROPERTY(Code)(Java Doc)
final public static String PROPERTY_BACKGROUND(Code)(Java Doc)
final public static String PROPERTY_FONT(Code)(Java Doc)
final public static String PROPERTY_FOREGROUND(Code)(Java Doc)
final public static String PROPERTY_LAYOUT_DATA(Code)(Java Doc)
final public static String STYLE_CHANGED_PROPERTY(Code)(Java Doc)
final public static String STYLE_NAME_CHANGED_PROPERTY(Code)(Java Doc)
final public static String VISIBLE_CHANGED_PROPERTY(Code)(Java Doc)

Methods inherited from nextapp.echo2.app.Component
public void add(Component c)(Code)(Java Doc)
public void add(Component c, int n) throws IllegalChildException(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
void assignRenderId(String renderId)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
void doDispose()(Code)(Java Doc)
void doInit()(Code)(Java Doc)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
public ApplicationInstance getApplicationInstance()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
final public Component getComponent(int n)(Code)(Java Doc)
final public Component getComponent(String id)(Code)(Java Doc)
final public int getComponentCount()(Code)(Java Doc)
final public Component[] getComponents()(Code)(Java Doc)
protected EventListenerList getEventListenerList()(Code)(Java Doc)
final public int getFocusTraversalIndex()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
final public Object getIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc)
public LayoutData getLayoutData()(Code)(Java Doc)
public LayoutDirection getLayoutDirection()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
final public Component getParent()(Code)(Java Doc)
final public Object getProperty(String propertyName)(Code)(Java Doc)
public String getRenderId()(Code)(Java Doc)
final public Object getRenderIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc)
final public Object getRenderIndexedProperty(String propertyName, int propertyIndex, Object defaultValue)(Code)(Java Doc)
final public LayoutDirection getRenderLayoutDirection()(Code)(Java Doc)
final public Locale getRenderLocale()(Code)(Java Doc)
final public Object getRenderProperty(String propertyName)(Code)(Java Doc)
final public Object getRenderProperty(String propertyName, Object defaultValue)(Code)(Java Doc)
final public Style getStyle()(Code)(Java Doc)
final public String getStyleName()(Code)(Java Doc)
final public Component getVisibleComponent(int n)(Code)(Java Doc)
final public int getVisibleComponentCount()(Code)(Java Doc)
final public Component[] getVisibleComponents()(Code)(Java Doc)
protected boolean hasEventListenerList()(Code)(Java Doc)
final public int indexOf(Component c)(Code)(Java Doc)
public void init()(Code)(Java Doc)
final public boolean isAncestorOf(Component c)(Code)(Java Doc)
final public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusTraversalParticipant()(Code)(Java Doc)
final public boolean isRegistered()(Code)(Java Doc)
final public boolean isRenderEnabled()(Code)(Java Doc)
final public boolean isRenderVisible()(Code)(Java Doc)
public boolean isValidChild(Component child)(Code)(Java Doc)
public boolean isValidParent(Component parent)(Code)(Java Doc)
final public boolean isVisible()(Code)(Java Doc)
public void processInput(String inputName, Object inputValue)(Code)(Java Doc)
void register(ApplicationInstance newValue)(Code)(Java Doc)
public void remove(Component c)(Code)(Java Doc)
public void remove(int n)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void setBackground(Color newValue)(Code)(Java Doc)
public void setEnabled(boolean newValue)(Code)(Java Doc)
public void setFocusTraversalIndex(int newValue)(Code)(Java Doc)
public void setFocusTraversalParticipant(boolean newValue)(Code)(Java Doc)
public void setFont(Font newValue)(Code)(Java Doc)
public void setForeground(Color newValue)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setIndexedProperty(String propertyName, int propertyIndex, Object newValue)(Code)(Java Doc)
public void setLayoutData(LayoutData newValue)(Code)(Java Doc)
public void setLayoutDirection(LayoutDirection newValue)(Code)(Java Doc)
public void setLocale(Locale newValue)(Code)(Java Doc)
public void setProperty(String propertyName, Object newValue)(Code)(Java Doc)
public void setRenderId(String renderId)(Code)(Java Doc)
public void setStyle(Style newValue)(Code)(Java Doc)
public void setStyleName(String newValue)(Code)(Java Doc)
public void setVisible(boolean newValue)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
public boolean verifyInput(String inputName, Object inputValue)(Code)(Java Doc)
final public int visibleIndexOf(Component c)(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.