Java Doc for FormComponentBox.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » css2 » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.css2 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.css2.CssBox
      org.netbeans.modules.visualweb.css2.ContainerBox
         org.netbeans.modules.visualweb.css2.FormComponentBox

FormComponentBox
public class FormComponentBox extends ContainerBox (Code)
Box that visually represents a form component - such as a button, dropdown, checkbox, text area, or listbox.

Portions of this code taken from javax.swing.text.html.FormView


author:
   Timothy Prinzing
author:
   Sunita Mani
author:
   Tor Norbye





Method Summary
protected  voidcreateChildren(CreateContext context)
    
public static  JTextAreacreateTextArea(String text, int rows, int columns)
    
public static  JTextFieldcreateTextField()
    
public static  JTextFieldcreateTextField(String text, int columns)
    
public  intgetBaseline()
    
public static  CssBoxgetBox(WebForm webform, Element element, HtmlTag tag, BoxType boxType, boolean inline, boolean replaced)
     Create a FormComponentBox representing the given element's component.
final public  JComponentgetComponent()
     FOR TESTSUITE ONLY! Fetch the component associated with the view.
public  InsetsgetCssSizeInsets()
    
public  intgetHeight()
    
public  intgetIntrinsicHeight()
    
public  intgetIntrinsicWidth()
    
public  floatgetMaximumSpan(int axis)
     Determines the maximum span for this view along an axis.
public  floatgetMinimumSpan(int axis)
     Determines the minimum span for this view along an axis.
public  floatgetPreferredSpan(int axis)
     Determines the preferred span for this view along an axis.
public  intgetWidth()
    
protected  voidinitialize()
    
public  booleanisBorderSizeIncluded()
    
protected  booleanisOpaqueBox()
    
public  voidpaint(Graphics g, int px, int py)
    
protected  voidpaintBackground(Graphics g, int x, int y)
    
protected  StringparamString()
    
public static  int[]populateOptions(WebForm webForm, Element element, Vector<String> v)
     Find all the



Method Detail
createChildren
protected void createChildren(CreateContext context)(Code)



createTextArea
public static JTextArea createTextArea(String text, int rows, int columns)(Code)



createTextField
public static JTextField createTextField()(Code)



createTextField
public static JTextField createTextField(String text, int columns)(Code)



getBaseline
public int getBaseline()(Code)



getBox
public static CssBox getBox(WebForm webform, Element element, HtmlTag tag, BoxType boxType, boolean inline, boolean replaced)(Code)
Create a FormComponentBox representing the given element's component. May return null if it's an invisible component (e.g. input hidden).
Parameters:
  element - The element this inline box is associated with
Parameters:
  x - The x position where the inline box should be renderedrelative to the containing block.
Parameters:
  y - The y position where the inline box should be renderedrelative to the containing block.
Parameters:
  width - The width of this inline box.
Parameters:
  height - The height of this inline box.



getComponent
final public JComponent getComponent()(Code)
FOR TESTSUITE ONLY! Fetch the component associated with the view.



getCssSizeInsets
public Insets getCssSizeInsets()(Code)



getHeight
public int getHeight()(Code)



getIntrinsicHeight
public int getIntrinsicHeight()(Code)



getIntrinsicWidth
public int getIntrinsicWidth()(Code)



getMaximumSpan
public float getMaximumSpan(int axis)(Code)
Determines the maximum span for this view along an axis. This is implemented to return the value returned by Component.getMaximumSize along the axis of interest.
Parameters:
  axis - may be either CssBox.X_AXIS or CssBox.Y_AXIS the span the view would like to be rendered into >= 0.Typically the view is told to render into the spanthat is returned, although there is no guarantee.The parent may choose to resize or break the view.
exception:
  IllegalArgumentException - for an invalid axis



getMinimumSpan
public float getMinimumSpan(int axis)(Code)
Determines the minimum span for this view along an axis. This is implemented to return the value returned by Component.getMinimumSize along the axis of interest.
Parameters:
  axis - may be either CssBox.X_AXIS or CssBox.Y_AXIS the span the view would like to be rendered into >= 0.Typically the view is told to render into the spanthat is returned, although there is no guarantee.The parent may choose to resize or break the view.
exception:
  IllegalArgumentException - for an invalid axis



getPreferredSpan
public float getPreferredSpan(int axis)(Code)
Determines the preferred span for this view along an axis. This is implemented to return the value returned by Component.getPreferredSize along the axis of interest.
Parameters:
  axis - may be either CssBox.X_AXIS or CssBox.Y_AXIS the span the view would like to be rendered into >= 0.Typically the view is told to render into the spanthat is returned, although there is no guarantee.The parent may choose to resize or break the view.
exception:
  IllegalArgumentException - for an invalid axis



getWidth
public int getWidth()(Code)



initialize
protected void initialize()(Code)



isBorderSizeIncluded
public boolean isBorderSizeIncluded()(Code)



isOpaqueBox
protected boolean isOpaqueBox()(Code)



paint
public void paint(Graphics g, int px, int py)(Code)



paintBackground
protected void paintBackground(Graphics g, int x, int y)(Code)



paramString
protected String paramString()(Code)



populateOptions
public static int[] populateOptions(WebForm webForm, Element element, Vector<String> v)(Code)
Find all the



Fields inherited from org.netbeans.modules.visualweb.css2.ContainerBox
final static boolean COLLAPSE(Code)(Java Doc)
BoxList boxes(Code)(Java Doc)
protected boolean clipOverflow(Code)(Java Doc)
protected boolean grid(Code)(Java Doc)
static Rectangle sharedClipRect(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.css2.ContainerBox
protected void addBox(CssBox box, CssBox prevBox, CssBox nextBox)(Code)(Java Doc)
protected void addBoxNode(HtmlTag tag, CssBox box, CreateContext context, CssBox prevBox, CssBox nextBox)(Code)(Java Doc)
protected void addGrayItalicText(CreateContext context, Element styleElement, String text)(Code)(Java Doc)
void addNode(CreateContext context, Node node, Element sourceElement, CssBox prevBox, CssBox nextBox)(Code)(Java Doc)
protected void addSiblingBoxNode(HtmlTag tag, CssBox box, CreateContext context, CssBox prevBox, CssBox nextBox)(Code)(Java Doc)
protected void addText(CreateContext context, Text textNode, Element styleElement, String text)(Code)(Java Doc)
boolean containsChild(CssBox cssBox)(Code)(Java Doc)
protected void createChildren(CreateContext context)(Code)(Java Doc)
public WebForm[] findExternalForms()(Code)(Java Doc)
void finishAllRelatives(FormatContext context)(Code)(Java Doc)
void finishLineBox(CreateContext context)(Code)(Java Doc)
public CssBox getBox(int index)(Code)(Java Doc)
public int getBoxCount()(Code)(Java Doc)
protected BoxList getBoxList()(Code)(Java Doc)
public CssBox[] getBoxes()(Code)(Java Doc)
protected CssBox[] getBoxesToRemove(CssBox toRemove)(Code)(Java Doc)
public int getPrefMinWidth()(Code)(Java Doc)
public int getPrefWidth()(Code)(Java Doc)
protected boolean hasNormalBlockLevelChildren()(Code)(Java Doc)
protected void initialize()(Code)(Java Doc)
protected void initializeBackground()(Code)(Java Doc)
protected void initializeGrid()(Code)(Java Doc)
protected void initializeHorizontalWidths(FormatContext context)(Code)(Java Doc)
public boolean isGrid()(Code)(Java Doc)
protected boolean isOpaqueBox()(Code)(Java Doc)
protected void layoutChild(CssBox box, FormatContext context, boolean handleChildren)(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
protected CssBox notifyChildResize(CssBox child, FormatContext context)(Code)(Java Doc)
public void paint(Graphics g, int px, int py)(Code)(Java Doc)
protected void paintBox(Graphics g, int x, int y, int w, int h)(Code)(Java Doc)
protected void paintGrid(Graphics g, int x, int y, int w, int h)(Code)(Java Doc)
protected void positionBox(CssBox box, FormatContext context)(Code)(Java Doc)
static void printLayout(CssBox b, StringBuffer sb, int depth)(Code)(Java Doc)
public void relayout(FormatContext context)(Code)(Java Doc)
protected boolean removeBox(CssBox box)(Code)(Java Doc)
protected void removeBoxes()(Code)(Java Doc)
void setContainingBlock(CssBox box, FormatContext context)(Code)(Java Doc)
public void setGrid(boolean grid)(Code)(Java Doc)
protected void setProbableChildCount(int children)(Code)(Java Doc)

Fields inherited from org.netbeans.modules.visualweb.css2.CssBox
final public static int AUTO(Code)(Java Doc)
final protected static boolean DEBUGFORMAT(Code)(Java Doc)
final public static int UNINITIALIZED(Code)(Java Doc)
final public static int X_AXIS(Code)(Java Doc)
final public static int Y_AXIS(Code)(Java Doc)
Color bg(Code)(Java Doc)
BackgroundImagePainter bgPainter(Code)(Java Doc)
CssBorder border(Code)(Java Doc)
int bottom(Code)(Java Doc)
int bottomBorderWidth(Code)(Java Doc)
int bottomMargin(Code)(Java Doc)
int bottomPadding(Code)(Java Doc)
BoxType boxType(Code)(Java Doc)
int containingBlockHeight(Code)(Java Doc)
int containingBlockWidth(Code)(Java Doc)
int containingBlockX(Code)(Java Doc)
int containingBlockY(Code)(Java Doc)
int contentHeight(Code)(Java Doc)
int contentWidth(Code)(Java Doc)
int effectiveBottomMargin(Code)(Java Doc)
int effectiveTopMargin(Code)(Java Doc)
int extentX(Code)(Java Doc)
int extentX2(Code)(Java Doc)
int extentY(Code)(Java Doc)
int extentY2(Code)(Java Doc)
int height(Code)(Java Doc)
boolean hidden(Code)(Java Doc)
boolean inline(Code)(Java Doc)
int left(Code)(Java Doc)
int leftBorderWidth(Code)(Java Doc)
int leftMargin(Code)(Java Doc)
int leftPadding(Code)(Java Doc)
CssBox originalInlineContainer(Code)(Java Doc)
static boolean paintPositioning(Code)(Java Doc)
static boolean paintSpaces(Code)(Java Doc)
static boolean paintText(Code)(Java Doc)
CssBox positionedBy(Code)(Java Doc)
boolean replaced(Code)(Java Doc)
int right(Code)(Java Doc)
int rightBorderWidth(Code)(Java Doc)
int rightMargin(Code)(Java Doc)
int rightPadding(Code)(Java Doc)
HtmlTag tag(Code)(Java Doc)
int top(Code)(Java Doc)
int topBorderWidth(Code)(Java Doc)
int topMargin(Code)(Java Doc)
int topPadding(Code)(Java Doc)
final protected WebForm webform(Code)(Java Doc)
int width(Code)(Java Doc)
int x(Code)(Java Doc)
int y(Code)(Java Doc)
int z(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.css2.CssBox
protected void clearBottom(FormatContext context, CssValue cssSide)(Code)(Java Doc)
protected void clearTop(FormatContext context, CssValue cssSide)(Code)(Java Doc)
protected Rectangle computeBounds(Element componentRootElement, Rectangle bounds)(Code)(Java Doc)
protected void computeHorizNonInlineNormalFlow(FormatContext context, int parentWidth)(Code)(Java Doc)
void computeHorizontalLengths(FormatContext context)(Code)(Java Doc)
protected void computeRectangles(Element componentRootElement, List<Rectangle> list)(Code)(Java Doc)
final public Rectangle computeRegionBounds(Element regionElement, Rectangle bounds)(Code)(Java Doc)
void computeVerticalLengths(FormatContext context)(Code)(Java Doc)
protected CssValue computeWidthCssValue()(Code)(Java Doc)
protected void considerDesignBorder()(Code)(Java Doc)
protected CssBox findCssBox(int x, int y, int px, int py, int depth)(Code)(Java Doc)
protected CssBox findCssBoxForComponentRootElement(Element componentRootElement)(Code)(Java Doc)
public int getAbsoluteX()(Code)(Java Doc)
public int getAbsoluteY()(Code)(Java Doc)
protected int getBaseline()(Code)(Java Doc)
public Color getBg()(Code)(Java Doc)
public int getBlockHeight()(Code)(Java Doc)
public int getBlockWidth()(Code)(Java Doc)
public Rectangle getBorderWidthRectangle()(Code)(Java Doc)
public CssBox getBox(int index)(Code)(Java Doc)
public int getBoxCount()(Code)(Java Doc)
public BoxType getBoxType()(Code)(Java Doc)
public String getBoxTypeName()(Code)(Java Doc)
public Rectangle getCBRectangle()(Code)(Java Doc)
public Box[] getChildren()(Code)(Java Doc)
protected int getCollapsedBottomMargin()(Code)(Java Doc)
protected int getCollapsedTopMargin()(Code)(Java Doc)
public Element getComponentRootElement()(Code)(Java Doc)
public static Element getComponentRootElementForCssBox(CssBox cssBox)(Code)(Java Doc)
public String getComputedStyles()(Code)(Java Doc)
protected int getContentHeight()(Code)(Java Doc)
public Dimension getContentSize()(Code)(Java Doc)
protected int getContentWidth()(Code)(Java Doc)
protected int getContentX()(Code)(Java Doc)
protected int getContentY()(Code)(Java Doc)
protected int getContributingBaseline()(Code)(Java Doc)
public Insets getCssSizeInsets()(Code)(Java Doc)
public Decoration getDecoration()(Code)(Java Doc)
protected int getEffectiveBottomMargin()(Code)(Java Doc)
public int getEffectiveTopMargin()(Code)(Java Doc)
final public Element getElement()(Code)(Java Doc)
public static Element getElementForComponentRootCssBox(CssBox cssBox)(Code)(Java Doc)
protected int getExtentX()(Code)(Java Doc)
protected int getExtentX2()(Code)(Java Doc)
protected int getExtentY()(Code)(Java Doc)
protected int getExtentY2()(Code)(Java Doc)
public Rectangle getExtentsRectangle()(Code)(Java Doc)
CssBox getFirstNormalBox()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public int getInternalResizeDirection(int x, int y)(Code)(Java Doc)
public Interaction getInternalResizer(int x, int y)(Code)(Java Doc)
protected int getIntrinsicHeight()(Code)(Java Doc)
protected int getIntrinsicWidth()(Code)(Java Doc)
public int getLeftMargin()(Code)(Java Doc)
public Rectangle getMarginRectangle()(Code)(Java Doc)
protected CssBox getNextNormalBlockBox()(Code)(Java Doc)
protected CssBox getNextNormalBox()(Code)(Java Doc)
public Rectangle getPaddingRectangle()(Code)(Java Doc)
public boolean getPaintPositions()(Code)(Java Doc)
public boolean getPaintSpaces()(Code)(Java Doc)
public boolean getPaintText()(Code)(Java Doc)
final public ContainerBox getParent()(Code)(Java Doc)
protected int getParentIndex()(Code)(Java Doc)
public Point getPosition()(Code)(Java Doc)
public Rectangle getPositionRect()(Code)(Java Doc)
public CssBox getPositionedBy()(Code)(Java Doc)
protected int getPrefMinWidth()(Code)(Java Doc)
protected int getPrefWidth()(Code)(Java Doc)
protected CssBox getPrevNormalBlockBox()(Code)(Java Doc)
protected CssBox getPrevNormalBox()(Code)(Java Doc)
public Point getRelPosition()(Code)(Java Doc)
public int getRightMargin()(Code)(Java Doc)
public String getRules()(Code)(Java Doc)
public Dimension getSize()(Code)(Java Doc)
final public Element getSourceElement()(Code)(Java Doc)
public String getStyles()(Code)(Java Doc)
public HtmlTag getTag()(Code)(Java Doc)
public WebForm getWebForm()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getX()(Code)(Java Doc)
public int getY()(Code)(Java Doc)
public int getZ()(Code)(Java Doc)
final protected boolean hasInitialFocus()(Code)(Java Doc)
protected boolean hasNormalBlockLevelChildren()(Code)(Java Doc)
protected void initialize()(Code)(Java Doc)
protected void initializeBackground()(Code)(Java Doc)
protected void initializeBackgroundColor()(Code)(Java Doc)
protected void initializeBackgroundImage()(Code)(Java Doc)
protected void initializeBorder()(Code)(Java Doc)
protected void initializeContentSize()(Code)(Java Doc)
protected void initializeDesignBean()(Code)(Java Doc)
protected void initializeHorizontalWidths(FormatContext context)(Code)(Java Doc)
protected void initializeInvariants()(Code)(Java Doc)
protected void initializeMargins()(Code)(Java Doc)
protected void initializePadding()(Code)(Java Doc)
protected void initializeZOrder()(Code)(Java Doc)
public boolean isAbsolutelyPositioned()(Code)(Java Doc)
public boolean isBlockLevel()(Code)(Java Doc)
protected boolean isBorderSizeIncluded()(Code)(Java Doc)
public boolean isClearBox()(Code)(Java Doc)
public boolean isGrid()(Code)(Java Doc)
public boolean isInlineBox()(Code)(Java Doc)
protected boolean isPlaceHolder()(Code)(Java Doc)
public boolean isPositioned()(Code)(Java Doc)
public boolean isReplacedBox()(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public void paint(Graphics g, int px, int py)(Code)(Java Doc)
protected void paintBackground(Graphics g, int x, int y)(Code)(Java Doc)
protected void paintBox(Graphics g, int x, int y, int w, int h)(Code)(Java Doc)
protected void paintDebugPositioning(Graphics g)(Code)(Java Doc)
protected void paintDecoration(Graphics g, int x, int y)(Code)(Java Doc)
final protected void paintFocusWaterMark(Graphics g, int x, int y)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
void putBoxReference(Element element, CssBox box)(Code)(Java Doc)
protected void relayout(FormatContext context)(Code)(Java Doc)
protected void setContainingBlock(int x, int y, int width, int height)(Code)(Java Doc)
final public void setLocation(int x, int y)(Code)(Java Doc)
public void setMargins(int leftMargin, int effectiveTopMargin)(Code)(Java Doc)
public void setPaintPositions(boolean paintPositioning)(Code)(Java Doc)
public void setPaintSpaces(boolean paintSpaces)(Code)(Java Doc)
public void setPaintText(boolean paintText)(Code)(Java Doc)
final void setParent(ContainerBox parent)(Code)(Java Doc)
void setParentIndex(int idx)(Code)(Java Doc)
void setPositionedBy(CssBox positionedBy)(Code)(Java Doc)
void setX(int x)(Code)(Java Doc)
void setY(int y)(Code)(Java Doc)
protected int shrinkToFit(int availableWidth, FormatContext context)(Code)(Java Doc)
final public String toString()(Code)(Java Doc)
protected void uncomputeWidthCssValue()(Code)(Java Doc)
protected void updateAutoContentSize()(Code)(Java Doc)
protected void updateExtents(int px, int py, int depth)(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.